summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <ollieparanoid@bitmessage.ch>2019-07-29 20:42:35 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2019-08-05 11:57:21 +0000
commitc54d39d8aa5f4070778ab57f94ae0bcfb1c7a824 (patch)
treec46a6653c28605f38e6bd8a4e83b70f88ec61252
parentcb3a67edcaee0533df296cb82afab72aa93db71c (diff)
downloadabuild-c54d39d8aa5f4070778ab57f94ae0bcfb1c7a824.tar.bz2
abuild-c54d39d8aa5f4070778ab57f94ae0bcfb1c7a824.tar.xz
abuild: rename makedepends_host virtual packageHEADmaster
With a recent change in apk [1], virtual packages of the same name will upgrade each other. Adjust abuild to this by not using the same virtual package name for two types of dependencies. This fixes the way crosscompilers are built in postmarketOS [2], which is essentially the same as running this on Alpine's gcc aport: $ cd aports/main/gcc $ C_TARGET_ARCH=armhf CTARGET=armv6-alpine-linux-musleabihf \ BOOTSTRAP=nobuildbase CBUILDROOT=/ abuild -r ... >>> gcc-armhf: Installing for host: (1/24) Upgrading .makedepends-gcc-armhf (20190714.104731 -> 20190714.104741) (2/24) Purging binutils-armhf (2.31.1-r2) ... [1] apk-tools.git 37fbafcd928c466c82c892a7868d686d710e5d07 ("add: make virtual packages upgradeable (ref #9957)") [2] https://gitlab.com/postmarketOS/pmaports/blob/master/cross/gcc-armhf/APKBUILD Fixes: https://gitlab.alpinelinux.org/alpine/apk-tools/issues/10649
-rw-r--r--abuild.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/abuild.in b/abuild.in
index 10d0594..70adb91 100644
--- a/abuild.in
+++ b/abuild.in
@@ -2424,7 +2424,7 @@ deps() {
if [ -n "$CBUILDROOT" ]; then
[ -z "$_quiet" ] && msg "Installing for host:$hostdeps"
$SUDO_APK add $_quiet --root "$CBUILDROOT" --arch "$CTARGET_ARCH" --repository "$REPODEST/$repo" $apk_opt_wait \
- --no-scripts --virtual .makedepends-$pkgname $hostdeps || return 1
+ --no-scripts --virtual .hostdepends-$pkgname $hostdeps || return 1
fi
}
@@ -2433,7 +2433,7 @@ undeps() {
$SUDO_APK del $_quiet $apk_opt_wait .makedepends-$pkgname || :
if [ -n "$CBUILDROOT" ]; then
$SUDO_APK del $_quiet --root "$CBUILDROOT" --arch "$CTARGET_ARCH" $apk_opt_wait \
- --no-scripts .makedepends-$pkgname || :
+ --no-scripts .hostdepends-$pkgname || :
fi
}