From a4dd50388a988f72b446431b58fe77e79505fc05 Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Thu, 30 Aug 2018 21:30:44 -0700 Subject: [PATCH] xbps-src: Always enable the gocache [ci_skip] --- common/environment/build-style/go.sh | 1 + common/xbps-src/shutils/pkgtarget.sh | 1 + xbps-src | 5 +---- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/common/environment/build-style/go.sh b/common/environment/build-style/go.sh index b13a99143e..040b4894ad 100644 --- a/common/environment/build-style/go.sh +++ b/common/environment/build-style/go.sh @@ -17,3 +17,4 @@ export CGO_CPPFLAGS="$CPPFLAGS" export CGO_CXXFLAGS="$CXXFLAGS" export CGO_LDFLAGS="$LDFLAGS" export CGO_ENABLED=1 +export GOCACHE="${XBPS_HOSTDIR}/gocache" diff --git a/common/xbps-src/shutils/pkgtarget.sh b/common/xbps-src/shutils/pkgtarget.sh index 559f2094c1..1c20a717d0 100644 --- a/common/xbps-src/shutils/pkgtarget.sh +++ b/common/xbps-src/shutils/pkgtarget.sh @@ -63,6 +63,7 @@ remove_pkg_autodeps() { remove_pkg_wrksrc() { if [ -d "$wrksrc" ]; then msg_normal "$pkgver: cleaning build directory...\n" + chmod -R +wX $wrksrc # Needed to delete Go Modules rm -rf $wrksrc fi } diff --git a/xbps-src b/xbps-src index e27e9361a7..c84c60c6b4 100755 --- a/xbps-src +++ b/xbps-src @@ -621,10 +621,6 @@ else export CCACHE_COMPILERCHECK=content CCACHE_COMPRESS=1 export PATH="$CCACHEPATH:$PATH" mkdir -p $CCACHE_DIR - - export GOCACHE="${XBPS_HOSTDIR}/gocache" - else - export GOCACHE=off fi if [ -n "$XBPS_DISTCC" ]; then if [ -n "$XBPS_CCACHE" ]; then @@ -688,6 +684,7 @@ case "$XBPS_TARGET" in remove_pkg_autodeps fi msg_normal "xbps-src: cleaning up masterdir...\n" + chmod -R +wX $XBPS_MASTERDIR/builddir # Needed to remove Go Modules rm -rf $XBPS_MASTERDIR/builddir $XBPS_MASTERDIR/destdir rm -f $XBPS_MASTERDIR/tmp/* >/dev/null 2>&1 else