aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/glibc.xml
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2012-08-05 14:25:02 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2012-08-05 14:25:02 +0000
commitf1c177f9587a73e995b274d60babc763a4ed2f61 (patch)
tree0b8e3139ea25ac4106cbb4d044c61a46e962fc1f /chapter06/glibc.xml
parent36ba266b6f3981db638891ec5fa369bc5ae258a2 (diff)
Upgrade to Glibc-2.16.0. Fixes #3131.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9922 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/glibc.xml')
-rw-r--r--chapter06/glibc.xml35
1 files changed, 21 insertions, 14 deletions
diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml
index 984c7dcea..72a73115b 100644
--- a/chapter06/glibc.xml
+++ b/chapter06/glibc.xml
@@ -72,7 +72,11 @@
<screen><userinput remap="pre">sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED</userinput></screen>
-->
- <para>When running <command>make install</command>, a script called
+ <para>Fix a bug that causes the build to fail:</para>
+
+<screen><userinput remap="pre">sed -i 's#&lt;rpc/types.h&gt;#"rpc/types.h"#' sunrpc/rpc_clntout.c</userinput></screen>
+
+<!-- <para>When running <command>make install</command>, a script called
<filename>test-installation.pl</filename> performs a small sanity test on
our newly installed Glibc. However, because our toolchain still points to
the <filename class="directory">/tools</filename> directory, the sanity
@@ -82,15 +86,14 @@
<screen><userinput remap="pre">DL=$(readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p')
sed -i &quot;s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|&quot; \
scripts/test-installation.pl
-unset DL</userinput></screen>
+unset DL</userinput></screen>-->
- <para>In addition, there is a bug in the
- <filename>test-installation.pl</filename> script in that it tries to link
- a test program to a library that isn't installed by
- <command>make install</command>. Issue the following <command>sed</command>
- command to fix it:</para>
+ <para>When running <command>make install</command>, a script called
+ <filename>test-installation.pl</filename> performs a small sanity test on
+ our newly installed Glibc. However, it contains a bug that causes it to
+ fail, so prevent it from running by issuing the following command:</para>
- <screen><userinput remap="pre">sed -i -e 's/"db1"/&amp; \&amp;\&amp; $name ne "nss_test1"/' scripts/test-installation.pl</userinput></screen>
+<screen><userinput remap="pre">sed -i '/test-installation.pl/d' Makefile</userinput></screen>
<para>The <command>ldd</command> shell script contains Bash-specific
syntax. Change its default program interpreter to <command>/bin/bash</command>
@@ -100,12 +103,6 @@ unset DL</userinput></screen>
<screen><userinput remap="pre">sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in</userinput></screen>
- <para>Fix a bug that causes several BLFS packages to segfault:</para>
-<screen><userinput remap="pre">patch -Np1 -i ../&glibc-fixes-patch;</userinput></screen>
-
- <para>Fix a bug that prevents Glibc from building with GCC-&gcc-version;:</para>
-<screen><userinput remap="pre">patch -Np1 -i ../&glibc-gcc_fix-patch;</userinput></screen>
-
<para>The Glibc documentation recommends building Glibc outside of the source
directory in a dedicated build directory:</para>
@@ -315,6 +312,16 @@ rpc: files
# End /etc/nsswitch.conf</literal>
EOF</userinput></screen>
+ <para>Install timezone data:</para>
+<screen><userinput>tar -xf ../tzdata&tzdata-version;.tar.gz
+
+for tz in etcetera southamerica northamerica europe africa antarctica \
+ asia australasia backward pacificnew solar87 solar88 solar89 systemv; do
+
+ zic -L leapseconds -d /usr/share/zoneinfo -y "sh yearistype.sh" ${tz}
+
+done</userinput></screen>
+
<para>One way to determine the local time zone, run the following
script:</para>