r1667 - in branches/clfs-2.0/BOOK: . bootable/arm cross-tools/common final-preps final-system/common the-end

jciccone at linuxfromscratch.org jciccone at linuxfromscratch.org
Sat May 27 18:13:39 PDT 2006


Author: jciccone
Date: 2006-05-27 19:13:38 -0600 (Sat, 27 May 2006)
New Revision: 1667

Modified:
   branches/clfs-2.0/BOOK/bootable/arm/kernel.xml
   branches/clfs-2.0/BOOK/cross-tools/common/file.xml
   branches/clfs-2.0/BOOK/cross-tools/common/glibc.xml
   branches/clfs-2.0/BOOK/final-preps/creatingfiles.xml
   branches/clfs-2.0/BOOK/final-system/common/bash.xml
   branches/clfs-2.0/BOOK/final-system/common/bzip2.xml
   branches/clfs-2.0/BOOK/final-system/common/gzip.xml
   branches/clfs-2.0/BOOK/final-system/common/inetutils.xml
   branches/clfs-2.0/BOOK/final-system/common/iproute2.xml
   branches/clfs-2.0/BOOK/final-system/common/less.xml
   branches/clfs-2.0/BOOK/final-system/common/man.xml
   branches/clfs-2.0/BOOK/final-system/common/mktemp.xml
   branches/clfs-2.0/BOOK/final-system/common/perl.xml
   branches/clfs-2.0/BOOK/final-system/common/psmisc.xml
   branches/clfs-2.0/BOOK/final-system/common/shadow.xml
   branches/clfs-2.0/BOOK/final-system/common/stripping.xml
   branches/clfs-2.0/BOOK/final-system/common/sysklogd.xml
   branches/clfs-2.0/BOOK/final-system/common/sysvinit.xml
   branches/clfs-2.0/BOOK/final-system/common/util-linux.xml
   branches/clfs-2.0/BOOK/final-system/common/vim.xml
   branches/clfs-2.0/BOOK/final-system/common/zlib.xml
   branches/clfs-2.0/BOOK/general.ent
   branches/clfs-2.0/BOOK/the-end/theend.xml
Log:
Various text and command fixes

Modified: branches/clfs-2.0/BOOK/bootable/arm/kernel.xml
===================================================================
--- branches/clfs-2.0/BOOK/bootable/arm/kernel.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/bootable/arm/kernel.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -53,7 +53,7 @@
     packages outside of LFS at <ulink
     url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>:</para>
 
-<screen os="i"><userinput>make menuconfig</userinput></screen>
+<screen os="i"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}- menuconfig</userinput></screen>
 
     <para os="j">Alternatively, <command>make oldconfig</command> may be more
     appropriate in some situations. See the <filename>README</filename>
@@ -68,7 +68,7 @@
 
     <para os="m">Compile the kernel image and modules:</para>
 
-<screen os="n"><userinput>make</userinput></screen>
+<screen os="n"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}-</userinput></screen>
 
     <para os="o">If using kernel modules, an
     <filename>/etc/modprobe.conf</filename> file may be needed.
@@ -96,49 +96,31 @@
     <para os="s">Install the modules, if the kernel configuration uses
     them:</para>
 
-<screen os="t"><userinput>make modules_install</userinput></screen>
+<screen os="t"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}- \
+    INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen>
 
     <para os="u">After kernel compilation is complete, additional steps are
     required to complete the installation. Some files need to be copied to
-    the <filename class="directory">/boot</filename> directory.</para>
+    the <filename class="directory">${LFS}/boot</filename> directory.</para>
 
     <para os="v">Issue the following command to install the kernel:</para>
 
-<screen><userinput>cp arch/i386/boot/bzImage /boot/lfskernel-&linux-version;</userinput></screen>
+<screen><userinput>cp arch/i386/boot/bzImage ${LFS}/boot/lfskernel-&linux-version;</userinput></screen>
 
     <para os="w"><filename>System.map</filename> is a symbol file for the kernel.
     It maps the function entry points of every function in the kernel API,
     as well as the addresses of the kernel data structures for the running
     kernel. Issue the following command to install the map file:</para>
 
-<screen os="w1"><userinput>cp System.map /boot/System.map-&linux-version;</userinput></screen>
+<screen os="w1"><userinput>cp System.map ${LFS}/boot/System.map-&linux-version;</userinput></screen>
 
     <para os="x">The kernel configuration file <filename>.config</filename>
     produced by the <command>make menuconfig</command> step above contains
     all the configuration selections for the kernel that was just compiled.
     It is a good idea to keep this file for future reference:</para>
 
-<screen os="x1"><userinput>cp .config /boot/config-&linux-version;</userinput></screen>
+<screen os="x1"><userinput>cp .config ${LFS}/boot/config-&linux-version;</userinput></screen>
 
