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