Date: Sun, 25 Feb 2018 03:32:41 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r462895 - branches/2018Q1/Mk Message-ID: <201802250332.w1P3WfRn002652@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802250332.w1P3WfRn002652>