-    <para os="y">It is important to note that the files in the kernel source
-    directory are not owned by <systemitem class="username">root</systemitem>.
-    Whenever a package is unpacked as user <systemitem
-    class="username">root</systemitem> (like we did
-    inside chroot), the files have the user and group IDs of whatever
-    they were on the packager's computer. This is usually not a problem
-    for any other package to be installed because the source tree is
-    removed after the installation. However, the Linux source tree is
-    often retained for a long time.  Because of this, there is a chance
-    that whatever user ID the packager used will be assigned to somebody
-    on the machine. That person would then have write access to the kernel
-    source.</para>
-
-    <para os="y1">If the kernel source tree is going to retained, run
-    <command>chown -R 0:0</command> on the <filename
-    class="directory">linux-&linux-version;</filename> directory to
-    ensure all files are owned by user <systemitem
-    class="username">root</systemitem>.</para>
-
     <warning os="z">
       <para>Some kernel documentation recommends creating a symlink from
       <filename class="symlink">/usr/src/linux</filename> pointing to the

Modified: branches/clfs-2.0/BOOK/cross-tools/common/file.xml
===================================================================
--- branches/clfs-2.0/BOOK/cross-tools/common/file.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/cross-tools/common/file.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -13,8 +13,8 @@
   <sect2 role="installation">
     <title>Installation of File</title>
 
-    <note>You only need to install <package>file</package> if your host has
-    a version other then file-&file-version; installed.</note>
+    <note><para>You only need to install <package>file</package> if your host has
+    a version other then file-&file-version; installed.</para></note>
 
     <para>Prepare File for compilation:</para>
 
@@ -30,4 +30,12 @@
 
   </sect2>
 
+  <sect2 role="content">
+    <title/>
+
+    <para>Details on this package are located in <xref
+    linkend="contents-file" role="."/></para>
+
+  </sect2>
+
 </sect1>

Modified: branches/clfs-2.0/BOOK/cross-tools/common/glibc.xml
===================================================================
--- branches/clfs-2.0/BOOK/cross-tools/common/glibc.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/cross-tools/common/glibc.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -369,7 +369,7 @@
         <listitem>
           <para>Can be used to create a stack trace when a program
           terminates with a segmentation fault</para>
-          <indexterm zone="ch-system-glibc catchsegv">
+          <indexterm zone="ch-cross-tools-glibc catchsegv">
             <primary sortas="b-catchsegv">catchsegv</primary>
           </indexterm>
         </listitem>
@@ -379,7 +379,7 @@
         <term><command>gencat</command></term>
         <listitem>
           <para>Generates message catalogues</para>
-          <indexterm zone="ch-system-glibc gencat">
+          <indexterm zone="ch-cross-tools-glibc gencat">
             <primary sortas="b-gencat">gencat</primary>
           </indexterm>
         </listitem>
@@ -390,7 +390,7 @@
         <listitem>
           <para>Displays the system configuration values for file system specific
           variables</para>
-          <indexterm zone="ch-system-glibc getconf">
+          <indexterm zone="ch-cross-tools-glibc getconf">
             <primary sortas="b-getconf">getconf</primary>
           </indexterm>
         </listitem>
@@ -400,7 +400,7 @@
         <term><command>getent</command></term>
         <listitem>
           <para>Gets entries from an administrative database</para>
-          <indexterm zone="ch-system-glibc getent">
+          <indexterm zone="ch-cross-tools-glibc getent">
             <primary sortas="b-getent">getent</primary>
           </indexterm>
         </listitem>
@@ -410,7 +410,7 @@
         <term><command>iconv</command></term>
         <listitem>
           <para>Performs character set conversion</para>
-          <indexterm zone="ch-system-glibc iconv">
+          <indexterm zone="ch-cross-tools-glibc iconv">
             <primary sortas="b-iconv">iconv</primary>
           </indexterm>
         </listitem>
@@ -421,7 +421,7 @@
         <listitem>
           <para>Creates fastloading <command>iconv</command> module configuration
           files</para>
-          <indexterm zone="ch-system-glibc iconvconfig">
+          <indexterm zone="ch-cross-tools-glibc iconvconfig">
             <primary sortas="b-iconvconfig">iconvconfig</primary>
           </indexterm>
         </listitem>
@@ -431,7 +431,7 @@
         <term><command>ldconfig</command></term>
         <listitem>
           <para>Configures the dynamic linker runtime bindings</para>
-          <indexterm zone="ch-system-glibc ldconfig">
+          <indexterm zone="ch-cross-tools-glibc ldconfig">
             <primary sortas="b-ldconfig">ldconfig</primary>
           </indexterm>
         </listitem>
@@ -442,7 +442,7 @@
         <listitem>
           <para>Reports which shared libraries are required
           by each given program or shared library</para>
-          <indexterm zone="ch-system-glibc ldd">
+          <indexterm zone="ch-cross-tools-glibc ldd">
             <primary sortas="b-ldd">ldd</primary>
           </indexterm>
         </listitem>
@@ -452,7 +452,7 @@
         <term><command>lddlibc4</command></term>
         <listitem>
           <para>Assists <command>ldd</command> with object files</para>
-          <indexterm zone="ch-system-glibc lddlibc4">
+          <indexterm zone="ch-cross-tools-glibc lddlibc4">
             <primary sortas="b-lddlibc4">lddlibc4</primary>
           </indexterm>
         </listitem>
@@ -463,7 +463,7 @@
         <listitem>
           <para>Tells the compiler to enable or disable the use of POSIX locales
           for built-in operations</para>
