From b464cbd52b2cd03bd75169f91092e68b213ea613 Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Mon, 9 Oct 2006 17:41:52 +0000 Subject: [PATCH] Stefan Fiedler: bash: don't build with --with-bash-malloc, which is known to cause segfaults according to LFS [2006092422542823755] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@7935 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/bash/bash.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/base/bash/bash.conf b/package/base/bash/bash.conf index a7f6dbf77..bcf9debaa 100644 --- a/package/base/bash/bash.conf +++ b/package/base/bash/bash.conf @@ -50,7 +50,12 @@ if [ $xpkg != $ROCKCFG_PKG_BASH_DEFAULT ]; then fi premake="cat /dev/null > lib/malloc/malloc.c" -confopt="$confopt --without-gnu-malloc" + +# From http://www.linuxfromscratch.org/lfs/view/stable/chapter05/bash.html: +# This option turns off the use of Bash's memory allocation (malloc) function +# which is known to cause segmentation faults. By turning this option off, +# Bash will use the malloc functions from Glibc which are more stable. +var_append confopt " " "--without-bash-malloc" if [ $xpkg = bash2 ]; then [ $stagelevel -eq 1 ] && confopt="$confopt --disable-readline"