Changeset 8d5322e


Ignore:
Timestamp:
11/18/2022 07:41:41 AM (17 months ago)
Author:
Thomas Trepl (Moody) <thomas@…>
Branches:
multilib
Children:
46405a5b
Parents:
16a1647 (diff), 7115c88 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Automatic merge of trunk into multilib

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • chapter07/chroot.xml

    r16a1647 r8d5322e  
    3939  <para>From this point on, there is no need to use the
    4040  <envar>LFS</envar> variable any more because all work will be restricted
    41   to the LFS file system; the <command>chroot</command> command tells the Bash shell that
    42   <filename class="directory">$LFS</filename> is now the root
    43   (<filename class="directory">/</filename>) directory.</para>
     41  to the LFS file system; the <command>chroot</command> command runs the
     42  Bash shell with the root
     43  (<filename class="directory">/</filename>) directory set to
     44  <filename class='directory'>$LFS</filename>.</para>
    4445
    4546  <para>Notice that <filename class="directory">/tools/bin</filename> is not
  • chapter07/kernfs.xml

    r16a1647 r8d5322e  
    4242      If the host kernel supports &devtmpfs;, we can simply mount a
    4343      &devtmpfs; at <filename class='directory'>$LFS/dev</filename> and rely
    44       on the kernel to populate it (i.e., the udev daemon will do the
    45       necessary work automatically).</para>
     44      on the kernel to populate it.</para>
    4645
    4746      <para>But some host kernels lack &devtmpfs; support; these
     
    5251      by bind mounting the host system's
    5352      <filename class="directory">/dev</filename> directory. A bind mount is
    54       a special type of mount that generates a duplicate copy of a
    55       directory or mount point at some other location. Use the following
     53      a special type of mount that makes a directory subtree or a file
     54      visible at some other location. Use the following
    5655      command to do this.</para>
    5756
  • chapter08/glibc.xml

    r16a1647 r8d5322e  
    4444    <title>Installation of Glibc</title>
    4545
    46     <para>First, fix an issue building Glibc with parallel jobs and make-4.4
     46    <para>First, fix an issue building Glibc with parallel jobs and Make-4.4
    4747    or later:</para>
    4848
     
    9898        <term><parameter>--enable-kernel=&min-kernel;</parameter></term>
    9999        <listitem>
    100           <para>This option tells the build system that this glibc may
     100          <para>This option tells the build system that this Glibc may
    101101          be used with kernels as old as &min-kernel;. This means generating
    102102          workarounds in case a system call introduced in a later version
     
    225225<screen><userinput remap="install">make install</userinput></screen>
    226226
    227     <para>Fix hardcoded path to the executable loader in
     227    <para>Fix a hardcoded path to the executable loader in the
    228228    <command>ldd</command> script:</para>
    229229
     
    243243
    244244    <para>Next, install the locales that can make the system respond in a
    245     different language.  None of the locales are required, but if some of them
    246     are missing, the test suites of future packages would skip important
    247     testcases.</para>
     245    different language.  None of these locales are required, but if some of them
     246    are missing, the test suites of some packages will skip important
     247    test cases.</para>
    248248
    249249    <para>Individual locales can be installed using the
     
    298298    character set.</para>
    299299
    300     <para>Alternatively, install all locales listed in the
     300    <para>Alternatively, install all the locales listed in the
    301301    <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
    302302    (it includes every locale listed above and many more) at once with the
     
    364364
    365365    <sect3>
    366     <title>Adding time zone data</title>
     366    <title>Adding Time Zone Data</title>
    367367
    368368    <para>Install and set up the time zone data with the following:</para>
  • chapter08/introduction.xml

    r16a1647 r8d5322e  
    2121  may need it.</para>
    2222
    23   <para>We do not recommend using optimizations.  They can make
     23  <para>We do not recommend using customized optimizations.  They can make
    2424  a program run slightly faster, but they may also cause compilation
    25   difficulties and problems when running the program.  If a package refuses to
    26   compile when using optimization, try to compile it without optimization and
    27   see if that fixes the problem. Even if the package does compile when using
     25  difficulties, and problems when running the program.  If a package refuses to
     26  compile with a customized optimization, try to compile it without
     27  optimization and see if that fixes the problem. Even if the package does compile when using a customized
    2828  optimization, there is the risk it may have been compiled incorrectly because
    29   of the complex interactions between the code and build tools.  Also note that
     29  of the complex interactions between the code and the build tools.  Also note that
    3030  the <option>-march</option> and <option>-mtune</option> options using values
    3131  not specified in the book have not been tested. This may cause problems with
    3232  the toolchain packages (Binutils, GCC and Glibc).  The small potential gains
    33   achieved in using compiler optimizations are often outweighed by the risks.
     33  achieved by customizing compiler optimizations are often outweighed by the risks.
    3434  First-time builders of LFS are encouraged to build without custom
    35   optimizations. The subsequent system will still run very fast and be stable
    36   at the same time.</para>
     35  optimizations.</para>
     36
     37  <para>On the other hand, we keep the optimizations enabled by the default
     38  configuration of the packages.  In addition, we sometimes explicitly enable an
     39  optimized configuration provided by a package but not enabled by
     40  default.  The package maintainers have already tested these configurations
     41  and consider them safe, so it's not likely they would break the build.
     42  Generally the default configuration already enables <option>-O2</option>
     43  or <option>-O3</option>, so the resulting system will still run very fast
     44  without any customized optimization, and be stable at the same time.</para>
    3745
    3846  <para>Before the installation instructions, each installation page provides
     
    4351  descriptions) that the package installs.</para>
    4452
    45   <note><para>The SBU values and required disk space includes test suite data
     53  <note><para>The SBU values and required disk space include test suite data
    4654  for all applicable packages in <xref linkend="chapter-building-system"/>. SBU
    4755  values have been calculated using a single CPU core (-j1) for all
     
    4957
    5058  <sect2>
    51     <title>About libraries</title>
     59    <title>About Libraries</title>
    5260
    5361    <para>In general, the LFS editors discourage building and installing static
    54     libraries.  The original purpose for most static libraries has been made
     62    libraries.  Most static libraries have been made
    5563    obsolete in a modern Linux system.  In addition, linking a static library
    5664    into a program can be detrimental.  If an update to the library is needed
    57     to remove a security problem, all programs that use the static library will
    58     need to be relinked to the new library.  Since the use of static libraries
     65    to remove a security problem, every program that uses the static library will
     66    need to be relinked with the new library.  Since the use of static libraries
    5967    is not always obvious, the relevant programs (and the procedures needed to
    6068    do the linking) may not even be known.</para>
    6169
    62     <para>In the procedures in this chapter, we remove or disable installation of
     70    <para>The procedures in this chapter remove or disable installation of
    6371    most static libraries. Usually this is done by passing a
    6472    <option>--disable-static</option> option to <command>configure</command>.
    6573    In other cases, alternate means are needed. In a few cases, especially
    66     glibc and gcc, the use of static libraries remains essential to the general
     74    Glibc and GCC, the use of static libraries remains an essential feature of the
    6775    package building process. </para>
    6876
    69     <para>For a more complete discussion of libraries, see the discussion
     77    <para>For a more complete discussion of libraries, see
    7078    <ulink url="&blfs-book;introduction/libraries.html">
    7179    Libraries: Static or shared?</ulink> in the BLFS book.</para>
  • chapter08/pkgmgt.xml

    r16a1647 r8d5322e  
    1313  <para>Package Management is an often requested addition to the LFS Book. A
    1414  Package Manager tracks the installation of files, making it easier to
    15   remove and upgrade packages. As well as the binary and library files, a
    16   package manager will handle the installation of configuration files.  Before
     15  remove and upgrade packages. A good package manager will also handle the
     16  configuration files specially to keep the user configuration when the
     17  package is reinstalled or upgraded.  Before
    1718  you begin to wonder, NO&mdash;this section will not talk about nor recommend
    18   any particular package manager. What it provides is a roundup of the more
     19  any particular package manager. What it does provide is a roundup of the more
    1920  popular techniques and how they work. The perfect package manager for you may
    2021  be among these techniques, or it may be a combination of two or more of these
     
    6263
    6364      <listitem>
    64         <para>If Linux API headers or glibc need to be upgraded to a newer
    65         version, (e.g.,  from glibc-2.31 to glibc-2.32), it is safer to
     65        <para>If the Linux API headers or Glibc need to be upgraded to a newer
     66        version, (e.g.,  from Glibc-2.31 to Glibc-2.32), it is safer to
    6667        rebuild LFS.  Though you <emphasis>may</emphasis> be able to rebuild
    6768        all the packages in their dependency order, we do not recommend
     
    203204      reality it is installed in the
    204205      <filename class="directory">/usr/pkg</filename> hierarchy. Installing in
    205       this manner is not usually a trivial task. For example, consider that you
     206      this manner is not usually a trivial task. For example, suppose you
    206207      are installing a package libfoo-1.1. The following instructions may
    207208      not install the package properly:</para>
     
    322323    another computer with the same architecture as the base system is as
    323324    simple as using <command>tar</command> on the LFS partition that contains
    324     the root directory (about 250MB uncompressed for a base LFS build), copying
     325    the root directory (about 900MB uncompressed for a basic LFS build), copying
     326    <!-- D. Bryant created LFS 11.2 in October 2022; 900MB is (roughly) the size of his rsync archive. -->
    325327    that file via network transfer or CD-ROM / USB stick to the new system, and expanding
    326328    it.  After that, a few configuration files will have to be changed.
Note: See TracChangeset for help on using the changeset viewer.