aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/fileutils-exp.xml
blob: 99bc82a1e79dadab965a8d4a33742aa64c1342cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<sect2>
<title>Command explanations</title>

<para><userinput>cp lib/Makefile.in lib/Makefile.in.backup :</userinput> We 
run this command in order to keep a backup of the file we are about to
change.</para>

<para><userinput>cp lib/Makefile.in lib/Makefile.in.backup &amp;&amp;
sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \
&nbsp;&nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
&nbsp;&nbsp;&nbsp;&nbsp;lib/Makefile.in.backup &gt; lib/Makefile.in:</userinput>
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>

</sect2>