Эх сурвалжийг харах

updated fileutils patch explanation

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2422 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 22 жил өмнө
parent
commit
31435cae54

+ 7 - 6
chapter05/fileutils-inst.xml

@@ -3,12 +3,13 @@
 <sect2>
 <sect2>
 <title>Installation of Fileutils</title>
 <title>Installation of Fileutils</title>
 
 
-<para>The programs from a statically linked Fileutils package may cause
-segmentation faults on certain systems, if your distribution has
-Glibc-2.2.3 installed. It seems to happen mostly on machines
-powered by an AMD CPU, but there is a case or two where an Intel system
-is affected as well. If your system falls in this category, apply the
-patch.</para>
+<para>There is a documented (see 
+<ulink url="http://mail.gnu.org/pipermail/bug-glibc/2001-May/003149.html"/>)
+bug with the atexit() function in glibc-2.2.3 when it is compiled with
+gcc-2.95.3. This bug only occurs on some systems (primarily AMD, but not
+exclusively). This bug causes segmentation faults in fileutils-4.1 when it
+is compiled statically. This patch causes on_exit() to be called instead of
+atexit().</para>
 
 
 <para>Note that in some cases using this patch will result in not being
 <para>Note that in some cases using this patch will result in not being
 able to compile this package at all, even when your system has an AMD CPU
 able to compile this package at all, even when your system has an AMD CPU

+ 7 - 8
chapter06/ed-inst.xml

@@ -10,10 +10,10 @@ days.</para></note>
 
 
 <para>Ed uses mktemp to create temporary files in <filename
 <para>Ed uses mktemp to create temporary files in <filename
 class="directory">/tmp</filename>, but this function has a security
 class="directory">/tmp</filename>, but this function has a security
-vulnerability (see section on Temporary Files in
-<ulink url="http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html"/>).
-This patch makes Ed use mkstemp instead, which is the recommended way to
-create temporary files.</para>
+vulnerability (see section on Temporary Files in <ulink
+url="http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html"/>). This
+patch makes Ed use mkstemp instead, which is the recommended way to create
+temporary files.</para>
 
 
 <para>Apply the patch:</para>
 <para>Apply the patch:</para>
 
 
@@ -32,11 +32,10 @@ create temporary files.</para>
 <para><screen><userinput>make install</userinput></screen></para>
 <para><screen><userinput>make install</userinput></screen></para>
 
 
 <para>We need to move the Ed binaries to the <filename
 <para>We need to move the Ed binaries to the <filename
-class="directory">/bin</filename> directory so they may be used in
-the event that the <filename class="directory">/usr</filename>
-partition is unavailable.</para>
+class="directory">/bin</filename> directory so they may be used in the event
+that the <filename class="directory">/usr</filename> partition is
+unavailable.</para>
 
 
 <para><screen><userinput>mv /usr/bin/{ed,red} /bin</userinput></screen></para>
 <para><screen><userinput>mv /usr/bin/{ed,red} /bin</userinput></screen></para>
 
 
 </sect2>
 </sect2>
-