svn commit: r462895 - branches/2018Q1/Mk
Bryan Drewery
bdrewery at FreeBSD.org
Sun Feb 25 03:32:42 UTC 2018
Author: bdrewery
Date: Sun Feb 25 03:32:41 2018
New Revision: 462895
URL: https://svnweb.freebsd.org/changeset/ports/462895
Log:
MFH: r462894
WITH_CCACHE_BUILD: Fix some ports not using proper CCACHE_DIR.
Some ports will truncate CCACHE_DIR from the env and due to HOME=${WRKDIR}
will incorrectly use ${WRKDIR}/.ccache. Symlink to the proper place.
Approved by: portmgr (implicit)
Modified:
branches/2018Q1/Mk/bsd.ccache.mk
Directory Properties:
branches/2018Q1/ (props changed)
Modified: branches/2018Q1/Mk/bsd.ccache.mk
==============================================================================
--- branches/2018Q1/Mk/bsd.ccache.mk Sun Feb 25 03:32:18 2018 (r462894)
+++ branches/2018Q1/Mk/bsd.ccache.mk Sun Feb 25 03:32:41 2018 (r462895)
@@ -51,6 +51,13 @@ MAKE_ENV+= CCACHE_DIR="${CCACHE_DIR}"
CONFIGURE_ENV+= CCACHE_DIR="${CCACHE_DIR}"
. endif
.endif
+
+# Some ports will truncate CCACHE_DIR from the env and due to HOME=${WRKDIR}
+# will incorrectly use ${WRKDIR}/.ccache. Symlink to the proper place.
+${WRKDIR}/.ccache: ${WRKDIR}
+ @${LN} -sf ${CCACHE_DIR} ${WRKDIR}/.ccache
+ccache-wrkdir-link: ${WRKDIR}/.ccache .PHONY
+post-extract: ccache-wrkdir-link
.endif
.endif
More information about the svn-ports-branches
mailing list