r8375 - in trunk/BOOK: . chapter01 chapter05 chapter06

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Sat Sep 15 17:21:26 PDT 2007


Author: jhuntwork
Date: 2007-09-15 18:21:26 -0600 (Sat, 15 Sep 2007)
New Revision: 8375

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter01/whatsnew.xml
   trunk/BOOK/chapter05/coreutils.xml
   trunk/BOOK/chapter05/glibc.xml
   trunk/BOOK/chapter05/gzip.xml
   trunk/BOOK/chapter06/coreutils.xml
   trunk/BOOK/chapter06/glibc.xml
   trunk/BOOK/chapter06/gzip.xml
   trunk/BOOK/packages.ent
Log:
Upgrade to Glibc-2.6.1. Fixes #2018. Thanks to several people mentioned in the changelog.

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2007-09-15 20:45:13 UTC (rev 8374)
+++ trunk/BOOK/chapter01/changelog.xml	2007-09-16 00:21:26 UTC (rev 8375)
@@ -40,6 +40,14 @@
        <para>2007-09-15</para>
       <itemizedlist>
         <listitem>
+          <para>[jhuntwork] - Upgrade to Glibc-2.6.1. Fixes
+          <ulink url="&lfs-ticket-root;2018">#2018</ulink>.
+	  Thanks to Matthew Burgess for preparing a discrete patch,
+	  Robert Connolly and Dan Nicholson for investigating how best
+	  to adjust CFLAGS, and Greg Schafer for showing the technical
+	  benefits of using CFLAGS with Glibc.</para>
+        </listitem>
+        <listitem>
           <para>[jhuntwork] - Upgrade to GCC-4.2.1. Fixes
           <ulink url="&lfs-ticket-root;2002">#2002</ulink>.
 	  Thanks to Matthew Burgess for preparing a discrete patch.</para>

Modified: trunk/BOOK/chapter01/whatsnew.xml
===================================================================
--- trunk/BOOK/chapter01/whatsnew.xml	2007-09-15 20:45:13 UTC (rev 8374)
+++ trunk/BOOK/chapter01/whatsnew.xml	2007-09-16 00:21:26 UTC (rev 8375)
@@ -83,9 +83,9 @@
     <!--<listitem>
       <para>Gettext &gettext-version;</para>
     </listitem>-->
-    <!--<listitem>
+    <listitem>
       <para>Glibc &glibc-version;</para>
-    </listitem>-->
+    </listitem>
     <!--<listitem>
       <para>Grep &grep-version;</para>
     </listitem>-->

Modified: trunk/BOOK/chapter05/coreutils.xml
===================================================================
--- trunk/BOOK/chapter05/coreutils.xml	2007-09-15 20:45:13 UTC (rev 8374)
+++ trunk/BOOK/chapter05/coreutils.xml	2007-09-16 00:21:26 UTC (rev 8375)
@@ -43,6 +43,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_&/' $file.orig > $file
+done</userinput></screen>
+
     <para>Prepare Coreutils for compilation:</para>
 
 <screen><userinput>./configure --prefix=/tools</userinput></screen>

Modified: trunk/BOOK/chapter05/glibc.xml
===================================================================
--- trunk/BOOK/chapter05/glibc.xml	2007-09-15 20:45:13 UTC (rev 8374)
+++ trunk/BOOK/chapter05/glibc.xml	2007-09-16 00:21:26 UTC (rev 8375)
@@ -49,6 +49,16 @@
 <screen><userinput>mkdir -v ../glibc-build
 cd ../glibc-build</userinput></screen>
 
+    <para>Because Glibc no longer supports i386, its developers say to use the
+    compiler flag <parameter>-march=i486</parameter> when building it for x86
+    machines. There are several ways to accomplish that, but testing shows that
+    the flag is best placed inside the build variable <quote>CFLAGS</quote>.
+    Instead of overriding completely what Glibc's internal build system uses
+    for CFLAGS, append the new flag to the existing contents of CFLAGS by
+    making use of the special file <filename>configparms</filename>:</para>
+
+<screen><userinput>echo "CFLAGS += -march=i486" > configparms</userinput></screen>
+
     <para>Next, prepare Glibc for compilation:</para>
 
 <screen><userinput>../glibc-&glibc-version;/configure --prefix=/tools \

