- Timestamp:
- Jul 2, 2006, 12:45:15 PM (19 years ago)
- Branches:
- master
- Children:
- 940e6b3
- Parents:
- 89c10a9
- Location:
- BOOK
- Files:
-
- 87 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
BOOK/bootable/arm/kernel.xml
r89c10a9 r586feb7 54 54 url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>:</para> 55 55 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> 57 57 58 58 <para os="j">Alternatively, <command>make oldconfig</command> may be more … … 69 69 <para os="m">Compile the kernel image and modules:</para> 70 70 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> 72 72 73 73 <para os="o">If using kernel modules, an … … 97 97 them:</para> 98 98 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> 101 101 102 102 <para os="u">After kernel compilation is complete, additional steps are 103 103 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> 105 105 106 106 <para os="v">Issue the following command to install the kernel:</para> 107 107 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> 109 109 110 110 <para os="w"><filename>System.map</filename> is a symbol file for the kernel. … … 113 113 kernel. Issue the following command to install the map file:</para> 114 114 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> 116 116 117 117 <para os="x">The kernel configuration file <filename>.config</filename> … … 120 120 It is a good idea to keep this file for future reference:</para> 121 121 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> 123 123 124 124 <warning os="z"> -
BOOK/bootable/common/chowning.xml
r89c10a9 r586feb7 19 19 <para>The commands in the remainder of this book must be performed while 20 20 logged in as <systemitem class="username">root</systemitem>. Check that 21 $ LFS is still set:</para>21 $CLFS is still set:</para> 22 22 23 <screen><userinput>echo $ LFS</userinput></screen>23 <screen><userinput>echo $CLFS</userinput></screen> 24 24 25 25 </important> … … 28 28 entire lfs system.</para> 29 29 30 <screen><userinput>chown -Rv root:root ${ LFS}</userinput></screen>30 <screen><userinput>chown -Rv root:root ${CLFS}</userinput></screen> 31 31 32 32 <para>The following files are not the be owned by 33 33 <systemitem class="username">root</systemitem>.</para> 34 34 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> 36 36 37 37 <para>The following device nodes need to be created for the system to 38 38 boot.</para> 39 39 40 <screen><userinput>mknod -m 0666 ${ LFS}/dev/null c 1 341 mknod -m 0600 ${ LFS}/dev/console c 5 1</userinput></screen>40 <screen><userinput>mknod -m 0666 ${CLFS}/dev/null c 1 3 41 mknod -m 0600 ${CLFS}/dev/console c 5 1</userinput></screen> 42 42 43 43 <para>If you did not create the following rules in <xref linkend="ch-scripts-udev-rules"/>. You 44 44 need to create them now.</para> 45 45 46 <screen><userinput>mknod -m 0666 ${ LFS}/lib/udev/devices/null c 1 347 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 47 mknod -m 0600 ${CLFS}/lib/udev/devices/console c 5 1</userinput></screen> 48 48 49 49 </sect1> -
BOOK/bootable/common/fstab.xml
r89c10a9 r586feb7 20 20 to mounting. Create a new file systems table like this:</para> 21 21 22 <screen><userinput>cat > ${ LFS}/etc/fstab << "EOF"22 <screen><userinput>cat > ${CLFS}/etc/fstab << "EOF" 23 23 <literal># Begin /etc/fstab 24 24 -
BOOK/bootscripts/common/bootscripts.xml
r89c10a9 r586feb7 28 28 <para>Install the package:</para> 29 29 30 <screen><userinput>make DESTDIR=${ LFS} install</userinput></screen>30 <screen><userinput>make DESTDIR=${CLFS} install</userinput></screen> 31 31 32 32 </sect2> -
BOOK/bootscripts/common/console.xml
r89c10a9 r586feb7 35 35 the configuration file with the following command:</para> 36 36 37 <screen><userinput>cat >${ LFS}/etc/sysconfig/console <<"EOF"37 <screen><userinput>cat >${CLFS}/etc/sysconfig/console <<"EOF" 38 38 <literal>KEYMAP="<replaceable>[arguments for loadkeys]</replaceable>" 39 39 FONT="<replaceable>[arguments for setfont]</replaceable>"</literal> … … 44 44 correct:</para> 45 45 46 <screen><userinput>cat >${ LFS}/etc/sysconfig/console <<"EOF"46 <screen><userinput>cat >${CLFS}/etc/sysconfig/console <<"EOF" 47 47 <literal>KEYMAP="es euro2" 48 48 FONT="lat9-16 -u iso01"</literal> … … 74 74 following keymap snippet to fix this issue:</para> 75 75 76 <screen><userinput>mkdir -p ${ LFS}/etc/kbd && cat > ${LFS}/etc/kbd/bs-sends-del <<"EOF"76 <screen><userinput>mkdir -p ${CLFS}/etc/kbd && cat > ${CLFS}/etc/kbd/bs-sends-del <<"EOF" 77 77 <literal> keycode 14 = Delete Delete Delete Delete 78 78 alt keycode 14 = Meta_Delete … … 87 87 snippet after the main keymap:</para> 88 88 89 <screen><userinput>cat >> ${ LFS}/etc/sysconfig/console <<"EOF"89 <screen><userinput>cat >> ${CLFS}/etc/sysconfig/console <<"EOF" 90 90 <literal>KEYMAP_CORRECTIONS="/etc/kbd/bs-sends-del"</literal> 91 91 EOF</userinput></screen> -
BOOK/bootscripts/common/hostname.xml
r89c10a9 r586feb7 22 22 and enter a hostname by running:</para> 23 23 24 <screen><userinput>echo "HOSTNAME=<replaceable>[lfs]</replaceable>" > ${ LFS}/etc/sysconfig/network</userinput></screen>24 <screen><userinput>echo "HOSTNAME=<replaceable>[lfs]</replaceable>" > ${CLFS}/etc/sysconfig/network</userinput></screen> 25 25 26 26 <para><replaceable>[lfs]</replaceable> needs to be replaced with the -
BOOK/bootscripts/common/hosts.xml
r89c10a9 r586feb7 50 50 <para>Create the <filename>/etc/hosts</filename> file by running:</para> 51 51 52 <screen><userinput>cat > ${ LFS}/etc/hosts << "EOF"52 <screen><userinput>cat > ${CLFS}/etc/hosts << "EOF" 53 53 <literal># Begin /etc/hosts (network card version) 54 54 … … 69 69 <filename>/etc/hosts</filename> file by running:</para> 70 70 71 <screen><userinput>cat > ${ LFS}/etc/hosts << "EOF"71 <screen><userinput>cat > ${CLFS}/etc/hosts << "EOF" 72 72 <literal># Begin /etc/hosts (no network card version) 73 73 -
BOOK/bootscripts/common/inputrc.xml
r89c10a9 r586feb7 37 37 using the following command:</para> 38 38 39 <screen><userinput>cat > ${ LFS}/etc/inputrc << "EOF"39 <screen><userinput>cat > ${CLFS}/etc/inputrc << "EOF" 40 40 <literal># Begin /etc/inputrc 41 41 # Modified by Chris Lynn <roryo@roryo.dynup.net> -
BOOK/bootscripts/common/network.xml
r89c10a9 r586feb7 39 39 file for the <filename class="devicefile">eth0</filename> device:</para> 40 40 41 <screen><userinput>cd ${ LFS}/etc/sysconfig/network-devices &&41 <screen><userinput>cd ${CLFS}/etc/sysconfig/network-devices && 42 42 mkdir ifconfig.eth0 && 43 43 cat > ifconfig.eth0/ipv4 << "EOF" … … 95 95 Create the file by running the following:</para> 96 96 97 <screen><userinput>cat > ${ LFS}/etc/resolv.conf << "EOF"97 <screen><userinput>cat > ${CLFS}/etc/resolv.conf << "EOF" 98 98 <literal># Begin /etc/resolv.conf 99 99 -
BOOK/bootscripts/common/profile.xml
r89c10a9 r586feb7 140 140 <filename>/etc/profile</filename> file:</para> 141 141 142 <screen><userinput>cat > ${ LFS}/etc/profile << "EOF"142 <screen><userinput>cat > ${CLFS}/etc/profile << "EOF" 143 143 <literal># Begin /etc/profile 144 144 -
BOOK/bootscripts/common/setclock.xml
r89c10a9 r586feb7 42 42 the following:</para> 43 43 44 <screen><userinput>cat > ${ LFS}/etc/sysconfig/clock << "EOF"44 <screen><userinput>cat > ${CLFS}/etc/sysconfig/clock << "EOF" 45 45 <literal># Begin /etc/sysconfig/clock 46 46 -
BOOK/bootscripts/common/udev-rules.xml
r89c10a9 r586feb7 30 30 sets:</para> 31 31 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> 33 33 34 34 <para os="c">Install the package:</para> 35 35 36 <screen os="d"><userinput>make DESTDIR=${ LFS} install</userinput></screen>36 <screen os="d"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 37 37 38 38 </sect2> -
BOOK/cross-tools/arm/glibc-headers.xml
r89c10a9 r586feb7 68 68 69 69 <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> 72 72 73 73 <variablelist os="dj"> … … 82 82 83 83 <varlistentry os="dj2"> 84 <term><parameter>--with-headers=${ LFS}/usr/include</parameter></term>84 <term><parameter>--with-headers=${CLFS}/usr/include</parameter></term> 85 85 <listitem> 86 86 <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> 88 88 directory, so that it knows exactly what features the kernel has 89 89 and can optimize itself accordingly.</para> … … 101 101 102 102 <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> 104 104 105 <screen os="o"><userinput>install -dv ${ LFS}/usr/include/bits106 cp -v bits/stdio_lim.h ${ LFS}/usr/include/bits</userinput></screen>105 <screen os="o"><userinput>install -dv ${CLFS}/usr/include/bits 106 cp -v bits/stdio_lim.h ${CLFS}/usr/include/bits</userinput></screen> 107 107 108 108 <para os="p">Now we will create a blank stub file:</para> 109 109 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> 111 111 112 112 <para os="r">For NPTL we use the following command:</para> 113 113 114 114 <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> 116 116 117 117 </sect2> -
BOOK/cross-tools/arm/linux-headers.xml
r89c10a9 r586feb7 37 37 <para os="b">Install the header files that are common to all architectures:</para> 38 38 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-generic41 cp -av include/linux/* ${ LFS}/usr/include/linux42 cp -av include/mtd/* ${ LFS}/usr/include/mtd43 cp -av include/net/* ${ LFS}/usr/include/net44 cp -av include/scsi/* ${ LFS}/usr/include/scsi45 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} 40 cp -av include/asm-generic/* ${CLFS}/usr/include/asm-generic 41 cp -av include/linux/* ${CLFS}/usr/include/linux 42 cp -av include/mtd/* ${CLFS}/usr/include/mtd 43 cp -av include/net/* ${CLFS}/usr/include/net 44 cp -av include/scsi/* ${CLFS}/usr/include/scsi 45 cp -av include/sound/* ${CLFS}/usr/include/sound</userinput></screen> 46 46 47 47 <para os="d">Install the header files that are specific to this architecture:</para> 48 48 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> 50 50 51 51 <para os="e">Make sure the users can read the headers:</para> 52 52 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 {} \; 54 find ${CLFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type f -exec chmod -v 644 {} \;</userinput></screen> 55 55 56 56 </sect2> -
BOOK/cross-tools/arm/variables.xml
r89c10a9 r586feb7 35 35 case you have to exit and restart building later:</para> 36 36 37 <screen os="f"><userinput>echo export LFS_HOST=\""${ LFS_HOST}\"" >> ~/.bashrc38 echo export LFS_TARGET=\""${ LFS_TARGET}\"" >> ~/.bashrc</userinput></screen>37 <screen os="f"><userinput>echo export LFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc 38 echo export LFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc</userinput></screen> 39 39 40 40 </sect1> -
BOOK/cross-tools/common/binutils.xml
r89c10a9 r586feb7 48 48 xpointer="xpointer(//*[@os='c'])"/> 49 49 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} \ 52 52 --disable-nls --enable-shared --disable-multilib</userinput></screen> 53 53 … … 56 56 57 57 <varlistentry os="bd1"> 58 <term><parameter>--prefix=${ LFS}/cross-tools</parameter></term>58 <term><parameter>--prefix=${CLFS}/cross-tools</parameter></term> 59 59 <listitem> 60 60 <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> 62 62 directory.</para> 63 63 </listitem> … … 65 65 66 66 <varlistentry os="bd2"> 67 <term><parameter>--host=${ LFS_HOST}</parameter></term>67 <term><parameter>--host=${CLFS_HOST}</parameter></term> 68 68 <listitem> 69 69 <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> 71 71 </listitem> 72 72 </varlistentry> 73 73 74 74 <varlistentry os="bd3"> 75 <term><parameter>--target=${ LFS_TARGET}</parameter></term>75 <term><parameter>--target=${CLFS_TARGET}</parameter></term> 76 76 <listitem> 77 77 <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> 79 79 </listitem> 80 80 </varlistentry> 81 81 82 82 <varlistentry os="bd4"> 83 <term><parameter>--with-sysroot=${ LFS}</parameter></term>83 <term><parameter>--with-sysroot=${CLFS}</parameter></term> 84 84 <listitem> 85 <para>This tells configure that ${ LFS} is going to be the root86 of our system. It will now use the specified sysroot, ${ LFS} as85 <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 87 87 a prefix of the default search paths.</para> 88 88 </listitem> … … 137 137 138 138 <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> 140 140 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> 142 142 143 143 </sect2> -
BOOK/cross-tools/common/file.xml
r89c10a9 r586feb7 19 19 <para>Prepare File for compilation:</para> 20 20 21 <screen><userinput>./configure --prefix=${ LFS}/cross-tools</userinput></screen>21 <screen><userinput>./configure --prefix=${CLFS}/cross-tools</userinput></screen> 22 22 23 23 <para>Compile the Package:</para> -
BOOK/cross-tools/common/gcc-final.xml
r89c10a9 r586feb7 59 59 xpointer="xpointer(//*[@os='e'])"/> 60 60 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 \ 64 64 --enable-languages=c,c++ --enable-__cxa_atexit \ 65 65 --enable-c99 --enable-long-long --enable-threads=posix</userinput></screen> -
BOOK/cross-tools/common/gcc-static.xml
r89c10a9 r586feb7 51 51 xpointer="xpointer(//*[@os='e'])"/> 52 52 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 \ 56 56 --enable-languages=c</userinput></screen> 57 57 -
BOOK/cross-tools/common/glibc.xml
r89c10a9 r586feb7 74 74 <filename>configparms</filename> to adjust instalation paths:</para> 75 75 76 <screen os="g"><userinput>echo "install_root=${ LFS}" > configparms</userinput></screen>76 <screen os="g"><userinput>echo "install_root=${CLFS}" > configparms</userinput></screen> 77 77 78 78 <para os="h">Prepare Glibc for compilation:</para> 79 79 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" \ 82 82 ../glibc-&glibc-version;/configure --prefix=/usr --libexecdir=/usr/lib/glibc \ 83 --host=${ LFS_TARGET} --build=${LFS_HOST} \83 --host=${CLFS_TARGET} --build=${CLFS_HOST} \ 84 84 --disable-profile --enable-add-ons \ 85 85 --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 \ 87 87 --cache-file=config.cache</userinput></screen> 88 88 … … 99 99 100 100 <varlistentry os="j2"> 101 <term><parameter>CC="${ LFS_TARGET}-gcc"</parameter></term>101 <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term> 102 102 <listitem> 103 103 <para>This forces Glibc to use the GCC compiler that we made for our target … … 107 107 108 108 <varlistentry os="j3"> 109 <term><parameter>AR="${ LFS_TARGET}-ar"</parameter></term>109 <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term> 110 110 <listitem> 111 111 <para>This forces Glibc to use the <command>ar</command> utility … … 115 115 116 116 <varlistentry os="j4"> 117 <term><parameter>RANLIB="${ LFS_TARGET}-ranlib"</parameter></term>117 <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term> 118 118 <listitem> 119 119 <para>This forces Glibc to use the <command>ranlib</command> utility … … 154 154 155 155 <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> 157 157 <listitem> 158 158 <para>This tells Glibc to use the Binutils that are specific to … … 214 214 successfully:</para> 215 215 216 <screen role="nodump"><userinput>mkdir -pv ${ LFS}/usr/lib/locale216 <screen role="nodump"><userinput>mkdir -pv ${CLFS}/usr/lib/locale 217 217 localedef -i de_DE -f ISO-8859-1 de_DE 218 218 localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro … … 263 263 the following:</para> 264 264 265 <screen><userinput>cat > ${ LFS}/etc/nsswitch.conf << "EOF"265 <screen><userinput>cat > ${CLFS}/etc/nsswitch.conf << "EOF" 266 266 <literal># Begin /etc/nsswitch.conf 267 267 … … 283 283 <para>To determine the local time zone, run the following script:</para> 284 284 285 <screen role="nodump"><userinput>${ LFS}/usr/bin/tzselect</userinput></screen>285 <screen role="nodump"><userinput>${CLFS}/usr/bin/tzselect</userinput></screen> 286 286 287 287 <para>After answering a few questions about the location, the script will … … 290 290 <filename>/etc/localtime</filename> file by running:</para> 291 291 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> 294 294 295 295 <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone … … 337 337 following:</para> 338 338 339 <screen><userinput>cat > ${ LFS}/etc/ld.so.conf << "EOF"339 <screen><userinput>cat > ${CLFS}/etc/ld.so.conf << "EOF" 340 340 <literal># Begin /etc/ld.so.conf 341 341 -
BOOK/final-preps/aboutclfs.xml
r89c10a9 r586feb7 9 9 <?dbhtml filename="aboutlfs.html"?> 10 10 11 <title>About $ LFS</title>11 <title>About $CLFS</title> 12 12 13 13 <para>Throughout this book, the environment variable <envar>LFS</envar> will … … 16 16 Check that the <envar>LFS</envar> variable is set up properly with:</para> 17 17 18 <screen><userinput>echo $ LFS</userinput></screen>18 <screen><userinput>echo $CLFS</userinput></screen> 19 19 20 20 <para>Make sure the output shows the path to the CLFS partition's mount … … 23 23 variable can be set with:</para> 24 24 25 <screen><userinput>export LFS=/mnt/lfs</userinput></screen>25 <screen><userinput>export CLFS=/mnt/lfs</userinput></screen> 26 26 27 27 <para>Having this variable set is beneficial in that commands such as 28 <command>install -d $ LFS/tools</command> can be typed literally. The shell29 will automatically replace <quote>$ LFS</quote> with28 <command>install -d $CLFS/tools</command> can be typed literally. The shell 29 will automatically replace <quote>$CLFS</quote> with 30 30 <quote>/mnt/lfs</quote> (or whatever the variable was set to) when it 31 31 processes the command line.</para> 32 32 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> 34 34 directory, do so at this time by issuing the following commands:</para> 35 35 36 <screen><userinput>install -dv $ LFS</userinput></screen>36 <screen><userinput>install -dv $CLFS</userinput></screen> 37 37 38 <para>Do not forget to check that <envar>$ LFS</envar> is set whenever38 <para>Do not forget to check that <envar>$CLFS</envar> is set whenever 39 39 you leave and reenter the current working environment (as when doing a 40 40 <quote>su</quote> to <systemitem class="username">root</systemitem> or -
BOOK/final-preps/addinguser.xml
r89c10a9 r586feb7 9 9 <?dbhtml filename="addinguser.html"?> 10 10 11 <title>Adding the LFS User</title>11 <title>Adding the CLFS User</title> 12 12 13 13 <para>When logged in as user <systemitem class="username">root</systemitem>, … … 16 16 You could use your own user name, but to make it easier to set up a clean 17 17 work environment, create a new user called <systemitem 18 class="username"> lfs</systemitem> as a member of a new group (also named19 <systemitem class="groupname"> lfs</systemitem>) and use this user during18 class="username">clfs</systemitem> as a member of a new group (also named 19 <systemitem class="groupname">clfs</systemitem>) and use this user during 20 20 the installation process. As <systemitem class="username">root</systemitem>, 21 21 issue the following commands to add the new user:</para> 22 22 23 <screen><userinput>groupadd lfs24 useradd -s /bin/bash -g lfs -m -k /dev/nulllfs</userinput></screen>23 <screen><userinput>groupadd clfs 24 useradd -s /bin/bash -g clfs -m -k /dev/null clfs</userinput></screen> 25 25 26 26 <variablelist> … … 31 31 <listitem> 32 32 <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> 34 34 </listitem> 35 35 </varlistentry> 36 36 37 37 <varlistentry> 38 <term><parameter>-g lfs</parameter></term>38 <term><parameter>-g clfs</parameter></term> 39 39 <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> 42 42 </listitem> 43 43 </varlistentry> … … 47 47 <listitem> 48 48 <para>This creates a home directory for <systemitem 49 class="username"> lfs</systemitem>.</para>49 class="username">clfs</systemitem>.</para> 50 50 </listitem> 51 51 </varlistentry> … … 69 69 </variablelist> 70 70 71 <para>To log in as <systemitem class="username"> lfs</systemitem> (as72 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> 73 73 when logged in as <systemitem class="username">root</systemitem>, which 74 does not require the <systemitem class="username"> lfs</systemitem> user75 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> 76 76 a password:</para> 77 77 78 <screen><userinput>passwd lfs</userinput></screen>78 <screen><userinput>passwd clfs</userinput></screen> 79 79 80 <para>Grant <systemitem class="username"> lfs</systemitem> full access to81 <filename class="directory">$ LFS</filename> by making <systemitem80 <para>Grant <systemitem class="username">clfs</systemitem> full access to 81 <filename class="directory">$CLFS</filename> by making <systemitem 82 82 class="username">lfs</systemitem> the directory's owner:</para> 83 83 84 <screen><userinput>chown -Rv lfs $LFS</userinput></screen>84 <screen><userinput>chown -Rv clfs $CLFS</userinput></screen> 85 85 86 <para>Next, login as user <systemitem class="username"> lfs</systemitem>.86 <para>Next, login as user <systemitem class="username">clfs</systemitem>. 87 87 This can be done via a virtual console, through a display manager, or 88 88 with the following substitute user command:</para> 89 89 90 <screen><userinput>su - lfs</userinput></screen>90 <screen><userinput>su - clfs</userinput></screen> 91 91 92 92 <para>The <quote><parameter>-</parameter></quote> instructs -
BOOK/final-preps/chapter.xml
r89c10a9 r586feb7 12 12 <title>Final Preparations</title> 13 13 14 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="about lfs.xml"/>14 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="aboutclfs.xml"/> 15 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="addinguser.xml"/> 16 16 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="settingenviron.xml"/> -
BOOK/final-preps/creatingdirs.xml
r89c10a9 r586feb7 14 14 standard directory tree by issuing the following commands:</para> 15 15 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}/root19 install -dv -m 1777 ${ LFS}{/var,}/tmp20 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}; do16 <screen><userinput>mkdir -pv ${CLFS}/{bin,boot,dev,etc/opt,home,lib,mnt,opt} 17 mkdir -pv ${CLFS}/{proc,media/{floppy,cdrom},sbin,srv,sys,var} 18 install -dv -m 0750 ${CLFS}/root 19 install -dv -m 1777 ${CLFS}{/var,}/tmp 20 mkdir -pv ${CLFS}/usr/{,local/}{bin,include,lib,sbin,src} 21 mkdir -pv ${CLFS}/usr/{,local/}share/{doc,info,locale,man} 22 mkdir -v ${CLFS}/usr/{,local/}share/{misc,terminfo,zoneinfo} 23 mkdir -pv ${CLFS}/usr/{,local/}share/man/man{1..8} 24 for dir in ${CLFS}/usr{,/local}; do 25 25 ln -sv share/{man,doc,info} $dir 26 26 done 27 mkdir -v ${ LFS}/var/{lock,log,mail,run,spool}28 mkdir -pv ${ LFS}/var/{opt,cache,lib/{misc,locate},local}</userinput></screen>27 mkdir -v ${CLFS}/var/{lock,log,mail,run,spool} 28 mkdir -pv ${CLFS}/var/{opt,cache,lib/{misc,locate},local}</userinput></screen> 29 29 30 30 <para>Directories are, by default, created with permission mode 755, but -
BOOK/final-preps/creatingfiles.xml
r89c10a9 r586feb7 24 24 25 25 <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> 27 27 </indexterm> 28 28 … … 41 41 utilities that expect the presence of <filename>/etc/mtab</filename>:</para> 42 42 43 <screen><userinput>touch ${ LFS}/etc/mtab</userinput></screen>43 <screen><userinput>touch ${CLFS}/etc/mtab</userinput></screen> 44 44 45 45 <para>In order for user <systemitem class="username">root</systemitem> to be … … 51 51 command:</para> 52 52 53 <screen><userinput>cat > ${ LFS}/etc/passwd << "EOF"53 <screen><userinput>cat > ${CLFS}/etc/passwd << "EOF" 54 54 <literal>root:x:0:0:root:/root:/bin/bash</literal> 55 55 EOF</userinput></screen> … … 58 58 (the <quote>x</quote> used here is just a placeholder) will be set later.</para> 59 59 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 60 126 <para>Create the <filename>/etc/group</filename> file by running the following 61 127 command:</para> 62 128 63 <screen><userinput>cat > ${ LFS}/etc/group << "EOF"129 <screen><userinput>cat > ${CLFS}/etc/group << "EOF" 64 130 <literal>root:x:0: 65 131 bin:x:1: … … 80 146 EOF</userinput></screen> 81 147 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 82 208 <para>The created groups are not part of any standard—they are groups 83 209 decided on in part by the requirements of the Udev configuration in this … … 98 224 proper permissions:</para> 99 225 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} 227 chmod -v 664 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen> 102 228 103 229 <para>The <filename>/var/run/utmp</filename> file records the users -
BOOK/final-preps/settingenviron.xml
r89c10a9 r586feb7 13 13 <para os="a">Set up a good working environment by creating two new startup 14 14 files for the <command>bash</command> shell. While logged in as user 15 <systemitem class="username"> lfs</systemitem>, issue the following15 <systemitem class="username">clfs</systemitem>, issue the following 16 16 command to create a new <filename>.bash_profile</filename>:</para> 17 17 … … 20 20 EOF</userinput></screen> 21 21 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>, 23 23 the initial shell is usually a <emphasis>login</emphasis> shell which 24 24 reads the <filename>/etc/profile</filename> of the host (probably … … 42 42 <literal>set +h 43 43 umask 022 44 LFS=/mnt/lfs44 CLFS=/mnt/clfs 45 45 LC_ALL=POSIX 46 PATH=${ LFS}/cross-tools/bin:/bin:/usr/bin46 PATH=${CLFS}/cross-tools/bin:/bin:/usr/bin 47 47 export LFS LC_ALL PATH</literal> 48 48 EOF</userinput></screen> … … 56 56 the shell will always search the <envar>PATH</envar> when a program is to 57 57 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 are58 <filename class="directory">$CLFS${CLFS}/cross-tools</filename> as soon as they are 59 59 available without remembering a previous version of the same program in a 60 60 different location.</para> … … 66 66 mode 644 and directories with mode 755).</para> 67 67 68 <para os="h">The <envar> LFS</envar> variable should be set to the68 <para os="h">The <envar>CLFS</envar> variable should be set to the 69 69 chosen mount point.</para> 70 70 … … 80 80 the chroot environment.</para> 81 81 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> 83 83 at the beginning of the <envar>PATH</envar>, the cross-compiler 84 84 built in <xref linkend="chapter-cross-tools"/> will be picked up by -
BOOK/final-system/arm/perl.xml
r89c10a9 r586feb7 46 46 xpointer="xpointer(//*[@os='c'])"/> 47 47 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> 49 49 50 50 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
BOOK/final-system/common/autoconf.xml
r89c10a9 r586feb7 28 28 <para os="a">Prepare Autoconf for compilation:</para> 29 29 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> 31 31 32 32 <para os="c">Compile the package:</para> … … 36 36 <para os="e">Install the package:</para> 37 37 38 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>38 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 39 39 40 40 </sect2> -
BOOK/final-system/common/automake.xml
r89c10a9 r586feb7 28 28 <para os="a">Prepare Automake for compilation:</para> 29 29 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> 31 31 32 32 <para os="c">Compile the package:</para> … … 36 36 <para os="e">Install the package:</para> 37 37 38 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>38 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 39 39 40 40 </sect2> -
BOOK/final-system/common/bash.xml
r89c10a9 r586feb7 47 47 48 48 <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 \ 50 50 --without-bash-malloc --with-installed-readline</userinput></screen> 51 51 … … 70 70 <para os="j">Install the package:</para> 71 71 72 <screen os="k"><userinput>make DESTDIR=${ LFS} install</userinput></screen>72 <screen os="k"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 73 73 74 74 <para os="l">Create /bin/sh:</para> 75 75 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> 77 77 78 78 </sect2> -
BOOK/final-system/common/binutils.xml
r89c10a9 r586feb7 40 40 41 41 <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> 44 44 45 45 <para os="e">Compile the package:</para> … … 76 76 <para os="j">Install the package:</para> 77 77 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> 79 79 80 80 <para os="l">Install the <filename class="headerfile">libiberty</filename> header 81 81 file that is needed by some packages:</para> 82 82 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> 84 84 85 85 </sect2> -
BOOK/final-system/common/bison.xml
r89c10a9 r586feb7 27 27 <para os="a">Prepare Bison for compilation:</para> 28 28 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> 30 30 31 31 <para os="b1">The configure system causes bison to be built without support … … 42 42 <para os="e">Install the package:</para> 43 43 44 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>44 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 45 45 46 46 </sect2> -
BOOK/final-system/common/bzip2.xml
r89c10a9 r586feb7 68 68 <note os="f"> 69 69 <para>If reinstalling Bzip2, perform 70 <userinput>rm -vf ${ LFS}/usr/bin/bz*</userinput> first, otherwise the71 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> 72 72 </note> 73 73 74 74 <para os="g">Install the programs:</para> 75 75 76 <screen os="h"><userinput>make PREFIX=${ LFS}/usr install</userinput></screen>76 <screen os="h"><userinput>make PREFIX=${CLFS}/usr install</userinput></screen> 77 77 78 78 <para os="i">Install the shared <command>bzip2</command> binary into the … … 80 80 some necessary symbolic links, and clean up:</para> 81 81 82 <screen os="j"><userinput>cp -v bzip2-shared ${ LFS}/bin/bzip283 cp -av libbz2.so* ${ LFS}/lib84 ln -sv ../../lib/libbz2.so.1.0 ${ LFS}/usr/lib/libbz2.so85 rm -v ${ LFS}/usr/bin/{bunzip2,bzcat,bzip2}86 ln -sv bzip2 ${ LFS}/bin/bunzip287 ln -sv bzip2 ${ LFS}/bin/bzcatt</userinput></screen>82 <screen os="j"><userinput>cp -v bzip2-shared ${CLFS}/bin/bzip2 83 cp -av libbz2.so* ${CLFS}/lib 84 ln -sv ../../lib/libbz2.so.1.0 ${CLFS}/usr/lib/libbz2.so 85 rm -v ${CLFS}/usr/bin/{bunzip2,bzcat,bzip2} 86 ln -sv bzip2 ${CLFS}/bin/bunzip2 87 ln -sv bzip2 ${CLFS}/bin/bzcatt</userinput></screen> 88 88 89 89 </sect2> -
BOOK/final-system/common/coreutils.xml
r89c10a9 r586feb7 40 40 41 41 <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> 43 43 44 44 <para os="e">Compile the package:</para> … … 48 48 <para os="g">Install the package:</para> 49 49 50 <screen os="h"><userinput>make DESTDIR=${ LFS} install</userinput></screen>50 <screen os="h"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 51 51 52 52 <para os="i">Move programs to the locations specified by the FHS:</para> 53 53 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 55 mv -v ${CLFS}/usr/bin/{dd,df,echo,false,hostname,ln,ls,mkdir,mknod} ${CLFS}/bin 56 mv -v ${CLFS}/usr/bin/{mv,pwd,rm,rmdir,stty,true,uname} ${CLFS}/bin 57 mv -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 63 61 class="directory">/usr</filename> may not be available during the early 64 62 stages of booting, those binaries need to be on the root partition:</para> 65 63 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 65 mv -v ${CLFS}/usr/bin/{readlink,sleep,sync,test,touch} ${CLFS}/bin 66 ln -svf ../../bin/install ${CLFS}/usr/bin</userinput></screen> 67 67 68 68 </sect2> -
BOOK/final-system/common/diffutils.xml
r89c10a9 r586feb7 28 28 <para os="a">Prepare Diffutils for compilation:</para> 29 29 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> 31 31 32 32 <para os="c">Compile the package:</para> … … 36 36 <para os="e">Install the package:</para> 37 37 38 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>38 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 39 39 40 40 </sect2> -
BOOK/final-system/common/e2fsprogs.xml
r89c10a9 r586feb7 38 38 <screen os="d"><userinput>../configure --prefix=/usr --with-root-prefix="" \ 39 39 --enable-elf-shlibs --disable-evms \ 40 --host=${ LFS_TARGET}</userinput></screen>40 --host=${CLFS_TARGET}</userinput></screen> 41 41 42 42 <variablelist os="e"> … … 85 85 <para os="h">Install the binaries and documentation:</para> 86 86 87 <screen os="i"><userinput>make DESTDIR=${ LFS} install</userinput></screen>87 <screen os="i"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 88 88 89 89 <para os="j">Install the shared libraries:</para> 90 90 91 <screen os="k"><userinput>make DESTDIR=${ LFS} install-libs</userinput></screen>91 <screen os="k"><userinput>make DESTDIR=${CLFS} install-libs</userinput></screen> 92 92 93 93 </sect2> -
BOOK/final-system/common/file.xml
r89c10a9 r586feb7 28 28 <para os="a">Prepare File for compilation:</para> 29 29 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> 31 31 32 32 <para os="c">Compile the package:</para> … … 36 36 <para os="e">Install the package:</para> 37 37 38 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>38 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 39 39 40 40 </sect2> -
BOOK/final-system/common/findutils.xml
r89c10a9 r586feb7 30 30 <para os="a">Prepare Findutils for compilation:</para> 31 31 32 <screen os="b"><userinput>./configure --prefix=/usr --host=${ LFS_TARGET} \32 <screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET} \ 33 33 --libexecdir=/usr/lib/locate --localstatedir=/var/lib/locate</userinput></screen> 34 34 … … 53 53 <para os="f">Install the package:</para> 54 54 55 <screen os="g"><userinput>make DESTDIR=${ LFS} install</userinput></screen>55 <screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 56 56 57 57 </sect2> -
BOOK/final-system/common/flex.xml
r89c10a9 r586feb7 33 33 <para os="c">Prepare Flex for compilation:</para> 34 34 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> 36 36 37 37 <para os="e">Compile the package:</para> … … 41 41 <para os="g">Install the package:</para> 42 42 43 <screen os="h"><userinput>make DESTDIR=${ LFS} install</userinput></screen>43 <screen os="h"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 44 44 45 45 <para os="i">There are some packages that expect to find the … … 48 48 this:</para> 49 49 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> 51 51 52 52 <para os="k">A few programs do not know about <command>flex</command> yet and … … 56 56 mode:</para> 57 57 58 <screen os="l"><userinput>cat > ${ LFS}/usr/bin/lex << "EOF"58 <screen os="l"><userinput>cat > ${CLFS}/usr/bin/lex << "EOF" 59 59 <literal>#!/bin/sh 60 60 # Begin /usr/bin/lex … … 64 64 # End /usr/bin/lex</literal> 65 65 EOF 66 chmod -v 755 ${ LFS}/usr/bin/lex</userinput></screen>66 chmod -v 755 ${CLFS}/usr/bin/lex</userinput></screen> 67 67 68 68 </sect2> -
BOOK/final-system/common/gawk.xml
r89c10a9 r586feb7 34 34 35 35 <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> 37 37 38 38 <para os="e">Compile the package:</para> … … 42 42 <para os="g">Install the package:</para> 43 43 44 <screen os="h"><userinput>make DESTDIR=${ LFS} install</userinput></screen>44 <screen os="h"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 45 45 46 46 </sect2> -
BOOK/final-system/common/gcc.xml
r89c10a9 r586feb7 62 62 63 63 <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} \ 65 65 --enable-shared --enable-threads=posix --enable-__cxa_atexit \ 66 66 --enable-c99 --enable-long-long --enable-clocale=gnu \ … … 73 73 <para os="i">Install the package:</para> 74 74 75 <screen os="j"><userinput>make DESTDIR=${ LFS} install</userinput></screen>75 <screen os="j"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 76 76 77 77 <para os="k">Some packages expect the C preprocessor to be installed in the … … 79 79 To support those packages, create this symlink:</para> 80 80 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> 82 82 83 83 <para os="m">Many packages use the name <command>cc</command> to call the C 84 84 compiler. To satisfy those packages, create a symlink:</para> 85 85 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> 87 87 88 88 </sect2> -
BOOK/final-system/common/gettext.xml
r89c10a9 r586feb7 30 30 <para os="a">Prepare Gettext for compilation:</para> 31 31 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> 33 33 34 34 <para os="c">Compile the package:</para> … … 38 38 <para os="e">Install the package:</para> 39 39 40 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>40 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 41 41 42 42 </sect2> … … 54 54 msgexec, msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq, 55 55 ngettext, and xgettext</seg> 56 <seg>libasprintf.[a,so], libgettextlib ,so, libgettextpo.[a,so], and57 libgettextsrc ,so</seg>56 <seg>libasprintf.[a,so], libgettextlib.so, libgettextpo.[a,so], and 57 libgettextsrc.so</seg> 58 58 </seglistitem> 59 59 </segmentedlist> -
BOOK/final-system/common/grep.xml
r89c10a9 r586feb7 29 29 30 30 <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> 32 32 33 33 <para os="c">Compile the package:</para> … … 37 37 <para os="e">Install the package:</para> 38 38 39 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>39 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 40 40 41 41 </sect2> -
BOOK/final-system/common/groff.xml
r89c10a9 r586feb7 33 33 <para os="b">Prepare Groff for compilation:</para> 34 34 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> 36 36 37 37 <para os="d">Compile the package:</para> … … 41 41 <para os="f">Install the package:</para> 42 42 43 <screen os="g"><userinput>make prefix=${ LFS}/usr install</userinput></screen>43 <screen os="g"><userinput>make prefix=${CLFS}/usr install</userinput></screen> 44 44 45 45 <para os="h">Some documentation programs, such as <command>xman</command>, 46 46 will not work properly without the following symlinks:</para> 47 47 48 <screen os="i"><userinput>ln -sv soelim ${ LFS}/usr/bin/zsoelim49 ln -sv eqn ${ LFS}/usr/bin/geqn50 ln -sv tbl ${ LFS}/usr/bin/gtbl</userinput></screen>48 <screen os="i"><userinput>ln -sv soelim ${CLFS}/usr/bin/zsoelim 49 ln -sv eqn ${CLFS}/usr/bin/geqn 50 ln -sv tbl ${CLFS}/usr/bin/gtbl</userinput></screen> 51 51 52 52 </sect2> -
BOOK/final-system/common/gzip.xml
r89c10a9 r586feb7 35 35 <para os="a">Prepare Gzip for compilation:</para> 36 36 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> 38 38 39 39 <para os="c">The <command>gzexe</command> script has the location of the … … 52 52 <para os="g">Install the package:</para> 53 53 54 <screen os="h"><userinput>make DESTDIR=${ LFS} install</userinput></screen>54 <screen os="h"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 55 55 56 56 <para os="i">Move the <command>gzip</command> program to the <filename … … 58 58 used symlinks to it:</para> 59 59 60 <screen os="j"><userinput>mv -v ${ LFS}/usr/bin/gzip ${LFS}/bin61 rm -v ${ LFS}/usr/bin/{gunzip,zcat}62 ln -sv gzip ${ LFS}/bin/gunzip63 ln -sv gzip ${ LFS}/bin/zcat64 ln -sv gzip ${ LFS}/bin/compress65 ln -sv gunzip ${ LFS}/bin/uncompress</userinput></screen>60 <screen os="j"><userinput>mv -v ${CLFS}/usr/bin/gzip ${CLFS}/bin 61 rm -v ${CLFS}/usr/bin/{gunzip,zcat} 62 ln -sv gzip ${CLFS}/bin/gunzip 63 ln -sv gzip ${CLFS}/bin/zcat 64 ln -sv gzip ${CLFS}/bin/compress 65 ln -sv gunzip ${CLFS}/bin/uncompress</userinput></screen> 66 66 67 67 </sect2> -
BOOK/final-system/common/iana-etc.xml
r89c10a9 r586feb7 34 34 <para os="c">Install the package:</para> 35 35 36 <screen os="d"><userinput>make DESTDIR=${ LFS} install</userinput></screen>36 <screen os="d"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 37 37 38 38 </sect2> -
BOOK/final-system/common/inetutils.xml
r89c10a9 r586feb7 45 45 <para os="a">Prepare Inetutils for compilation:</para> 46 46 47 <screen os="b"><userinput>./configure --prefix=/usr --host=${ LFS_TARGET} \47 <screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET} \ 48 48 --libexecdir=/usr/sbin --sysconfdir=/etc \ 49 49 --localstatedir=/var --disable-logger \ … … 102 102 <para os="f">Install the package:</para> 103 103 104 <screen os="g"><userinput>make DESTDIR=${ LFS} install</userinput></screen>104 <screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 105 105 106 106 <para os="h">Move the <command>ping</command> program to its FHS-compliant 107 107 place:</para> 108 108 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> 110 110 111 111 </sect2> -
BOOK/final-system/common/iproute2.xml
r89c10a9 r586feb7 66 66 <para os="e">Install the package:</para> 67 67 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> 69 69 70 70 </sect2> -
BOOK/final-system/common/kbd.xml
r89c10a9 r586feb7 52 52 <para os="e">Install the package:</para> 53 53 54 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>54 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 55 55 56 56 </sect2> -
BOOK/final-system/common/less.xml
r89c10a9 r586feb7 28 28 29 29 <screen os="b"><userinput>./configure --prefix=/usr --sysconfdir=/etc \ 30 --host=${ LFS_TARGET}</userinput></screen>30 --host=${CLFS_TARGET}</userinput></screen> 31 31 32 32 <variablelist os="c"> … … 49 49 <para os="f">Install the package:</para> 50 50 51 <screen os="g"><userinput>make prefix=${ LFS}/usr install</userinput></screen>51 <screen os="g"><userinput>make prefix=${CLFS}/usr install</userinput></screen> 52 52 53 53 <para os="h">Move less to /bin:</para> 54 54 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> 56 56 57 57 </sect2> -
BOOK/final-system/common/libtool.xml
r89c10a9 r586feb7 29 29 <para os="a">Prepare Libtool for compilation:</para> 30 30 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> 32 32 33 33 <para os="c">Compile the package:</para> … … 37 37 <para os="e">Install the package:</para> 38 38 39 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>39 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 40 40 41 41 </sect2> -
BOOK/final-system/common/m4.xml
r89c10a9 r586feb7 27 27 <para os="a">Prepare M4 for compilation:</para> 28 28 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> 30 30 31 31 <para os="c">Compile the package:</para> … … 35 35 <para os="e">Install the package:</para> 36 36 37 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>37 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 38 38 39 39 </sect2> -
BOOK/final-system/common/make.xml
r89c10a9 r586feb7 27 27 <para os="a">Prepare Make for compilation:</para> 28 28 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> 30 30 31 31 <para os="c">Compile the package:</para> … … 35 35 <para os="e">Install the package:</para> 36 36 37 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>37 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 38 38 39 39 </sect2> -
BOOK/final-system/common/man-pages.xml
r89c10a9 r586feb7 27 27 <para os="a">Install Man-pages by running:</para> 28 28 29 <screen os="b"><userinput>make prefix=${ LFS} install</userinput></screen>29 <screen os="b"><userinput>make prefix=${CLFS} install</userinput></screen> 30 30 31 31 </sect2> -
BOOK/final-system/common/man.xml
r89c10a9 r586feb7 77 77 <para os="o">Install the package:</para> 78 78 79 <screen os="p"><userinput>make DESTDIR=${ LFS} install</userinput></screen>79 <screen os="p"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 80 80 81 81 <note os="q"> -
BOOK/final-system/common/mktemp.xml
r89c10a9 r586feb7 40 40 <para os="c">Prepare Mktemp for compilation:</para> 41 41 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> 43 43 44 44 <variablelist os="e"> … … 61 61 <para os="h">Install the package:</para> 62 62 63 <screen os="i"><userinput>make prefix=${ LFS}/usr install64 make prefix=${ LFS}/usr install-tempfile</userinput></screen>63 <screen os="i"><userinput>make prefix=${CLFS}/usr install 64 make prefix=${CLFS}/usr install-tempfile</userinput></screen> 65 65 66 66 </sect2> -
BOOK/final-system/common/module-init-tools.xml
r89c10a9 r586feb7 28 28 <para os="a">Prepare Module-Init-Tools for compilation:</para> 29 29 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> 31 31 32 32 <variablelist os="c"> … … 49 49 <para os="f">Install the package:</para> 50 50 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> 52 52 53 53 <variablelist os="h"> -
BOOK/final-system/common/ncurses.xml
r89c10a9 r586feb7 29 29 30 30 <screen os="b"><userinput>./configure --prefix=/usr --libdir=/lib \ 31 --host=${ LFS_TARGET} --with-shared \31 --host=${CLFS_TARGET} --with-shared \ 32 32 --without-debug --without-ada --with-build-cc=gcc</userinput></screen> 33 33 … … 38 38 <para os="e">Install the package:</para> 39 39 40 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>40 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 41 41 42 42 <para os="g">Move the Ncurses static libraries to the proper location:</para> 43 43 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> 45 45 46 46 <para os="i">Create symlinks in <filename class="directory">/usr/lib:</filename></para> 47 47 48 <screen os="j"><userinput>rm -v ${ LFS}/lib/lib{ncurses,menu,panel,form,curses}.so49 ln -svf ../../lib/libncurses.so.5 ${ LFS}/usr/lib/libcurses.so50 ln -svf ../../lib/libncurses.so.5 ${ LFS}/usr/lib/libncurses.so51 ln -svf ../../lib/libmenu.so.5 ${ LFS}/usr/lib/libmenu.so52 ln -svf ../../lib/libpanel.so.5 ${ LFS}/usr/lib/libpanel.so53 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 49 ln -svf ../../lib/libncurses.so.5 ${CLFS}/usr/lib/libcurses.so 50 ln -svf ../../lib/libncurses.so.5 ${CLFS}/usr/lib/libncurses.so 51 ln -svf ../../lib/libmenu.so.5 ${CLFS}/usr/lib/libmenu.so 52 ln -svf ../../lib/libpanel.so.5 ${CLFS}/usr/lib/libpanel.so 53 ln -svf ../../lib/libform.so.5 ${CLFS}/usr/lib/libform.so</userinput></screen> 54 54 55 55 <para os="k">Give the Ncurses libraries execute permissions:</para> 56 56 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> 58 58 59 59 </sect2> -
BOOK/final-system/common/patch.xml
r89c10a9 r586feb7 29 29 <para os="a">Prepare Patch for compilation:</para> 30 30 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> 32 32 33 33 <para os="c">Compile the package:</para> … … 37 37 <para os="e">Install the package:</para> 38 38 39 <screen os="f"><userinput>make prefix=${ LFS}/usr install</userinput></screen>39 <screen os="f"><userinput>make prefix=${CLFS}/usr install</userinput></screen> 40 40 41 41 </sect2> -
BOOK/final-system/common/perl.xml
r89c10a9 r586feb7 37 37 <para os="c">Compile the package:</para> 38 38 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> 40 40 41 41 <para os="e">Install the package:</para> 42 42 43 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>43 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 44 44 45 45 </sect2> -
BOOK/final-system/common/procps.xml
r89c10a9 r586feb7 40 40 <para os="c">Install the package:</para> 41 41 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> 43 43 44 44 </sect2> -
BOOK/final-system/common/psmisc.xml
r89c10a9 r586feb7 28 28 <para os="a">Prepare Psmisc for compilation:</para> 29 29 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> 31 31 32 32 <variablelist os="c"> … … 51 51 <para os="f">Install the package:</para> 52 52 53 <screen os="g"><userinput>make DESTDIR=${ LFS} install</userinput></screen>53 <screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 54 54 55 55 <para os="h">There is no reason for the <command>pstree</command> and … … 58 58 class="directory">/usr/bin</filename>:</para> 59 59 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> 61 61 62 62 <para os="j">By default, Psmisc's <command>pidof</command> program is not installed. … … 66 66 of Psmisc by creating the following symlink:</para> 67 67 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> 69 69 70 70 </sect2> -
BOOK/final-system/common/readline.xml
r89c10a9 r586feb7 33 33 <para os="a">Prepare Readline for compilation:</para> 34 34 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> 36 36 37 37 <para os="c">Compile the package:</para> … … 53 53 <para os="f">Install the package:</para> 54 54 55 <screen os="g"><userinput>make DESTDIR=${ LFS} install</userinput></screen>55 <screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 56 56 57 57 <para os="h">Give Readline's dynamic libraries more appropriate 58 58 permissions:</para> 59 59 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> 61 61 62 62 <para os="j">Now move the static libraries to a more appropriate location:</para> 63 63 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> 65 65 66 66 <para os="l">Next, remove the <filename class="extension">.so</filename> … … 68 68 <filename class="directory">/usr/lib</filename>.</para> 69 69 70 <screen os="m"><userinput>rm -v ${ LFS}/lib/lib{readline,history}.so71 ln -svf ../../lib/libreadline.so.5 ${ LFS}/usr/lib/libreadline.so72 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 71 ln -svf ../../lib/libreadline.so.5 ${CLFS}/usr/lib/libreadline.so 72 ln -svf ../../lib/libhistory.so.5 ${CLFS}/usr/lib/libhistory.so</userinput></screen> 73 73 74 74 </sect2> -
BOOK/final-system/common/sed.xml
r89c10a9 r586feb7 28 28 29 29 <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> 31 31 32 32 <variablelist os="c"> … … 48 48 <para os="f">Install the package:</para> 49 49 50 <screen os="g"><userinput>make DESTDIR=${ LFS} install</userinput></screen>50 <screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 51 51 52 52 </sect2> -
BOOK/final-system/common/shadow.xml
r89c10a9 r586feb7 43 43 <screen os="e"><userinput>./configure --libdir=/lib --sysconfdir=/etc --enable-shared \ 44 44 --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> 46 46 47 47 <para os="f">The meaning of the configure options:</para> … … 84 84 <para os="l">Install the package:</para> 85 85 86 <screen os="m"><userinput>make DESTDIR=${ LFS} install</userinput></screen>86 <screen os="m"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 87 87 88 88 <para id="shadow-login_defs" os="r">Instead of using the default … … 100 100 </indexterm> 101 101 102 <screen os="t"><userinput>cp ${ LFS}/etc/login.defs login.defs.orig102 <screen os="t"><userinput>cp ${CLFS}/etc/login.defs login.defs.orig 103 103 sed -e's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \ 104 104 -e 's@/var/spool/mail@/var/mail@' \ 105 login.defs.orig > ${ LFS}/etc/login.defs</userinput></screen>105 login.defs.orig > ${CLFS}/etc/login.defs</userinput></screen> 106 106 107 107 <note os="u"> … … 111 111 112 112 <screen><userinput>cp {LFS}/etc/login.defs login.defs.orig 113 sed 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' login.defs.orig > ${ LFS}/etc/login.defs</userinput></screen>113 sed 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' login.defs.orig > ${CLFS}/etc/login.defs</userinput></screen> 114 114 </note> 115 115 116 116 <para os="v">Move a misplaced program to its proper location:</para> 117 117 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> 119 119 120 120 <para os="x">Move Shadow's dynamic libraries to a more appropriate 121 121 location:</para> 122 122 123 <screen os="y"><userinput>mv -v ${ LFS}/lib/libshadow.*a ${LFS}/usr/lib124 rm -v ${ LFS}/lib/libshadow.so125 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 124 rm -v ${CLFS}/lib/libshadow.so 125 ln -svf ../../lib/libshadow.so.0 ${CLFS}/usr/lib/libshadow.so</userinput></screen> 126 126 127 127 </sect2> -
BOOK/final-system/common/stripping.xml
r89c10a9 r586feb7 23 23 backup of the current situation.</para> 24 24 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> 27 27 28 28 <para os="i">A large number of files will be reported as having their file -
BOOK/final-system/common/sysklogd.xml
r89c10a9 r586feb7 43 43 <para os="f">Install the package:</para> 44 44 45 <screen os="g"><userinput>make prefix=${ LFS} install</userinput></screen>45 <screen os="g"><userinput>make prefix=${CLFS} install</userinput></screen> 46 46 47 47 </sect2> … … 61 61 the following:</para> 62 62 63 <screen><userinput>cat > ${ LFS}/etc/syslog.conf << "EOF"63 <screen><userinput>cat > ${CLFS}/etc/syslog.conf << "EOF" 64 64 <literal># Begin /etc/syslog.conf 65 65 -
BOOK/final-system/common/sysvinit.xml
r89c10a9 r586feb7 52 52 53 53 <screen os="d"><userinput>make -C src clobber 54 make -C src ROOT=${ LFS} CC="${CC}"</userinput></screen>54 make -C src ROOT=${CLFS} CC="${CC}"</userinput></screen> 55 55 56 56 <para os="e">Install the package:</para> 57 57 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> 59 59 60 60 </sect2> … … 74 74 following:</para> 75 75 76 <screen><userinput>cat > ${ LFS}/etc/inittab << "EOF"76 <screen><userinput>cat > ${CLFS}/etc/inittab << "EOF" 77 77 <literal># Begin /etc/inittab 78 78 -
BOOK/final-system/common/tar.xml
r89c10a9 r586feb7 43 43 44 44 <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> 46 46 47 47 <para os="c">Compile the package:</para> … … 51 51 <para os="e">Install the package:</para> 52 52 53 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>53 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 54 54 55 55 </sect2> -
BOOK/final-system/common/texinfo.xml
r89c10a9 r586feb7 33 33 <para os="a">Prepare Texinfo for compilation:</para> 34 34 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> 36 36 37 37 <para os="c">Compile the package:</para> … … 41 41 <para os="e">Install the package:</para> 42 42 43 <screen os="f"><userinput>make DESTDIR=${ LFS} install</userinput></screen>43 <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 44 44 45 45 <para os="g">Optionally, install the components belonging in a TeX 46 46 installation:</para> 47 47 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> 49 49 50 50 <variablelist os="i"> … … 70 70 the following optional commands will accomplish the task:</para> 71 71 72 <screen os="k" role="nodump"><userinput>cd ${ LFS}/usr/share/info72 <screen os="k" role="nodump"><userinput>cd ${CLFS}/usr/share/info 73 73 rm dir 74 74 for f in * -
BOOK/final-system/common/udev.xml
r89c10a9 r586feb7 28 28 <para os="a">Compile the package:</para> 29 29 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}" \ 31 31 EXTRAS="extras/floppy extras/cdrom_id extras/firmware \ 32 32 extras/scsi_id extras/volume_id extras/ata_id extras/usb_id \ … … 50 50 <para os="c">Install the package:</para> 51 51 52 <screen os="d"><userinput>make DESTDIR="${ LFS}" \52 <screen os="d"><userinput>make DESTDIR="${CLFS}" \ 53 53 EXTRAS="extras/floppy extras/cdrom_id extras/firmware \ 54 54 extras/scsi_id extras/volume_id extras/ata_id extras/usb_id \ … … 57 57 <para os="e">Install necessary helpers.</para> 58 58 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> 60 60 61 61 <para os="g">Install the documentation that explains how to create … … 63 63 64 64 <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> 66 66 67 67 <para os="i">Create a directory for storing firmware that can be 68 68 loaded by <command>udev</command>:</para> 69 69 70 <screen os="j"><userinput>install -dv ${ LFS}/lib/firmware</userinput></screen>70 <screen os="j"><userinput>install -dv ${CLFS}/lib/firmware</userinput></screen> 71 71 72 72 </sect2> -
BOOK/final-system/common/util-linux.xml
r89c10a9 r586feb7 37 37 sed 's@etc/adjtime@var/lib/hwclock/adjtime@g' \ 38 38 hwclock/hwclock.c.orig > hwclock/hwclock.c 39 mkdir -pv ${ LFS}/var/lib/hwclock</userinput></screen>39 mkdir -pv ${CLFS}/var/lib/hwclock</userinput></screen> 40 40 41 41 </sect2> … … 121 121 122 122 <screen os="g"><userinput>make HAVE_KILL=yes HAVE_SLN=yes \ 123 CPUOPT="" ARCH="" CPU="" USE_TTY_GROUP=no DESTDIR=${ LFS} install124 mv -v ${ LFS}/usr/bin/logger ${LFS}/bin</userinput></screen>123 CPUOPT="" ARCH="" CPU="" USE_TTY_GROUP=no DESTDIR=${CLFS} install 124 mv -v ${CLFS}/usr/bin/logger ${CLFS}/bin</userinput></screen> 125 125 126 126 </sect2> -
BOOK/final-system/common/variables.xml
r89c10a9 r586feb7 14 14 and linkers:</para> 15 15 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" 17 export CXX="${CLFS_TARGET}-g++" 18 export AR="${CLFS_TARGET}-ar" 19 export AS="${CLFS_TARGET}-as" 20 export RANLIB="${CLFS_TARGET}-ranlib" 21 export LD="${CLFS_TARGET}-ld" 22 export STRIP="${CLFS_TARGET}-strip"</userinput></screen> 23 23 24 24 <para>Then add the build variables to <filename>~/.bashrc</filename> to -
BOOK/final-system/common/vim.xml
r89c10a9 r586feb7 56 56 <para os="d">Prepare Vim for compilation:</para> 57 57 58 <screen os="e"><userinput>./configure --prefix=/usr --host=${ LFS_TARGET} \58 <screen os="e"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET} \ 59 59 --enable-multibyte --enable-gui=no \ 60 60 --disable-gtktest --disable-xim \ … … 86 86 <para os="i">Install the package:</para> 87 87 88 <screen os="j"><userinput>make DESTDIR=${ LFS} install</userinput></screen>88 <screen os="j"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 89 89 90 90 <para os="k">Many users are accustomed to using <command>vi</command> … … 95 95 and allow programs that use <command>vi</command> to work:</para> 96 96 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> 98 98 99 99 <para os="m">By default, Vim's documentation is installed in … … 103 103 it consistent with the location of documentation for other packages:</para> 104 104 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> 106 106 107 107 <para os="o">If an X Window System is going to be installed on the LFS … … 132 132 following:</para> 133 133 134 <screen><userinput>cat > ${ LFS}/etc/vimrc << "EOF"134 <screen><userinput>cat > ${CLFS}/etc/vimrc << "EOF" 135 135 <literal>" Begin /etc/vimrc 136 136 -
BOOK/final-system/common/zlib.xml
r89c10a9 r586feb7 41 41 <para os="e">Install the pacakge:</para> 42 42 43 <screen os="f"><userinput>make prefix=${ LFS}/usr install</userinput></screen>43 <screen os="f"><userinput>make prefix=${CLFS}/usr install</userinput></screen> 44 44 45 45 <para os="g">The previous command installed a <filename … … 49 49 to <filename class="directory">/usr/lib</filename>:</para> 50 50 51 <screen os="h"><userinput>mv -v ${ LFS}/usr/lib/libz.so.* ${LFS}/lib52 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 52 ln -svf ../../lib/libz.so.1 ${CLFS}/usr/lib/libz.so</userinput></screen> 53 53 54 54 <para os="i">Now we fix the permissions on the static library:</para> 55 55 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> 57 57 58 58 </sect2> -
BOOK/general.ent
r89c10a9 r586feb7 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 2 3 <!ENTITY month "0 6"> <!-- Use two digits -->4 <!ENTITY month_name "Ju ne">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 --> 6 6 <!ENTITY year "2006"> <!-- Use four digits --> 7 7 -
BOOK/introduction/common/changelog.xml
r89c10a9 r586feb7 38 38 39 39 <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> 40 55 <para>June 28, 2006</para> 41 56 <itemizedlist> -
BOOK/introduction/common/how.xml
r89c10a9 r586feb7 45 45 46 46 <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 linker47 binutils into ${CLFS}/cross-tools, so that we have an asembler and a linker 48 48 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 the49 into ${CLFS}/cross-tools, this cross-compiler is used to build glibc for the 50 50 final-system. The GCC cross-compiler is then rebuilt dynamically - this final 51 51 cross-compiler is what will be used to build the final-system.</para> -
BOOK/introduction/common/resources.xml
r89c10a9 r586feb7 76 76 accessing the website and downloading the required packages more 77 77 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> 79 81 80 82 </sect2> -
BOOK/materials/common/introduction.xml
r89c10a9 r586feb7 30 30 that is conveniently available throughout the entire build. A working 31 31 directory is also required to unpack the sources and build them. 32 <filename class="directory">$ LFS/sources</filename> can be used both32 <filename class="directory">$CLFS/sources</filename> can be used both 33 33 as the place to store the tarballs and patches and as a working 34 34 directory. By using this directory, the required elements will be … … 40 40 starting the download session:</para> 41 41 42 <screen><userinput>mkdir -v $ LFS/sources</userinput></screen>42 <screen><userinput>mkdir -v $CLFS/sources</userinput></screen> 43 43 44 44 <para>Make this directory writable and sticky. <quote>Sticky</quote> … … 48 48 sticky modes:</para> 49 49 50 <screen><userinput>chmod -v a+wt $ LFS/sources</userinput></screen>50 <screen><userinput>chmod -v a+wt $CLFS/sources</userinput></screen> 51 51 52 52 </sect1> -
BOOK/materials/common/patches.xml
r89c10a9 r586feb7 308 308 309 309 <para>In addition to the above required patches, there exist a number of 310 optional patches created by the LFS community. These optional patches310 optional patches created by the CLFS community. These optional patches 311 311 solve minor problems or enable functionality that is not enabled by 312 312 default. Feel free to peruse the patches database located at -
BOOK/packages.ent
r89c10a9 r586feb7 67 67 <!ENTITY bzip2-home "http://www.bzip.org/"> 68 68 69 <!ENTITY clfs-bootscripts-version "0. 1">70 <!ENTITY clfs-bootscripts-size "2 4KB">69 <!ENTITY clfs-bootscripts-version "0.2"> 70 <!ENTITY clfs-bootscripts-size "28 KB"> 71 71 <!ENTITY clfs-bootscripts-url "http://ftp.jg555.com/bootscripts/bootscripts-cross-lfs-&clfs-bootscripts-version;.tar.bz2"> 72 <!ENTITY clfs-bootscripts-md5 "c f9e749b476a9eed6a644506fff50804">72 <!ENTITY clfs-bootscripts-md5 "cbb353e5c5e52c1e72851310275d8d9d"> 73 73 <!ENTITY clfs-bootscripts-home " "> 74 74 -
BOOK/partitioning/common/mounting.xml
r89c10a9 r586feb7 21 21 environment variable by running:</para> 22 22 23 <screen><userinput>export LFS=/mnt/lfs</userinput></screen>23 <screen><userinput>export CLFS=/mnt/lfs</userinput></screen> 24 24 25 25 <para>Next, create the mount point and mount the CLFS file system by 26 26 running:</para> 27 27 28 <screen><userinput>mkdir -pv $ LFS29 mount -v /dev/<replaceable>[xxx]</replaceable> $ LFS</userinput></screen>28 <screen><userinput>mkdir -pv $CLFS 29 mount -v /dev/<replaceable>[xxx]</replaceable> $CLFS</userinput></screen> 30 30 31 31 <para>Replace <replaceable>[xxx]</replaceable> with the designation of … … 36 36 class="directory">/usr</filename>), mount them using:</para> 37 37 38 <screen><userinput>mkdir -pv $ LFS39 mount -v /dev/<replaceable>[xxx]</replaceable> $ LFS40 mkdir -v $ LFS/usr41 mount -v /dev/<replaceable>[yyy]</replaceable> $ LFS/usr</userinput></screen>38 <screen><userinput>mkdir -pv $CLFS 39 mount -v /dev/<replaceable>[xxx]</replaceable> $CLFS 40 mkdir -v $CLFS/usr 41 mount -v /dev/<replaceable>[yyy]</replaceable> $CLFS/usr</userinput></screen> 42 42 43 43 <para>Replace <replaceable>[xxx]</replaceable> and -
BOOK/prologue/common/foreword.xml
r89c10a9 r586feb7 35 35 allowed me to create compact and streamlined Linux systems which are 36 36 faster and take up less space than traditional operating systems. I 37 called this system a Linux From Scratch system, or an LFS system for37 called this system a Linux From Scratch system, or an CLFS system for 38 38 short.</para> 39 39 40 40 <para>As I shared my goals and experiences with other members of the 41 41 Linux community, it became apparent that there was sustained interest 42 in the ideas set forth in my Linux adventures. Such custom-built LFS42 in the ideas set forth in my Linux adventures. Such custom-built CLFS 43 43 systems serve not only to meet user specifications and requirements, but 44 44 also serve as an ideal learning opportunity for programmers and system … … 57 57 system.</para> 58 58 59 <para>I hope you will have a great time working on your own LFS59 <para>I hope you will have a great time working on your own CLFS 60 60 system, and enjoy the numerous benefits of having a system that is 61 61 truly <emphasis>your own</emphasis>.</para> -
BOOK/prologue/common/prerequisites.xml
r89c10a9 r586feb7 51 51 <para>This is an LFS Hint written specifically for users new to Linux. 52 52 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 an53 wide range of topics. Anyone attempting to install CLFS should have an 54 54 understanding of many of the topics in this hint.</para> 55 55 </listitem> -
BOOK/prologue/common/typography.xml
r89c10a9 r586feb7 23 23 referenced.</para> 24 24 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> 26 26 27 27 <para>This form of text (fixed-width text) shows screen output, … … 34 34 Its main purpose is to emphasize important points or items.</para> 35 35 36 <para><ulink url="& lfs-root;"/></para>36 <para><ulink url="&clfs-root;"/></para> 37 37 38 38 <para>This format is used for hyperlinks, both within the LFS … … 40 40 and websites.</para> 41 41 42 <screen role="nodump"><userinput>cat > $ LFS/etc/group << "EOF"42 <screen role="nodump"><userinput>cat > $CLFS/etc/group << "EOF" 43 43 <literal>root:x:0: 44 44 bin:x:1: … … 48 48 <para>This format is used when creating configuration files. The first 49 49 command tells the system to create the file 50 <filename>$ LFS/etc/group</filename> from whatever is typed on the50 <filename>$CLFS/etc/group</filename> from whatever is typed on the 51 51 following lines until the sequence end of file (EOF) is encountered. 52 52 Therefore, this entire section is generally typed as seen.</para> -
BOOK/the-end/reboot.xml
r89c10a9 r586feb7 37 37 <para>Then unmount the virtual file systems:</para> 38 38 39 <screen><userinput>umount $ LFS/dev/pts40 umount $ LFS/dev/shm41 umount $ LFS/dev42 umount $ LFS/proc43 umount $ LFS/sys</userinput></screen>39 <screen><userinput>umount $CLFS/dev/pts 40 umount $CLFS/dev/shm 41 umount $CLFS/dev 42 umount $CLFS/proc 43 umount $CLFS/sys</userinput></screen> 44 44 45 45 <para>Unmount the LFS file system itself:</para> 46 46 47 <screen><userinput>umount $ LFS</userinput></screen>47 <screen><userinput>umount $CLFS</userinput></screen> 48 48 49 49 <para>If multiple partitions were created, unmount the other 50 50 partitions before unmounting the main one, like this:</para> 51 51 52 <screen><userinput>umount $ LFS/usr53 umount $ LFS/home54 umount $ LFS</userinput></screen>52 <screen><userinput>umount $CLFS/usr 53 umount $CLFS/home 54 umount $CLFS</userinput></screen> 55 55 56 56 <para>Now, reboot the system with:</para> -
BOOK/the-end/theend.xml
r89c10a9 r586feb7 24 24 Create this file by running:</para> 25 25 26 <screen><userinput>echo &version; > ${ LFS}/etc/clfs-release</userinput></screen>26 <screen><userinput>echo &version; > ${CLFS}/etc/clfs-release</userinput></screen> 27 27 28 28 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.