Changeset 3349a3a in clfs-sysroot


Ignore:
Timestamp:
May 27, 2006, 9:02:20 PM (19 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
d9bec84
Parents:
f6c417f
Message:

r3669@server (orig r1667): jciccone | 2006-05-27 18:13:38 -0700
Various text and command fixes

Location:
BOOK
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • BOOK/bootable/arm/kernel.xml

    rf6c417f r3349a3a  
    5454    url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>:</para>
    5555
    56 <screen os="i"><userinput>make menuconfig</userinput></screen>
     56<screen os="i"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}- menuconfig</userinput></screen>
    5757
    5858    <para os="j">Alternatively, <command>make oldconfig</command> may be more
     
    6969    <para os="m">Compile the kernel image and modules:</para>
    7070
    71 <screen os="n"><userinput>make</userinput></screen>
     71<screen os="n"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}-</userinput></screen>
    7272
    7373    <para os="o">If using kernel modules, an
     
    9797    them:</para>
    9898
    99 <screen os="t"><userinput>make modules_install</userinput></screen>
     99<screen os="t"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}- \
     100    INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen>
    100101
    101102    <para os="u">After kernel compilation is complete, additional steps are
    102103    required to complete the installation. Some files need to be copied to
    103     the <filename class="directory">/boot</filename> directory.</para>
     104    the <filename class="directory">${LFS}/boot</filename> directory.</para>
    104105
    105106    <para os="v">Issue the following command to install the kernel:</para>
    106107
    107 <screen><userinput>cp arch/i386/boot/bzImage /boot/lfskernel-&linux-version;</userinput></screen>
     108<screen><userinput>cp arch/i386/boot/bzImage ${LFS}/boot/lfskernel-&linux-version;</userinput></screen>
    108109
    109110    <para os="w"><filename>System.map</filename> is a symbol file for the kernel.
     
    112113    kernel. Issue the following command to install the map file:</para>
    113114
    114 <screen os="w1"><userinput>cp System.map /boot/System.map-&linux-version;</userinput></screen>
     115<screen os="w1"><userinput>cp System.map ${LFS}/boot/System.map-&linux-version;</userinput></screen>
    115116
    116117    <para os="x">The kernel configuration file <filename>.config</filename>
     
    119120    It is a good idea to keep this file for future reference:</para>
    120121
    121 <screen os="x1"><userinput>cp .config /boot/config-&linux-version;</userinput></screen>
    122 
    123     <para os="y">It is important to note that the files in the kernel source
    124     directory are not owned by <systemitem class="username">root</systemitem>.
    125     Whenever a package is unpacked as user <systemitem
    126     class="username">root</systemitem> (like we did
    127     inside chroot), the files have the user and group IDs of whatever
    128     they were on the packager's computer. This is usually not a problem
    129     for any other package to be installed because the source tree is
    130     removed after the installation. However, the Linux source tree is
    131     often retained for a long time.  Because of this, there is a chance
    132     that whatever user ID the packager used will be assigned to somebody
    133     on the machine. That person would then have write access to the kernel
    134     source.</para>
    135 
    136     <para os="y1">If the kernel source tree is going to retained, run
    137     <command>chown -R 0:0</command> on the <filename
    138     class="directory">linux-&linux-version;</filename> directory to
    139     ensure all files are owned by user <systemitem
    140     class="username">root</systemitem>.</para>
     122<screen os="x1"><userinput>cp .config ${LFS}/boot/config-&linux-version;</userinput></screen>
    141123
    142124    <warning os="z">
  • BOOK/cross-tools/common/file.xml

    rf6c417f r3349a3a  
    1414    <title>Installation of File</title>
    1515
    16     <note>You only need to install <package>file</package> if your host has
    17     a version other then file-&file-version; installed.</note>
     16    <note><para>You only need to install <package>file</package> if your host has
     17    a version other then file-&file-version; installed.</para></note>
    1818
    1919    <para>Prepare File for compilation:</para>
     
    3131  </sect2>
    3232
     33  <sect2 role="content">
     34    <title/>
     35
     36    <para>Details on this package are located in <xref
     37    linkend="contents-file" role="."/></para>
     38
     39  </sect2>
     40
    3341</sect1>
  • BOOK/cross-tools/common/glibc.xml

    rf6c417f r3349a3a  
    370370          <para>Can be used to create a stack trace when a program
    371371          terminates with a segmentation fault</para>
    372           <indexterm zone="ch-system-glibc catchsegv">
     372          <indexterm zone="ch-cross-tools-glibc catchsegv">
    373373            <primary sortas="b-catchsegv">catchsegv</primary>
    374374          </indexterm>
     
    380380        <listitem>
    381381          <para>Generates message catalogues</para>
    382           <indexterm zone="ch-system-glibc gencat">
     382          <indexterm zone="ch-cross-tools-glibc gencat">
    383383            <primary sortas="b-gencat">gencat</primary>
    384384          </indexterm>
     
    391391          <para>Displays the system configuration values for file system specific
    392392          variables</para>
    393           <indexterm zone="ch-system-glibc getconf">
     393          <indexterm zone="ch-cross-tools-glibc getconf">
    394394            <primary sortas="b-getconf">getconf</primary>
    395395          </indexterm>
     
    401401        <listitem>
    402402          <para>Gets entries from an administrative database</para>
    403           <indexterm zone="ch-system-glibc getent">
     403          <indexterm zone="ch-cross-tools-glibc getent">
    404404            <primary sortas="b-getent">getent</primary>
    405405          </indexterm>
     
    411411        <listitem>
    412412          <para>Performs character set conversion</para>
    413           <indexterm zone="ch-system-glibc iconv">
     413          <indexterm zone="ch-cross-tools-glibc iconv">
    414414            <primary sortas="b-iconv">iconv</primary>
    415415          </indexterm>
     
    422422          <para>Creates fastloading <command>iconv</command> module configuration
    423423          files</para>
    424           <indexterm zone="ch-system-glibc iconvconfig">
     424          <indexterm zone="ch-cross-tools-glibc iconvconfig">
    425425            <primary sortas="b-iconvconfig">iconvconfig</primary>
    426426          </indexterm>
     
    432432        <listitem>
    433433          <para>Configures the dynamic linker runtime bindings</para>
    434           <indexterm zone="ch-system-glibc ldconfig">
     434          <indexterm zone="ch-cross-tools-glibc ldconfig">
    435435            <primary sortas="b-ldconfig">ldconfig</primary>
    436436          </indexterm>
     
    443443          <para>Reports which shared libraries are required
    444444          by each given program or shared library</para>
    445           <indexterm zone="ch-system-glibc ldd">
     445          <indexterm zone="ch-cross-tools-glibc ldd">
    446446            <primary sortas="b-ldd">ldd</primary>
    447447          </indexterm>
     
    453453        <listitem>
    454454          <para>Assists <command>ldd</command> with object files</para>
    455           <indexterm zone="ch-system-glibc lddlibc4">
     455          <indexterm zone="ch-cross-tools-glibc lddlibc4">
    456456            <primary sortas="b-lddlibc4">lddlibc4</primary>
    457457          </indexterm>
     
    464464          <para>Tells the compiler to enable or disable the use of POSIX locales
    465465          for built-in operations</para>
    466           <indexterm zone="ch-system-glibc locale">
     466          <indexterm zone="ch-cross-tools-glibc locale">
    467467            <primary sortas="b-locale">locale</primary>
    468468          </indexterm>
     
    474474        <listitem>
    475475          <para>Compiles locale specifications</para>
    476           <indexterm zone="ch-system-glibc localedef">
     476          <indexterm zone="ch-cross-tools-glibc localedef">
    477477            <primary sortas="b-localedef">localedef</primary>
    478478          </indexterm>
     
    485485          <para>Reads and interprets a memory trace file and
    486486          displays a summary in human-readable format</para>
    487           <indexterm zone="ch-system-glibc mtrace">
     487          <indexterm zone="ch-cross-tools-glibc mtrace">
    488488            <primary sortas="b-mtrace">mtrace</primary>
    489489          </indexterm>
     
    496496          <para>A daemon that provides a cache for the most common name
    497497          service requests</para>
    498           <indexterm zone="ch-system-glibc nscd">
     498          <indexterm zone="ch-cross-tools-glibc nscd">
    499499            <primary sortas="b-nscd">nscd</primary>
    500500          </indexterm>
     
    507507          <para>Checks whether or not secure mode is necessary for NIS+
    508508          lookup</para>
    509           <indexterm zone="ch-system-glibc nscd_nischeck">
     509          <indexterm zone="ch-cross-tools-glibc nscd_nischeck">
    510510            <primary sortas="b-nscd_nischeck">nscd_nischeck</primary>
    511511          </indexterm>
     
    517517        <listitem>
    518518          <para>Dumps information generated by PC profiling</para>
    519           <indexterm zone="ch-system-glibc pcprofiledump">
     519          <indexterm zone="ch-cross-tools-glibc pcprofiledump">
    520520            <primary sortas="b-pcprofiledump">pcprofiledump</primary>
    521521          </indexterm>
     
    528528          <para>A helper program for <command>grantpt</command> to set the owner,
    529529          group and access permissions of a slave pseudo terminal</para>
    530           <indexterm zone="ch-system-glibc pt_chown">
     530          <indexterm zone="ch-cross-tools-glibc pt_chown">
    531531            <primary sortas="b-pt_chown">pt_chown</primary>
    532532          </indexterm>
     
    539539          <para>Generates C code to implement the Remote Procecure Call (RPC)
    540540          protocol</para>
    541           <indexterm zone="ch-system-glibc rpcgen">
     541          <indexterm zone="ch-cross-tools-glibc rpcgen">
    542542            <primary sortas="b-rpcgen">rpcgen</primary>
    543543          </indexterm>
     
    549549        <listitem>
    550550          <para>Makes an RPC call to an RPC server</para>
    551           <indexterm zone="ch-system-glibc rpcinfo">
     551          <indexterm zone="ch-cross-tools-glibc rpcinfo">
    552552            <primary sortas="b-rpcinfo">rpcinfo</primary>
    553553          </indexterm>
     
    559559        <listitem>
    560560          <para>A statically linked <command>ln</command> program</para>
    561           <indexterm zone="ch-system-glibc sln">
     561          <indexterm zone="ch-cross-tools-glibc sln">
    562562            <primary sortas="b-sln">sln</primary>
    563563          </indexterm>
     
    569569        <listitem>
    570570          <para>Reads and displays shared object profiling data</para>
    571           <indexterm zone="ch-system-glibc sprof">
     571          <indexterm zone="ch-cross-tools-glibc sprof">
    572572            <primary sortas="b-sprof">sprof</primary>
    573573          </indexterm>
     
    580580          <para>Asks the user about the location of the
    581581          system and reports the corresponding time zone description</para>
    582           <indexterm zone="ch-system-glibc tzselect">
     582          <indexterm zone="ch-cross-tools-glibc tzselect">
    583583            <primary sortas="b-tzselect">tzselect</primary>
    584584          </indexterm>
     
    591591          <para>Traces the execution of a program by
    592592          printing the currently executed function</para>
    593           <indexterm zone="ch-system-glibc xtrace">
     593          <indexterm zone="ch-cross-tools-glibc xtrace">
    594594            <primary sortas="b-xtrace">xtrace</primary>
    595595          </indexterm>
     
    601601        <listitem>
    602602          <para>The time zone dumper</para>
    603           <indexterm zone="ch-system-glibc zdump">
     603          <indexterm zone="ch-cross-tools-glibc zdump">
    604604            <primary sortas="b-zdump">zdump</primary>
    605605          </indexterm>
     
    611611        <listitem>
    612612          <para>The time zone compiler</para>
    613           <indexterm zone="ch-system-glibc zic">
     613          <indexterm zone="ch-cross-tools-glibc zic">
    614614            <primary sortas="b-zic">zic</primary>
    615615          </indexterm>
     
    621621        <listitem>
    622622          <para>The helper program for shared library executables</para>
    623           <indexterm zone="ch-system-glibc ld.so">
     623          <indexterm zone="ch-cross-tools-glibc ld.so">
    624624            <primary sortas="c-ld.so">ld.so</primary>
    625625          </indexterm>
     
    631631        <listitem>
    632632          <para>Used by programs, such as Mozilla, to solve broken locales</para>
    633           <indexterm zone="ch-system-glibc libBrokenLocale">
     633          <indexterm zone="ch-cross-tools-glibc libBrokenLocale">
    634634            <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
    635635          </indexterm>
     
    641641        <listitem>
    642642          <para>The segmentation fault signal handler</para>
    643           <indexterm zone="ch-system-glibc libSegFault">
     643          <indexterm zone="ch-cross-tools-glibc libSegFault">
    644644            <primary sortas="c-libSegFault">libSegFault</primary>
    645645          </indexterm>
     
    651651        <listitem>
    652652          <para>An asynchronous name lookup library</para>
    653           <indexterm zone="ch-system-glibc libanl">
     653          <indexterm zone="ch-cross-tools-glibc libanl">
    654654            <primary sortas="c-libanl">libanl</primary>
    655655          </indexterm>
     
    663663          in order to run certain Berkey Software Distribution (BSD) programs
    664664          under Linux</para>
    665           <indexterm zone="ch-system-glibc libbsd-compat">
     665          <indexterm zone="ch-cross-tools-glibc libbsd-compat">
    666666            <primary sortas="c-libbsd-compat">libbsd-compat</primary>
    667667          </indexterm>
     
    673673        <listitem>
    674674          <para>The main C library</para>
    675           <indexterm zone="ch-system-glibc libc">
     675          <indexterm zone="ch-cross-tools-glibc libc">
    676676            <primary sortas="c-libc">libc</primary>
    677677          </indexterm>
     
    683683        <listitem>
    684684          <para>The cryptography library</para>
    685           <indexterm zone="ch-system-glibc libcrypt">
     685          <indexterm zone="ch-cross-tools-glibc libcrypt">
    686686            <primary sortas="c-libcrypt">libcrypt</primary>
    687687          </indexterm>
     
    693693        <listitem>
    694694          <para>The dynamic linking interface library</para>
    695           <indexterm zone="ch-system-glibc libdl">
     695          <indexterm zone="ch-cross-tools-glibc libdl">
    696696            <primary sortas="c-libdl">libdl</primary>
    697697          </indexterm>
     
    703703        <listitem>
    704704          <para>A runtime library for <command>g++</command></para>
    705           <indexterm zone="ch-system-glibc libg">
     705          <indexterm zone="ch-cross-tools-glibc libg">
    706706            <primary sortas="c-libg">libg</primary>
    707707          </indexterm>
     
    714714          <para>The Institute of Electrical and Electronic Engineers (IEEE)
    715715          floating point library</para>
    716           <indexterm zone="ch-system-glibc libieee">
     716          <indexterm zone="ch-cross-tools-glibc libieee">
    717717            <primary sortas="c-libieee">libieee</primary>
    718718          </indexterm>
     
    724724        <listitem>
    725725          <para>The mathematical library</para>
    726           <indexterm zone="ch-system-glibc libm">
     726          <indexterm zone="ch-cross-tools-glibc libm">
    727727            <primary sortas="c-libm">libm</primary>
    728728          </indexterm>
     
    734734        <listitem>
    735735          <para>Contains code run at boot</para>
    736           <indexterm zone="ch-system-glibc libmcheck">
     736          <indexterm zone="ch-cross-tools-glibc libmcheck">
    737737            <primary sortas="c-libmcheck">libmcheck</primary>
    738738          </indexterm>
     
    745745          <para>Used by <command>memusage</command> to help collect
    746746          information about the memory usage of a program</para>
    747           <indexterm zone="ch-system-glibc libmemusage">
     747          <indexterm zone="ch-cross-tools-glibc libmemusage">
    748748            <primary sortas="c-libmemusage">libmemusage</primary>
    749749          </indexterm>
     
    755755        <listitem>
    756756          <para>The network services library</para>
    757           <indexterm zone="ch-system-glibc libnsl">
     757          <indexterm zone="ch-cross-tools-glibc libnsl">
    758758            <primary sortas="c-libnsl">libnsl</primary>
    759759          </indexterm>
     
    767767          resolving host names, user names, group names, aliases, services,
    768768          protocols, etc.</para>
    769           <indexterm zone="ch-system-glibc libnss">
     769          <indexterm zone="ch-cross-tools-glibc libnss">
    770770            <primary sortas="c-libnss">libnss</primary>
    771771          </indexterm>
     
    778778          <para>Contains profiling functions used to track the amount of CPU
    779779          time spent in specific source code lines</para>
    780           <indexterm zone="ch-system-glibc libpcprofile">
     780          <indexterm zone="ch-cross-tools-glibc libpcprofile">
    781781            <primary sortas="c-libpcprofile">libpcprofile</primary>
    782782          </indexterm>
     
    788788        <listitem>
    789789          <para>The POSIX threads library</para>
    790           <indexterm zone="ch-system-glibc libpthread">
     790          <indexterm zone="ch-cross-tools-glibc libpthread">
    791791            <primary sortas="c-libpthread">libpthread</primary>
    792792          </indexterm>
     
    799799          <para>Contains functions for creating, sending, and interpreting
    800800          packets to the Internet domain name servers</para>
    801           <indexterm zone="ch-system-glibc libresolv">
     801          <indexterm zone="ch-cross-tools-glibc libresolv">
    802802            <primary sortas="c-libresolv">libresolv</primary>
    803803          </indexterm>
     
    809809        <listitem>
    810810          <para>Contains functions providing miscellaneous RPC services</para>
    811           <indexterm zone="ch-system-glibc librpcsvc">
     811          <indexterm zone="ch-cross-tools-glibc librpcsvc">
    812812            <primary sortas="c-librpcsvc">librpcsvc</primary>
    813813          </indexterm>
     
    820820          <para>Contains functions providing most of the interfaces specified by
    821821          the POSIX.1b Realtime Extension</para>
    822           <indexterm zone="ch-system-glibc librt">
     822          <indexterm zone="ch-cross-tools-glibc librt">
    823823            <primary sortas="c-librt">librt</primary>
    824824          </indexterm>
     
    831831          <para>Contains functions useful for
    832832          building debuggers for multi-threaded programs</para>
    833           <indexterm zone="ch-system-glibc libthread_db">
     833          <indexterm zone="ch-cross-tools-glibc libthread_db">
    834834            <primary sortas="c-libthread_db">libthread_db</primary>
    835835          </indexterm>
     
    842842          <para>Contains code for <quote>standard</quote> functions used in
    843843          many different Unix utilities</para>
    844           <indexterm zone="ch-system-glibc libutil">
     844          <indexterm zone="ch-cross-tools-glibc libutil">
    845845            <primary sortas="c-libutil">libutil</primary>
    846846          </indexterm>
  • BOOK/final-preps/creatingfiles.xml

    rf6c417f r3349a3a  
    99  <?dbhtml filename="creatingfiles.html"?>
    1010
    11   <title>Creating Essential Files</title>
     11  <title>Creating the passwd, group, and log Files</title>
     12
     13  <indexterm zone="ch-final-preps-creatingfiles">
     14    <primary sortas="e-/etc/passwd">/etc/passwd</primary>
     15  </indexterm>
     16
     17  <indexterm zone="ch-final-preps-creatingfiles">
     18    <primary sortas="e-/etc/group">/etc/group</primary>
     19  </indexterm>
     20
     21  <indexterm zone="ch-final-preps-creatingfiles">
     22    <primary sortas="e-/var/run/utmp">/var/run/utmp</primary>
     23  </indexterm>
     24
     25  <indexterm zone="ch-final-preps-creatingfiles">
     26    <primary sortas="e-${LFS}/var/log/btmp">/var/log/btmp</primary>
     27  </indexterm>
     28
     29  <indexterm zone="ch-final-preps-creatingfiles">
     30    <primary sortas="e-/var/log/lastlog">/var/log/lastlog</primary>
     31  </indexterm>
     32
     33  <indexterm zone="ch-final-preps-creatingfiles">
     34    <primary sortas="e-/var/log/wtmp">/var/log/wtmp</primary>
     35  </indexterm>
    1236
    1337  <para>A proper Linux system maintains a list of the mounted file systems in
  • BOOK/final-system/common/bash.xml

    rf6c417f r3349a3a  
    2828    install HTML documentation, issue the following commands:</para>
    2929
    30 <screen os="b"><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz &amp;&amp;
    31 sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \
    32     Makefile.in</userinput></screen>
     30<screen os="b"><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz
     31cp Makefile.in{,.orig}
     32sed "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \
     33    Makefile.in.orig &gt; Makefile.in</userinput></screen>
    3334
    3435    <para os="p1">The following patch contains updates from the maintainer. The
  • BOOK/final-system/common/bzip2.xml

    rf6c417f r3349a3a  
    4848
    4949<screen os="s2"><userinput>cp Makefile{,.orig}
    50 sed -e "/^all:/s/ test//" Makefile.orig %gt; Makefile</userinput></screen>
     50sed -e "/^all:/s/ test//" Makefile.orig &gt; Makefile</userinput></screen>
    5151
    5252    <para os="a">The Bzip2 package does not contain a <command>configure</command>
  • BOOK/final-system/common/gzip.xml

    rf6c417f r3349a3a  
    4242    that the new location gets placed into the script:</para>
    4343
    44 <screen os="d"><userinput>sed -i 's@"BINDIR"@/bin@g' gzexe.in</userinput></screen>
     44<screen os="d"><userinput>cp gzexec.in{,.orig}
     45sed 's@"BINDIR"@/bin@g' gzexe.in.orig &gt; gzexec.in</userinput></screen>
    4546
    4647    <para os="e">Compile the package:</para>
  • BOOK/final-system/common/inetutils.xml

    rf6c417f r3349a3a  
    3535
    3636<screen os="p4"><userinput>patch -Np1 -i ../&inetutils-gcc4_fixes-patch;</userinput></screen>
     37
     38    <para os="s1">The following set of seds prevent binaries from being installed as root</para>
     39
     40<screen os="s2"><userinput>for dir in ping rcp rlogin rsh; do
     41    cp ${dir}/Makefile.in{,.orig}
     42    sed '/^SUIDMODE =/s/-o root//' ${dir}/Makefile.in.orig &gt; ${dir}/Makefile.in
     43done</userinput></screen>
    3744
    3845    <para os="a">Prepare Inetutils for compilation:</para>
  • BOOK/final-system/common/iproute2.xml

    rf6c417f r3349a3a  
    2626    <title>Installation of IPRoute2</title>
    2727
    28     <para os="s1">The <command>arpd</command> binary included in this package is
     28    <para os="s1">The following command prevents install trying to strip the binaries</para>
     29
     30<screen os="s2"><userinput>for dir in ip misc tc; do
     31    cp ${dir}/Makefile{,.orig}
     32    sed 's/0755 -s/0755/' ${dir}/Makefile.orig &gt; ${dir}/Makefile
     33done</userinput></screen>
     34
     35    <para os="s3">The <command>arpd</command> binary included in this package is
    2936    dependent on Berkeley DB.  Because <command>arpd</command> is not a
    3037    very common requirement on a base Linux system, remove the dependency
     
    3441    url="&blfs-root;view/svn/server/databases.html#db"/>.</para>
    3542
    36 <screen os="s2"><userinput>sed -i '/^TARGETS/s@arpd@@g' misc/Makefile</userinput></screen>
     43<screen os="s4"><userinput>cp misc/Makefile{,.orig}
     44sed '/^TARGETS/s@arpd@@g' misc/Makefile.orig &gt; misc/Makefile</userinput></screen>
    3745
    3846    <para os="a">Compile the package:</para>
  • BOOK/final-system/common/less.xml

    rf6c417f r3349a3a  
    4949    <para os="f">Install the package:</para>
    5050
    51 <screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     51<screen os="g"><userinput>make prefixR=${LFS}/usr install</userinput></screen>
    5252
    5353    <para os="h">Move less to /bin:</para>
  • BOOK/final-system/common/man.xml

    rf6c417f r3349a3a  
    3333    properly handled by Less:</para>
    3434
    35 <screen os="c"><userinput>sed -i 's@-is@&amp;R@g' configure</userinput></screen>
     35<screen os="c"><userinput>cp configure{,.orig}
     36sed 's@-is@&amp;R@g' configure.orig &gt; configure</userinput></screen>
    3637
    3738    <para os="d">Another <command>sed</command> substitution comments out the
     
    4041    <command>whatis</command>:</para>
    4142
    42 <screen os="e"><userinput>sed -i 's@MANPATH./usr/man@#&amp;@g' src/man.conf.in</userinput></screen>
     43<screen os="e"><userinput>cp src/man.conf.in{,.orig}
     44sed 's@MANPATH./usr/man@#&amp;@g' src/man.conf.in.orig &gt; src/man.conf.in</userinput></screen>
    4345
    4446    <para os="f">Finally, correct a syntax error in the
    4547    <command>makewhatis</command> script:</para>
    4648
    47 <screen os="g"><userinput>sed -i 's@)) |@) |@' src/makewhatis.sh</userinput></screen>
     49<screen os="g"><userinput>cp src/makewhatis.sh{,.orig}
     50sed 's@)) |@) |@' src/makewhatis.sh.orig &gt; src/makewhatis.sh</userinput></screen>
    4851
    4952    <para os="h">Prepare Man for compilation:</para>
  • BOOK/final-system/common/mktemp.xml

    rf6c417f r3349a3a  
    3535    will try to strip the installed files:</para>
    3636
    37 <screen os="s2"><userinput>cp Makefile{,.orig}
    38 sed -e 's/-s $(PROG)/$(PROG)/' Makefile.orig &gt; Makefile</userinput></screen>
     37<screen os="s2"><userinput>cp Makefile.in{,.orig}
     38sed -e 's/-s $(PROG)/$(PROG)/' Makefile.in.orig &gt; Makefile.in</userinput></screen>
    3939
    4040    <para os="c">Prepare Mktemp for compilation:</para>
  • BOOK/final-system/common/perl.xml

    rf6c417f r3349a3a  
    2626    <title>Installation of Perl</title>
    2727
    28     <para os="w1"><important>Information on cross-compiling perl has not been added yet.</important></para>
     28    <important os="w1"><para>Information on cross-compiling perl has not been added yet.</para></important>
    2929
    3030    <para os="a00">Before starting to configure, create a basic
  • BOOK/final-system/common/psmisc.xml

    rf6c417f r3349a3a  
    5151    <para os="f">Install the package:</para>
    5252
    53 <screen os="g"><userinput>make install</userinput></screen>
     53<screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
    5454
    5555    <para os="h">There is no reason for the <command>pstree</command> and
  • BOOK/final-system/common/shadow.xml

    rf6c417f r3349a3a  
    7373    program and its man pages, as Coreutils provides a better version:</para>
    7474
    75 <screen os="i"><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile
    76 sed -i '/groups/d' man/Makefile</userinput></screen>
     75<screen os="i"><userinput>cp src/Makefile{,.orig}
     76sed 's/groups$(EXEEXT) //' src/Makefile.orig &gt; src/Makefile
     77cp man/Makefile{,.orig}
     78sed '/groups/d' man/Makefile.orig &gt; man/Makefile</userinput></screen>
    7779
    7880    <para os="j">Compile the package:</para>
     
    121123      dictionary:</para>
    122124
    123 <screen><userinput>sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' ${LFS}/etc/login.defs</userinput></screen>
     125<screen><userinput>cp {LFS}/etc/login.defs login.defs.orig
     126sed 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' login.defs.orig &gt; ${LFS}/etc/login.defs</userinput></screen>
    124127    </note>
    125128
  • BOOK/final-system/common/stripping.xml

    rf6c417f r3349a3a  
    2323  backup of the current situation.</para>
    2424
    25   <para os="c">Before performing the stripping, take special care to ensure that
    26   none of the binaries that are about to be stripped are running. If
    27   unsure whether the user entered chroot with the command given in
    28   <!-- <xref linkend="chapter-chroot" role=","/> --> first exit from
    29   chroot:</para>
    30 
    31 <screen os="d" role="nodump"><userinput>logout</userinput></screen>
    32 
    33     <para os="e">Then reenter it with:</para>
    34 
    35 <screen os="f" role="nodump"><userinput>chroot $LFS /tools/bin/env -i \
    36     HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
    37     PATH=/bin:/usr/bin:/sbin:/usr/sbin \
    38     /tools/bin/bash --login</userinput></screen>
    39 
    40     <para os="g">Now the binaries and libraries can be safely stripped:</para>
    41 
    42 <screen os="h"><userinput>/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
    43    -exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen>
     25<screen os="c"><userinput>find ${LFS}/{,usr/}{bin,lib,sbin} -type f \
     26   -exec ${LFS_TARGET}-strip --strip-debug '{}' ';'</userinput></screen>
    4427
    4528    <para os="i">A large number of files will be reported as having their file
  • BOOK/final-system/common/sysklogd.xml

    rf6c417f r3349a3a  
    4343    <para os="f">Install the package:</para>
    4444
    45 <screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     45<screen os="g"><userinput>make prefix=${LFS} install</userinput></screen>
    4646
    4747  </sect2>
  • BOOK/final-system/common/sysvinit.xml

    rf6c417f r3349a3a  
    3636    instead:</para>
    3737
    38 <screen os="b"><userinput>sed -i 's@Sending processes@&amp; started by init@g' \
    39     src/init.c</userinput></screen>
     38<screen os="b"><userinput>cp src/init.c{,.orig}
     39sed 's@Sending processes@&amp; started by init@g' \
     40    src/init.c.orig &gt; src/init.c</userinput></screen>
    4041
    4142    <para os="s1">The following sed makes changes in the Makefile required for cross-compiling</para>
     
    4546    -e "s@/dev/initctl@${LFS}&amp;@g" \
    4647    -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3@g' \
     48    -e "s@/usr/lib@${LFS}&amp;@" \
    4749    src/Makefile.orig &gt; src/Makefile</userinput></screen>
    4850
     
    5456    <para os="e">Install the package:</para>
    5557
    56 <screen os="f"><userinput>make -C src install</userinput></screen>
     58<screen os="f"><userinput>make -C src ROOT=${LFS} INSTALL="install" install</userinput></screen>
    5759
    5860  </sect2>
  • BOOK/final-system/common/util-linux.xml

    rf6c417f r3349a3a  
    3434    <command>hwclock</command> program FHS-compliant, run the following:</para>
    3535
    36 <screen><userinput>sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
    37     hwclock/hwclock.c
     36<screen><userinput>cp hwclock/hwclock.c{,.orig}
     37sed 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
     38    hwclock/hwclock.c.orig &gt; hwclock/hwclock.c
    3839mkdir -pv /var/lib/hwclock</userinput></screen>
    3940
  • BOOK/final-system/common/vim.xml

    rf6c417f r3349a3a  
    3434    <title>Installation of Vim</title>
    3535
    36     <important>The cross-compilation of vim is currently a mystery. Help would be greatly apreciated</important>
     36    <important os="w1"><para>The cross-compilation of vim is currently a mystery. Help would be greatly apreciated</para></important>
    3737
    3838    <para os="a">First, unpack both <filename>vim-&vim-version;.tar.bz2</filename>
  • BOOK/final-system/common/zlib.xml

    rf6c417f r3349a3a  
    3434
    3535<screen os="s2"><userinput>cp Makefile.in{,.orig}
    36 sed 's/$(AR) $@/$(AR) r $@/' Makefile.in &gt; Makefile.in</userinput></screen>
     36sed 's/$(AR) $@/$(AR) r $@/' Makefile.in.orig &gt; Makefile.in</userinput></screen>
    3737
    3838    <para os="a">Prepare Zlib for compilation:</para>
     
    5959    <para os="i">Now we fix the permissions on the static library:</para>
    6060
    61 <screen os="j"><userinput>chmod -v 644 /usr/lib/libz.a</userinput></screen>
     61<screen os="j"><userinput>chmod -v 644 ${LFS}/usr/lib/libz.a</userinput></screen>
    6262
    6363  </sect2>
  • BOOK/general.ent

    rf6c417f r3349a3a  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    22
    3 <!ENTITY version "SVN-20060525">
     3<!ENTITY version "SVN-20060527">
    44<!ENTITY version-ARM "&version;-ARM">
    55
    6 <!ENTITY releasedate "May 25, 2006">
     6<!ENTITY releasedate "May 27, 2006">
    77<!ENTITY milestone "0.2">
    88<!ENTITY generic-version "svn"> <!-- Use "svn", "testing", or "x.y[-pre{x}]" -->
  • BOOK/the-end/theend.xml

    rf6c417f r3349a3a  
    2424  Create this file by running:</para>
    2525
    26 <screen><userinput>echo &version; &gt; /etc/clfs-release</userinput></screen>
     26<screen><userinput>echo &version; &gt; ${LFS}/etc/clfs-release</userinput></screen>
    2727
    2828</sect1>
Note: See TracChangeset for help on using the changeset viewer.