From d5e5c01050c93dbf4d5d3e4d53398a581f6000f2 Mon Sep 17 00:00:00 2001 From: Sertonix Date: Wed, 6 Nov 2024 17:26:00 +0100 Subject: [PATCH] scripts/bootstrap.sh: respect ABUILD_SHAREDIR --- scripts/bootstrap.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 5d1e9fa8156..ef84f0c82e6 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -40,9 +40,10 @@ EOF fi # get abuild configurables -[ -e /usr/share/abuild/functions.sh ] || (echo "abuild not found" ; exit 1) -CBUILDROOT="$(CTARGET=$TARGET_ARCH . /usr/share/abuild/functions.sh ; echo $CBUILDROOT)" -. /usr/share/abuild/functions.sh +sharedir=${ABUILD_SHAREDIR:-/usr/share/abuild} +[ -e "$sharedir"/functions.sh ] || (echo "abuild not found" ; exit 1) +CBUILDROOT="$(CTARGET=$TARGET_ARCH . "$sharedir"/functions.sh ; echo $CBUILDROOT)" +. "$sharedir"/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