Author: robert
Date: 2011-01-28 13:13:27 -0700 (Fri, 28 Jan 2011)
New Revision: 1608

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter03/patches.xml
   trunk/BOOK/chapter05/tar.xml
   trunk/BOOK/chapter06/tar.xml
   trunk/BOOK/packages.ent
   trunk/BOOK/patches.ent
Log:
Upgrade to tar-1.25, and also install its HTML. This fixes several bugs with 
Tar.

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml  2011-01-28 18:27:36 UTC (rev 1607)
+++ trunk/BOOK/chapter01/changelog.xml  2011-01-28 20:13:27 UTC (rev 1608)
@@ -41,6 +41,10 @@
       <para>2011-01-28</para>
       <itemizedlist>
         <listitem>
+          <para>[robert] - Upgrade to tar-1.25, and also install its HTML.
+          This fixes several bugs with Tar.</para>
+        </listitem>
+        <listitem>
           <para>[robert] - Up to perl-5.12.2.</para>
         </listitem>
         <listitem>

Modified: trunk/BOOK/chapter03/patches.xml
===================================================================
--- trunk/BOOK/chapter03/patches.xml    2011-01-28 18:27:36 UTC (rev 1607)
+++ trunk/BOOK/chapter03/patches.xml    2011-01-28 20:13:27 UTC (rev 1608)
@@ -171,14 +171,6 @@
       </listitem>
     </varlistentry>
 
-    <!-- <varlistentry>
-      <term>Perl Libc Patch - <token>&perl-libc-patch-size;</token>:</term>
-      <listitem>
-        <para>Download: <ulink url="&patches-root;&perl-libc-patch;"/></para>
-        <para>MD5 sum: <literal>&perl-libc-patch-md5;</literal></para>
-      </listitem>
-    </varlistentry> -->
-
     <varlistentry>
       <term>Perl Libc Patch - <token>&perl-libc-patch-size;</token>:</term>
       <listitem>
@@ -187,7 +179,6 @@
       </listitem>
     </varlistentry>
 
-
     <varlistentry>
       <term>Procps Watch Patch - 
<token>&procps-watch-patch-size;</token>:</term>
       <listitem>
@@ -196,14 +187,6 @@
       </listitem>
     </varlistentry>
 
-    <varlistentry>
-      <term>Tar Overflow Patch - 
<token>&tar-overflow-patch-size;</token>:</term>
-      <listitem>
-        <para>Download: <ulink 
url="&patches-root;&tar-overflow-patch;"/></para>
-        <para>MD5 sum: <literal>&tar-overflow-patch-md5;</literal></para>
-      </listitem>
-    </varlistentry>
-
     <!-- <varlistentry>
       <term>Shadow Useradd Patch - 
<token>&shadow-useradd-patch-size;</token>:</term>
       <listitem>

Modified: trunk/BOOK/chapter05/tar.xml
===================================================================
--- trunk/BOOK/chapter05/tar.xml        2011-01-28 18:27:36 UTC (rev 1607)
+++ trunk/BOOK/chapter05/tar.xml        2011-01-28 20:13:27 UTC (rev 1608)
@@ -43,15 +43,6 @@
   <sect2 role="installation">
     <title>Installation of Tar</title>
 
-    <para>First fix a bug that was inserted into the latest code 
release:</para>
-
-<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/chapter06/tar.xml
===================================================================
--- trunk/BOOK/chapter06/tar.xml        2011-01-28 18:27:36 UTC (rev 1607)
+++ trunk/BOOK/chapter06/tar.xml        2011-01-28 20:13:27 UTC (rev 1608)
@@ -40,32 +40,36 @@
   <sect2 role="installation">
     <title>Installation of Tar</title>
 
-    <para>Again, fix a bug that was inserted into the latest code 
release:</para>
+    <para>Prepare Tar for compilation:</para>
 
-<screen><userinput remap="pre">sed -i /SIGPIPE/d src/tar.c</userinput></screen>
+<screen><userinput remap="configure">FORCE_UNSAFE_CONFIGURE=1 ./configure 
--prefix=/usr --bindir=/bin --libexecdir=/usr/sbin</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>
+    <variablelist> 
+      <title>The meaning of the configure options:</title> 
 
-<screen><userinput remap="pre">patch -Np1 -i 
../&tar-overflow-patch;</userinput></screen>
+      <varlistentry> 
+        <term><envar>FORCE_UNSAFE_CONFIGURE=1</envar></term> 
+          <listitem> 
+            <para>This forces the test for <function>mknod</function> to be 
run 
+            as root.  It is generally considered dangerous to run this test as 
+            the root user, but as it is being run on an only partially built 
+            system, overriding it is OK.</para> 
+          </listitem> 
+        </varlistentry> 
+      </variablelist> 
 
-    <para>Prepare Tar for compilation:</para>
-
-<screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin 
--libexecdir=/usr/sbin</userinput></screen>
-
     <para>Compile the package:</para>
 
 <screen><userinput remap="make">make</userinput></screen>
 
     <para>To test the results (about 1 SBU), issue:</para>
 
-<screen><userinput remap="test">sed -i '35 i\
-AT_UNPRIVILEGED_PREREQ' tests/remfiles01.at
-make check</userinput></screen>
+<screen><userinput remap="test">make check</userinput></screen> 
 
     <para>Install the package:</para>
 
-<screen><userinput remap="install">make install</userinput></screen>
+<screen><userinput remap="install">make install 
+make -C doc install-html 
docdir=/usr/share/doc/tar-&tar-version;</userinput></screen>
 
   </sect2>
 

Modified: trunk/BOOK/packages.ent
===================================================================
--- trunk/BOOK/packages.ent     2011-01-28 18:27:36 UTC (rev 1607)
+++ trunk/BOOK/packages.ent     2011-01-28 20:13:27 UTC (rev 1608)
@@ -485,10 +485,10 @@
 <!ENTITY sysvinit-ch6-du "1 MB">
 <!ENTITY sysvinit-ch6-sbu "less than 0.1 SBU">
 
-<!ENTITY tar-version "1.23">
-<!ENTITY tar-size "2,138 KB">
+<!ENTITY tar-version "1.25">
+<!ENTITY tar-size "2,273 KB">
 <!ENTITY tar-url "&gnu;tar/tar-&tar-version;.tar.bz2">
-<!ENTITY tar-md5 "41e2ca4b924ec7860e51b43ad06cdb7e">
+<!ENTITY tar-md5 "6e497f861c77bbba2f7da4e10270995b">
 <!ENTITY tar-home "&gnu-software;tar/">
 <!ENTITY tar-ch5-du "20.9 MB">
 <!ENTITY tar-ch5-sbu "0.3 SBU">

Modified: trunk/BOOK/patches.ent
===================================================================
--- trunk/BOOK/patches.ent      2011-01-28 18:27:36 UTC (rev 1607)
+++ trunk/BOOK/patches.ent      2011-01-28 20:13:27 UTC (rev 1608)
@@ -104,7 +104,3 @@
 <!-- <!ENTITY shadow-useradd-patch 
"shadow-&shadow-version;-useradd_fix-2.patch">
 <!ENTITY shadow-useradd-patch-md5 "5f35528f38d5432d5fa2dd79d04bdfdd">
 <!ENTITY shadow-useradd-patch-size "6.1 KB"> -->
-
-<!ENTITY tar-overflow-patch "tar-&tar-version;-overflow_fix-1.patch">
-<!ENTITY tar-overflow-patch-md5 "1912ec36d2a0e2b96678651cf583ce6f">
-<!ENTITY tar-overflow-patch-size "1.7 KB"> 

-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-book
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to