r1538 - in branches/Onward: downloads temporary_system

robert at linuxfromscratch.org robert at linuxfromscratch.org
Wed Feb 17 07:03:09 PST 2010


Author: robert
Date: 2010-02-17 08:03:09 -0700 (Wed, 17 Feb 2010)
New Revision: 1538

Modified:
   branches/Onward/downloads/packages.txt
   branches/Onward/downloads/patches.txt
   branches/Onward/temporary_system/bash.txt
Log:
Bump to bash-4.1

Modified: branches/Onward/downloads/packages.txt
===================================================================
--- branches/Onward/downloads/packages.txt	2010-02-17 03:42:28 UTC (rev 1537)
+++ branches/Onward/downloads/packages.txt	2010-02-17 15:03:09 UTC (rev 1538)
@@ -1,6 +1,6 @@
 # Bash:
-# http://ftp.gnu.org/gnu/bash/bash-4.0.tar.gz.sig
-http://ftp.gnu.org/gnu/bash/bash-4.0.tar.gz
+# http://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz.sig
+http://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz
 
 # Binutils:
 ftp://sources.redhat.com/pub/binutils/snapshots/binutils-2.19.51.tar.bz2

Modified: branches/Onward/downloads/patches.txt
===================================================================
--- branches/Onward/downloads/patches.txt	2010-02-17 03:42:28 UTC (rev 1537)
+++ branches/Onward/downloads/patches.txt	2010-02-17 15:03:09 UTC (rev 1538)
@@ -1,6 +1,10 @@
 # Bash $RANDOM patch:
 http://www.linuxfromscratch.org/~robert/new/patches/bash-4.0-urandom.diff
 
+# Bash upstream fixes:
+# wget -np -nd -m -A "bash41-*" -P bash-4.1-patches http://ftp.gnu.org/gnu/bash/bash-4.1-patches/
+http://ftp.gnu.org/gnu/bash/bash-4.1-patches/
+
 # Binutils PT_PaX patch:
 http://pax.grsecurity.net/binutils-2.19-pt-pax-flags-200811041810.patch
 

Modified: branches/Onward/temporary_system/bash.txt
===================================================================
--- branches/Onward/temporary_system/bash.txt	2010-02-17 03:42:28 UTC (rev 1537)
+++ branches/Onward/temporary_system/bash.txt	2010-02-17 15:03:09 UTC (rev 1538)
@@ -1,18 +1,25 @@
 # Temporary tools - Bash
 
-# This patch modifies Bash to use /dev/urandom for $RANDOM, instead of
+# Apply upstream patches:
+
+for patch in $(find ../bash-4.1-patches/ -name "bash41-???")
+do
+	patch -p0 -i $patch
+done &&
+
+# This next patch modifies Bash to use /dev/urandom for $RANDOM, instead of
 # getpid() and gettimeofday(). The tests are:
 # ( echo $RANDOM; ( echo $RANDOM ); ( echo $RANDOM ) )
 # and:
 # RANDOM=1 ; echo $RANDOM ; RANDOM=2 ; echo $RANDOM ; RANDOM=3 ; echo $RANDOM
 # The first test should produce three different numbers. The second test
 # should always display the same numbers when run repeatedly, to maintain korn
-# shell behavior.
+# shell behavior. Apply this patch with the following command:
 
 patch -p1 -i ../bash-4.0-urandom.diff &&
 
-# Bash uses the RTLD_LAZY option when loading libraries. We want to use
-# RTLD_NOW (it is defined from <dlfcn.h>:
+# Bash uses the RTLD_LAZY option when loading libraries. Modify Bash to use
+# RTLD_NOW (defined from <dlfcn.h>) instead:
 
 cp -v builtins/enable.def{,.orig} &&
 sed 's/filename, RTLD_LAZY/filename, RTLD_NOW/' \
@@ -22,6 +29,10 @@
 cd obj/ &&
 ../configure --prefix=/tools --without-bash-malloc \
 	--infodir=$(pwd)/DESTDIR --mandir=$(pwd)/DESTDIR &&
+
+# --without-bash-malloc makes Bash use the malloc(3) function from Glibc
+# instead of a built-in version.
+
 make &&
 make install &&
 ln -vs bash /tools/bin/sh




More information about the hlfs-book mailing list