commit:     be5325508d65c252445fd1b9eb5504866db28759
Author:     Georgy Yakovlev <ya <AT> sysdump <DOT> net>
AuthorDate: Sun Mar  4 09:52:41 2018 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Mar  4 10:52:04 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be532550

profiles/*/musl: package.use.mask app-shells/bash[mem-scramble]

mem-scramble enables bash-malloc which relies on sbrk
which is implemented as a fail-only stub in musl.
Enabling it will break bash (and portage) horribly.
xmalloc: locale.c:81: cannot allocate 18 bytes (0 bytes allocated)

 profiles/default/linux/musl/package.use.mask | 5 +++++
 profiles/features/musl/package.use.mask      | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/profiles/default/linux/musl/package.use.mask 
b/profiles/default/linux/musl/package.use.mask
index 76e6603a602..1d3c7789f41 100644
--- a/profiles/default/linux/musl/package.use.mask
+++ b/profiles/default/linux/musl/package.use.mask
@@ -17,3 +17,8 @@ sys-fs/e2fsprogs nls
 
 # See bug #576928
 media-libs/mesa nptl
+
+# bash-malloc relies on sbrk which is implemented
+# as a fail-only stub in musl. breaks horribly if enabled.
+# bash: xmalloc: locale.c:81: cannot allocate 18 bytes (0 bytes allocated)
+app-shells/bash mem-scramble

diff --git a/profiles/features/musl/package.use.mask 
b/profiles/features/musl/package.use.mask
index 2c0a91e428e..05d01c6e1e8 100644
--- a/profiles/features/musl/package.use.mask
+++ b/profiles/features/musl/package.use.mask
@@ -17,3 +17,8 @@ sys-fs/e2fsprogs nls
 
 # See bug #576928
 media-libs/mesa nptl
+
+# bash-malloc relies on sbrk which is implemented
+# as a fail-only stub in musl. breaks horribly if enabled.
+# bash: xmalloc: locale.c:81: cannot allocate 18 bytes (0 bytes allocated)
+app-shells/bash mem-scramble

Reply via email to