-          <indexterm zone="ch-system-glibc locale">
+          <indexterm zone="ch-cross-tools-glibc locale">
             <primary sortas="b-locale">locale</primary>
           </indexterm>
         </listitem>
@@ -473,7 +473,7 @@
         <term><command>localedef</command></term>
         <listitem>
           <para>Compiles locale specifications</para>
-          <indexterm zone="ch-system-glibc localedef">
+          <indexterm zone="ch-cross-tools-glibc localedef">
             <primary sortas="b-localedef">localedef</primary>
           </indexterm>
         </listitem>
@@ -484,7 +484,7 @@
         <listitem>
           <para>Reads and interprets a memory trace file and
           displays a summary in human-readable format</para>
-          <indexterm zone="ch-system-glibc mtrace">
+          <indexterm zone="ch-cross-tools-glibc mtrace">
             <primary sortas="b-mtrace">mtrace</primary>
           </indexterm>
         </listitem>
@@ -495,7 +495,7 @@
         <listitem>
           <para>A daemon that provides a cache for the most common name
           service requests</para>
-          <indexterm zone="ch-system-glibc nscd">
+          <indexterm zone="ch-cross-tools-glibc nscd">
             <primary sortas="b-nscd">nscd</primary>
           </indexterm>
         </listitem>
@@ -506,7 +506,7 @@
         <listitem>
           <para>Checks whether or not secure mode is necessary for NIS+
           lookup</para>
-          <indexterm zone="ch-system-glibc nscd_nischeck">
+          <indexterm zone="ch-cross-tools-glibc nscd_nischeck">
             <primary sortas="b-nscd_nischeck">nscd_nischeck</primary>
           </indexterm>
         </listitem>
@@ -516,7 +516,7 @@
         <term><command>pcprofiledump</command></term>
         <listitem>
           <para>Dumps information generated by PC profiling</para>
-          <indexterm zone="ch-system-glibc pcprofiledump">
+          <indexterm zone="ch-cross-tools-glibc pcprofiledump">
             <primary sortas="b-pcprofiledump">pcprofiledump</primary>
           </indexterm>
         </listitem>
@@ -527,7 +527,7 @@
         <listitem>
           <para>A helper program for <command>grantpt</command> to set the owner,
           group and access permissions of a slave pseudo terminal</para>
-          <indexterm zone="ch-system-glibc pt_chown">
+          <indexterm zone="ch-cross-tools-glibc pt_chown">
             <primary sortas="b-pt_chown">pt_chown</primary>
           </indexterm>
         </listitem>
@@ -538,7 +538,7 @@
         <listitem>
           <para>Generates C code to implement the Remote Procecure Call (RPC)
           protocol</para>
-          <indexterm zone="ch-system-glibc rpcgen">
+          <indexterm zone="ch-cross-tools-glibc rpcgen">
             <primary sortas="b-rpcgen">rpcgen</primary>
           </indexterm>
         </listitem>
@@ -548,7 +548,7 @@
         <term><command>rpcinfo</command></term>
         <listitem>
           <para>Makes an RPC call to an RPC server</para>
-          <indexterm zone="ch-system-glibc rpcinfo">
+          <indexterm zone="ch-cross-tools-glibc rpcinfo">
             <primary sortas="b-rpcinfo">rpcinfo</primary>
           </indexterm>
         </listitem>
@@ -558,7 +558,7 @@
         <term><command>sln</command></term>
         <listitem>
           <para>A statically linked <command>ln</command> program</para>
-          <indexterm zone="ch-system-glibc sln">
+          <indexterm zone="ch-cross-tools-glibc sln">
             <primary sortas="b-sln">sln</primary>
           </indexterm>
         </listitem>
@@ -568,7 +568,7 @@
         <term><command>sprof</command></term>
         <listitem>
           <para>Reads and displays shared object profiling data</para>
-          <indexterm zone="ch-system-glibc sprof">
+          <indexterm zone="ch-cross-tools-glibc sprof">
             <primary sortas="b-sprof">sprof</primary>
           </indexterm>
         </listitem>
@@ -579,7 +579,7 @@
         <listitem>
           <para>Asks the user about the location of the
           system and reports the corresponding time zone description</para>
-          <indexterm zone="ch-system-glibc tzselect">
+          <indexterm zone="ch-cross-tools-glibc tzselect">
             <primary sortas="b-tzselect">tzselect</primary>
           </indexterm>
         </listitem>
@@ -590,7 +590,7 @@
         <listitem>
           <para>Traces the execution of a program by
           printing the currently executed function</para>
-          <indexterm zone="ch-system-glibc xtrace">
+          <indexterm zone="ch-cross-tools-glibc xtrace">
             <primary sortas="b-xtrace">xtrace</primary>
           </indexterm>
         </listitem>
@@ -600,7 +600,7 @@
         <term><command>zdump</command></term>
         <listitem>
           <para>The time zone dumper</para>
-          <indexterm zone="ch-system-glibc zdump">
+          <indexterm zone="ch-cross-tools-glibc zdump">
             <primary sortas="b-zdump">zdump</primary>
           </indexterm>
         </listitem>
@@ -610,7 +610,7 @@
         <term><command>zic</command></term>
         <listitem>
           <para>The time zone compiler</para>
