Changeset 586feb7 in clfs-sysroot for BOOK


Ignore:
Timestamp:
Jul 2, 2006, 12:45:15 PM (19 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
master
Children:
940e6b3
Parents:
89c10a9
Message:

Updated the bootscripts package and make LFS to CLFS updates.

Location:
BOOK
Files:
87 edited
1 moved

Legend:

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

    r89c10a9 r586feb7  
    5454    url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>:</para>
    5555
    56 <screen os="i"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}- menuconfig</userinput></screen>
     56<screen os="i"><userinput>make ARCH=arm CROSS_COMPILE=${CLFS_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 ARCH=arm CROSS_COMPILE=${LFS_TARGET}-</userinput></screen>
     71<screen os="n"><userinput>make ARCH=arm CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen>
    7272
    7373    <para os="o">If using kernel modules, an
     
    9797    them:</para>
    9898
    99 <screen os="t"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}- \
    100     INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen>
     99<screen os="t"><userinput>make ARCH=arm CROSS_COMPILE=${CLFS_TARGET}- \
     100    INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen>
    101101
    102102    <para os="u">After kernel compilation is complete, additional steps are
    103103    required to complete the installation. Some files need to be copied to
    104     the <filename class="directory">${LFS}/boot</filename> directory.</para>
     104    the <filename class="directory">${CLFS}/boot</filename> directory.</para>
    105105
    106106    <para os="v">Issue the following command to install the kernel:</para>
    107107
    108 <screen><userinput>cp arch/i386/boot/bzImage ${LFS}/boot/lfskernel-&linux-version;</userinput></screen>
     108<screen><userinput>cp arch/i386/boot/bzImage ${CLFS}/boot/lfskernel-&linux-version;</userinput></screen>
    109109
    110110    <para os="w"><filename>System.map</filename> is a symbol file for the kernel.
     
    113113    kernel. Issue the following command to install the map file:</para>
    114114
    115 <screen os="w1"><userinput>cp System.map ${LFS}/boot/System.map-&linux-version;</userinput></screen>
     115<screen os="w1"><userinput>cp System.map ${CLFS}/boot/System.map-&linux-version;</userinput></screen>
    116116
    117117    <para os="x">The kernel configuration file <filename>.config</filename>
     
    120120    It is a good idea to keep this file for future reference:</para>
    121121
    122 <screen os="x1"><userinput>cp .config ${LFS}/boot/config-&linux-version;</userinput></screen>
     122<screen os="x1"><userinput>cp .config ${CLFS}/boot/config-&linux-version;</userinput></screen>
    123123
    124124    <warning os="z">
  • BOOK/bootable/common/chowning.xml

    r89c10a9 r586feb7  
    1919    <para>The commands in the remainder of this book must be performed while
    2020    logged in as <systemitem class="username">root</systemitem>. Check that
    21     $LFS is still set:</para>
     21    $CLFS is still set:</para>
    2222
    23     <screen><userinput>echo $LFS</userinput></screen>
     23    <screen><userinput>echo $CLFS</userinput></screen>
    2424
    2525  </important>
     
    2828  entire lfs system.</para>
    2929
    30 <screen><userinput>chown -Rv root:root ${LFS}</userinput></screen>
     30<screen><userinput>chown -Rv root:root ${CLFS}</userinput></screen>
    3131
    3232  <para>The following files are not the be owned by
    3333  <systemitem class="username">root</systemitem>.</para>
    3434
    35 <screen><userinput>chgrp -v utmp ${LFS}/var/run/utmp ${LFS}/var/log/lastlog</userinput></screen>
     35<screen><userinput>chgrp -v utmp ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen>
    3636
    3737  <para>The following device nodes need to be created for the system to
    3838  boot.</para>
    3939
    40 <screen><userinput>mknod -m 0666 ${LFS}/dev/null c 1 3
    41 mknod -m 0600 ${LFS}/dev/console c 5 1</userinput></screen>
     40<screen><userinput>mknod -m 0666 ${CLFS}/dev/null c 1 3
     41mknod -m 0600 ${CLFS}/dev/console c 5 1</userinput></screen>
    4242
    4343  <para>If you did not create the following rules in <xref linkend="ch-scripts-udev-rules"/>. You
    4444  need to create them now.</para>
    4545
    46 <screen><userinput>mknod -m 0666 ${LFS}/lib/udev/devices/null c 1 3
    47 mknod -m 0600 ${LFS}/lib/udev/devices/console c 5 1</userinput></screen>
     46<screen><userinput>mknod -m 0666 ${CLFS}/lib/udev/devices/null c 1 3
     47mknod -m 0600 ${CLFS}/lib/udev/devices/console c 5 1</userinput></screen>
    4848
    4949</sect1>
  • BOOK/bootable/common/fstab.xml

    r89c10a9 r586feb7  
    2020  to mounting. Create a new file systems table like this:</para>
    2121
    22 <screen><userinput>cat &gt; ${LFS}/etc/fstab &lt;&lt; "EOF"
     22<screen><userinput>cat &gt; ${CLFS}/etc/fstab &lt;&lt; "EOF"
    2323<literal># Begin /etc/fstab
    2424
  • BOOK/bootscripts/common/bootscripts.xml

    r89c10a9 r586feb7  
    2828    <para>Install the package:</para>
    2929
    30 <screen><userinput>make DESTDIR=${LFS} install</userinput></screen>
     30<screen><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    3131
    3232  </sect2>
  • BOOK/bootscripts/common/console.xml

    r89c10a9 r586feb7  
    3535  the configuration file with the following command:</para>
    3636
    37 <screen><userinput>cat &gt;${LFS}/etc/sysconfig/console &lt;&lt;"EOF"
     37<screen><userinput>cat &gt;${CLFS}/etc/sysconfig/console &lt;&lt;"EOF"
    3838<literal>KEYMAP="<replaceable>[arguments for loadkeys]</replaceable>"
    3939FONT="<replaceable>[arguments for setfont]</replaceable>"</literal>
     
    4444  correct:</para>
    4545
    46 <screen><userinput>cat &gt;${LFS}/etc/sysconfig/console &lt;&lt;"EOF"
     46<screen><userinput>cat &gt;${CLFS}/etc/sysconfig/console &lt;&lt;"EOF"
    4747<literal>KEYMAP="es euro2"
    4848FONT="lat9-16 -u iso01"</literal>
     
    7474  following keymap snippet to fix this issue:</para>
    7575
    76 <screen><userinput>mkdir -p ${LFS}/etc/kbd &amp;&amp; cat &gt; ${LFS}/etc/kbd/bs-sends-del &lt;&lt;"EOF"
     76<screen><userinput>mkdir -p ${CLFS}/etc/kbd &amp;&amp; cat &gt; ${CLFS}/etc/kbd/bs-sends-del &lt;&lt;"EOF"
    7777<literal>                  keycode  14 = Delete Delete Delete Delete
    7878              alt keycode  14 = Meta_Delete
     
    8787  snippet after the main keymap:</para>
    8888
    89 <screen><userinput>cat &gt;&gt; ${LFS}/etc/sysconfig/console &lt;&lt;"EOF"
     89<screen><userinput>cat &gt;&gt; ${CLFS}/etc/sysconfig/console &lt;&lt;"EOF"
    9090<literal>KEYMAP_CORRECTIONS="/etc/kbd/bs-sends-del"</literal>
    9191EOF</userinput></screen>
  • BOOK/bootscripts/common/hostname.xml

    r89c10a9 r586feb7  
    2222  and enter a hostname by running:</para>
    2323
    24   <screen><userinput>echo "HOSTNAME=<replaceable>[lfs]</replaceable>" &gt; ${LFS}/etc/sysconfig/network</userinput></screen>
     24  <screen><userinput>echo "HOSTNAME=<replaceable>[lfs]</replaceable>" &gt; ${CLFS}/etc/sysconfig/network</userinput></screen>
    2525
    2626  <para><replaceable>[lfs]</replaceable> needs to be replaced with the
  • BOOK/bootscripts/common/hosts.xml

    r89c10a9 r586feb7  
    5050  <para>Create the  <filename>/etc/hosts</filename> file by running:</para>
    5151
    52 <screen><userinput>cat &gt; ${LFS}/etc/hosts &lt;&lt; "EOF"
     52<screen><userinput>cat &gt; ${CLFS}/etc/hosts &lt;&lt; "EOF"
    5353<literal># Begin /etc/hosts (network card version)
    5454
     
    6969  <filename>/etc/hosts</filename> file by running:</para>
    7070
    71 <screen><userinput>cat &gt; ${LFS}/etc/hosts &lt;&lt; "EOF"
     71<screen><userinput>cat &gt; ${CLFS}/etc/hosts &lt;&lt; "EOF"
    7272<literal># Begin /etc/hosts (no network card version)
    7373
  • BOOK/bootscripts/common/inputrc.xml

    r89c10a9 r586feb7  
    3737  using the following command:</para>
    3838
    39 <screen><userinput>cat &gt; ${LFS}/etc/inputrc &lt;&lt; "EOF"
     39<screen><userinput>cat &gt; ${CLFS}/etc/inputrc &lt;&lt; "EOF"
    4040<literal># Begin /etc/inputrc
    4141# Modified by Chris Lynn &lt;roryo@roryo.dynup.net&gt;
  • BOOK/bootscripts/common/network.xml

    r89c10a9 r586feb7  
    3939    file for the <filename class="devicefile">eth0</filename> device:</para>
    4040
    41 <screen><userinput>cd ${LFS}/etc/sysconfig/network-devices &amp;&amp;
     41<screen><userinput>cd ${CLFS}/etc/sysconfig/network-devices &amp;&amp;
    4242mkdir ifconfig.eth0 &amp;&amp;
    4343cat &gt; ifconfig.eth0/ipv4 &lt;&lt; "EOF"
     
    9595    Create the file by running the following:</para>
    9696
    97 <screen><userinput>cat &gt; ${LFS}/etc/resolv.conf &lt;&lt; "EOF"
     97<screen><userinput>cat &gt; ${CLFS}/etc/resolv.conf &lt;&lt; "EOF"
    9898<literal># Begin /etc/resolv.conf
    9999
  • BOOK/bootscripts/common/profile.xml

    r89c10a9 r586feb7  
    140140  <filename>/etc/profile</filename> file:</para>
    141141
    142 <screen><userinput>cat &gt; ${LFS}/etc/profile &lt;&lt; "EOF"
     142<screen><userinput>cat &gt; ${CLFS}/etc/profile &lt;&lt; "EOF"
    143143<literal># Begin /etc/profile
    144144
  • BOOK/bootscripts/common/setclock.xml

    r89c10a9 r586feb7  
    4242  the following:</para>
    4343
    44 <screen><userinput>cat &gt; ${LFS}/etc/sysconfig/clock &lt;&lt; "EOF"
     44<screen><userinput>cat &gt; ${CLFS}/etc/sysconfig/clock &lt;&lt; "EOF"
    4545<literal># Begin /etc/sysconfig/clock
    4646
  • BOOK/bootscripts/common/udev-rules.xml

    r89c10a9 r586feb7  
    3030    sets:</para>
    3131
    32 <screen os="b"><userinput>rm -vf ${LFS}/etc/udev/rules.d/*</userinput></screen>
     32<screen os="b"><userinput>rm -vf ${CLFS}/etc/udev/rules.d/*</userinput></screen>
    3333
    3434    <para os="c">Install the package:</para>
    3535
    36 <screen os="d"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     36<screen os="d"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    3737
    3838  </sect2>
  • BOOK/cross-tools/arm/glibc-headers.xml

    r89c10a9 r586feb7  
    6868
    6969<screen os="i"><userinput>CC=gcc ../glibc-&glibc-version;/configure --prefix=/usr \
    70    --host=${LFS_TARGET} --build=${LFS_HOST} \
    71    --with-headers=${LFS}/usr/include --cache-file=config.cache</userinput></screen>
     70   --host=${CLFS_TARGET} --build=${CLFS_HOST} \
     71   --with-headers=${CLFS}/usr/include --cache-file=config.cache</userinput></screen>
    7272
    7373    <variablelist os="dj">
     
    8282       
    8383       <varlistentry os="dj2">
    84            <term><parameter>--with-headers=${LFS}/usr/include</parameter></term>
     84           <term><parameter>--with-headers=${CLFS}/usr/include</parameter></term>
    8585           <listitem>
    8686              <para>This tells Glibc to compile itself against the headers
    87               recently installed to the <filename class="directory">${LFS}/usr/include</filename>
     87              recently installed to the <filename class="directory">${CLFS}/usr/include</filename>
    8888              directory, so that it knows exactly what features the kernel has
    8989              and can optimize itself accordingly.</para>
     
    101101
    102102   <para os="n">First we will copy a common file over to <filename
    103    class="directory">${LFS}/usr/include</filename>:</para>
     103   class="directory">${CLFS}/usr/include</filename>:</para>
    104104
    105 <screen os="o"><userinput>install -dv ${LFS}/usr/include/bits
    106 cp -v bits/stdio_lim.h ${LFS}/usr/include/bits</userinput></screen>
     105<screen os="o"><userinput>install -dv ${CLFS}/usr/include/bits
     106cp -v bits/stdio_lim.h ${CLFS}/usr/include/bits</userinput></screen>
    107107
    108108   <para os="p">Now we will create a blank stub file:</para>
    109109
    110 <screen os="q"><userinput>touch ${LFS}/usr/include/gnu/stubs.h</userinput></screen>
     110<screen os="q"><userinput>touch ${CLFS}/usr/include/gnu/stubs.h</userinput></screen>
    111111
    112112   <para os="r">For NPTL we use the following command:</para>
    113113   
    114114<screen os="s"><userinput>cp -v ../glibc-&glibc-version;/ports/sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h \
    115     ${LFS}/usr/include/bits</userinput></screen>
     115    ${CLFS}/usr/include/bits</userinput></screen>
    116116
    117117  </sect2>
  • BOOK/cross-tools/arm/linux-headers.xml

    r89c10a9 r586feb7  
    3737    <para os="b">Install the header files that are common to all architectures:</para>
    3838
    39 <screen os="c"><userinput>install -dv ${LFS}/usr/include/{asm,asm-generic,linux,net,mtd,scsi,sound}
    40 cp -av include/asm-generic/* ${LFS}/usr/include/asm-generic
    41 cp -av include/linux/* ${LFS}/usr/include/linux
    42 cp -av include/mtd/* ${LFS}/usr/include/mtd
    43 cp -av include/net/* ${LFS}/usr/include/net
    44 cp -av include/scsi/* ${LFS}/usr/include/scsi
    45 cp -av include/sound/* ${LFS}/usr/include/sound</userinput></screen>
     39<screen os="c"><userinput>install -dv ${CLFS}/usr/include/{asm,asm-generic,linux,net,mtd,scsi,sound}
     40cp -av include/asm-generic/* ${CLFS}/usr/include/asm-generic
     41cp -av include/linux/* ${CLFS}/usr/include/linux
     42cp -av include/mtd/* ${CLFS}/usr/include/mtd
     43cp -av include/net/* ${CLFS}/usr/include/net
     44cp -av include/scsi/* ${CLFS}/usr/include/scsi
     45cp -av include/sound/* ${CLFS}/usr/include/sound</userinput></screen>
    4646
    4747    <para os="d">Install the header files that are specific to this architecture:</para>
    4848
    49 <screen><userinput>cp -av include/asm-arm/* ${LFS}/usr/include/asm</userinput></screen>
     49<screen><userinput>cp -av include/asm-arm/* ${CLFS}/usr/include/asm</userinput></screen>
    5050
    5151    <para os="e">Make sure the users can read the headers:</para>
    5252
    53 <screen os="f"><userinput>find ${LFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type d -exec chmod -v 755 {} \;
    54 find ${LFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type f -exec chmod -v 644 {} \;</userinput></screen>
     53<screen os="f"><userinput>find ${CLFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type d -exec chmod -v 755 {} \;
     54find ${CLFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type f -exec chmod -v 644 {} \;</userinput></screen>
    5555
    5656  </sect2>
  • BOOK/cross-tools/arm/variables.xml

    r89c10a9 r586feb7  
    3535  case you have to exit and restart building later:</para>
    3636
    37 <screen os="f"><userinput>echo export LFS_HOST=\""${LFS_HOST}\"" &gt;&gt; ~/.bashrc
    38 echo export LFS_TARGET=\""${LFS_TARGET}\"" &gt;&gt; ~/.bashrc</userinput></screen>
     37<screen os="f"><userinput>echo export LFS_HOST=\""${CLFS_HOST}\"" &gt;&gt; ~/.bashrc
     38echo export LFS_TARGET=\""${CLFS_TARGET}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    3939
    4040</sect1>
  • BOOK/cross-tools/common/binutils.xml

    r89c10a9 r586feb7  
    4848    xpointer="xpointer(//*[@os='c'])"/>
    4949
    50 <screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=${LFS}/cross-tools \
    51    --host=${LFS_HOST} --target=${LFS_TARGET} --with-sysroot=${LFS} \
     50<screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=${CLFS}/cross-tools \
     51   --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS} \
    5252   --disable-nls --enable-shared --disable-multilib</userinput></screen>
    5353
     
    5656
    5757      <varlistentry os="bd1">
    58         <term><parameter>--prefix=${LFS}/cross-tools</parameter></term>
     58        <term><parameter>--prefix=${CLFS}/cross-tools</parameter></term>
    5959        <listitem>
    6060          <para>This tells the configure script to prepare to install the
    61           package in the <filename class="directory">${LFS}/cross-tools</filename>
     61          package in the <filename class="directory">${CLFS}/cross-tools</filename>
    6262          directory.</para>
    6363        </listitem>
     
    6565
    6666      <varlistentry os="bd2">
    67         <term><parameter>--host=${LFS_HOST}</parameter></term>
     67        <term><parameter>--host=${CLFS_HOST}</parameter></term>
    6868        <listitem>
    6969          <para>When used with --target, this creates a cross-architecture
    70           executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).</para>
     70          executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).</para>
    7171        </listitem>
    7272      </varlistentry>
    7373
    7474      <varlistentry os="bd3">
    75         <term><parameter>--target=${LFS_TARGET}</parameter></term>
     75        <term><parameter>--target=${CLFS_TARGET}</parameter></term>
    7676        <listitem>
    7777          <para>When used with --host, this creates a cross-architecture
    78           executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).</para>
     78          executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).</para>
    7979        </listitem>
    8080      </varlistentry>
    8181
    8282      <varlistentry os="bd4">
    83         <term><parameter>--with-sysroot=${LFS}</parameter></term>
     83        <term><parameter>--with-sysroot=${CLFS}</parameter></term>
    8484        <listitem>
    85           <para>This tells configure that ${LFS} is going to be the root
    86           of our system. It will now use the specified sysroot, ${LFS} as
     85          <para>This tells configure that ${CLFS} is going to be the root
     86          of our system. It will now use the specified sysroot, ${CLFS} as
    8787          a prefix of the default search paths.</para>
    8888        </listitem>
     
    137137
    138138    <para os="bj">Copy the <filename class="headerfile">libiberty.h</filename> file to
    139     <filename class="directory">${LFS}/usr/include</filename> directory:</para>
     139    <filename class="directory">${CLFS}/usr/include</filename> directory:</para>
    140140
    141 <screen os="bk"><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h ${LFS}/usr/include</userinput></screen>
     141<screen os="bk"><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h ${CLFS}/usr/include</userinput></screen>
    142142
    143143  </sect2>
  • BOOK/cross-tools/common/file.xml

    r89c10a9 r586feb7  
    1919    <para>Prepare File for compilation:</para>
    2020
    21 <screen><userinput>./configure --prefix=${LFS}/cross-tools</userinput></screen>
     21<screen><userinput>./configure --prefix=${CLFS}/cross-tools</userinput></screen>
    2222
    2323    <para>Compile the Package:</para>
  • BOOK/cross-tools/common/gcc-final.xml

    r89c10a9 r586feb7  
    5959    xpointer="xpointer(//*[@os='e'])"/>
    6060
    61 <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${LFS}/cross-tools \
    62     --host=${LFS_HOST} --target=${LFS_TARGET} --disable-multilib \
    63     --with-sysroot=${LFS} --disable-nls --enable-shared \
     61<screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
     62    --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \
     63    --with-sysroot=${CLFS} --disable-nls --enable-shared \
    6464    --enable-languages=c,c++ --enable-__cxa_atexit \
    6565    --enable-c99 --enable-long-long --enable-threads=posix</userinput></screen>
  • BOOK/cross-tools/common/gcc-static.xml

    r89c10a9 r586feb7  
    5151    xpointer="xpointer(//*[@os='e'])"/>
    5252
    53 <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${LFS}/cross-tools \
    54     --host=${LFS_HOST} --target=${LFS_TARGET} --disable-multilib \
    55     --with-sysroot=${LFS} --disable-nls --disable-shared \
     53<screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
     54    --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \
     55    --with-sysroot=${CLFS} --disable-nls --disable-shared \
    5656    --enable-languages=c</userinput></screen>
    5757
  • BOOK/cross-tools/common/glibc.xml

    r89c10a9 r586feb7  
    7474    <filename>configparms</filename> to adjust instalation paths:</para>
    7575
    76 <screen os="g"><userinput>echo "install_root=${LFS}" &gt; configparms</userinput></screen>
     76<screen os="g"><userinput>echo "install_root=${CLFS}" &gt; configparms</userinput></screen>
    7777
    7878    <para os="h">Prepare Glibc for compilation:</para>
    7979
    80 <screen os="i"><userinput>BUILD_CC="gcc" CC="${LFS_TARGET}-gcc" \
    81     AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
     80<screen os="i"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
     81    AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
    8282    ../glibc-&glibc-version;/configure --prefix=/usr --libexecdir=/usr/lib/glibc \
    83     --host=${LFS_TARGET} --build=${LFS_HOST} \
     83    --host=${CLFS_TARGET} --build=${CLFS_HOST} \
    8484    --disable-profile --enable-add-ons \
    8585    --with-tls --enable-kernel=2.6.0 --with-__thread \
    86     --with-binutils=${LFS}/cross-tools/bin --with-headers=${LFS}/usr/include \
     86    --with-binutils=${CLFS}/cross-tools/bin --with-headers=${CLFS}/usr/include \
    8787    --cache-file=config.cache</userinput></screen>
    8888
     
    9999
    100100      <varlistentry os="j2">
    101         <term><parameter>CC="${LFS_TARGET}-gcc"</parameter></term>
     101        <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term>
    102102        <listitem>
    103103          <para>This forces Glibc to use the GCC compiler that we made for our target
     
    107107
    108108      <varlistentry os="j3">
    109         <term><parameter>AR="${LFS_TARGET}-ar"</parameter></term>
     109        <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term>
    110110        <listitem>
    111111          <para>This forces Glibc to use the <command>ar</command> utility
     
    115115
    116116      <varlistentry os="j4">
    117         <term><parameter>RANLIB="${LFS_TARGET}-ranlib"</parameter></term>
     117        <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term>
    118118        <listitem>
    119119          <para>This forces Glibc to use the <command>ranlib</command> utility
     
    154154
    155155      <varlistentry os="j9">
    156         <term><parameter>--with-binutils=${LFS}/cross-tools/bin</parameter></term>
     156        <term><parameter>--with-binutils=${CLFS}/cross-tools/bin</parameter></term>
    157157        <listitem>
    158158          <para>This tells Glibc to use the Binutils that are specific to
     
    214214    successfully:</para>
    215215
    216 <screen role="nodump"><userinput>mkdir -pv ${LFS}/usr/lib/locale
     216<screen role="nodump"><userinput>mkdir -pv ${CLFS}/usr/lib/locale
    217217localedef -i de_DE -f ISO-8859-1 de_DE
    218218localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
     
    263263    the following:</para>
    264264
    265 <screen><userinput>cat &gt; ${LFS}/etc/nsswitch.conf &lt;&lt; "EOF"
     265<screen><userinput>cat &gt; ${CLFS}/etc/nsswitch.conf &lt;&lt; "EOF"
    266266<literal># Begin /etc/nsswitch.conf
    267267
     
    283283    <para>To determine the local time zone, run the following script:</para>
    284284
    285 <screen role="nodump"><userinput>${LFS}/usr/bin/tzselect</userinput></screen>
     285<screen role="nodump"><userinput>${CLFS}/usr/bin/tzselect</userinput></screen>
    286286
    287287    <para>After answering a few questions about the location, the script will
     
    290290    <filename>/etc/localtime</filename> file by running:</para>
    291291
    292 <screen><userinput>cp -v --remove-destination ${LFS}/usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
    293     ${LFS}/etc/localtime</userinput></screen>
     292<screen><userinput>cp -v --remove-destination ${CLFS}/usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
     293    ${CLFS}/etc/localtime</userinput></screen>
    294294
    295295    <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone
     
    337337    following:</para>
    338338
    339 <screen><userinput>cat &gt; ${LFS}/etc/ld.so.conf &lt;&lt; "EOF"
     339<screen><userinput>cat &gt; ${CLFS}/etc/ld.so.conf &lt;&lt; "EOF"
    340340<literal># Begin /etc/ld.so.conf
    341341
  • BOOK/final-preps/aboutclfs.xml

    r89c10a9 r586feb7  
    99  <?dbhtml filename="aboutlfs.html"?>
    1010
    11   <title>About $LFS</title>
     11  <title>About $CLFS</title>
    1212
    1313  <para>Throughout this book, the environment variable <envar>LFS</envar> will
     
    1616  Check that the <envar>LFS</envar> variable is set up properly with:</para>
    1717
    18 <screen><userinput>echo $LFS</userinput></screen>
     18<screen><userinput>echo $CLFS</userinput></screen>
    1919
    2020  <para>Make sure the output shows the path to the CLFS partition's mount
     
    2323  variable can be set with:</para>
    2424
    25 <screen><userinput>export LFS=/mnt/lfs</userinput></screen>
     25<screen><userinput>export CLFS=/mnt/lfs</userinput></screen>
    2626
    2727  <para>Having this variable set is beneficial in that commands such as
    28   <command>install -d $LFS/tools</command> can be typed literally. The shell
    29   will automatically replace <quote>$LFS</quote> with
     28  <command>install -d $CLFS/tools</command> can be typed literally. The shell
     29  will automatically replace <quote>$CLFS</quote> with
    3030  <quote>/mnt/lfs</quote> (or whatever the variable was set to) when it
    3131  processes the command line.</para>
    3232
    33   <para>If you haven't created the <filename class="directory">$LFS</filename>
     33  <para>If you haven't created the <filename class="directory">$CLFS</filename>
    3434  directory, do so at this time by issuing the following commands:</para>
    3535
    36 <screen><userinput>install -dv $LFS</userinput></screen>
     36<screen><userinput>install -dv $CLFS</userinput></screen>
    3737
    38   <para>Do not forget to check that <envar>$LFS</envar> is set whenever
     38  <para>Do not forget to check that <envar>$CLFS</envar> is set whenever
    3939  you leave and reenter the current working environment (as when doing a
    4040  <quote>su</quote> to <systemitem class="username">root</systemitem> or
  • BOOK/final-preps/addinguser.xml

    r89c10a9 r586feb7  
    99  <?dbhtml filename="addinguser.html"?>
    1010
    11   <title>Adding the LFS User</title>
     11  <title>Adding the CLFS User</title>
    1212
    1313  <para>When logged in as user <systemitem class="username">root</systemitem>,
     
    1616  You could use your own user name, but to make it easier to set up a clean
    1717  work environment, create a new user called <systemitem
    18   class="username">lfs</systemitem> as a member of a new group (also named
    19   <systemitem class="groupname">lfs</systemitem>) and use this user during
     18  class="username">clfs</systemitem> as a member of a new group (also named
     19  <systemitem class="groupname">clfs</systemitem>) and use this user during
    2020  the installation process. As <systemitem class="username">root</systemitem>,
    2121  issue the following commands to add the new user:</para>
    2222
    23 <screen><userinput>groupadd lfs
    24 useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput></screen>
     23<screen><userinput>groupadd clfs
     24useradd -s /bin/bash -g clfs -m -k /dev/null clfs</userinput></screen>
    2525
    2626  <variablelist>
     
    3131      <listitem>
    3232        <para>This makes <command>bash</command> the default shell for
    33         user <systemitem class="username">lfs</systemitem>.</para>
     33        user <systemitem class="username">clfs</systemitem>.</para>
    3434      </listitem>
    3535    </varlistentry>
    3636
    3737    <varlistentry>
    38       <term><parameter>-g lfs</parameter></term>
     38      <term><parameter>-g clfs</parameter></term>
    3939      <listitem>
    40         <para>This option adds user <systemitem class="username">lfs</systemitem>
    41         to group <systemitem class="groupname">lfs</systemitem>.</para>
     40        <para>This option adds user <systemitem class="username">clfs</systemitem>
     41        to group <systemitem class="groupname">clfs</systemitem>.</para>
    4242      </listitem>
    4343    </varlistentry>
     
    4747      <listitem>
    4848        <para>This creates a home directory for <systemitem
    49         class="username">lfs</systemitem>.</para>
     49        class="username">clfs</systemitem>.</para>
    5050      </listitem>
    5151    </varlistentry>
     
    6969  </variablelist>
    7070
    71   <para>To log in as <systemitem class="username">lfs</systemitem> (as
    72   opposed to switching to user <systemitem class="username">lfs</systemitem>
     71  <para>To log in as <systemitem class="username">clfs</systemitem> (as
     72  opposed to switching to user <systemitem class="username">clfs</systemitem>
    7373  when logged in as <systemitem class="username">root</systemitem>, which
    74   does not require the <systemitem class="username">lfs</systemitem> user
    75   to have a password), give <systemitem class="username">lfs</systemitem>
     74  does not require the <systemitem class="username">clfs</systemitem> user
     75  to have a password), give <systemitem class="username">clfs</systemitem>
    7676  a password:</para>
    7777
    78 <screen><userinput>passwd lfs</userinput></screen>
     78<screen><userinput>passwd clfs</userinput></screen>
    7979
    80   <para>Grant <systemitem class="username">lfs</systemitem> full access to
    81   <filename class="directory">$LFS</filename> by making <systemitem
     80  <para>Grant <systemitem class="username">clfs</systemitem> full access to
     81  <filename class="directory">$CLFS</filename> by making <systemitem
    8282  class="username">lfs</systemitem> the directory's owner:</para>
    8383
    84 <screen><userinput>chown -Rv lfs $LFS</userinput></screen>
     84<screen><userinput>chown -Rv clfs $CLFS</userinput></screen>
    8585
    86   <para>Next, login as user <systemitem class="username">lfs</systemitem>.
     86  <para>Next, login as user <systemitem class="username">clfs</systemitem>.
    8787  This can be done via a virtual console, through a display manager, or
    8888  with the following substitute user command:</para>
    8989
    90 <screen><userinput>su - lfs</userinput></screen>
     90<screen><userinput>su - clfs</userinput></screen>
    9191
    9292  <para>The <quote><parameter>-</parameter></quote> instructs
  • BOOK/final-preps/chapter.xml

    r89c10a9 r586feb7  
    1212  <title>Final Preparations</title>
    1313
    14   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="aboutlfs.xml"/>
     14  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="aboutclfs.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="addinguser.xml"/>
    1616  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="settingenviron.xml"/>
  • BOOK/final-preps/creatingdirs.xml

    r89c10a9 r586feb7  
    1414  standard directory tree by issuing the following commands:</para>
    1515
    16 <screen><userinput>mkdir -pv ${LFS}/{bin,boot,dev,etc/opt,home,lib,mnt,opt}
    17 mkdir -pv ${LFS}/{proc,media/{floppy,cdrom},sbin,srv,sys,var}
    18 install -dv -m 0750 ${LFS}/root
    19 install -dv -m 1777 ${LFS}{/var,}/tmp
    20 mkdir -pv ${LFS}/usr/{,local/}{bin,include,lib,sbin,src}
    21 mkdir -pv ${LFS}/usr/{,local/}share/{doc,info,locale,man}
    22 mkdir -v  ${LFS}/usr/{,local/}share/{misc,terminfo,zoneinfo}
    23 mkdir -pv ${LFS}/usr/{,local/}share/man/man{1..8}
    24 for dir in ${LFS}/usr{,/local}; do
     16<screen><userinput>mkdir -pv ${CLFS}/{bin,boot,dev,etc/opt,home,lib,mnt,opt}
     17mkdir -pv ${CLFS}/{proc,media/{floppy,cdrom},sbin,srv,sys,var}
     18install -dv -m 0750 ${CLFS}/root
     19install -dv -m 1777 ${CLFS}{/var,}/tmp
     20mkdir -pv ${CLFS}/usr/{,local/}{bin,include,lib,sbin,src}
     21mkdir -pv ${CLFS}/usr/{,local/}share/{doc,info,locale,man}
     22mkdir -v  ${CLFS}/usr/{,local/}share/{misc,terminfo,zoneinfo}
     23mkdir -pv ${CLFS}/usr/{,local/}share/man/man{1..8}
     24for dir in ${CLFS}/usr{,/local}; do
    2525  ln -sv share/{man,doc,info} $dir
    2626done
    27 mkdir -v ${LFS}/var/{lock,log,mail,run,spool}
    28 mkdir -pv ${LFS}/var/{opt,cache,lib/{misc,locate},local}</userinput></screen>
     27mkdir -v ${CLFS}/var/{lock,log,mail,run,spool}
     28mkdir -pv ${CLFS}/var/{opt,cache,lib/{misc,locate},local}</userinput></screen>
    2929
    3030  <para>Directories are, by default, created with permission mode 755, but
  • BOOK/final-preps/creatingfiles.xml

    r89c10a9 r586feb7  
    2424
    2525  <indexterm zone="ch-final-preps-creatingfiles">
    26     <primary sortas="e-${LFS}/var/log/btmp">/var/log/btmp</primary>
     26    <primary sortas="e-${CLFS}/var/log/btmp">/var/log/btmp</primary>
    2727  </indexterm>
    2828
     
    4141  utilities that expect the presence of <filename>/etc/mtab</filename>:</para>
    4242
    43 <screen><userinput>touch ${LFS}/etc/mtab</userinput></screen>
     43<screen><userinput>touch ${CLFS}/etc/mtab</userinput></screen>
    4444
    4545  <para>In order for user <systemitem class="username">root</systemitem> to be
     
    5151  command:</para>
    5252
    53 <screen><userinput>cat &gt; ${LFS}/etc/passwd &lt;&lt; "EOF"
     53<screen><userinput>cat &gt; ${CLFS}/etc/passwd &lt;&lt; "EOF"
    5454<literal>root:x:0:0:root:/root:/bin/bash</literal>
    5555EOF</userinput></screen>
     
    5858  (the <quote>x</quote> used here is just a placeholder) will be set later.</para>
    5959
     60  <variablelist os="b">TO BE WRITTEN: more text describing additional users
     61 
     62    <title>Additional users you may want to add:</title>
     63
     64    <varlistentry>
     65      <term><literal>bin:x:1:1:bin:/bin:/bin/false</literal></term>
     66      <listitem>
     67        <para>To be written</para>
     68      </listitem>
     69    </varlistentry>
     70    <varlistentry>
     71      <term><literal>daemon:x:2:6:daemon:/sbin:/bin/false</literal></term>
     72      <listitem>
     73        <para>To be written</para>
     74      </listitem>
     75    </varlistentry>
     76    <varlistentry>
     77      <term><literal>adm:x:3:16:adm:/var/adm:/bin/false</literal></term>
     78      <listitem>
     79        <para>To be written</para>
     80      </listitem>
     81    </varlistentry>
     82    <varlistentry>
     83      <term><literal>lp:x:10:9:lp:/var/spool/lp:/bin/false</literal></term>
     84      <listitem>
     85        <para>To be written</para>
     86      </listitem>
     87    </varlistentry>
     88    <varlistentry>
     89      <term><literal>mail:x:30:30:mail:/var/mail:/bin/false</literal></term>
     90      <listitem>
     91        <para>To be written</para>
     92      </listitem>
     93    </varlistentry>
     94    <varlistentry>
     95      <term><literal>news:x:31:31:news:/var/spool/news:/bin/false</literal></term>
     96      <listitem>
     97        <para>To be written</para>
     98      </listitem>
     99    </varlistentry>
     100    <varlistentry>
     101      <term><literal>uucp:x:32:32:uucp:/var/spool/uucp:/bin/false</literal></term>
     102      <listitem>
     103        <para>To be written</para>
     104      </listitem>
     105    </varlistentry>
     106    <varlistentry>
     107      <term><literal>operator:x:50:0:operator:/root:/bin/bash</literal></term>
     108      <listitem>
     109        <para>To be written</para>
     110      </listitem>
     111    </varlistentry>
     112    <varlistentry>
     113      <term><literal>postmaster:x:51:30:postmaster:/var/spool/mail:/bin/false</literal></term>
     114      <listitem>
     115        <para>To be written</para>
     116      </listitem>
     117    </varlistentry>
     118    <varlistentry>
     119      <term><literal>nobody:x:65534:65534:nobody:/:/bin/false</literal></term>
     120      <listitem>
     121        <para>To be written</para>
     122      </listitem>
     123    </varlistentry>
     124  </variablelist>
     125
    60126  <para>Create the <filename>/etc/group</filename> file by running the following
    61127  command:</para>
    62128
    63 <screen><userinput>cat &gt; ${LFS}/etc/group &lt;&lt; "EOF"
     129<screen><userinput>cat &gt; ${CLFS}/etc/group &lt;&lt; "EOF"
    64130<literal>root:x:0:
    65131bin:x:1:
     
    80146EOF</userinput></screen>
    81147
     148  <variablelist os="c">
     149 
     150    <title>Additional groups you may want to add</title>
     151
     152    <varlistentry>
     153      <term><literal>adm:x:16:root,adm,daemon</literal></term>
     154      <listitem>
     155        <para>To be written</para>
     156      </listitem>
     157    </varlistentry>
     158    <varlistentry>
     159      <term><literal>console:x:17:</literal></term>
     160      <listitem>
     161        <para>To be written</para>
     162      </listitem>
     163    </varlistentry>
     164    <varlistentry>
     165      <term><literal>cdrw:x:18:</literal></term>
     166      <listitem>
     167        <para>To be written</para>
     168      </listitem>
     169    </varlistentry>
     170    <varlistentry>
     171      <term><literal>mail:x:30:mail</literal></term>
     172      <listitem>
     173        <para>Used by MTAs (Mail Transport Agents)</para>
     174      </listitem>
     175    </varlistentry>
     176    <varlistentry>
     177      <term><literal>news:x:31:news</literal></term>
     178      <listitem>
     179        <para>To be written</para>
     180      </listitem>
     181    </varlistentry>
     182    <varlistentry>
     183      <term><literal>uucp:x:32:uucp</literal></term>
     184      <listitem>
     185        <para>To be written</para>
     186      </listitem>
     187    </varlistentry>
     188    <varlistentry>
     189      <term><literal>users:x:100:</literal></term>
     190      <listitem>
     191        <para>To be written</para>
     192      </listitem>
     193    </varlistentry>
     194    <varlistentry>
     195      <term><literal>nogroup:x:65533:</literal></term>
     196      <listitem>
     197        <para>To be written</para>
     198      </listitem>
     199    </varlistentry>
     200    <varlistentry>
     201      <term><literal>nobody:x:65534:</literal></term>
     202      <listitem>
     203        <para>To be written</para>
     204      </listitem>
     205    </varlistentry>
     206  </variablelist>
     207
    82208  <para>The created groups are not part of any standard&mdash;they are groups
    83209  decided on in part by the requirements of the Udev configuration in this
     
    98224  proper permissions:</para>
    99225
    100 <screen><userinput>touch ${LFS}/var/run/utmp ${LFS}/var/log/{btmp,lastlog,wtmp}
    101 chmod -v 664 ${LFS}/var/run/utmp ${LFS}/var/log/lastlog</userinput></screen>
     226<screen><userinput>touch ${CLFS}/var/run/utmp ${CLFS}/var/log/{btmp,lastlog,wtmp}
     227chmod -v 664 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen>
    102228
    103229  <para>The <filename>/var/run/utmp</filename> file records the users
  • BOOK/final-preps/settingenviron.xml

    r89c10a9 r586feb7  
    1313  <para os="a">Set up a good working environment by creating two new startup
    1414  files for the <command>bash</command> shell. While logged in as user
    15   <systemitem class="username">lfs</systemitem>, issue the following
     15  <systemitem class="username">clfs</systemitem>, issue the following
    1616  command to create a new <filename>.bash_profile</filename>:</para>
    1717
     
    2020EOF</userinput></screen>
    2121
    22   <para os="c">When logged on as user <systemitem class="username">lfs</systemitem>,
     22  <para os="c">When logged on as user <systemitem class="username">clfs</systemitem>,
    2323  the initial shell is usually a <emphasis>login</emphasis> shell which
    2424  reads the <filename>/etc/profile</filename> of the host (probably
     
    4242<literal>set +h
    4343umask 022
    44 LFS=/mnt/lfs
     44CLFS=/mnt/clfs
    4545LC_ALL=POSIX
    46 PATH=${LFS}/cross-tools/bin:/bin:/usr/bin
     46PATH=${CLFS}/cross-tools/bin:/bin:/usr/bin
    4747export LFS LC_ALL PATH</literal>
    4848EOF</userinput></screen>
     
    5656  the shell will always search the <envar>PATH</envar> when a program is to
    5757  be run. As such, the shell will find the newly compiled tools in
    58   <filename class="directory">$LFS${LFS}/cross-tools</filename> as soon as they are
     58  <filename class="directory">$CLFS${CLFS}/cross-tools</filename> as soon as they are
    5959  available without remembering a previous version of the same program in a
    6060  different location.</para>
     
    6666  mode 644 and directories with mode 755).</para>
    6767
    68   <para os="h">The <envar>LFS</envar> variable should be set to the
     68  <para os="h">The <envar>CLFS</envar> variable should be set to the
    6969  chosen mount point.</para>
    7070
     
    8080  the chroot environment.</para>
    8181
    82   <para os="j">By putting <filename class="directory">${LFS}/cross-tools/bin</filename>
     82  <para os="j">By putting <filename class="directory">${CLFS}/cross-tools/bin</filename>
    8383  at the beginning of the <envar>PATH</envar>, the cross-compiler
    8484  built in <xref linkend="chapter-cross-tools"/> will be picked up by
  • BOOK/final-system/arm/perl.xml

    r89c10a9 r586feb7  
    4646    xpointer="xpointer(//*[@os='c'])"/>
    4747
    48 <screen os="d"><userinput>make ARCH=arm CROSS_COMPILE="${LFS_TARGET}-"</userinput></screen>
     48<screen os="d"><userinput>make ARCH=arm CROSS_COMPILE="${CLFS_TARGET}-"</userinput></screen>
    4949
    5050    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  • BOOK/final-system/common/autoconf.xml

    r89c10a9 r586feb7  
    2828    <para os="a">Prepare Autoconf for compilation:</para>
    2929
    30 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     30<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3131
    3232    <para os="c">Compile the package:</para>
     
    3636    <para os="e">Install the package:</para>
    3737
    38 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     38<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    3939
    4040  </sect2>
  • BOOK/final-system/common/automake.xml

    r89c10a9 r586feb7  
    2828    <para os="a">Prepare Automake for compilation:</para>
    2929
    30 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     30<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3131
    3232    <para os="c">Compile the package:</para>
     
    3636    <para os="e">Install the package:</para>
    3737
    38 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     38<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    3939
    4040  </sect2>
  • BOOK/final-system/common/bash.xml

    r89c10a9 r586feb7  
    4747
    4848<screen os="f"><userinput>./configure --prefix=/usr --bindir=/bin \
    49     --host=${LFS_TARGET} --cache-file=config.cache \
     49    --host=${CLFS_TARGET} --cache-file=config.cache \
    5050    --without-bash-malloc --with-installed-readline</userinput></screen>
    5151
     
    7070    <para os="j">Install the package:</para>
    7171
    72 <screen os="k"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     72<screen os="k"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    7373
    7474    <para os="l">Create /bin/sh:</para>
    7575
    76 <screen os="m" role="nodump"><userinput>ln -sv bash ${LFS}/bin/sh</userinput></screen>
     76<screen os="m" role="nodump"><userinput>ln -sv bash ${CLFS}/bin/sh</userinput></screen>
    7777
    7878  </sect2>
  • BOOK/final-system/common/binutils.xml

    r89c10a9 r586feb7  
    4040
    4141<screen os="d"><userinput>../binutils-&binutils-version;/configure --prefix=/usr \
    42     --build=${LFS_HOST} --host=${LFS_TARGET} \
    43     --target=${LFS_TARGET} --enable-shared</userinput></screen>
     42    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
     43    --target=${CLFS_TARGET} --enable-shared</userinput></screen>
    4444
    4545    <para os="e">Compile the package:</para>
     
    7676    <para os="j">Install the package:</para>
    7777
    78 <screen os="k"><userinput>make DESTDIR=${LFS} tooldir=/usr install</userinput></screen>
     78<screen os="k"><userinput>make DESTDIR=${CLFS} tooldir=/usr install</userinput></screen>
    7979
    8080    <para os="l">Install the <filename class="headerfile">libiberty</filename> header
    8181    file that is needed by some packages:</para>
    8282
    83 <screen os="m"><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h ${LFS}/usr/include</userinput></screen>
     83<screen os="m"><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h ${CLFS}/usr/include</userinput></screen>
    8484
    8585  </sect2>
  • BOOK/final-system/common/bison.xml

    r89c10a9 r586feb7  
    2727    <para os="a">Prepare Bison for compilation:</para>
    2828
    29 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     29<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3030
    3131    <para os="b1">The configure system causes bison to be built without support
     
    4242    <para os="e">Install the package:</para>
    4343
    44 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     44<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    4545
    4646  </sect2>
  • BOOK/final-system/common/bzip2.xml

    r89c10a9 r586feb7  
    6868    <note os="f">
    6969    <para>If reinstalling Bzip2, perform
    70     <userinput>rm -vf ${LFS}/usr/bin/bz*</userinput> first, otherwise the
    71     following <command>make PREFIX=${LFS}/usr install</command> will fail.</para>
     70    <userinput>rm -vf ${CLFS}/usr/bin/bz*</userinput> first, otherwise the
     71    following <command>make PREFIX=${CLFS}/usr install</command> will fail.</para>
    7272    </note>
    7373
    7474    <para os="g">Install the programs:</para>
    7575
    76 <screen os="h"><userinput>make PREFIX=${LFS}/usr install</userinput></screen>
     76<screen os="h"><userinput>make PREFIX=${CLFS}/usr install</userinput></screen>
    7777
    7878    <para os="i">Install the shared <command>bzip2</command> binary into the
     
    8080    some necessary symbolic links, and clean up:</para>
    8181
    82 <screen os="j"><userinput>cp -v bzip2-shared ${LFS}/bin/bzip2
    83 cp -av libbz2.so* ${LFS}/lib
    84 ln -sv ../../lib/libbz2.so.1.0 ${LFS}/usr/lib/libbz2.so
    85 rm -v ${LFS}/usr/bin/{bunzip2,bzcat,bzip2}
    86 ln -sv bzip2 ${LFS}/bin/bunzip2
    87 ln -sv bzip2 ${LFS}/bin/bzcatt</userinput></screen>
     82<screen os="j"><userinput>cp -v bzip2-shared ${CLFS}/bin/bzip2
     83cp -av libbz2.so* ${CLFS}/lib
     84ln -sv ../../lib/libbz2.so.1.0 ${CLFS}/usr/lib/libbz2.so
     85rm -v ${CLFS}/usr/bin/{bunzip2,bzcat,bzip2}
     86ln -sv bzip2 ${CLFS}/bin/bunzip2
     87ln -sv bzip2 ${CLFS}/bin/bzcatt</userinput></screen>
    8888
    8989  </sect2>
  • BOOK/final-system/common/coreutils.xml

    r89c10a9 r586feb7  
    4040
    4141<screen os="d"><userinput>./configure --prefix=/usr --cache-file=config.cache \
    42    --build=${LFS_HOST} --host=${LFS_TARGET}</userinput></screen>
     42   --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen>
    4343
    4444    <para os="e">Compile the package:</para>
     
    4848    <para os="g">Install the package:</para>
    4949
    50 <screen os="h"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     50<screen os="h"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    5151
    5252    <para os="i">Move programs to the locations specified by the FHS:</para>
    5353
    54 <screen os="j"><userinput>mv -v ${LFS}/usr/bin/{[,basename,cat,chgrp,chmod,chown,cp} ${LFS}/bin
    55 mv -v ${LFS}/usr/bin/{date,dd,df,echo,false,hostname,install,ln} ${LFS}/bin
    56 mv -v ${LFS}/usr/bin/{ls,mkdir,mknod,mv,nice,pwd,readlink,rm,rmdir,sync} ${LFS}/bin
    57 mv -v ${LFS}/usr/bin/{stty,test,touch,true,uname} ${LFS}/bin
    58 mv -v ${LFS}/usr/bin/chroot ${LFS}/usr/sbin
    59 ln -svf ../../bin/install ${LFS}/usr/bin</userinput></screen>
    60 
    61     <para os="k">Some of the scripts in the LFS-Bootscripts package depend on
    62     <command>head</command> and <command>sleep</command>. As <filename
     54<screen os="j"><userinput>mv -v ${CLFS}/usr/bin/{cat,chgrp,chmod,chown,cp,date} ${CLFS}/bin
     55mv -v ${CLFS}/usr/bin/{dd,df,echo,false,hostname,ln,ls,mkdir,mknod} ${CLFS}/bin
     56mv -v ${CLFS}/usr/bin/{mv,pwd,rm,rmdir,stty,true,uname} ${CLFS}/bin
     57mv -v ${CLFS}/usr/bin/chroot ${CLFS}/usr/sbin</userinput></screen>
     58
     59    <para os="k">Other Coreutils programs are used by some of the scripts
     60    in the CLFS-Bootscripts pacakge. As <filename
    6361    class="directory">/usr</filename> may not be available during the early
    6462    stages of booting, those binaries need to be on the root partition:</para>
    6563
    66 <screen os="l"><userinput>mv -v ${LFS}/usr/bin/{head,sleep} ${LFS}/bin</userinput></screen>
     64<screen os="l"><userinput>mv -v ${CLFS}/usr/bin/{[,basename,head,install,nice} ${CLFS}/bin
     65mv -v ${CLFS}/usr/bin/{readlink,sleep,sync,test,touch} ${CLFS}/bin
     66ln -svf ../../bin/install ${CLFS}/usr/bin</userinput></screen>
    6767
    6868  </sect2>
  • BOOK/final-system/common/diffutils.xml

    r89c10a9 r586feb7  
    2828    <para os="a">Prepare Diffutils for compilation:</para>
    2929
    30 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     30<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3131
    3232    <para os="c">Compile the package:</para>
     
    3636    <para os="e">Install the package:</para>
    3737
    38 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     38<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    3939
    4040  </sect2>
  • BOOK/final-system/common/e2fsprogs.xml

    r89c10a9 r586feb7  
    3838<screen os="d"><userinput>../configure --prefix=/usr --with-root-prefix="" \
    3939    --enable-elf-shlibs --disable-evms \
    40     --host=${LFS_TARGET}</userinput></screen>
     40    --host=${CLFS_TARGET}</userinput></screen>
    4141
    4242    <variablelist os="e">
     
    8585    <para os="h">Install the binaries and documentation:</para>
    8686
    87 <screen os="i"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     87<screen os="i"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    8888
    8989    <para os="j">Install the shared libraries:</para>
    9090
    91 <screen os="k"><userinput>make DESTDIR=${LFS} install-libs</userinput></screen>
     91<screen os="k"><userinput>make DESTDIR=${CLFS} install-libs</userinput></screen>
    9292
    9393  </sect2>
  • BOOK/final-system/common/file.xml

    r89c10a9 r586feb7  
    2828    <para os="a">Prepare File for compilation:</para>
    2929
    30 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     30<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3131
    3232    <para os="c">Compile the package:</para>
     
    3636    <para os="e">Install the package:</para>
    3737
    38 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     38<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    3939
    4040  </sect2>
  • BOOK/final-system/common/findutils.xml

    r89c10a9 r586feb7  
    3030    <para os="a">Prepare Findutils for compilation:</para>
    3131
    32 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET} \
     32<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET} \
    3333    --libexecdir=/usr/lib/locate --localstatedir=/var/lib/locate</userinput></screen>
    3434
     
    5353    <para os="f">Install the package:</para>
    5454
    55 <screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     55<screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    5656
    5757  </sect2>
  • BOOK/final-system/common/flex.xml

    r89c10a9 r586feb7  
    3333    <para os="c">Prepare Flex for compilation:</para>
    3434
    35 <screen os="d"><userinput>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     35<screen os="d"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3636
    3737    <para os="e">Compile the package:</para>
     
    4141    <para os="g">Install the package:</para>
    4242
    43 <screen os="h"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     43<screen os="h"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    4444
    4545    <para os="i">There are some packages that expect to find the
     
    4848    this:</para>
    4949
    50 <screen os="j"><userinput>ln -sv libfl.a ${LFS}/usr/lib/libl.a</userinput></screen>
     50<screen os="j"><userinput>ln -sv libfl.a ${CLFS}/usr/lib/libl.a</userinput></screen>
    5151
    5252    <para os="k">A few programs do not know about <command>flex</command> yet and
     
    5656    mode:</para>
    5757
    58 <screen os="l"><userinput>cat &gt; ${LFS}/usr/bin/lex &lt;&lt; "EOF"
     58<screen os="l"><userinput>cat &gt; ${CLFS}/usr/bin/lex &lt;&lt; "EOF"
    5959<literal>#!/bin/sh
    6060# Begin /usr/bin/lex
     
    6464# End /usr/bin/lex</literal>
    6565EOF
    66 chmod -v 755 ${LFS}/usr/bin/lex</userinput></screen>
     66chmod -v 755 ${CLFS}/usr/bin/lex</userinput></screen>
    6767
    6868  </sect2>
  • BOOK/final-system/common/gawk.xml

    r89c10a9 r586feb7  
    3434
    3535<screen os="d"><userinput>./configure --prefix=/usr --libexecdir=/usr/lib \
    36     --build=${LFS_HOST} --host=${LFS_TARGET}</userinput></screen>
     36    --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen>
    3737
    3838    <para os="e">Compile the package:</para>
     
    4242    <para os="g">Install the package:</para>
    4343
    44 <screen os="h"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     44<screen os="h"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    4545
    4646  </sect2>
  • BOOK/final-system/common/gcc.xml

    r89c10a9 r586feb7  
    6262
    6363<screen os="f"><userinput>../gcc-&gcc-version;/configure --prefix=/usr --libexecdir=/usr/lib \
    64     --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \
     64    --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \
    6565    --enable-shared --enable-threads=posix --enable-__cxa_atexit \
    6666    --enable-c99 --enable-long-long --enable-clocale=gnu \
     
    7373    <para os="i">Install the package:</para>
    7474
    75 <screen os="j"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     75<screen os="j"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    7676
    7777    <para os="k">Some packages expect the C preprocessor to be installed in the
     
    7979    To support those packages, create this symlink:</para>
    8080
    81 <screen os="l"><userinput>ln -sv ../usr/bin/cpp ${LFS}/lib</userinput></screen>
     81<screen os="l"><userinput>ln -sv ../usr/bin/cpp ${CLFS}/lib</userinput></screen>
    8282
    8383    <para os="m">Many packages use the name <command>cc</command> to call the C
    8484    compiler. To satisfy those packages, create a symlink:</para>
    8585
    86 <screen os="o"><userinput>ln -sv gcc ${LFS}/usr/bin/cc</userinput></screen>
     86<screen os="o"><userinput>ln -sv gcc ${CLFS}/usr/bin/cc</userinput></screen>
    8787
    8888  </sect2>
  • BOOK/final-system/common/gettext.xml

    r89c10a9 r586feb7  
    3030    <para os="a">Prepare Gettext for compilation:</para>
    3131
    32 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     32<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3333
    3434    <para os="c">Compile the package:</para>
     
    3838    <para os="e">Install the package:</para>
    3939
    40 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     40<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    4141
    4242  </sect2>
     
    5454        msgexec, msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq,
    5555        ngettext, and xgettext</seg>
    56         <seg>libasprintf.[a,so], libgettextlib,so, libgettextpo.[a,so], and
    57         libgettextsrc,so</seg>
     56        <seg>libasprintf.[a,so], libgettextlib.so, libgettextpo.[a,so], and
     57        libgettextsrc.so</seg>
    5858      </seglistitem>
    5959    </segmentedlist>
  • BOOK/final-system/common/grep.xml

    r89c10a9 r586feb7  
    2929
    3030<screen os="b"><userinput>./configure --prefix=/usr --bindir=/bin \
    31     --host=${LFS_TARGET} --disable-perl-regexp</userinput></screen>
     31    --host=${CLFS_TARGET} --disable-perl-regexp</userinput></screen>
    3232
    3333    <para os="c">Compile the package:</para>
     
    3737    <para os="e">Install the package:</para>
    3838
    39 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     39<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    4040
    4141  </sect2>
  • BOOK/final-system/common/groff.xml

    r89c10a9 r586feb7  
    3333    <para os="b">Prepare Groff for compilation:</para>
    3434
    35 <screen os="c"><userinput>PAGE=<replaceable>[paper_size]</replaceable> ./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     35<screen os="c"><userinput>PAGE=<replaceable>[paper_size]</replaceable> ./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3636
    3737    <para os="d">Compile the package:</para>
     
    4141    <para os="f">Install the package:</para>
    4242
    43 <screen os="g"><userinput>make prefix=${LFS}/usr install</userinput></screen>
     43<screen os="g"><userinput>make prefix=${CLFS}/usr install</userinput></screen>
    4444
    4545    <para os="h">Some documentation programs, such as <command>xman</command>,
    4646    will not work properly without the following symlinks:</para>
    4747
    48 <screen os="i"><userinput>ln -sv soelim ${LFS}/usr/bin/zsoelim
    49 ln -sv eqn ${LFS}/usr/bin/geqn
    50 ln -sv tbl ${LFS}/usr/bin/gtbl</userinput></screen>
     48<screen os="i"><userinput>ln -sv soelim ${CLFS}/usr/bin/zsoelim
     49ln -sv eqn ${CLFS}/usr/bin/geqn
     50ln -sv tbl ${CLFS}/usr/bin/gtbl</userinput></screen>
    5151
    5252  </sect2>
  • BOOK/final-system/common/gzip.xml

    r89c10a9 r586feb7  
    3535    <para os="a">Prepare Gzip for compilation:</para>
    3636
    37 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     37<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3838
    3939    <para os="c">The <command>gzexe</command> script has the location of the
     
    5252    <para os="g">Install the package:</para>
    5353
    54 <screen os="h"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     54<screen os="h"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    5555
    5656    <para os="i">Move the <command>gzip</command> program to the <filename
     
    5858    used symlinks to it:</para>
    5959
    60 <screen os="j"><userinput>mv -v ${LFS}/usr/bin/gzip ${LFS}/bin
    61 rm -v ${LFS}/usr/bin/{gunzip,zcat}
    62 ln -sv gzip ${LFS}/bin/gunzip
    63 ln -sv gzip ${LFS}/bin/zcat
    64 ln -sv gzip ${LFS}/bin/compress
    65 ln -sv gunzip ${LFS}/bin/uncompress</userinput></screen>
     60<screen os="j"><userinput>mv -v ${CLFS}/usr/bin/gzip ${CLFS}/bin
     61rm -v ${CLFS}/usr/bin/{gunzip,zcat}
     62ln -sv gzip ${CLFS}/bin/gunzip
     63ln -sv gzip ${CLFS}/bin/zcat
     64ln -sv gzip ${CLFS}/bin/compress
     65ln -sv gunzip ${CLFS}/bin/uncompress</userinput></screen>
    6666
    6767  </sect2>
  • BOOK/final-system/common/iana-etc.xml

    r89c10a9 r586feb7  
    3434    <para os="c">Install the package:</para>
    3535
    36 <screen os="d"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     36<screen os="d"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    3737
    3838  </sect2>
  • BOOK/final-system/common/inetutils.xml

    r89c10a9 r586feb7  
    4545    <para os="a">Prepare Inetutils for compilation:</para>
    4646
    47 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET} \
     47<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET} \
    4848    --libexecdir=/usr/sbin --sysconfdir=/etc \
    4949    --localstatedir=/var --disable-logger \
     
    102102    <para os="f">Install the package:</para>
    103103
    104 <screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     104<screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    105105
    106106    <para os="h">Move the <command>ping</command> program to its FHS-compliant
    107107    place:</para>
    108108
    109 <screen os="i"><userinput>mv -v ${LFS}/usr/bin/ping ${LFS}/bin</userinput></screen>
     109<screen os="i"><userinput>mv -v ${CLFS}/usr/bin/ping ${CLFS}/bin</userinput></screen>
    110110
    111111  </sect2>
  • BOOK/final-system/common/iproute2.xml

    r89c10a9 r586feb7  
    6666    <para os="e">Install the package:</para>
    6767
    68 <screen os="f"><userinput>make DESTDIR=${LFS} SBINDIR=/sbin install</userinput></screen>
     68<screen os="f"><userinput>make DESTDIR=${CLFS} SBINDIR=/sbin install</userinput></screen>
    6969
    7070  </sect2>
  • BOOK/final-system/common/kbd.xml

    r89c10a9 r586feb7  
    5252    <para os="e">Install the package:</para>
    5353
    54 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     54<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    5555
    5656  </sect2>
  • BOOK/final-system/common/less.xml

    r89c10a9 r586feb7  
    2828
    2929<screen os="b"><userinput>./configure --prefix=/usr --sysconfdir=/etc \
    30     --host=${LFS_TARGET}</userinput></screen>
     30    --host=${CLFS_TARGET}</userinput></screen>
    3131
    3232    <variablelist os="c">
     
    4949    <para os="f">Install the package:</para>
    5050
    51 <screen os="g"><userinput>make prefix=${LFS}/usr install</userinput></screen>
     51<screen os="g"><userinput>make prefix=${CLFS}/usr install</userinput></screen>
    5252
    5353    <para os="h">Move less to /bin:</para>
    5454
    55 <screen os="i"><userinput>mv -v ${LFS}/usr/bin/less ${LFS}/bin</userinput></screen>
     55<screen os="i"><userinput>mv -v ${CLFS}/usr/bin/less ${CLFS}/bin</userinput></screen>
    5656
    5757  </sect2>
  • BOOK/final-system/common/libtool.xml

    r89c10a9 r586feb7  
    2929    <para os="a">Prepare Libtool for compilation:</para>
    3030
    31 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     31<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3232
    3333    <para os="c">Compile the package:</para>
     
    3737    <para os="e">Install the package:</para>
    3838
    39 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     39<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    4040
    4141  </sect2>
  • BOOK/final-system/common/m4.xml

    r89c10a9 r586feb7  
    2727    <para os="a">Prepare M4 for compilation:</para>
    2828
    29 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     29<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3030
    3131    <para os="c">Compile the package:</para>
     
    3535    <para os="e">Install the package:</para>
    3636
    37 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     37<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    3838
    3939  </sect2>
  • BOOK/final-system/common/make.xml

    r89c10a9 r586feb7  
    2727    <para os="a">Prepare Make for compilation:</para>
    2828
    29 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     29<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3030
    3131    <para os="c">Compile the package:</para>
     
    3535    <para os="e">Install the package:</para>
    3636
    37 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     37<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    3838
    3939  </sect2>
  • BOOK/final-system/common/man-pages.xml

    r89c10a9 r586feb7  
    2727    <para os="a">Install Man-pages by running:</para>
    2828
    29 <screen os="b"><userinput>make prefix=${LFS} install</userinput></screen>
     29<screen os="b"><userinput>make prefix=${CLFS} install</userinput></screen>
    3030
    3131  </sect2>
  • BOOK/final-system/common/man.xml

    r89c10a9 r586feb7  
    7777    <para os="o">Install the package:</para>
    7878
    79 <screen os="p"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     79<screen os="p"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    8080
    8181    <note os="q">
  • BOOK/final-system/common/mktemp.xml

    r89c10a9 r586feb7  
    4040    <para os="c">Prepare Mktemp for compilation:</para>
    4141
    42 <screen os="d"><userinput>./configure --prefix=/usr --with-libc  --host=${LFS_TARGET}</userinput></screen>
     42<screen os="d"><userinput>./configure --prefix=/usr --with-libc  --host=${CLFS_TARGET}</userinput></screen>
    4343
    4444    <variablelist os="e">
     
    6161    <para os="h">Install the package:</para>
    6262
    63 <screen os="i"><userinput>make prefix=${LFS}/usr install
    64 make prefix=${LFS}/usr install-tempfile</userinput></screen>
     63<screen os="i"><userinput>make prefix=${CLFS}/usr install
     64make prefix=${CLFS}/usr install-tempfile</userinput></screen>
    6565
    6666  </sect2>
  • BOOK/final-system/common/module-init-tools.xml

    r89c10a9 r586feb7  
    2828    <para os="a">Prepare Module-Init-Tools for compilation:</para>
    2929
    30 <screen os="b"><userinput>./configure --prefix=/ --enable-zlib --host=${LFS_TARGET}</userinput></screen>
     30<screen os="b"><userinput>./configure --prefix=/ --enable-zlib --host=${CLFS_TARGET}</userinput></screen>
    3131
    3232    <variablelist os="c">
     
    4949    <para os="f">Install the package:</para>
    5050
    51 <screen os="g"><userinput>make DESTDIR=${LFS} INSTALL=install install</userinput></screen>
     51<screen os="g"><userinput>make DESTDIR=${CLFS} INSTALL=install install</userinput></screen>
    5252
    5353    <variablelist os="h">
  • BOOK/final-system/common/ncurses.xml

    r89c10a9 r586feb7  
    2929
    3030<screen os="b"><userinput>./configure --prefix=/usr --libdir=/lib \
    31    --host=${LFS_TARGET} --with-shared \
     31   --host=${CLFS_TARGET} --with-shared \
    3232   --without-debug --without-ada --with-build-cc=gcc</userinput></screen>
    3333
     
    3838    <para os="e">Install the package:</para>
    3939
    40 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     40<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    4141
    4242    <para os="g">Move the Ncurses static libraries to the proper location:</para>
    4343
    44 <screen os="h"><userinput>mv -v ${LFS}/lib/lib{panel,menu,form,ncurses,ncurses++,curses}.a ${LFS}/usr/lib</userinput></screen>
     44<screen os="h"><userinput>mv -v ${CLFS}/lib/lib{panel,menu,form,ncurses,ncurses++,curses}.a ${CLFS}/usr/lib</userinput></screen>
    4545
    4646    <para os="i">Create symlinks in <filename class="directory">/usr/lib:</filename></para>
    4747
    48 <screen os="j"><userinput>rm -v ${LFS}/lib/lib{ncurses,menu,panel,form,curses}.so
    49 ln -svf ../../lib/libncurses.so.5 ${LFS}/usr/lib/libcurses.so
    50 ln -svf ../../lib/libncurses.so.5 ${LFS}/usr/lib/libncurses.so
    51 ln -svf ../../lib/libmenu.so.5 ${LFS}/usr/lib/libmenu.so
    52 ln -svf ../../lib/libpanel.so.5 ${LFS}/usr/lib/libpanel.so
    53 ln -svf ../../lib/libform.so.5 ${LFS}/usr/lib/libform.so</userinput></screen>
     48<screen os="j"><userinput>rm -v ${CLFS}/lib/lib{ncurses,menu,panel,form,curses}.so
     49ln -svf ../../lib/libncurses.so.5 ${CLFS}/usr/lib/libcurses.so
     50ln -svf ../../lib/libncurses.so.5 ${CLFS}/usr/lib/libncurses.so
     51ln -svf ../../lib/libmenu.so.5 ${CLFS}/usr/lib/libmenu.so
     52ln -svf ../../lib/libpanel.so.5 ${CLFS}/usr/lib/libpanel.so
     53ln -svf ../../lib/libform.so.5 ${CLFS}/usr/lib/libform.so</userinput></screen>
    5454
    5555    <para os="k">Give the Ncurses libraries execute permissions:</para>
    5656
    57 <screen os="l"><userinput>chmod -v 755 ${LFS}/lib/lib{panel,menu,form,ncurses}.so.&ncurses-version;</userinput></screen>
     57<screen os="l"><userinput>chmod -v 755 ${CLFS}/lib/lib{panel,menu,form,ncurses}.so.&ncurses-version;</userinput></screen>
    5858
    5959  </sect2>
  • BOOK/final-system/common/patch.xml

    r89c10a9 r586feb7  
    2929    <para os="a">Prepare Patch for compilation:</para>
    3030
    31 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     31<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3232
    3333    <para os="c">Compile the package:</para>
     
    3737    <para os="e">Install the package:</para>
    3838
    39 <screen os="f"><userinput>make prefix=${LFS}/usr install</userinput></screen>
     39<screen os="f"><userinput>make prefix=${CLFS}/usr install</userinput></screen>
    4040
    4141  </sect2>
  • BOOK/final-system/common/perl.xml

    r89c10a9 r586feb7  
    3737    <para os="c">Compile the package:</para>
    3838
    39 <screen os="d"><userinput>make ARCH= CROSS_COMPILE="${LFS_TARGET}-"</userinput></screen>
     39<screen os="d"><userinput>make ARCH= CROSS_COMPILE="${CLFS_TARGET}-"</userinput></screen>
    4040
    4141    <para os="e">Install the package:</para>
    4242
    43 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     43<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    4444
    4545  </sect2>
  • BOOK/final-system/common/procps.xml

    r89c10a9 r586feb7  
    4040    <para os="c">Install the package:</para>
    4141
    42 <screen os="d"><userinput>make DESTDIR=${LFS} lib64=lib install</userinput></screen>
     42<screen os="d"><userinput>make DESTDIR=${CLFS} lib64=lib install</userinput></screen>
    4343
    4444  </sect2>
  • BOOK/final-system/common/psmisc.xml

    r89c10a9 r586feb7  
    2828    <para os="a">Prepare Psmisc for compilation:</para>
    2929
    30 <screen os="b"><userinput>./configure --prefix=/usr --exec-prefix="" --host=${LFS_TARGET}</userinput></screen>
     30<screen os="b"><userinput>./configure --prefix=/usr --exec-prefix="" --host=${CLFS_TARGET}</userinput></screen>
    3131
    3232    <variablelist os="c">
     
    5151    <para os="f">Install the package:</para>
    5252
    53 <screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     53<screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    5454
    5555    <para os="h">There is no reason for the <command>pstree</command> and
     
    5858    class="directory">/usr/bin</filename>:</para>
    5959
    60 <screen os="i"><userinput>mv -v ${LFS}/bin/pstree* ${LFS}/usr/bin</userinput></screen>
     60<screen os="i"><userinput>mv -v ${CLFS}/bin/pstree* ${CLFS}/usr/bin</userinput></screen>
    6161
    6262    <para os="j">By default, Psmisc's <command>pidof</command> program is not installed.
     
    6666    of Psmisc by creating the following symlink:</para>
    6767
    68 <screen os="k" role="nodump"><userinput>ln -sv killall ${LFS}/bin/pidof</userinput></screen>
     68<screen os="k" role="nodump"><userinput>ln -sv killall ${CLFS}/bin/pidof</userinput></screen>
    6969
    7070  </sect2>
  • BOOK/final-system/common/readline.xml

    r89c10a9 r586feb7  
    3333    <para os="a">Prepare Readline for compilation:</para>
    3434
    35 <screen os="b"><userinput>./configure --prefix=/usr --libdir=/lib --host=${LFS_TARGET}</userinput></screen>
     35<screen os="b"><userinput>./configure --prefix=/usr --libdir=/lib --host=${CLFS_TARGET}</userinput></screen>
    3636
    3737    <para os="c">Compile the package:</para>
     
    5353    <para os="f">Install the package:</para>
    5454
    55 <screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     55<screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    5656
    5757    <para os="h">Give Readline's dynamic libraries more appropriate
    5858    permissions:</para>
    5959
    60 <screen os="i"><userinput>chmod -v 755 ${LFS}/lib/lib{readline,history}.so*</userinput></screen>
     60<screen os="i"><userinput>chmod -v 755 ${CLFS}/lib/lib{readline,history}.so*</userinput></screen>
    6161
    6262    <para os="j">Now move the static libraries to a more appropriate location:</para>
    6363
    64 <screen os="k"><userinput>mv -v ${LFS}/lib/lib{readline,history}.a ${LFS}/usr/lib</userinput></screen>
     64<screen os="k"><userinput>mv -v ${CLFS}/lib/lib{readline,history}.a ${CLFS}/usr/lib</userinput></screen>
    6565
    6666    <para os="l">Next, remove the <filename class="extension">.so</filename>
     
    6868    <filename class="directory">/usr/lib</filename>.</para>
    6969
    70 <screen os="m"><userinput>rm -v ${LFS}/lib/lib{readline,history}.so
    71 ln -svf ../../lib/libreadline.so.5 ${LFS}/usr/lib/libreadline.so
    72 ln -svf ../../lib/libhistory.so.5 ${LFS}/usr/lib/libhistory.so</userinput></screen>
     70<screen os="m"><userinput>rm -v ${CLFS}/lib/lib{readline,history}.so
     71ln -svf ../../lib/libreadline.so.5 ${CLFS}/usr/lib/libreadline.so
     72ln -svf ../../lib/libhistory.so.5 ${CLFS}/usr/lib/libhistory.so</userinput></screen>
    7373
    7474  </sect2>
  • BOOK/final-system/common/sed.xml

    r89c10a9 r586feb7  
    2828
    2929<screen os="b"><userinput>./configure --prefix=/usr --bindir=/bin \
    30     --host=${LFS_TARGET} --enable-html</userinput></screen>
     30    --host=${CLFS_TARGET} --enable-html</userinput></screen>
    3131
    3232    <variablelist os="c">
     
    4848    <para os="f">Install the package:</para>
    4949
    50 <screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     50<screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    5151
    5252  </sect2>
  • BOOK/final-system/common/shadow.xml

    r89c10a9 r586feb7  
    4343<screen os="e"><userinput>./configure --libdir=/lib --sysconfdir=/etc --enable-shared \
    4444    --without-libpam --without-audit --without-selinux \
    45     --host=${LFS_TARGET} --cache-file=config.cache</userinput></screen>
     45    --host=${CLFS_TARGET} --cache-file=config.cache</userinput></screen>
    4646
    4747<para os="f">The meaning of the configure options:</para>
     
    8484    <para os="l">Install the package:</para>
    8585
    86 <screen os="m"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     86<screen os="m"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    8787
    8888    <para id="shadow-login_defs" os="r">Instead of using the default
     
    100100    </indexterm>
    101101
    102 <screen os="t"><userinput>cp ${LFS}/etc/login.defs login.defs.orig
     102<screen os="t"><userinput>cp ${CLFS}/etc/login.defs login.defs.orig
    103103sed -e's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
    104104    -e 's@/var/spool/mail@/var/mail@' \
    105     login.defs.orig &gt; ${LFS}/etc/login.defs</userinput></screen>
     105    login.defs.orig &gt; ${CLFS}/etc/login.defs</userinput></screen>
    106106
    107107    <note os="u">
     
    111111
    112112<screen><userinput>cp {LFS}/etc/login.defs login.defs.orig
    113 sed 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' login.defs.orig &gt; ${LFS}/etc/login.defs</userinput></screen>
     113sed 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' login.defs.orig &gt; ${CLFS}/etc/login.defs</userinput></screen>
    114114    </note>
    115115
    116116    <para os="v">Move a misplaced program to its proper location:</para>
    117117
    118 <screen os="w"><userinput>mv -v ${LFS}/usr/bin/passwd ${LFS}/bin</userinput></screen>
     118<screen os="w"><userinput>mv -v ${CLFS}/usr/bin/passwd ${CLFS}/bin</userinput></screen>
    119119
    120120    <para os="x">Move Shadow's dynamic libraries to a more appropriate
    121121    location:</para>
    122122
    123 <screen os="y"><userinput>mv -v ${LFS}/lib/libshadow.*a ${LFS}/usr/lib
    124 rm -v ${LFS}/lib/libshadow.so
    125 ln -svf ../../lib/libshadow.so.0 ${LFS}/usr/lib/libshadow.so</userinput></screen>
     123<screen os="y"><userinput>mv -v ${CLFS}/lib/libshadow.*a ${CLFS}/usr/lib
     124rm -v ${CLFS}/lib/libshadow.so
     125ln -svf ../../lib/libshadow.so.0 ${CLFS}/usr/lib/libshadow.so</userinput></screen>
    126126
    127127  </sect2>
  • BOOK/final-system/common/stripping.xml

    r89c10a9 r586feb7  
    2323  backup of the current situation.</para>
    2424
    25 <screen os="c"><userinput>find ${LFS}/{,usr/}{bin,lib,sbin} -type f \
    26    -exec ${LFS_TARGET}-strip --strip-debug '{}' ';'</userinput></screen>
     25<screen os="c"><userinput>find ${CLFS}/{,usr/}{bin,lib,sbin} -type f \
     26   -exec ${CLFS_TARGET}-strip --strip-debug '{}' ';'</userinput></screen>
    2727
    2828    <para os="i">A large number of files will be reported as having their file
  • BOOK/final-system/common/sysklogd.xml

    r89c10a9 r586feb7  
    4343    <para os="f">Install the package:</para>
    4444
    45 <screen os="g"><userinput>make prefix=${LFS} install</userinput></screen>
     45<screen os="g"><userinput>make prefix=${CLFS} install</userinput></screen>
    4646
    4747  </sect2>
     
    6161    the following:</para>
    6262
    63 <screen><userinput>cat &gt; ${LFS}/etc/syslog.conf &lt;&lt; "EOF"
     63<screen><userinput>cat &gt; ${CLFS}/etc/syslog.conf &lt;&lt; "EOF"
    6464<literal># Begin /etc/syslog.conf
    6565
  • BOOK/final-system/common/sysvinit.xml

    r89c10a9 r586feb7  
    5252
    5353<screen os="d"><userinput>make -C src clobber
    54 make -C src ROOT=${LFS} CC="${CC}"</userinput></screen>
     54make -C src ROOT=${CLFS} CC="${CC}"</userinput></screen>
    5555
    5656    <para os="e">Install the package:</para>
    5757
    58 <screen os="f"><userinput>make -C src ROOT=${LFS} INSTALL="install" install</userinput></screen>
     58<screen os="f"><userinput>make -C src ROOT=${CLFS} INSTALL="install" install</userinput></screen>
    5959
    6060  </sect2>
     
    7474    following:</para>
    7575
    76 <screen><userinput>cat &gt; ${LFS}/etc/inittab &lt;&lt; "EOF"
     76<screen><userinput>cat &gt; ${CLFS}/etc/inittab &lt;&lt; "EOF"
    7777<literal># Begin /etc/inittab
    7878
  • BOOK/final-system/common/tar.xml

    r89c10a9 r586feb7  
    4343
    4444<screen os="b"><userinput>./configure --prefix=/usr --bindir=/bin \
    45     --libexecdir=/usr/sbin --host=${LFS_TARGET}</userinput></screen>
     45    --libexecdir=/usr/sbin --host=${CLFS_TARGET}</userinput></screen>
    4646
    4747    <para os="c">Compile the package:</para>
     
    5151    <para os="e">Install the package:</para>
    5252
    53 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     53<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    5454
    5555  </sect2>
  • BOOK/final-system/common/texinfo.xml

    r89c10a9 r586feb7  
    3333    <para os="a">Prepare Texinfo for compilation:</para>
    3434
    35 <screen os="b"><userinput>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
     35<screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
    3636
    3737    <para os="c">Compile the package:</para>
     
    4141    <para os="e">Install the package:</para>
    4242
    43 <screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     43<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    4444
    4545    <para os="g">Optionally, install the components belonging in a TeX
    4646    installation:</para>
    4747
    48 <screen os="h"><userinput>make DESTDIR=${LFS} TEXMF=/usr/share/texmf install-tex</userinput></screen>
     48<screen os="h"><userinput>make DESTDIR=${CLFS} TEXMF=/usr/share/texmf install-tex</userinput></screen>
    4949
    5050    <variablelist os="i">
     
    7070    the following optional commands will accomplish the task:</para>
    7171
    72 <screen os="k" role="nodump"><userinput>cd ${LFS}/usr/share/info
     72<screen os="k" role="nodump"><userinput>cd ${CLFS}/usr/share/info
    7373rm dir
    7474for f in *
  • BOOK/final-system/common/udev.xml

    r89c10a9 r586feb7  
    2828    <para os="a">Compile the package:</para>
    2929
    30 <screen os="b"><userinput>make CROSS_COMPILE="${LFS_TARGET}-" CC="${CC}" LD="${CC}" \
     30<screen os="b"><userinput>make CROSS_COMPILE="${CLFS_TARGET}-" CC="${CC}" LD="${CC}" \
    3131    EXTRAS="extras/floppy extras/cdrom_id extras/firmware \
    3232    extras/scsi_id extras/volume_id extras/ata_id extras/usb_id \
     
    5050    <para os="c">Install the package:</para>
    5151
    52 <screen os="d"><userinput>make DESTDIR="${LFS}" \
     52<screen os="d"><userinput>make DESTDIR="${CLFS}" \
    5353    EXTRAS="extras/floppy extras/cdrom_id extras/firmware \
    5454    extras/scsi_id extras/volume_id extras/ata_id extras/usb_id \
     
    5757    <para os="e">Install necessary helpers.</para>
    5858
    59 <screen os="f"><userinput>install -v extras/eventrecorder.sh ${LFS}/lib/udev</userinput></screen>
     59<screen os="f"><userinput>install -v extras/eventrecorder.sh ${CLFS}/lib/udev</userinput></screen>
    6060
    6161    <para os="g">Install the documentation that explains how to create
     
    6363
    6464<screen os="h"><userinput>install -v -m644 -D docs/writing_udev_rules/index.html \
    65     ${LFS}/usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
     65    ${CLFS}/usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
    6666
    6767    <para os="i">Create a directory for storing firmware that can be
    6868    loaded by <command>udev</command>:</para>
    6969
    70 <screen os="j"><userinput>install -dv ${LFS}/lib/firmware</userinput></screen>
     70<screen os="j"><userinput>install -dv ${CLFS}/lib/firmware</userinput></screen>
    7171
    7272  </sect2>
  • BOOK/final-system/common/util-linux.xml

    r89c10a9 r586feb7  
    3737sed 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
    3838    hwclock/hwclock.c.orig &gt; hwclock/hwclock.c
    39 mkdir -pv ${LFS}/var/lib/hwclock</userinput></screen>
     39mkdir -pv ${CLFS}/var/lib/hwclock</userinput></screen>
    4040
    4141  </sect2>
     
    121121
    122122<screen os="g"><userinput>make HAVE_KILL=yes HAVE_SLN=yes \
    123 CPUOPT="" ARCH="" CPU="" USE_TTY_GROUP=no DESTDIR=${LFS} install
    124 mv -v ${LFS}/usr/bin/logger ${LFS}/bin</userinput></screen>
     123CPUOPT="" ARCH="" CPU="" USE_TTY_GROUP=no DESTDIR=${CLFS} install
     124mv -v ${CLFS}/usr/bin/logger ${CLFS}/bin</userinput></screen>
    125125
    126126  </sect2>
  • BOOK/final-system/common/variables.xml

    r89c10a9 r586feb7  
    1414  and linkers:</para>
    1515
    16 <screen><userinput>export CC="${LFS_TARGET}-gcc"
    17 export CXX="${LFS_TARGET}-g++"
    18 export AR="${LFS_TARGET}-ar"
    19 export AS="${LFS_TARGET}-as"
    20 export RANLIB="${LFS_TARGET}-ranlib"
    21 export LD="${LFS_TARGET}-ld"
    22 export STRIP="${LFS_TARGET}-strip"</userinput></screen>
     16<screen><userinput>export CC="${CLFS_TARGET}-gcc"
     17export CXX="${CLFS_TARGET}-g++"
     18export AR="${CLFS_TARGET}-ar"
     19export AS="${CLFS_TARGET}-as"
     20export RANLIB="${CLFS_TARGET}-ranlib"
     21export LD="${CLFS_TARGET}-ld"
     22export STRIP="${CLFS_TARGET}-strip"</userinput></screen>
    2323
    2424  <para>Then add the build variables to <filename>~/.bashrc</filename> to
  • BOOK/final-system/common/vim.xml

    r89c10a9 r586feb7  
    5656    <para os="d">Prepare Vim for compilation:</para>
    5757
    58 <screen os="e"><userinput>./configure --prefix=/usr --host=${LFS_TARGET} \
     58<screen os="e"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET} \
    5959    --enable-multibyte --enable-gui=no \
    6060    --disable-gtktest --disable-xim \
     
    8686    <para os="i">Install the package:</para>
    8787
    88 <screen os="j"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     88<screen os="j"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    8989
    9090    <para os="k">Many users are accustomed to using <command>vi</command>
     
    9595    and allow programs that use <command>vi</command> to work:</para>
    9696
    97 <screen os="l"><userinput>ln -sv vim ${LFS}/usr/bin/vi</userinput></screen>
     97<screen os="l"><userinput>ln -sv vim ${CLFS}/usr/bin/vi</userinput></screen>
    9898
    9999<para os="m">By default, Vim's documentation is installed in
     
    103103it consistent with the location of documentation for other packages:</para>
    104104
    105 <screen os="n"><userinput>ln -sv ../vim/vim&vim-version2;/doc ${LFS}/usr/share/doc/vim-&vim-version;</userinput></screen>
     105<screen os="n"><userinput>ln -sv ../vim/vim&vim-version2;/doc ${CLFS}/usr/share/doc/vim-&vim-version;</userinput></screen>
    106106
    107107    <para os="o">If an X Window System is going to be installed on the LFS
     
    132132    following:</para>
    133133
    134 <screen><userinput>cat &gt; ${LFS}/etc/vimrc &lt;&lt; "EOF"
     134<screen><userinput>cat &gt; ${CLFS}/etc/vimrc &lt;&lt; "EOF"
    135135<literal>" Begin /etc/vimrc
    136136
  • BOOK/final-system/common/zlib.xml

    r89c10a9 r586feb7  
    4141    <para os="e">Install the pacakge:</para>
    4242
    43 <screen os="f"><userinput>make prefix=${LFS}/usr install</userinput></screen>
     43<screen os="f"><userinput>make prefix=${CLFS}/usr install</userinput></screen>
    4444
    4545    <para os="g">The previous command installed a <filename
     
    4949    to <filename class="directory">/usr/lib</filename>:</para>
    5050
    51 <screen os="h"><userinput>mv -v ${LFS}/usr/lib/libz.so.* ${LFS}/lib
    52 ln -svf ../../lib/libz.so.1 ${LFS}/usr/lib/libz.so</userinput></screen>
     51<screen os="h"><userinput>mv -v ${CLFS}/usr/lib/libz.so.* ${CLFS}/lib
     52ln -svf ../../lib/libz.so.1 ${CLFS}/usr/lib/libz.so</userinput></screen>
    5353
    5454    <para os="i">Now we fix the permissions on the static library:</para>
    5555
    56 <screen os="j"><userinput>chmod -v 644 ${LFS}/usr/lib/libz.a</userinput></screen>
     56<screen os="j"><userinput>chmod -v 644 ${CLFS}/usr/lib/libz.a</userinput></screen>
    5757
    5858  </sect2>
  • BOOK/general.ent

    r89c10a9 r586feb7  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    22
    3 <!ENTITY month "06"> <!-- Use two digits -->
    4 <!ENTITY month_name "June">
    5 <!ENTITY day "28"> <!-- Use two digits -->
     3<!ENTITY month "07"> <!-- Use two digits -->
     4<!ENTITY month_name "July">
     5<!ENTITY day "02"> <!-- Use two digits -->
    66<!ENTITY year "2006"> <!-- Use four digits -->
    77
  • BOOK/introduction/common/changelog.xml

    r89c10a9 r586feb7  
    3838
    3939    <listitem>
     40      <para>July 2, 2006</para>
     41      <itemizedlist>
     42        <listitem>
     43          <para>[jciccone] - Updated passwd and group file creation
     44                to only create minimal users and groups and
     45                include information on other users/groups.</para>
     46        </listitem>
     47        <listitem>
     48          <para>[jciccone] - Updated to Cross-LFS Bootscripts. Added check for
     49          for /etc/sysconfig/createfiles.</para>
     50        </listitem>
     51      </itemizedlist>
     52    </listitem>
     53
     54    <listitem>
    4055      <para>June 28, 2006</para>
    4156      <itemizedlist>
  • BOOK/introduction/common/how.xml

    r89c10a9 r586feb7  
    4545
    4646  <para>The process of building cross-compile tools first involves installing
    47   binutils into ${LFS}/cross-tools, so that we have an asembler and a linker
     47  binutils into ${CLFS}/cross-tools, so that we have an asembler and a linker
    4848  for our target architecture. GCC is then compiled statically and installed
    49   into ${LFS}/cross-tools, this cross-compiler is used to build glibc for the
     49  into ${CLFS}/cross-tools, this cross-compiler is used to build glibc for the
    5050  final-system. The GCC cross-compiler is then rebuilt dynamically - this final
    5151  cross-compiler is what will be used to build the final-system.</para>
  • BOOK/introduction/common/resources.xml

    r89c10a9 r586feb7  
    7676    accessing the website and downloading the required packages more
    7777    convenient. Please visit the LFS website at <ulink
    78     url="&lfs-root;mirrors.html"/> for a list of current mirrors.</para>
     78    url="&lfs-root;mirrors.html"/> for a list of current mirrors of
     79    the LFS website, or <ulink url="&clfs-root;wiki/mirrors"/> for
     80    mirrors of CLFS.</para>
    7981
    8082  </sect2>
  • BOOK/materials/common/introduction.xml

    r89c10a9 r586feb7  
    3030  that is conveniently available throughout the entire build. A working
    3131  directory is also required to unpack the sources and build them.
    32   <filename class="directory">$LFS/sources</filename> can be used both
     32  <filename class="directory">$CLFS/sources</filename> can be used both
    3333  as the place to store the tarballs and patches and as a working
    3434  directory. By using this directory, the required elements will be
     
    4040  starting the download session:</para>
    4141
    42 <screen><userinput>mkdir -v $LFS/sources</userinput></screen>
     42<screen><userinput>mkdir -v $CLFS/sources</userinput></screen>
    4343
    4444  <para>Make this directory writable and sticky. <quote>Sticky</quote>
     
    4848  sticky modes:</para>
    4949
    50 <screen><userinput>chmod -v a+wt $LFS/sources</userinput></screen>
     50<screen><userinput>chmod -v a+wt $CLFS/sources</userinput></screen>
    5151
    5252</sect1>
  • BOOK/materials/common/patches.xml

    r89c10a9 r586feb7  
    308308
    309309  <para>In addition to the above required patches, there exist a number of
    310   optional patches created by the LFS community. These optional patches
     310  optional patches created by the CLFS community. These optional patches
    311311  solve minor problems or enable functionality that is not enabled by
    312312  default. Feel free to peruse the patches database located at
  • BOOK/packages.ent

    r89c10a9 r586feb7  
    6767<!ENTITY bzip2-home "http://www.bzip.org/">
    6868
    69 <!ENTITY clfs-bootscripts-version "0.1">
    70 <!ENTITY clfs-bootscripts-size "24 KB">
     69<!ENTITY clfs-bootscripts-version "0.2">
     70<!ENTITY clfs-bootscripts-size "28 KB">
    7171<!ENTITY clfs-bootscripts-url "http://ftp.jg555.com/bootscripts/bootscripts-cross-lfs-&clfs-bootscripts-version;.tar.bz2">
    72 <!ENTITY clfs-bootscripts-md5 "cf9e749b476a9eed6a644506fff50804">
     72<!ENTITY clfs-bootscripts-md5 "cbb353e5c5e52c1e72851310275d8d9d">
    7373<!ENTITY clfs-bootscripts-home " ">
    7474
  • BOOK/partitioning/common/mounting.xml

    r89c10a9 r586feb7  
    2121  environment variable by running:</para>
    2222
    23 <screen><userinput>export LFS=/mnt/lfs</userinput></screen>
     23<screen><userinput>export CLFS=/mnt/lfs</userinput></screen>
    2424
    2525  <para>Next, create the mount point and mount the CLFS file system by
    2626  running:</para>
    2727
    28 <screen><userinput>mkdir -pv $LFS
    29 mount -v /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>
     28<screen><userinput>mkdir -pv $CLFS
     29mount -v /dev/<replaceable>[xxx]</replaceable> $CLFS</userinput></screen>
    3030
    3131  <para>Replace <replaceable>[xxx]</replaceable> with the designation of
     
    3636  class="directory">/usr</filename>), mount them using:</para>
    3737
    38 <screen><userinput>mkdir -pv $LFS
    39 mount -v /dev/<replaceable>[xxx]</replaceable> $LFS
    40 mkdir -v $LFS/usr
    41 mount -v /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>
     38<screen><userinput>mkdir -pv $CLFS
     39mount -v /dev/<replaceable>[xxx]</replaceable> $CLFS
     40mkdir -v $CLFS/usr
     41mount -v /dev/<replaceable>[yyy]</replaceable> $CLFS/usr</userinput></screen>
    4242
    4343  <para>Replace <replaceable>[xxx]</replaceable> and
  • BOOK/prologue/common/foreword.xml

    r89c10a9 r586feb7  
    3535  allowed me to create compact and streamlined Linux systems which are
    3636  faster and take up less space than traditional operating systems. I
    37   called this system a Linux From Scratch system, or an LFS system for
     37  called this system a Linux From Scratch system, or an CLFS system for
    3838  short.</para>
    3939
    4040  <para>As I shared my goals and experiences with other members of the
    4141  Linux community, it became apparent that there was sustained interest
    42   in the ideas set forth in my Linux adventures. Such custom-built LFS
     42  in the ideas set forth in my Linux adventures. Such custom-built CLFS
    4343  systems serve not only to meet user specifications and requirements, but
    4444  also serve as an ideal learning opportunity for programmers and system
     
    5757  system.</para>
    5858
    59   <para>I hope you will have a great time working on your own LFS
     59  <para>I hope you will have a great time working on your own CLFS
    6060  system, and enjoy the numerous benefits of having a system that is
    6161  truly <emphasis>your own</emphasis>.</para>
  • BOOK/prologue/common/prerequisites.xml

    r89c10a9 r586feb7  
    5151      <para>This is an LFS Hint written specifically for users new to Linux.
    5252      It includes a list of links to excellent sources of information on a
    53       wide range of topics. Anyone attempting to install LFS should have an
     53      wide range of topics. Anyone attempting to install CLFS should have an
    5454      understanding of many of the topics in this hint.</para>
    5555    </listitem>
  • BOOK/prologue/common/typography.xml

    r89c10a9 r586feb7  
    2323  referenced.</para>
    2424
    25 <screen><computeroutput>install-info: unknown option '--dir-file=/mnt/lfs/usr/info/dir'</computeroutput></screen>
     25<screen><computeroutput>install-info: unknown option '--dir-file=/mnt/clfs/usr/info/dir'</computeroutput></screen>
    2626
    2727  <para>This form of text (fixed-width text) shows screen output,
     
    3434  Its main purpose is to emphasize important points or items.</para>
    3535
    36   <para><ulink url="&lfs-root;"/></para>
     36  <para><ulink url="&clfs-root;"/></para>
    3737
    3838  <para>This format is used for hyperlinks, both within the LFS
     
    4040  and websites.</para>
    4141
    42 <screen role="nodump"><userinput>cat &gt; $LFS/etc/group &lt;&lt; "EOF"
     42<screen role="nodump"><userinput>cat &gt; $CLFS/etc/group &lt;&lt; "EOF"
    4343<literal>root:x:0:
    4444bin:x:1:
     
    4848  <para>This format is used when creating configuration files. The first
    4949  command tells the system to create the file
    50   <filename>$LFS/etc/group</filename> from whatever is typed on the
     50  <filename>$CLFS/etc/group</filename> from whatever is typed on the
    5151  following lines until the sequence end of file (EOF) is encountered.
    5252  Therefore, this entire section is generally typed as seen.</para>
  • BOOK/the-end/reboot.xml

    r89c10a9 r586feb7  
    3737  <para>Then unmount the virtual file systems:</para>
    3838
    39 <screen><userinput>umount $LFS/dev/pts
    40 umount $LFS/dev/shm
    41 umount $LFS/dev
    42 umount $LFS/proc
    43 umount $LFS/sys</userinput></screen>
     39<screen><userinput>umount $CLFS/dev/pts
     40umount $CLFS/dev/shm
     41umount $CLFS/dev
     42umount $CLFS/proc
     43umount $CLFS/sys</userinput></screen>
    4444
    4545  <para>Unmount the LFS file system itself:</para>
    4646
    47 <screen><userinput>umount $LFS</userinput></screen>
     47<screen><userinput>umount $CLFS</userinput></screen>
    4848
    4949  <para>If multiple partitions were created, unmount the other
    5050  partitions before unmounting the main one, like this:</para>
    5151
    52 <screen><userinput>umount $LFS/usr
    53 umount $LFS/home
    54 umount $LFS</userinput></screen>
     52<screen><userinput>umount $CLFS/usr
     53umount $CLFS/home
     54umount $CLFS</userinput></screen>
    5555
    5656  <para>Now, reboot the system with:</para>
  • BOOK/the-end/theend.xml

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