Author: jhuntwork
Date: 2006-01-25 19:35:40 -0700 (Wed, 25 Jan 2006)
New Revision: 7305

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter06/glibc.xml
Log:
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.


Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml  2006-01-26 02:05:59 UTC (rev 7304)
+++ trunk/BOOK/chapter01/changelog.xml  2006-01-26 02:35:40 UTC (rev 7305)
@@ -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>
 

Modified: trunk/BOOK/chapter06/glibc.xml
===================================================================
--- trunk/BOOK/chapter06/glibc.xml      2006-01-26 02:05:59 UTC (rev 7304)
+++ trunk/BOOK/chapter06/glibc.xml      2006-01-26 02:35:40 UTC (rev 7305)
@@ -55,7 +55,7 @@
 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 @@
 
 <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 @@
 
 
 <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

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to