From 93194fcd4be5fafc1c6ac02781e2f6cc32de9093 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 11 Dec 2024 20:47:11 -0600 Subject: scripts/newstrap.sh: Misc fixes * Typo BOOSTRAP -> BOOTSTRAP. * Put /usr/bin ahead of CS_PATH because POSIX make(1) in /usr/5bin makes binutils very sad. * Use --usermode when invoking APK which does nothing in our actual environment (it's an unknown flag) but makes user-mode bootstrap work in the preimage environment. --- scripts/newstrap.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/newstrap.sh b/scripts/newstrap.sh index 885c9425b..7798e68a7 100755 --- a/scripts/newstrap.sh +++ b/scripts/newstrap.sh @@ -10,7 +10,7 @@ readonly DEF_ARCH=$(uname -m) readonly DEF_TD=${HOME}/builds readonly DISTRO_NAME="Adélie Linux" readonly PROGNAME=$(basename $0) -export PATH=`$(command -v getconf || echo false) CS_PATH || echo /usr/local/bin:/usr/bin:/bin`:/usr/local/sbin:/usr/sbin:/sbin +export PATH=/usr/bin:`$(command -v getconf || echo false) CS_PATH || echo /usr/local/bin:/usr/bin:/bin`:/usr/local/sbin:/usr/sbin:/sbin ### @@ -136,7 +136,7 @@ info "Building stage1 bootstrap tools ($(uname -m) -> $ARCH)..." [ -z ${BE_VERBOSE+v} ] || info 'Setting up APK...' mkdir -p "$TARGET_DIR"/etc/apk/keys cp -a "$KEY_DIR"/* "$TARGET_DIR"/etc/apk/keys/ -${APK} add ${BE_VERBOSE---quiet} --initdb --arch $ARCH --root "$TARGET_DIR" +${APK} add ${BE_VERBOSE---quiet} --usermode --initdb --arch $ARCH --root "$TARGET_DIR" [ -z ${BE_VERBOSE+v} ] || info 'Setting up configuration...' @@ -191,7 +191,7 @@ abuild_target() { CTARGET=$ARCH BOOTSTRAP=nobase abuild_host binutils CHOST=$ARCH BOOTSTRAP=nocc abuild_host musl -EXTRADEPENDS_HOST=musl-dev CTARGET=$ARCH BOOSTRAP=nolibc abuild_host gcc +EXTRADEPENDS_HOST=musl-dev CTARGET=$ARCH BOOTSTRAP=nolibc abuild_host gcc EXTRADEPENDS_BUILD=gcc-pass2-$ARCH CHOST=$ARCH BOOTSTRAP=nolibc abuild_host musl EXTRADEPENDS_TARGET="musl musl-dev" CTARGET=$ARCH BOOSTRAP=nobase abuild_host gcc -- cgit v1.2.3-70-g09d2