1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00

scripts/bootstrap.sh: workaround abuild bug

Current abuild has a bug that when CC is defined, it's used to
guess build architecture. But during cross-compile setup it points
to cross compiler and causing breakage. Export CBUILD after initial
abuild functions.sh run to workaround this.
This commit is contained in:
Timo Teräs 2020-02-08 13:40:17 +02:00
parent 9ff904779e
commit 88b19d170e

View file

@ -14,6 +14,7 @@ CBUILDROOT="$(CTARGET=$TARGET_ARCH . /usr/share/abuild/functions.sh ; echo $CBUI
. /usr/share/abuild/functions.sh
[ -z "$CBUILD_ARCH" ] && die "abuild is too old (use 2.29.0 or later)"
[ -z "$CBUILDROOT" ] && die "CBUILDROOT not set for $TARGET_ARCH"
export CBUILD
# deduce aports directory
[ -z "$APORTS" ] && APORTS=$(realpath $(dirname $0)/../)