diff options
-rw-r--r-- | chapter01/changelog.xml | 5 | ||||
-rw-r--r-- | chapter06/glibc.xml | 15 |
2 files changed, 18 insertions, 2 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index f9fd5e597..f669191a7 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -43,6 +43,11 @@ <para>[jhuntwork] - Remove ppc specific instructions from chapter 6 patch. Cross-LFS can handle non-x86 arch specifics at this point.</para> </listitem> + <listitem> + <para>[jhuntwork] - Fix chapter 6 Glibc's test-installation.pl to test + the correct Glibc. Fixes bug 1675. Thanks to Dan Nicholson for the report + and Greg Schafer for the fix.</para> + </listitem> </itemizedlist> </listitem> diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index c69710f50..be1ccec1d 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -55,7 +55,7 @@ not this add-on. Unpack the tarball from within the Glibc source directory:</para> -<screen><userinput>tar jxf ../glibc-libidn-&glibc-version;.tar.bz2</userinput></screen> +<screen><userinput>tar -xf ../glibc-libidn-&glibc-version;.tar.bz2</userinput></screen> <para>In the vi_VN.TCVN locale, <command>bash</command> enters an infinite loop at startup. It is unknown whether this is a <command>bash</command> bug or a @@ -64,6 +64,17 @@ problem:</para> <screen><userinput>sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED</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 test would +be carried out against the wrong Glibc. We can force the script to check the +Glibc we have just installed with the following:</para> + +<screen><userinput>sed -i \ +'s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|' \ + scripts/test-installation.pl</userinput></screen> + <para>The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory:</para> @@ -267,7 +278,7 @@ mode.</para></listitem> <sect2 id="conf-ld" role="configuration"> -<title>Configuring Dynamic Loader</title> +<title>Configuring the Dynamic Loader</title> <indexterm zone="conf-ld"><primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary></indexterm> <para>By default, the dynamic loader (<filename |