mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-31 07:38:42 +00:00
abuild: fix cross compilation undeps()
"apk del" now returns error if the package name does not exist. Thus when cross compiling, always install the virtual .makedepends-$pkgname name for chroot also since undeps() will try to uninstall it always.
This commit is contained in:
parent
4bfb5c8fc1
commit
fd02387cc1
@ -1812,7 +1812,7 @@ builddeps() {
|
||||
--simulate --quiet $builddeps || return 1
|
||||
$SUDO_APK add --repository "$abuildrepo" $apk_opt_wait \
|
||||
--virtual .makedepends-$pkgname $builddeps || return 1
|
||||
if [ -n "$hostdeps" ]; then
|
||||
if cross_compiling; then
|
||||
$SUDO_APK add --root "$CBUILDROOT" --repository "$abuildrepo" $apk_opt_wait \
|
||||
--simulate --quiet $hostdeps || return 1
|
||||
$SUDO_APK add --root "$CBUILDROOT" --repository "$abuildrepo" $apk_opt_wait \
|
||||
|
Loading…
Reference in New Issue
Block a user