CBUILD= abuild rootbld requires its own separate apk cache
the installed binaries in the root are still the 'host' binaries if an apk cache exists for them.
maybe this is an issue of apk itself?
$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}
this should probably not install non- --arch binaries just because they are already in the cache-dir
Edited by Ghost User