-          <indexterm zone="ch-system-glibc zic">
+          <indexterm zone="ch-cross-tools-glibc zic">
             <primary sortas="b-zic">zic</primary>
           </indexterm>
         </listitem>
@@ -620,7 +620,7 @@
         <term><filename class="libraryfile">ld.so</filename></term>
         <listitem>
           <para>The helper program for shared library executables</para>
-          <indexterm zone="ch-system-glibc ld.so">
+          <indexterm zone="ch-cross-tools-glibc ld.so">
             <primary sortas="c-ld.so">ld.so</primary>
           </indexterm>
         </listitem>
@@ -630,7 +630,7 @@
         <term><filename class="libraryfile">libBrokenLocale</filename></term>
         <listitem>
           <para>Used by programs, such as Mozilla, to solve broken locales</para>
-          <indexterm zone="ch-system-glibc libBrokenLocale">
+          <indexterm zone="ch-cross-tools-glibc libBrokenLocale">
             <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
           </indexterm>
         </listitem>
@@ -640,7 +640,7 @@
         <term><filename class="libraryfile">libSegFault</filename></term>
         <listitem>
           <para>The segmentation fault signal handler</para>
-          <indexterm zone="ch-system-glibc libSegFault">
+          <indexterm zone="ch-cross-tools-glibc libSegFault">
             <primary sortas="c-libSegFault">libSegFault</primary>
           </indexterm>
         </listitem>
@@ -650,7 +650,7 @@
         <term><filename class="libraryfile">libanl</filename></term>
         <listitem>
           <para>An asynchronous name lookup library</para>
-          <indexterm zone="ch-system-glibc libanl">
+          <indexterm zone="ch-cross-tools-glibc libanl">
             <primary sortas="c-libanl">libanl</primary>
           </indexterm>
         </listitem>
@@ -662,7 +662,7 @@
           <para>Provides the portability needed
           in order to run certain Berkey Software Distribution (BSD) programs
           under Linux</para>
-          <indexterm zone="ch-system-glibc libbsd-compat">
+          <indexterm zone="ch-cross-tools-glibc libbsd-compat">
             <primary sortas="c-libbsd-compat">libbsd-compat</primary>
           </indexterm>
         </listitem>
@@ -672,7 +672,7 @@
         <term><filename class="libraryfile">libc</filename></term>
         <listitem>
           <para>The main C library</para>
-          <indexterm zone="ch-system-glibc libc">
+          <indexterm zone="ch-cross-tools-glibc libc">
             <primary sortas="c-libc">libc</primary>
           </indexterm>
         </listitem>
@@ -682,7 +682,7 @@
         <term><filename class="libraryfile">libcrypt</filename></term>
         <listitem>
           <para>The cryptography library</para>
-          <indexterm zone="ch-system-glibc libcrypt">
+          <indexterm zone="ch-cross-tools-glibc libcrypt">
             <primary sortas="c-libcrypt">libcrypt</primary>
           </indexterm>
         </listitem>
@@ -692,7 +692,7 @@
         <term><filename class="libraryfile">libdl</filename></term>
         <listitem>
           <para>The dynamic linking interface library</para>
-          <indexterm zone="ch-system-glibc libdl">
+          <indexterm zone="ch-cross-tools-glibc libdl">
             <primary sortas="c-libdl">libdl</primary>
           </indexterm>
         </listitem>
@@ -702,7 +702,7 @@
         <term><filename class="libraryfile">libg</filename></term>
         <listitem>
           <para>A runtime library for <command>g++</command></para>
-          <indexterm zone="ch-system-glibc libg">
+          <indexterm zone="ch-cross-tools-glibc libg">
             <primary sortas="c-libg">libg</primary>
           </indexterm>
         </listitem>
@@ -713,7 +713,7 @@
         <listitem>
           <para>The Institute of Electrical and Electronic Engineers (IEEE)
           floating point library</para>
-          <indexterm zone="ch-system-glibc libieee">
+          <indexterm zone="ch-cross-tools-glibc libieee">
             <primary sortas="c-libieee">libieee</primary>
           </indexterm>
         </listitem>
@@ -723,7 +723,7 @@
         <term><filename class="libraryfile">libm</filename></term>
         <listitem>
           <para>The mathematical library</para>
-          <indexterm zone="ch-system-glibc libm">
+          <indexterm zone="ch-cross-tools-glibc libm">
             <primary sortas="c-libm">libm</primary>
           </indexterm>
         </listitem>
@@ -733,7 +733,7 @@
         <term><filename class="libraryfile">libmcheck</filename></term>
         <listitem>
           <para>Contains code run at boot</para>
-          <indexterm zone="ch-system-glibc libmcheck">
+          <indexterm zone="ch-cross-tools-glibc libmcheck">
             <primary sortas="c-libmcheck">libmcheck</primary>
           </indexterm>
         </listitem>
@@ -744,7 +744,7 @@
         <listitem>
           <para>Used by <command>memusage</command> to help collect
           information about the memory usage of a program</para>
-          <indexterm zone="ch-system-glibc libmemusage">
+          <indexterm zone="ch-cross-tools-glibc libmemusage">
             <primary sortas="c-libmemusage">libmemusage</primary>
           </indexterm>
         </listitem>
