From 1d73a27e941cee0893a37ec289e368c459fd16e6 Mon Sep 17 00:00:00 2001 From: vxtls <187420201+vxtls@users.noreply.github.com> Date: Tue, 3 Mar 2026 19:46:15 -0500 Subject: [PATCH] feat(steps-guix): upgrade bootstrap bash seed from 4.4.23 to 5.3 --- steps-guix/bash-5.3-1/pass1.sh | 27 +++++++++++++++++++ steps-guix/bash-5.3-1/sources | 1 + steps-guix/manifest | 2 +- .../static-binaries-0-i686-linux/pass1.sh | 2 +- 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 steps-guix/bash-5.3-1/pass1.sh create mode 100644 steps-guix/bash-5.3-1/sources diff --git a/steps-guix/bash-5.3-1/pass1.sh b/steps-guix/bash-5.3-1/pass1.sh new file mode 100644 index 00000000..d4ade2f2 --- /dev/null +++ b/steps-guix/bash-5.3-1/pass1.sh @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: GPL-3.0-or-later + +SEED_PREFIX="/bootstrap-seeds/bash-5.3-1" + +src_prepare() { + default +} + +src_configure() { + ./configure \ + --prefix="${SEED_PREFIX}" \ + --without-bash-malloc \ + --disable-nls \ + --enable-static-link \ + --build="${TARGET}" \ + bash_cv_dev_stdin=absent \ + bash_cv_dev_fd=whacky +} + +src_compile() { + make -j1 +} + +src_install() { + install -D -m 0755 bash "${DESTDIR}${SEED_PREFIX}/bin/bash" + ln -sf bash "${DESTDIR}${SEED_PREFIX}/bin/sh" +} diff --git a/steps-guix/bash-5.3-1/sources b/steps-guix/bash-5.3-1/sources new file mode 100644 index 00000000..ac07ef5d --- /dev/null +++ b/steps-guix/bash-5.3-1/sources @@ -0,0 +1 @@ +f https://ftp.gnu.org/gnu/bash/bash-5.3.tar.gz 0d5cd86965f869a26cf64f4b71be7b96f90a3ba8b3d74e27e8e9d9d5550f31ba diff --git a/steps-guix/manifest b/steps-guix/manifest index cb23a129..47884f53 100644 --- a/steps-guix/manifest +++ b/steps-guix/manifest @@ -52,7 +52,7 @@ build: xz-5.2.4 build: gzip-1.9 build: bzip2-1.0.6 build: patch-2.7.6 -build: bash-4.4.23-1 +build: bash-5.3-1 build: static-binaries-0-i686-linux # Build guile-static-stripped-2.2.4-i686-linux.tar.xz build: guile-2.2.4 diff --git a/steps-guix/static-binaries-0-i686-linux/pass1.sh b/steps-guix/static-binaries-0-i686-linux/pass1.sh index e70492af..04239828 100644 --- a/steps-guix/static-binaries-0-i686-linux/pass1.sh +++ b/steps-guix/static-binaries-0-i686-linux/pass1.sh @@ -23,7 +23,7 @@ src_compile() { cp -a /bootstrap-seeds/gzip-1.9/bin/gzip "${stage}/bin/" cp -a /bootstrap-seeds/bzip2-1.0.6/bin/bzip2 "${stage}/bin/" cp -a /bootstrap-seeds/patch-2.7.6/bin/patch "${stage}/bin/" - cp -a /bootstrap-seeds/bash-4.4.23-1/bin/bash "${stage}/bin/" + cp -a /bootstrap-seeds/bash-5.3-1/bin/bash "${stage}/bin/" ln -sf bash "${stage}/bin/sh" ln -sf gawk "${stage}/bin/awk"