Author: jhuntwork
Date: 2007-08-07 22:52:10 -0600 (Tue, 07 Aug 2007)
New Revision: 8289

Modified:
   branches/jh/BOOK/chapter01/changelog.xml
   branches/jh/BOOK/chapter05/coreutils.xml
   branches/jh/BOOK/chapter05/gzip.xml
   branches/jh/BOOK/chapter06/coreutils.xml
   branches/jh/BOOK/chapter06/gzip.xml
Log:
Fix Coreutils-6.9 and Gzip-1.3.12 to work with Glibc-2.6.1: Rename the futimens 
function.


Modified: branches/jh/BOOK/chapter01/changelog.xml
===================================================================
--- branches/jh/BOOK/chapter01/changelog.xml    2007-08-08 04:07:12 UTC (rev 
8288)
+++ branches/jh/BOOK/chapter01/changelog.xml    2007-08-08 04:52:10 UTC (rev 
8289)
@@ -40,6 +40,10 @@
       <para>2007-08-07</para>
       <itemizedlist>
        <listitem>
+         <para>[jhuntwork] - Fix Coreutils-6.9 and Gzip-1.3.12 to work with 
Glibc-2.6.1.
+         Rename the futimens function.</para>
+       </listitem>
+       <listitem>
          <para>[jhuntwork] - Use a loop, find and sed instead of the gcc specs 
patch</para>
        </listitem>
        <listitem>

Modified: branches/jh/BOOK/chapter05/coreutils.xml
===================================================================
--- branches/jh/BOOK/chapter05/coreutils.xml    2007-08-08 04:07:12 UTC (rev 
8288)
+++ branches/jh/BOOK/chapter05/coreutils.xml    2007-08-08 04:52:10 UTC (rev 
8289)
@@ -37,6 +37,15 @@
   <sect2 role="installation">
     <title>Installation of Coreutils</title>
 
+    <para>The version of the function <quote>futimens</quote> used
+    by Coreutils is incompatible with the version that current
+    Glibc provides, so we'll rename the function:</para>
+
+<screen><userinput>for file in src/{copy,touch}.c lib/utimens.{c,h} ; do \
+   cp -v $file{,.orig}
+   sed 's/futimens/gl_&amp;/' $file.orig &gt; $file
+done</userinput></screen>
+
     <para>Prepare Coreutils for compilation:</para>
 
 <screen><userinput>./configure --prefix=/tools</userinput></screen>

Modified: branches/jh/BOOK/chapter05/gzip.xml
===================================================================
--- branches/jh/BOOK/chapter05/gzip.xml 2007-08-08 04:07:12 UTC (rev 8288)
+++ branches/jh/BOOK/chapter05/gzip.xml 2007-08-08 04:52:10 UTC (rev 8289)
@@ -37,6 +37,15 @@
   <sect2 role="installation">
     <title>Installation of Gzip</title>
 
+    <para>The version of the function <quote>futimens</quote> used
+    by Gzip is incompatible with the version that current
+    Glibc provides, so we'll rename the function:</para>
+
+<screen><userinput>for file gzip.c lib/utimens.{c,h} ; do \
+   cp -v $file{,.orig}
+   sed 's/futimens/gl_&amp;' $file.orig &gt; $file
+done</userinput></screen>
+
     <para>Prepare Gzip for compilation:</para>
 
 <screen><userinput>./configure --prefix=/tools</userinput></screen>

Modified: branches/jh/BOOK/chapter06/coreutils.xml
===================================================================
--- branches/jh/BOOK/chapter06/coreutils.xml    2007-08-08 04:07:12 UTC (rev 
8288)
+++ branches/jh/BOOK/chapter06/coreutils.xml    2007-08-08 04:52:10 UTC (rev 
8289)
@@ -35,6 +35,15 @@
   <sect2 role="installation">
     <title>Installation of Coreutils</title>
 
+    <para>The version of the function <quote>futimens</quote> used
+    by Coreutils is incompatible with the version that current
+    Glibc provides, so we'll rename the function:</para>
+
+<screen><userinput>for file in src/{copy,touch}.c lib/utimens.{c,h} ; do \
+   cp -v $file{,.orig}
+   sed 's/futimens/gl_&amp;/' $file.orig &gt; $file
+done</userinput></screen>
+
     <para>A known issue with the <command>uname</command> program from
     this package is that the <parameter>-p</parameter> switch always
     returns <computeroutput>unknown</computeroutput>. The following patch

Modified: branches/jh/BOOK/chapter06/gzip.xml
===================================================================
--- branches/jh/BOOK/chapter06/gzip.xml 2007-08-08 04:07:12 UTC (rev 8288)
+++ branches/jh/BOOK/chapter06/gzip.xml 2007-08-08 04:52:10 UTC (rev 8289)
@@ -35,6 +35,15 @@
   <sect2 role="installation">
     <title>Installation of Gzip</title>
 
+    <para>The version of the function <quote>futimens</quote> used
+    by Gzip is incompatible with the version that current
+    Glibc provides, so we'll rename the function:</para>
+
+<screen><userinput>for file gzip.c lib/utimens.{c,h} ; do \
+   cp -v $file{,.orig}
+   sed 's/futimens/gl_&amp;/' $file.orig &gt; $file
+done</userinput></screen>
+
     <para>Prepare Gzip for compilation:</para>
 
 <screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>

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

Reply via email to