@@ -754,7 +754,7 @@
         <term><filename class="libraryfile">libnsl</filename></term>
         <listitem>
           <para>The network services library</para>
-          <indexterm zone="ch-system-glibc libnsl">
+          <indexterm zone="ch-cross-tools-glibc libnsl">
             <primary sortas="c-libnsl">libnsl</primary>
           </indexterm>
         </listitem>
@@ -766,7 +766,7 @@
           <para>The Name Service Switch libraries, containing functions for
           resolving host names, user names, group names, aliases, services,
           protocols, etc.</para>
-          <indexterm zone="ch-system-glibc libnss">
+          <indexterm zone="ch-cross-tools-glibc libnss">
             <primary sortas="c-libnss">libnss</primary>
           </indexterm>
         </listitem>
@@ -777,7 +777,7 @@
         <listitem>
           <para>Contains profiling functions used to track the amount of CPU
           time spent in specific source code lines</para>
-          <indexterm zone="ch-system-glibc libpcprofile">
+          <indexterm zone="ch-cross-tools-glibc libpcprofile">
             <primary sortas="c-libpcprofile">libpcprofile</primary>
           </indexterm>
         </listitem>
@@ -787,7 +787,7 @@
         <term><filename class="libraryfile">libpthread</filename></term>
         <listitem>
           <para>The POSIX threads library</para>
-          <indexterm zone="ch-system-glibc libpthread">
+          <indexterm zone="ch-cross-tools-glibc libpthread">
             <primary sortas="c-libpthread">libpthread</primary>
           </indexterm>
         </listitem>
@@ -798,7 +798,7 @@
         <listitem>
           <para>Contains functions for creating, sending, and interpreting
           packets to the Internet domain name servers</para>
-          <indexterm zone="ch-system-glibc libresolv">
+          <indexterm zone="ch-cross-tools-glibc libresolv">
             <primary sortas="c-libresolv">libresolv</primary>
           </indexterm>
         </listitem>
@@ -808,7 +808,7 @@
         <term><filename class="libraryfile">librpcsvc</filename></term>
         <listitem>
           <para>Contains functions providing miscellaneous RPC services</para>
-          <indexterm zone="ch-system-glibc librpcsvc">
+          <indexterm zone="ch-cross-tools-glibc librpcsvc">
             <primary sortas="c-librpcsvc">librpcsvc</primary>
           </indexterm>
         </listitem>
@@ -819,7 +819,7 @@
         <listitem>
           <para>Contains functions providing most of the interfaces specified by
           the POSIX.1b Realtime Extension</para>
-          <indexterm zone="ch-system-glibc librt">
+          <indexterm zone="ch-cross-tools-glibc librt">
             <primary sortas="c-librt">librt</primary>
           </indexterm>
         </listitem>
@@ -830,7 +830,7 @@
         <listitem>
           <para>Contains functions useful for
           building debuggers for multi-threaded programs</para>
-          <indexterm zone="ch-system-glibc libthread_db">
+          <indexterm zone="ch-cross-tools-glibc libthread_db">
             <primary sortas="c-libthread_db">libthread_db</primary>
           </indexterm>
         </listitem>
@@ -841,7 +841,7 @@
         <listitem>
           <para>Contains code for <quote>standard</quote> functions used in
           many different Unix utilities</para>
-          <indexterm zone="ch-system-glibc libutil">
+          <indexterm zone="ch-cross-tools-glibc libutil">
             <primary sortas="c-libutil">libutil</primary>
           </indexterm>
         </listitem>

Modified: branches/clfs-2.0/BOOK/final-preps/creatingfiles.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-preps/creatingfiles.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-preps/creatingfiles.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -8,8 +8,32 @@
 <sect1 id="ch-final-preps-creatingfiles">
   <?dbhtml filename="creatingfiles.html"?>
 
-  <title>Creating Essential Files</title>
+  <title>Creating the passwd, group, and log Files</title>
 
+  <indexterm zone="ch-final-preps-creatingfiles">
+    <primary sortas="e-/etc/passwd">/etc/passwd</primary>
+  </indexterm>
+
+  <indexterm zone="ch-final-preps-creatingfiles">
+    <primary sortas="e-/etc/group">/etc/group</primary>
+  </indexterm>
+
+  <indexterm zone="ch-final-preps-creatingfiles">
+    <primary sortas="e-/var/run/utmp">/var/run/utmp</primary>
+  </indexterm>
+
+  <indexterm zone="ch-final-preps-creatingfiles">
+    <primary sortas="e-${LFS}/var/log/btmp">/var/log/btmp</primary>
+  </indexterm>
+
+  <indexterm zone="ch-final-preps-creatingfiles">
+    <primary sortas="e-/var/log/lastlog">/var/log/lastlog</primary>
+  </indexterm>
+
+  <indexterm zone="ch-final-preps-creatingfiles">
+    <primary sortas="e-/var/log/wtmp">/var/log/wtmp</primary>
+  </indexterm>
+
   <para>A proper Linux system maintains a list of the mounted file systems in
   the file <filename>/etc/mtab</filename>.  Normally, this file would be
   created when we mount a new file system. Since we will not be mounting any

