devel/ghidra: Fix build error caused by cache cleanup

The issue seems to be caused by Gradle caches being cleaned up
between build sessions [1].  It did not come up before because the
cached files were not old enough to be deleted.

Cleanup happens after a build session, so running the two build
targets (yajswDevUnpack and buildGhidra) in the same session fixes
the issue.

[1] https://docs.gradle.org/current/userguide/directory_layout.html#dir:gradle_user_home:cache_cleanup)

PR:		239472
Submitted by:	Tamas Szakaly <sghctoma@gmail.com> (maintainer)
This commit is contained in:
Tobias Kortkamp 2019-08-11 14:44:41 +00:00
parent 4572ec4c4c
commit 782d7bccdc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=508626

View file

@ -100,8 +100,7 @@ post-patch-JDK12-on:
@${ECHO_CMD} "org.gradle.java.home=${LOCALBASE}/openjdk12" > ${WRKSRC}/gradle.properties
do-build:
cd ${WRKSRC} && ${GRADLE_RUN} yajswDevUnpack
cd ${WRKSRC} && ${GRADLE_RUN} buildGhidra
cd ${WRKSRC} && ${GRADLE_RUN} yajswDevUnpack buildGhidra
post-build:
@${RM} ${GRADLE_HOME_BASE}/gradle-${PORTNAME}