From d9f03b387a02541f9d60384b6447a141765d342f Mon Sep 17 00:00:00 2001 From: donoban Date: Fri, 24 Dec 2021 13:53:30 +0100 Subject: [PATCH] rootbld: add '--cache-dir' when preparing the $BUILD_ROOT Otherwise apk will rely on defaults 'etc/apk/cache' and 'var/apk/cache' based on new chroot directory and will delete everything when rootbld finishes. --- abuild.in | 1 + 1 file changed, 1 insertion(+) diff --git a/abuild.in b/abuild.in index f2e6db7..1500485 100755 --- a/abuild.in +++ b/abuild.in @@ -2441,6 +2441,7 @@ rootbld() { $SUDO_APK add --initdb --update \ --arch $CBUILD_ARCH \ --root "$BUILD_ROOT" \ + --cache-dir /etc/apk/cache \ abuild alpine-base build-base git $hostdeps $builddeps \ ${USE_CCACHE:+ccache}