Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2018 03:32:19 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r462894 - head/Mk
Message-ID:  <201802250332.w1P3WJDZ001642@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802250332.w1P3WJDZ001642>