Modified: branches/clfs-2.0/BOOK/final-system/common/bash.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/bash.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/bash.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -27,9 +27,10 @@
     <para os="a">If you downloaded the Bash documentation tarball and wish to
     install HTML documentation, issue the following commands:</para>
 
-<screen os="b"><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz &&
-sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \
-    Makefile.in</userinput></screen>
+<screen os="b"><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz
+cp Makefile.in{,.orig}
+sed "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \
+    Makefile.in.orig > Makefile.in</userinput></screen>
 
     <para os="p1">The following patch contains updates from the maintainer. The
     maintainer of Bash only releases these patches to fix serious issues.</para>

Modified: branches/clfs-2.0/BOOK/final-system/common/bzip2.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/bzip2.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/bzip2.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -47,7 +47,7 @@
     <para os="s1">Disable running of the testsuite after a successful build:</para>
 
 <screen os="s2"><userinput>cp Makefile{,.orig}
-sed -e "/^all:/s/ test//" Makefile.orig %gt; Makefile</userinput></screen>
+sed -e "/^all:/s/ test//" Makefile.orig > Makefile</userinput></screen>
 
     <para os="a">The Bzip2 package does not contain a <command>configure</command>
     script. Compile it with:</para>

Modified: branches/clfs-2.0/BOOK/final-system/common/gzip.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/gzip.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/gzip.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -41,7 +41,8 @@
     location of the binary is changed later, the following command ensures
     that the new location gets placed into the script:</para>
 
-<screen os="d"><userinput>sed -i 's@"BINDIR"@/bin at g' gzexe.in</userinput></screen>
+<screen os="d"><userinput>cp gzexec.in{,.orig}
+sed 's@"BINDIR"@/bin at g' gzexe.in.orig > gzexec.in</userinput></screen>
 
     <para os="e">Compile the package:</para>
 

Modified: branches/clfs-2.0/BOOK/final-system/common/inetutils.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/inetutils.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/inetutils.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -35,6 +35,13 @@
 
 <screen os="p4"><userinput>patch -Np1 -i ../&inetutils-gcc4_fixes-patch;</userinput></screen>
 
+    <para os="s1">The following set of seds prevent binaries from being installed as root</para>
+
+<screen os="s2"><userinput>for dir in ping rcp rlogin rsh; do
+    cp ${dir}/Makefile.in{,.orig}
+    sed '/^SUIDMODE =/s/-o root//' ${dir}/Makefile.in.orig > ${dir}/Makefile.in
+done</userinput></screen>
+
     <para os="a">Prepare Inetutils for compilation:</para>
 
 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET} \

Modified: branches/clfs-2.0/BOOK/final-system/common/iproute2.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/iproute2.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/iproute2.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -25,7 +25,14 @@
   <sect2 role="installation">
     <title>Installation of IPRoute2</title>
 
-    <para os="s1">The <command>arpd</command> binary included in this package is
+    <para os="s1">The following command prevents install trying to strip the binaries</para>
+
+<screen os="s2"><userinput>for dir in ip misc tc; do
+    cp ${dir}/Makefile{,.orig}
+    sed 's/0755 -s/0755/' ${dir}/Makefile.orig > ${dir}/Makefile
+done</userinput></screen>
+
+    <para os="s3">The <command>arpd</command> binary included in this package is
     dependent on Berkeley DB.  Because <command>arpd</command> is not a
     very common requirement on a base Linux system, remove the dependency
     on Berkeley DB by applying the <command>sed</command> command below.
@@ -33,7 +40,8 @@
     compiling Berkeley DB can be found in the BLFS Book at <ulink
     url="&blfs-root;view/svn/server/databases.html#db"/>.</para>
 
-<screen os="s2"><userinput>sed -i '/^TARGETS/s at arpd@@g' misc/Makefile</userinput></screen>
+<screen os="s4"><userinput>cp misc/Makefile{,.orig}
+sed '/^TARGETS/s at arpd@@g' misc/Makefile.orig > misc/Makefile</userinput></screen>
 
     <para os="a">Compile the package:</para>
 

Modified: branches/clfs-2.0/BOOK/final-system/common/less.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/less.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/less.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -48,7 +48,7 @@
 
     <para os="f">Install the package:</para>
 
-<screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
+<screen os="g"><userinput>make prefixR=${LFS}/usr install</userinput></screen>
 
     <para os="h">Move less to /bin:</para>
 

Modified: branches/clfs-2.0/BOOK/final-system/common/man.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/man.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/man.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -32,19 +32,22 @@
     <envar>PAGER</envar> variable so that escape sequences are
     properly handled by Less:</para>
 
-<screen os="c"><userinput>sed -i 's at -is@&R at g' configure</userinput></screen>
+<screen os="c"><userinput>cp configure{,.orig}
+sed 's at -is@&R at g' configure.orig > configure</userinput></screen>
 
     <para os="d">Another <command>sed</command> substitution comments out the
     <quote>MANPATH /usr/man</quote> line in the <filename>man.conf</filename>
     file to prevent redundant results when using programs such as
     <command>whatis</command>:</para>
 
