r790 - trunk/BOOK/boot/common

darcym at linuxfromscratch.org darcym at linuxfromscratch.org
Thu Dec 1 14:55:04 PST 2005

Author: darcym
Date: 2005-12-01 15:55:03 -0700 (Thu, 01 Dec 2005)
New Revision: 790

Correct text around setting of PATH for final system build

Modified: trunk/BOOK/boot/common/settingenviron.xml
--- trunk/BOOK/boot/common/settingenviron.xml	2005-12-01 22:27:08 UTC (rev 789)
+++ trunk/BOOK/boot/common/settingenviron.xml	2005-12-01 22:55:03 UTC (rev 790)
@@ -10,26 +10,33 @@
   <title>Setting Up the Environment</title>
-    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="../../final-preps/settingenviron.xml"
-    xpointer="xpointer(//*[@os='a'])"/>
+  <para>The new instance of the shell is a <emphasis>non-login</emphasis>
+  shell, will read <filename>.bash_profile</filename> file. Create the
+  <filename>.bash_profile</filename> file now:</para>
-<screen os="b"><userinput>cat > ${LFS}/root/.bash_profile << "EOF"
+<screen><userinput>cat > ${LFS}/root/.bash_profile << "EOF"
 <literal>PS1='\u:\w\$ '
 export LC_ALL PATH PS1</literal>
-    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="../../final-preps/settingenviron.xml"
-    xpointer="xpointer(//*[@os='i'])"/>
+  <para>The <envar>LC_ALL</envar> variable controls the localization of
+  certain programs, making their messages follow the conventions of a
+  specified country. If the host system uses a version of Glibc older
+  than 2.2.4, having <envar>LC_ALL</envar> set to something other than
+  <quote>POSIX</quote> or <quote>C</quote> (during this chapter) may cause
+  issues if you exit the chroot environment and wish to return later.
+  Setting <envar>LC_ALL</envar> to <quote>POSIX</quote> or <quote>C</quote>
+  (the two are equivalent) ensures that everything will work as expected
+  in the chroot environment.</para>
-  <para os="j">By putting <filename class="directory">/tools/bin</filename> ahead
-  of the standard <envar>PATH</envar>, all the programs installed in
-  <xref linkend="chapter-temporary-tools"/> are picked up by the shell
-  immediately after their installation. This, combined with turning off
-  hashing, limits the risk that old programs from the host are being used
-  when they should not be used any longer.</para>
+  <para>By putting <filename class="directory">/tools/bin</filename> at
+  the end of the standard <envar>PATH</envar>, all the programs installed in
+  <xref linkend="chapter-temporary-tools"/> are only picked up by the shell
+  if they have not yet been built on the target system. This configuration
+  forces use of the final system binaries as they are built over the 
+  temporary-tools, minimising the chance final system programs being built
+  against the temporary-tools.</para>

More information about the cross-lfs mailing list