lfs/chapter05/fileutils-exp.xml
Gerard Beekmans 3acb38f277 Removed all -f flags from cp commands
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1092 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2001-08-28 20:50:57 +00:00

25 lines
1.1 KiB
XML

<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><screen><userinput>cp 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>
<para><userinput>--libexecdir=$LFS/bin:</userinput> This configure option will
set the program executable directory to $LFS/bin. This is normally set
to /usr/libexec, but nothing is placed in it. Changing it just prevents
that directory from being created.</para>
</sect2>