-<screen os="e"><userinput>sed -i 's at MANPATH./usr/man@#&@g' src/man.conf.in</userinput></screen>
+<screen os="e"><userinput>cp src/man.conf.in{,.orig}
+sed 's at MANPATH./usr/man@#&@g' src/man.conf.in.orig > src/man.conf.in</userinput></screen>
 
     <para os="f">Finally, correct a syntax error in the
     <command>makewhatis</command> script:</para>
 
-<screen os="g"><userinput>sed -i 's@)) |@) |@' src/makewhatis.sh</userinput></screen>
+<screen os="g"><userinput>cp src/makewhatis.sh{,.orig}
+sed 's@)) |@) |@' src/makewhatis.sh.orig > src/makewhatis.sh</userinput></screen>
 
     <para os="h">Prepare Man for compilation:</para>
 

Modified: branches/clfs-2.0/BOOK/final-system/common/mktemp.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/mktemp.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/mktemp.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -34,8 +34,8 @@
     <para os="s1">The following sed removes -s from the install command which
     will try to strip the installed files:</para>
 
-<screen os="s2"><userinput>cp Makefile{,.orig}
-sed -e 's/-s $(PROG)/$(PROG)/' Makefile.orig > Makefile</userinput></screen>
+<screen os="s2"><userinput>cp Makefile.in{,.orig}
+sed -e 's/-s $(PROG)/$(PROG)/' Makefile.in.orig > Makefile.in</userinput></screen>
 
     <para os="c">Prepare Mktemp for compilation:</para>
 

Modified: branches/clfs-2.0/BOOK/final-system/common/perl.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/perl.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/perl.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -25,7 +25,7 @@
   <sect2 role="installation">
     <title>Installation of Perl</title>
 
-    <para os="w1"><important>Information on cross-compiling perl has not been added yet.</important></para>
+    <important os="w1"><para>Information on cross-compiling perl has not been added yet.</para></important>
 
     <para os="a00">Before starting to configure, create a basic
     <filename>/etc/hosts</filename> file which will be referenced in one

Modified: branches/clfs-2.0/BOOK/final-system/common/psmisc.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/psmisc.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/psmisc.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -50,7 +50,7 @@
 
     <para os="f">Install the package:</para>
 
-<screen os="g"><userinput>make install</userinput></screen>
+<screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
 
     <para os="h">There is no reason for the <command>pstree</command> and
     <command>pstree.x11</command> programs to reside in <filename

Modified: branches/clfs-2.0/BOOK/final-system/common/shadow.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/shadow.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/shadow.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -72,8 +72,10 @@
     <para os="h">Disable the installation of the <command>groups</command>
     program and its man pages, as Coreutils provides a better version:</para>
 
-<screen os="i"><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile
-sed -i '/groups/d' man/Makefile</userinput></screen>
+<screen os="i"><userinput>cp src/Makefile{,.orig}
+sed 's/groups$(EXEEXT) //' src/Makefile.orig > src/Makefile
+cp man/Makefile{,.orig}
+sed '/groups/d' man/Makefile.orig > man/Makefile</userinput></screen>
 
     <para os="j">Compile the package:</para>
 
@@ -120,7 +122,8 @@
       this <command>sed</command> to correct the path to the Cracklib
       dictionary:</para>
 
-<screen><userinput>sed -i 's at DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' ${LFS}/etc/login.defs</userinput></screen>
+<screen><userinput>cp {LFS}/etc/login.defs login.defs.orig
+sed 's at DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' login.defs.orig > ${LFS}/etc/login.defs</userinput></screen>
     </note>
 
     <para os="v">Move a misplaced program to its proper location:</para>

Modified: branches/clfs-2.0/BOOK/final-system/common/stripping.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/stripping.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/stripping.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -22,26 +22,9 @@
   <command>strip</command> command, it is a good idea to make a
   backup of the current situation.</para>
 
-  <para os="c">Before performing the stripping, take special care to ensure that
-  none of the binaries that are about to be stripped are running. If
-  unsure whether the user entered chroot with the command given in
-  <!-- <xref linkend="chapter-chroot" role=","/> --> first exit from
-  chroot:</para>
+<screen os="c"><userinput>find ${LFS}/{,usr/}{bin,lib,sbin} -type f \
+   -exec ${LFS_TARGET}-strip --strip-debug '{}' ';'</userinput></screen>
 
-<screen os="d" role="nodump"><userinput>logout</userinput></screen>
-
-    <para os="e">Then reenter it with:</para>
-
-<screen os="f" role="nodump"><userinput>chroot $LFS /tools/bin/env -i \
-    HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
-    PATH=/bin:/usr/bin:/sbin:/usr/sbin \
-    /tools/bin/bash --login</userinput></screen>
-
-    <para os="g">Now the binaries and libraries can be safely stripped:</para>
-
-<screen os="h"><userinput>/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
-   -exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen>
-
     <para os="i">A large number of files will be reported as having their file
     format not recognized. These warnings can be safely ignored. These
     warnings indicate that those files are scripts instead of

Modified: branches/clfs-2.0/BOOK/final-system/common/sysklogd.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/sysklogd.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/sysklogd.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -42,7 +42,7 @@
 
     <para os="f">Install the package:</para>
 
