r1598 - in trunk/BOOK: . chapter01 chapter05

robert at linuxfromscratch.org robert at linuxfromscratch.org
Sat Nov 20 22:08:21 PST 2010


Author: robert
Date: 2010-11-20 23:08:16 -0700 (Sat, 20 Nov 2010)
New Revision: 1598

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter05/tar.xml
   trunk/BOOK/general.ent
Log:
Add the Tar overflow patch to chapter 5, or else Tar will fail to build with -D_FORTIFY_SOURCE=2.

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2010-11-21 03:57:20 UTC (rev 1597)
+++ trunk/BOOK/chapter01/changelog.xml	2010-11-21 06:08:16 UTC (rev 1598)
@@ -38,6 +38,17 @@
 -->
 
     <listitem>
+      <para>2010-11-21</para>
+      <itemizedlist>
+        <listitem>
+          <para>[robert] - Add the Tar overflow patch to chapter 5, or else Tar
+          will fail to build with -D_FORTIFY_SOURCE=2.
+          </para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>2010-11-20</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/chapter05/tar.xml
===================================================================
--- trunk/BOOK/chapter05/tar.xml	2010-11-21 03:57:20 UTC (rev 1597)
+++ trunk/BOOK/chapter05/tar.xml	2010-11-21 06:08:16 UTC (rev 1598)
@@ -47,6 +47,11 @@
 
 <screen><userinput remap="pre">sed -i /SIGPIPE/d src/tar.c</userinput></screen>
 
+    <para>Also, fix a bug that causes a buffer overflow when creating a new
+    tar file.  This fix is needed when building with gcc-4.5 and later.</para>
+
+<screen><userinput remap="pre">patch -Np1 -i ../&tar-overflow-patch;</userinput></screen>
+
     <para>Prepare Tar for compilation:</para>
 
 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen>

Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent	2010-11-21 03:57:20 UTC (rev 1597)
+++ trunk/BOOK/general.ent	2010-11-21 06:08:16 UTC (rev 1598)
@@ -1,5 +1,5 @@
-<!ENTITY version "SVN-20101120">
-<!ENTITY releasedate "November 20, 2010">
+<!ENTITY version "SVN-20101121">
+<!ENTITY releasedate "November 21, 2010">
 <!ENTITY copyrightdate "1999-2010"><!-- jhalfs needs a literal dash, not – -->
 <!ENTITY milestone "1.0">
 <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->




More information about the hlfs-book mailing list