aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/fileutils-exp.xml11
-rw-r--r--chapter05/fileutils-inst.xml8
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.</para>
-<para><screen><userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
-<userinput>&nbsp;&nbsp;&nbsp;lib/Makefile.in &gt; tmp &amp;&amp;</userinput>
-<userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
-<userinput>&nbsp;&nbsp;&nbsp;tmp &gt; lib/Makefile.in : </userinput></screen> This
-is used to fix a problem with building fileutils statically on glibc 2.2.3
+<para><screen><userinput>cp -f lib/Makefile.in lib/Makefile.in.backup &amp;&amp;</userinput>
+<userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;lib/Makefile.in &gt; lib/Makefile.in~ &amp;&amp;</userinput>
+<userinput>mv lib/Makefile.in~ lib/Makefile.in:</userinput></screen>
+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.</para>
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.
<screen><userinput>cp -f lib/Makefile.in lib/Makefile.in.backup &amp;&amp;</userinput>
-<userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
-<userinput>&nbsp;&nbsp;&nbsp;lib/Makefile.in &gt; tmp &amp;&amp;</userinput>
-<userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
-<userinput>&nbsp;&nbsp;&nbsp;tmp &gt; lib/Makefile.in</userinput></screen></para>
+<userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;lib/Makefile.in &gt; lib/Makefile.in~ &amp;&amp;</userinput>
+<userinput>mv lib/Makefile.in~ lib/Makefile.in</userinput></screen></para>
<para>Install fileutils by running the following commands:
<screen><userinput>./configure --disable-nls \</userinput>