From 8d5735b35e715acd1ff0b6cd13c96e2aee9dfafc Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Tue, 14 Aug 2001 17:29:07 +0000 Subject: [PATCH] sed exps fixed git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@968 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/fileutils-exp.xml | 2 +- chapter05/fileutils-inst.xml | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/chapter05/fileutils-exp.xml b/chapter05/fileutils-exp.xml index 669ff58ba..edb99ae09 100644 --- a/chapter05/fileutils-exp.xml +++ b/chapter05/fileutils-exp.xml @@ -5,7 +5,7 @@ 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 AMD systems. If +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 2d1bafd5d..01239bd7e 100644 --- a/chapter05/fileutils-inst.xml +++ b/chapter05/fileutils-inst.xml @@ -1,16 +1,18 @@ Installation of Fileutils -Before we install fileutils statically, we apply two seds in -order to prevent them giving segmentation faults (in certain cases) once we -enter chroot in Chapter 6. Install Fileutils by running the following -commands: +Before we install fileutils statically, if you are using +glibc-2.2.3 you need to apply two seds in order to prevent them giving +segmentation faults once we enter chroot in Chapter 6. The sed commands for +those using glibc-2.2.3 are: -sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ +sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ lib/Makefile.in > tmp && sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ - tmp > lib/Makefile.in && -./configure --disable-nls \ + tmp > lib/Makefile.in + +Install fileutils by running the following commands: +./configure --disable-nls \    --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin && make LDFLAGS=-static && make install &&