[pacman-dev] [PATCH 3/3] makepkg: Set CCACHE_BASEDIR to make paths in $srcdir relative

Jan Alexander Steffens (heftig) jan.steffens at gmail.com
Tue Sep 15 20:17:04 UTC 2015


---
 scripts/makepkg.sh.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 076d315..7c3cc4b 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -868,6 +868,7 @@ run_build() {
 	if check_buildoption "distcc" "y"; then
 		if (( ccache )); then
 			export CCACHE_PREFIX="${CCACHE_PREFIX:+$CCACHE_PREFIX }distcc"
+			export CCACHE_BASEDIR="$srcdir"
 		elif [[ -d /usr/lib/distcc/bin ]]; then
 			export PATH="/usr/lib/distcc/bin:$PATH"
 		fi
-- 
2.5.2


More information about the pacman-dev mailing list