Modified: trunk/BOOK/chapter05/gzip.xml
===================================================================
--- trunk/BOOK/chapter05/gzip.xml	2007-09-15 20:45:13 UTC (rev 8374)
+++ trunk/BOOK/chapter05/gzip.xml	2007-09-16 00:21:26 UTC (rev 8375)
@@ -43,6 +43,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 in gzip.c lib/utimens.{c,h} ; do \
+   cp -v $file{,.orig}
+   sed 's/futimens/gl_&/' $file.orig > $file
+done</userinput></screen>
+
     <para>Prepare Gzip for compilation:</para>
 
 <screen><userinput>./configure --prefix=/tools</userinput></screen>

Modified: trunk/BOOK/chapter06/coreutils.xml
===================================================================
--- trunk/BOOK/chapter06/coreutils.xml	2007-09-15 20:45:13 UTC (rev 8374)
+++ trunk/BOOK/chapter06/coreutils.xml	2007-09-16 00:21:26 UTC (rev 8375)
@@ -41,6 +41,12 @@
   <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>sed -i 's/futimens/gl_&/' src/{copy,touch}.c lib/utimens.{c,h}</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: trunk/BOOK/chapter06/glibc.xml
===================================================================
--- trunk/BOOK/chapter06/glibc.xml	2007-09-15 20:45:13 UTC (rev 8374)
+++ trunk/BOOK/chapter06/glibc.xml	2007-09-16 00:21:26 UTC (rev 8375)
@@ -102,6 +102,10 @@
 <screen><userinput>mkdir -v ../glibc-build
 cd ../glibc-build</userinput></screen>
 
+    <para>Again, add the needed compiler flag to CFLAGS:</para>
+
+<screen><userinput>echo "CFLAGS += -march=i486" > configparms</userinput></screen>
+
     <para>Prepare Glibc for compilation:</para>
 
 <screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \

Modified: trunk/BOOK/chapter06/gzip.xml
===================================================================
--- trunk/BOOK/chapter06/gzip.xml	2007-09-15 20:45:13 UTC (rev 8374)
+++ trunk/BOOK/chapter06/gzip.xml	2007-09-16 00:21:26 UTC (rev 8375)
@@ -41,6 +41,12 @@
   <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>sed -i 's/futimens/gl_&/' gzip.c lib/utimens.{c,h}</userinput></screen>
+
     <para>Prepare Gzip for compilation:</para>
 
 <screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>

Modified: trunk/BOOK/packages.ent
===================================================================
--- trunk/BOOK/packages.ent	2007-09-15 20:45:13 UTC (rev 8374)
+++ trunk/BOOK/packages.ent	2007-09-16 00:21:26 UTC (rev 8375)
@@ -190,19 +190,19 @@
 <!ENTITY gettext-ch6-du "65 MB">
 <!ENTITY gettext-ch6-sbu "1 SBU">
 
-<!ENTITY glibc-version "2.5.1">
-<!ENTITY glibc-size "15,060 KB">
+<!ENTITY glibc-version "2.6.1">
+<!ENTITY glibc-size "15,398 KB">
 <!ENTITY glibc-url "&gnu;glibc/glibc-&glibc-version;.tar.bz2">
-<!ENTITY glibc-md5 "10ea72e2c4d56c6aa13dabb7c4f9b195">
+<!ENTITY glibc-md5 "11cf6d3fc86dbe0890b8d00372eb6286">
 <!ENTITY glibc-home "&gnu-software;libc/">
 <!ENTITY glibc-ch5-du "342 MB">
 <!ENTITY glibc-ch5-sbu "7 SBU">
 <!ENTITY glibc-ch6-du "556 MB testsuite included">
 <!ENTITY glibc-ch6-sbu "19.5 SBU testsuite included">
 <!ENTITY glibc-libidn-version "&glibc-version;">
-<!ENTITY glibc-libidn-size "123 KB">
-<!ENTITY glibc-libidn-url "&gnu;glibc/glibc-libidn-&glibc-libidn-version;.tar.gz">
-<!ENTITY glibc-libidn-md5 "51b46f055908a5f8e409c4200d828093">
+<!ENTITY glibc-libidn-size "100 KB">
+<!ENTITY glibc-libidn-url "&gnu;glibc/glibc-libidn-&glibc-libidn-version;.tar.bz2">
+<!ENTITY glibc-libidn-md5 "503f1315afd808728ebaa75b3d87a7d9">
 <!ENTITY glibc-libidn-home " ">
 
 <!ENTITY grep-version "2.5.1a">




More information about the lfs-book mailing list