svn commit: r462894 - head/Mk
Bryan Drewery
bdrewery at FreeBSD.org
Sun Feb 25 03:32:19 UTC 2018
Author: bdrewery
Date: Sun Feb 25 03:32:18 2018
New Revision: 462894
URL: https://svnweb.freebsd.org/changeset/ports/462894
Log:
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:
head/Mk/bsd.ccache.mk
Modified: head/Mk/bsd.ccache.mk
==============================================================================
--- head/Mk/bsd.ccache.mk Sun Feb 25 03:23:21 2018 (r462893)
+++ head/Mk/bsd.ccache.mk Sun Feb 25 03:32:18 2018 (r462894)
@@ -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-head
mailing list