-<screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
+<screen os="g"><userinput>make prefix=${LFS} install</userinput></screen>
 
   </sect2>
 

Modified: branches/clfs-2.0/BOOK/final-system/common/sysvinit.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/sysvinit.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/sysvinit.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -35,8 +35,9 @@
     <quote>Sending processes started by init the TERM signal</quote>
     instead:</para>
 
-<screen os="b"><userinput>sed -i 's at Sending processes@& started by init at g' \
-    src/init.c</userinput></screen>
+<screen os="b"><userinput>cp src/init.c{,.orig}
+sed 's at Sending processes@& started by init at g' \
+    src/init.c.orig > src/init.c</userinput></screen>
 
     <para os="s1">The following sed makes changes in the Makefile required for cross-compiling</para>
 
@@ -44,6 +45,7 @@
 sed -e 's at root@0 at g' \
     -e "s@/dev/initctl@${LFS}&@g" \
     -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3 at g' \
+    -e "s@/usr/lib@${LFS}&@" \
     src/Makefile.orig > src/Makefile</userinput></screen>
 
     <para os="c">Compile the package:</para>
@@ -53,7 +55,7 @@
 
     <para os="e">Install the package:</para>
 
-<screen os="f"><userinput>make -C src install</userinput></screen>
+<screen os="f"><userinput>make -C src ROOT=${LFS} INSTALL="install" install</userinput></screen>
 
   </sect2>
 

Modified: branches/clfs-2.0/BOOK/final-system/common/util-linux.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/util-linux.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/util-linux.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -33,8 +33,9 @@
     location for the <filename>adjtime</filename> file. To make the
     <command>hwclock</command> program FHS-compliant, run the following:</para>
 
-<screen><userinput>sed -i 's at etc/adjtime at var/lib/hwclock/adjtime at g' \
-    hwclock/hwclock.c
+<screen><userinput>cp hwclock/hwclock.c{,.orig}
+sed 's at etc/adjtime at var/lib/hwclock/adjtime at g' \
+    hwclock/hwclock.c.orig > hwclock/hwclock.c
 mkdir -pv /var/lib/hwclock</userinput></screen>
 
   </sect2>

Modified: branches/clfs-2.0/BOOK/final-system/common/vim.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/vim.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/vim.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -33,7 +33,7 @@
   <sect2 role="installation">
     <title>Installation of Vim</title>
 
-    <important>The cross-compilation of vim is currently a mystery. Help would be greatly apreciated</important>
+    <important os="w1"><para>The cross-compilation of vim is currently a mystery. Help would be greatly apreciated</para></important>
 
     <para os="a">First, unpack both <filename>vim-&vim-version;.tar.bz2</filename>
     and (optionally) <filename>vim-&vim-version;-lang.tar.gz</filename>

Modified: branches/clfs-2.0/BOOK/final-system/common/zlib.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/zlib.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/final-system/common/zlib.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -33,7 +33,7 @@
     <para os="s1">The following sed tells the Makefile to pass r to AR:</para>
 
 <screen os="s2"><userinput>cp Makefile.in{,.orig}
-sed 's/$(AR) $@/$(AR) r $@/' Makefile.in > Makefile.in</userinput></screen>
+sed 's/$(AR) $@/$(AR) r $@/' Makefile.in.orig > Makefile.in</userinput></screen>
 
     <para os="a">Prepare Zlib for compilation:</para>
 
@@ -58,7 +58,7 @@
 
     <para os="i">Now we fix the permissions on the static library:</para>
 
-<screen os="j"><userinput>chmod -v 644 /usr/lib/libz.a</userinput></screen>
+<screen os="j"><userinput>chmod -v 644 ${LFS}/usr/lib/libz.a</userinput></screen>
 
   </sect2>
 

Modified: branches/clfs-2.0/BOOK/general.ent
===================================================================
--- branches/clfs-2.0/BOOK/general.ent	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/general.ent	2006-05-28 01:13:38 UTC (rev 1667)
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 
-<!ENTITY version "SVN-20060525">
+<!ENTITY version "SVN-20060527">
 <!ENTITY version-ARM "&version;-ARM">
 
-<!ENTITY releasedate "May 25, 2006">
+<!ENTITY releasedate "May 27, 2006">
 <!ENTITY milestone "0.2">
 <!ENTITY generic-version "svn"> <!-- Use "svn", "testing", or "x.y[-pre{x}]" -->
 

Modified: branches/clfs-2.0/BOOK/the-end/theend.xml
===================================================================
--- branches/clfs-2.0/BOOK/the-end/theend.xml	2006-05-27 19:10:35 UTC (rev 1666)
+++ branches/clfs-2.0/BOOK/the-end/theend.xml	2006-05-28 01:13:38 UTC (rev 1667)
@@ -23,6 +23,6 @@
   point) to find out which CLFS version is installed on the system.
   Create this file by running:</para>
 
-<screen><userinput>echo &version; > /etc/clfs-release</userinput></screen>
+<screen><userinput>echo &version; > ${LFS}/etc/clfs-release</userinput></screen>
 
 </sect1>




More information about the cross-lfs mailing list