git: ce8e04db8b1a - 2021Q4 - java/openjfx14: fix build with non-default CCACHE_DIR
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Dec 2021 18:29:48 UTC
The branch 2021Q4 has been updated by mikael:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ce8e04db8b1aa8bf1a3135a38cfc3b4761de0f81
commit ce8e04db8b1aa8bf1a3135a38cfc3b4761de0f81
Author: Benjamin Takacs <nimaje+fbz@bureaucracy.de>
AuthorDate: 2021-12-12 17:53:29 +0000
Commit: Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2021-12-12 18:29:40 +0000
java/openjfx14: fix build with non-default CCACHE_DIR
In the build of openjfx14 CCACHE_DIR gets lost leading to build failures e.g.
when building as nobody, so add it into ccwrapper and cxxwrapper.
While here remove redundant ${SETENV} in do-build (${_GRADLE_RUN}
already contains ${SETENV})
PR: 260215
(cherry picked from commit 4ddd25225aa38b53f02f4e5b95551cc7cd63647c)
---
java/openjfx14/Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/java/openjfx14/Makefile b/java/openjfx14/Makefile
index 490e6d41126f..f45e6bc3408c 100644
--- a/java/openjfx14/Makefile
+++ b/java/openjfx14/Makefile
@@ -106,8 +106,8 @@ pre-patch:
post-patch:
@${MKDIR} ${WRKDIR}/bin
- @${PRINTF} '#!/bin/sh\nexec ${CCACHE_BIN} ${CC} ${CFLAGS} ${LDFLAGS} "$$@"\n' > ${WRKDIR}/bin/ccwrapper
- @${PRINTF} '#!/bin/sh\nexec ${CCACHE_BIN} ${CXX} ${CXXFLAGS} ${LDFLAGS} "$$@"\n' > ${WRKDIR}/bin/cxxwrapper
+ @${PRINTF} '#!/bin/sh\nexport CCACHE_DIR=${CCACHE_DIR}\nexec ${CCACHE_BIN} ${CC} ${CFLAGS} ${LDFLAGS} "$$@"\n' > ${WRKDIR}/bin/ccwrapper
+ @${PRINTF} '#!/bin/sh\nexport CCACHE_DIR=${CCACHE_DIR}\nexec ${CCACHE_BIN} ${CXX} ${CXXFLAGS} ${LDFLAGS} "$$@"\n' > ${WRKDIR}/bin/cxxwrapper
@${CHMOD} +x ${WRKDIR}/bin/ccwrapper ${WRKDIR}/bin/cxxwrapper
@${REINPLACE_CMD} -e 's|gcc|${WRKDIR}/bin/ccwrapper|g' \
-e 's|g\+\+|${WRKDIR}/bin/cxxwrapper|g' \
@@ -145,7 +145,7 @@ do-configure:
# the java doc are not installed on FreeBSD so exclude the javadoc task
# as it'll fail otherwise
do-build:
- @cd ${WRKSRC} && ${SETENV} ${_GRADLE_RUN} zips --exclude-task javadoc
+ @cd ${WRKSRC} && ${_GRADLE_RUN} zips --exclude-task javadoc
# it's not recommended to install openjfx inside openjdk directory
do-install: