abuild: use apk --no-scripts for target sysroot

we probably will not be able to run the scripts as it can
be incompatible system type
This commit is contained in:
Timo Teräs 2016-07-22 11:02:23 +00:00
parent 42738f43d4
commit a1364565d2

View File

@ -82,7 +82,7 @@ cleanup() {
$SUDO_APK del --quiet $apk_opt_wait $uninstall_after
if cross_compiling; then
$SUDO_APK del --root "$CBUILDROOT" \
--quiet $apk_opt_wait \
--no-scripts --quiet $apk_opt_wait \
$uninstall_after
fi
fi
@ -1846,7 +1846,7 @@ builddeps() {
$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 \
--virtual .makedepends-$pkgname $hostdeps || return 1
--no-scripts --virtual .makedepends-$pkgname $hostdeps || return 1
fi
return 0
fi
@ -2050,7 +2050,7 @@ undeps (){
$SUDO_APK del $apk_opt_wait .makedepends-$pkgname
if cross_compiling; then
$SUDO_APK del --root "$CBUILDROOT" $apk_opt_wait \
.makedepends-$pkgname
--no-scripts .makedepends-$pkgname
fi
}