commit: 0f7acc18b45869d9a523a3fdb653199450c89959
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue May 31 11:09:34 2022 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue May 31 11:09:34 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=0f7acc18
scripts/bootstrap-prefix: get a working bootstrapped bash on musl systems
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
scripts/bootstrap-prefix.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 6bb4e5e439..3b5d911680 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -944,6 +944,11 @@ bootstrap_gnu() {
[[ ${PN} == "bash" && ${CHOST} != *-cygwin* ]] \
&& myconf="${myconf} --disable-readline"
+ # on e.g. musl systems bash will crash with a malloc error if we use
+ # bash' internal malloc, so disable it during it this stage
+ [[ ${PN} == "bash" ]] && \
+ myconf="${myconf} --without-bash-malloc"
+
# ensure we don't read system-wide shell initialisation, it may
# contain cruft, bug #650284
[[ ${PN} == "bash" ]] && \