Procházet zdrojové kódy

Fix Coreutils-6.9 and Gzip-1.3.12 to work with Glibc-2.6.1: Rename the futimens function.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8289 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Jeremy Huntwork před 18 roky
rodič
revize
4f56afa39d

+ 4 - 0
chapter01/changelog.xml

@@ -39,6 +39,10 @@
     <listitem>
       <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>

+ 9 - 0
chapter05/coreutils.xml

@@ -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>

+ 9 - 0
chapter05/gzip.xml

@@ -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>

+ 9 - 0
chapter06/coreutils.xml

@@ -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

+ 9 - 0
chapter06/gzip.xml

@@ -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>