Upgrade to Glibc-2.6.1. Fixes #2018. Thanks to several people mentioned in the changelog.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8375 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Jeremy Huntwork 2007-09-16 00:21:26 +00:00
parent b0a4c9a47d
commit 2a7ac34a07
9 changed files with 60 additions and 8 deletions

View File

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

View File

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

View File

@ -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_&amp;/' $file.orig &gt; $file
done</userinput></screen>
<para>Prepare Coreutils for compilation:</para>
<screen><userinput>./configure --prefix=/tools</userinput></screen>

View File

@ -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" &gt; configparms</userinput></screen>
<para>Next, prepare Glibc for compilation:</para>
<screen><userinput>../glibc-&glibc-version;/configure --prefix=/tools \

View File

@ -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_&amp;/' $file.orig &gt; $file
done</userinput></screen>
<para>Prepare Gzip for compilation:</para>
<screen><userinput>./configure --prefix=/tools</userinput></screen>

View File

@ -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_&amp;/' 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

View File

@ -102,6 +102,10 @@ mv glibc-libidn-&glibc-version; libidn</userinput></screen>
<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" &gt; configparms</userinput></screen>
<para>Prepare Glibc for compilation:</para>
<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \

View File

@ -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_&amp;/' gzip.c lib/utimens.{c,h}</userinput></screen>
<para>Prepare Gzip for compilation:</para>
<screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>

View File

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