Changeset 17476c5
- Timestamp:
- 01/26/2004 10:23:41 PM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- daaa0941
- Parents:
- f2f5117
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
appendixa/gettext-desc.xml
rf2f5117 r17476c5 52 52 catalog that match a given pattern or belong to some given source files.</para> 53 53 54 <para><command>msginit</command> creates a new 54 <para><command>msginit</command> creates a new <filename>.po</filename> 55 55 file, initializing the meta information with values from the user's 56 56 environment.</para> -
appendixa/groff-desc.xml
rf2f5117 r17476c5 74 74 image.</para> 75 75 76 <para><command>pre-grohtml </command> translates 76 <para><command>pre-grohtml </command> translates the output of GNU troff 77 77 to html.</para> 78 78 -
appendixa/kernel-desc.xml
rf2f5117 r17476c5 7 7 to the software, and turns a single CPU into a multi-tasking machine capable 8 8 of running scores of programs seemingly at the same time.</para> 9 9 10 10 <para>The <emphasis>kernel headers</emphasis> define the interface to the 11 11 services that the kernel provides. The headers in your system's -
appendixa/modutils-desc.xml
rf2f5117 r17476c5 2 2 3 3 <para><command>depmod</command> creates a dependency file, based on the 4 symbols it finds in the existing set of modules. This 4 symbols it finds in the existing set of modules. This dependency file is used 5 5 by modprobe to automatically load the required modules.</para> 6 6 -
appendixa/sysvinit-desc.xml
rf2f5117 r17476c5 33 33 34 34 <para><command>runlevel</command> reports the previous and the current 35 runlevel, as noted in the last runlevel record 35 runlevel, as noted in the last runlevel record in 36 36 <filename>/var/run/utmp</filename>.</para> 37 37 … … 44 44 <para><command>telinit</command> tells init which runlevel to enter.</para> 45 45 46 <para><command>utmpdump</command> displays the content of 46 <para><command>utmpdump</command> displays the content of the given login 47 47 file in a friendlier format.</para> 48 48 -
appendixb/appendixb.xml
rf2f5117 r17476c5 6 6 installed in this book, each with a link to the package in Appendix A 7 7 to which it belongs.</para> 8 8 9 9 <itemizedlist> 10 10 … … 128 128 <listitem><para>elvtune : <xref linkend="ch06-util-linux"/></para></listitem> 129 129 <listitem><para>env : <xref linkend="ch06-coreutils"/></para></listitem> 130 <listitem><para>envsubst : <xref linkend="ch06-gettext"/></para></listitem> 130 <listitem><para>envsubst : <xref linkend="ch06-gettext"/></para></listitem> 131 131 <listitem><para>enc2xs : <xref linkend="ch06-perl"/></para></listitem> 132 132 <listitem><para>eqn : <xref linkend="ch06-groff"/></para></listitem> … … 295 295 <listitem><para>libnetcfg : <xref linkend="ch06-perl"/></para></listitem> 296 296 <listitem><para>libnsl : <xref linkend="ch06-glibc"/></para></listitem> 297 <listitem><para>libnss* 297 <listitem><para>libnss* : <xref linkend="ch06-glibc"/></para></listitem> 298 298 <listitem><para>libopcodes : <xref linkend="ch06-binutils"/></para></listitem> 299 299 <listitem><para>libpanel : <xref linkend="ch06-ncurses"/></para></listitem> … … 557 557 <listitem><para>swapoff : <xref linkend="ch06-util-linux"/></para></listitem> 558 558 <listitem><para>swapon : <xref linkend="ch06-util-linux"/></para></listitem> 559 <listitem><para>symlink-tree : <xref linkend="ch06-automake"/></para></listitem> 559 <listitem><para>symlink-tree : <xref linkend="ch06-automake"/></para></listitem> 560 560 <listitem><para>sync : <xref linkend="ch06-coreutils"/></para></listitem> 561 561 <listitem><para>sysctl : <xref linkend="ch06-procps"/></para></listitem> -
chapter01/how.xml
rf2f5117 r17476c5 24 24 <para>The first thing to be done in <xref linkend="chapter05"/> is build a 25 25 first pass of the toolchain, made up of Binutils and GCC. The programs from 26 these 26 these packages will be linked statically in order for them to be usable 27 27 independently of the host system. The second thing to do is build Glibc, the 28 28 C library. Glibc will be compiled by the toolchain programs we just built in … … 41 41 42 42 <para>In <xref linkend="chapter06"/> your real LFS system will be built. The 43 chroot (change root) 43 chroot (change root) program is used to enter a virtual environment and start 44 44 a new shell whose root directory will be set to the LFS partition. This is very 45 45 similar to rebooting and instructing the kernel to mount the LFS partition as … … 55 55 <xref linkend="chapter07"/>, the kernel and bootloader are set up in 56 56 <xref linkend="chapter08"/>, and <xref linkend="chapter09"/> contains some 57 pointers to help you after you finish the book. 57 pointers to help you after you finish the book. Then, finally, you're ready to 58 58 reboot your computer into your new LFS system.</para> 59 59 -
chapter02/askforhelp.xml
rf2f5117 r17476c5 40 40 is run, look through the <filename>config.log</filename> file. This file 41 41 may contain errors encountered during configure which weren't printed to 42 the screen. 42 the screen. Include those relevant lines if you decide to ask for 43 43 help.</para> 44 44 -
chapter03/chapter03.xml
rf2f5117 r17476c5 123 123 <para>You should also ensure that this new partition is not mounted with 124 124 permissions that are too restrictive (such as the nosuid, nodev or noatime 125 options). 125 options). You can run the <userinput>mount</userinput> command without any 126 126 parameters to see with what options the LFS partition is mounted. If 127 127 you see nosuid, nodev or noatime, you will need to remount it.</para> -
chapter05/binutils-pass2.xml
rf2f5117 r17476c5 55 55 <blockquote><screen>make[1]: *** [check-binutils] Error 2</screen></blockquote> 56 56 57 <para>And install the package:</para> 57 <para>And install the package:</para> 58 58 59 59 <screen><userinput>make install</userinput></screen> -
chapter05/chapter05.xml
rf2f5117 r17476c5 309 309 can damage or even wreck your system. Therefore we recommend that you 310 310 build the packages in this chapter as an unprivileged user. You could 311 of course use your own user name, 311 of course use your own user name, but to make it easier to set up a clean 312 312 work environment we'll create a new user <emphasis>lfs</emphasis> and 313 313 use this one during the installation process. As <emphasis>root</emphasis>, … … 383 383 full pathnames of executable files to avoid searching the PATH time and time 384 384 again to find the same executable. However, we'd like the new tools to be 385 used as soon as they are installed. 385 used as soon as they are installed. By switching off the hash function, our 386 386 "interactive" commands (<userinput>make</userinput>, 387 387 <userinput>patch</userinput>, <userinput>sed</userinput>, … … 401 401 having LC_ALL set to something other than "POSIX" or "C" during this chapter 402 402 may cause trouble if you exit the chroot environment and wish to return later. 403 By setting LC_ALL to "POSIX" (or "C", the two are equivalent) 403 By setting LC_ALL to "POSIX" (or "C", the two are equivalent) we ensure that 404 404 everything will work as expected in the chroot environment.</para> 405 405 … … 455 455 456 456 <!-- Ampersands are needed to allow cut and paste --> 457 457 458 458 <screen><userinput>SPECFILE=/tools/lib/gcc-lib/*/*/specs && 459 459 sed -e 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \ … … 477 477 system have found their way into GCC's private include dir. This can happen 478 478 because of GCC's "fixincludes" process which runs as part of the GCC build. 479 We'll explain more about this further on in this chapter. 479 We'll explain more about this further on in this chapter. For now, run the 480 480 following commands to eliminate this possibility:</para> 481 481 -
chapter05/gcc-pass1.xml
rf2f5117 r17476c5 41 41 42 42 <itemizedlist> 43 <listitem><para><userinput>--with-local-prefix=/tools</userinput>: 43 <listitem><para><userinput>--with-local-prefix=/tools</userinput>: The 44 44 purpose of this switch is to remove <filename>/usr/local/include</filename> 45 45 from <userinput>gcc</userinput>'s include search path. This is not absolutely -
chapter05/gcc-pass2.xml
rf2f5117 r17476c5 45 45 patch -Np1 -i ../&gcc-specs-patch;</userinput></screen> 46 46 47 <para>The first patch disables the GCC "fixincludes" script. 47 <para>The first patch disables the GCC "fixincludes" script. We mentioned this 48 48 briefly earlier, but a slightly more in-depth explanation of the fixincludes 49 process is warranted here. 50 script scans your system for header files that need to be fixed. 49 process is warranted here. Under normal circumstances, the GCC fixincludes 50 script scans your system for header files that need to be fixed. It might find 51 51 that some Glibc header files on your host system need to be fixed, fix them and 52 put them in the GCC private include directory. 52 put them in the GCC private include directory. Then, later on in 53 53 <xref linkend="chapter06"/>, after we've installed the newer Glibc, this 54 54 private include directory would be searched before the system include … … 160 160 to continue on.</para> 161 161 162 <para>And finally install the package:</para> 162 <para>And finally install the package:</para> 163 163 164 164 <screen><userinput>make install</userinput></screen> -
chapter05/grep.xml
rf2f5117 r17476c5 24 24 <listitem><para><userinput>--disable-perl-regexp</userinput>: This makes sure 25 25 that <userinput>grep</userinput> does not get linked against a PCRE library 26 that may be present on the host , butwould not be available once we enter the26 that may be present on the host and would not be available once we enter the 27 27 chroot environment.</para></listitem> 28 28 <listitem><para><userinput>--with-included-regex</userinput>: This ensures that 29 Grep uses its internal regular expression code. Without it, it will use30 the code from Glibc, which is known to be slightly buggy.</para></listitem>29 Grep uses its internal regular expression code. Without this switch, Grep will 30 use the code from Glibc, which is known to be slightly buggy.</para></listitem> 31 31 </itemizedlist> 32 32 -
chapter05/utillinux.xml
rf2f5117 r17476c5 15 15 16 16 <para>Util-linux doesn't use the freshly installed headers and libraries from 17 the <filename>/tools</filename> directory. 17 the <filename>/tools</filename> directory. This is fixed by altering the 18 18 configure script:</para> 19 19 -
chapter06/chapter06.xml
rf2f5117 r17476c5 102 102 <para>Notice that <filename class="directory">/tools/bin</filename> comes 103 103 last in the PATH. This means that a temporary tool will not be used any more 104 as soon as its final version is installed. 104 as soon as its final version is installed. Well, at least when the shell 105 105 doesn't remember the locations of executed binaries -- for this reason hashing 106 106 is switched off by passing the <userinput>+h</userinput> option to -
chapter06/coreutils.xml
rf2f5117 r17476c5 54 54 a dummy system user and two dummy groups to allow the tests to run 55 55 properly. Should you choose not to run the test suite, skip down to 56 "Install the package". 56 "Install the package". The following commands will prepare us for the test 57 57 suite. Create two dummy groups and a dummy user name:</para> 58 58 -
chapter06/groff.xml
rf2f5117 r17476c5 17 17 18 18 <para>Groff expects the environment variable PAGE to contain the default paper 19 size. For those in the United States, the command below is appropriate. 19 size. For those in the United States, the command below is appropriate. If you 20 20 live elsewhere, you may want to change <emphasis>PAGE=letter</emphasis> to 21 21 <emphasis>PAGE=A4</emphasis>.</para> -
chapter06/ncurses.xml
rf2f5117 r17476c5 4 4 5 5 <para>The Ncurses package contains libraries for the terminal-independent 6 handling of character 6 handling of character screens.</para> 7 7 8 8 <screen>Estimated build time: &ncurses-time; -
chapter06/procinfo.xml
rf2f5117 r17476c5 23 23 <itemizedlist> 24 24 <listitem><para><userinput>LDLIBS=-lncurses</userinput>: This tells Procinfo 25 to use the <filename>libncurses</filename> library instead of 25 to use the <filename>libncurses</filename> library instead of the 26 26 long-obsolete <filename>libtermcap</filename>.</para></listitem> 27 27 </itemizedlist> -
chapter08/grub.xml
rf2f5117 r17476c5 98 98 hence the use of the <emphasis>--no-mem-option</emphasis> above.</para></note> 99 99 100 <para>You may want to add an entry for your host distribution. 100 <para>You may want to add an entry for your host distribution. It might look 101 101 like this:</para> 102 102
Note:
See TracChangeset
for help on using the changeset viewer.