From de3414e268b51c32310298e82413ecce873a8d53 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Tue, 28 Aug 2001 01:31:10 +0000 Subject: [PATCH] Transformed the two sed commands into one sed that does both git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1080 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/fileutils-exp.xml | 11 ++++++----- chapter05/fileutils-inst.xml | 8 ++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/chapter05/fileutils-exp.xml b/chapter05/fileutils-exp.xml index 4203a5579..8f77ba49c 100644 --- a/chapter05/fileutils-exp.xml +++ b/chapter05/fileutils-exp.xml @@ -5,11 +5,12 @@ run this command in order to keep a backup of the file we are about to change. -sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ -   lib/Makefile.in > tmp && -sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ -   tmp > lib/Makefile.in : This -is used to fix a problem with building fileutils statically on glibc 2.2.3 +cp -f lib/Makefile.in lib/Makefile.in.backup && +sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ +   -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ +   lib/Makefile.in > lib/Makefile.in~ && +mv lib/Makefile.in~ lib/Makefile.in: +This is used to fix a problem with building fileutils statically on glibc 2.2.3 systems. If this isn't done, then there is the possibility of all of the fileutils programs causing segmentation faults once chroot is entered in chapter 6. diff --git a/chapter05/fileutils-inst.xml b/chapter05/fileutils-inst.xml index b9bd7aa3a..2dca914a6 100644 --- a/chapter05/fileutils-inst.xml +++ b/chapter05/fileutils-inst.xml @@ -8,10 +8,10 @@ and Durons are the most reported used CPU's). If you are in this category, run the following to sed commands before you compile this package. cp -f lib/Makefile.in lib/Makefile.in.backup && -sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ -   lib/Makefile.in > tmp && -sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ -   tmp > lib/Makefile.in +sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ +   -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ +   lib/Makefile.in > lib/Makefile.in~ && +mv lib/Makefile.in~ lib/Makefile.in Install fileutils by running the following commands: ./configure --disable-nls \