Changeset 2576866 for chapter08


Ignore:
Timestamp:
12/31/2023 09:57:54 PM (7 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/arm64
Children:
9f894d5
Parents:
00de269 (diff), 6fec3f5 (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:

Merge remote-tracking branch 'origin/trunk' into xry111/arm64

Location:
chapter08
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • chapter08/autoconf.xml

    r00de269 r2576866  
    4242    <title>Installation of Autoconf</title>
    4343
    44     <para>First, fix several problems with the tests caused by bash-5.2 and later:</para>
    45 
    46     <screen><userinput remap="pre">sed -e 's/SECONDS|/&amp;SHLVL|/'               \
    47     -e '/BASH_ARGV=/a\        /^SHLVL=/ d' \
    48     -i.orig tests/local.at</userinput></screen>
    49 
    5044    <para>Prepare Autoconf for compilation:</para>
    5145
     
    6256 -->
    6357<screen><userinput remap="test">make check</userinput></screen>
    64 <!--
    65     <para>This takes a long time, about &autoconf-fin-sbu-tests; SBUs. In addition,
    66     several tests are skipped that use Automake. For full test coverage,
    67     Autoconf can be re-tested after Automake has been installed.  In addition,
    68     two tests fail due to changes in libtool-2.4.3 and later.</para>
    69 -->
    70     <note><para>The test time for autoconf can be reduced significantly on a
    71     system with multiple cores.  To do this, append
    72     <command>TESTSUITEFLAGS=-j&lt;N&gt;</command> to the line above.  For
    73     instance, using -j4 can reduce the test time by over 60
    74     percent.</para></note>
    7558
    7659    <para>Install the package:</para>
  • chapter08/binutils.xml

    r00de269 r2576866  
    5858             --disable-werror    \
    5959             --enable-64-bit-bfd \
    60              --with-system-zlib</userinput></screen>
     60             --with-system-zlib  \
     61             --enable-default-hash-style=gnu</userinput></screen>
     62
    6163    <variablelist>
    62       <title>The meaning of the configure parameters:</title>
     64      <title>The meaning of the new configure parameters:</title>
    6365
    6466      <varlistentry>
     
    8284        <listitem>
    8385          <para>Enables plugin support for the linker.</para>
    84         </listitem>
    85       </varlistentry>
    86 
    87       <varlistentry>
    88         <term><parameter>--enable-64-bit-bfd</parameter></term>
    89         <listitem>
    90            <para>Enables 64-bit support (on hosts with narrower word sizes).
    91            May not be needed on 64-bit systems, but does no harm.</para>
    9286        </listitem>
    9387      </varlistentry>
  • chapter08/grub.xml

    r00de269 r2576866  
    7474
    7575    <para>
    76       Fix an issue causing <command>grub-install</command> to fail when the
    77       <filename class='directory'>/boot</filename> partition (or the root
    78       partition if <filename class='directory'>/boot</filename> is not a
    79       separate partition) is created by e2fsprogs-1.47.0 or later:
     76      Add a file missing from the release tarball:
    8077    </para>
    8178
    82 <screen><userinput remap='pre'>patch -Np1 -i ../grub-&grub-version;-upstream_fixes-1.patch</userinput></screen>
     79<screen><userinput remap='pre'>echo <literal>depends bli part_gpt</literal> &gt; grub-core/extra_deps.lst</userinput></screen>
    8380
    8481    <!--https://git.savannah.gnu.org/cgit/grub.git/commit/?id=69edb312 -->
  • chapter08/libtool.xml

    r00de269 r2576866  
    5454
    5555<screen><userinput remap="test">make -k check</userinput></screen>
    56 
    57     <note><para>The test time for Libtool can be reduced significantly on a
    58     system with multiple cores.  To do this, append
    59     <command>TESTSUITEFLAGS=-j&lt;N&gt;</command> to the line above.  For
    60     instance, using -j4 can reduce the test time by over 60
    61     percent.</para></note>
    6256
    6357    <para>Five tests are known to fail in the LFS build environment due
  • chapter08/systemd.xml

    r00de269 r2576866  
    4848 <screen><userinput remap="pre">sed -i -e 's/GROUP="render"/GROUP="video"/' \
    4949       -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in</userinput></screen>
     50
     51    <!-- https://github.com/systemd/systemd/pull/30549 -->
     52    <para>Now fix a security vulnerability in the DNSSEC verification of
     53    <command>systemd-resolved</command>:</para>
     54
     55<screen><userinput remap='pre'>sed -e '/return FLAGS_SET.*AUTHENTICATED/s/(t/(dt/' \
     56    -i src/resolve/resolved-dns-transaction.c</userinput></screen>
    5057
    5158    <para>Prepare systemd for compilation:</para>
     
    6370      -Dsysusers=false              \
    6471      -Drpmmacrosdir=no             \
    65       -Dhomed=false                 \
     72      -Dhomed=disabled              \
    6673      -Duserdb=false                \
    6774      -Dman=false                   \
     
    7077      -Ddev-kvm-mode=0660           \
    7178      -Dnobody-group=nogroup        \
     79      -Dsysupdate=disabled          \
     80      -Dukify=disabled              \
    7281      -Ddocdir=/usr/share/doc/systemd-&systemd-version; \
    7382      ..</userinput></screen>
     
    140149
    141150      <varlistentry>
    142         <term><parameter>-D{userdb,homed}=false</parameter></term>
     151        <term><parameter>-Dhomed=disabled</parameter> and
     152        <parameter>-Duserdb=false</parameter></term>
    143153        <listitem>
    144154          <para>Remove two daemons with dependencies that do not fit
     
    188198        </listitem>
    189199      </varlistentry>
     200
     201      <varlistentry>
     202        <term><parameter>-Dsysupdate=disabled</parameter></term>
     203        <listitem>
     204          <para>Do not install the <command>systemd-sysupdate</command>
     205          tool.  It's designed for automatically upgrading binary distros,
     206          so it's useless for a basic Linux system built from source.
     207          And it will report errors on boot if it's enabled but not properly
     208          configured.</para>
     209        </listitem>
     210      </varlistentry>
     211
     212      <varlistentry>
     213        <term><parameter>-Dukify=disabled</parameter></term>
     214        <listitem>
     215          <para>Do not install the <command>systemd-ukify</command> script.
     216          At runtime this script requires the
     217          <application>pefile</application> Python module that neither LFS
     218          nor BLFS provides.</para>
     219        </listitem>
     220      </varlistentry>
     221
    190222    </variablelist>
    191223
     
    214246
    215247<screen><userinput remap="adjust">systemctl preset-all</userinput></screen>
    216 
    217     <para>Disable two services for upgrading binary distros.  They are useless for
    218     a basic Linux system built from source, and each one will report an error if
    219     it's enabled but not configured:</para>
    220 
    221 <screen><userinput remap="adjust">systemctl disable systemd-sysupdate{,-reboot}</userinput></screen>
    222248
    223249<!-- dev: 50-pid-max.conf is not removed in BLFS, so I commented the following out.
  • chapter08/tar.xml

    r00de269 r2576866  
    7373<screen><userinput remap="test">make check</userinput></screen>
    7474
    75     <!-- On one system the -j4 improvement is 167s - 46s = 121s (72.46%) -->
    76     <note><para>The test time for Tar can be reduced significantly on a
    77     system with multiple cores.  To do this, append
    78     <command>TESTSUITEFLAGS=-j&lt;N&gt;</command> to the line above.  For
    79     instance, using -j4 can reduce the test time by over 70
    80     percent.</para></note>
    81 
    8275    <para>One test, capabilities: binary store/restore, is known to fail if it is
    8376    run because LFS lacks selinux, but will be skipped if the host kernel does
  • chapter08/udev.xml

    r00de269 r2576866  
    126126    </variablelist>
    127127
     128    <para>Get the list of the shipped udev helpers and save it into an
     129    environment variable:</para>
     130
     131    <screen><userinput remap="make">udev_helpers=$(grep "'name' :" ../src/udev/meson.build | \
     132               awk '{print $3}' | tr -d ",'" | grep -v 'udevadm')</userinput></screen>
     133
    128134    <para>Only build the components needed for udev:</para>
    129135
    130136    <screen><userinput remap="make">ninja udevadm systemd-hwdb                                           \
    131137      $(ninja -n | grep -Eo '(src/(lib)?udev|rules.d|hwdb.d)/[^ ]*') \
    132       $(realpath libudev.so --relative-to .)</userinput></screen>
     138      $(realpath libudev.so --relative-to .)                         \
     139      $udev_helpers udevadm</userinput></screen>
    133140
    134141    <para>Install the package:</para>
     
    148155                      -not -name '*power-switch*') /usr/lib/udev/rules.d/
    149156install -vm644 hwdb.d/*  ../hwdb.d/{*.hwdb,README} /usr/lib/udev/hwdb.d/
    150 install -vm755 $(find src/udev \
    151                       -type f -not -name '*.*')    /usr/lib/udev
     157install -vm755 $udev_helpers                       /usr/lib/udev
    152158install -vm644 ../network/99-default.link          /usr/lib/udev/network</userinput></screen>
    153159
  • chapter08/util-linux.xml

    r00de269 r2576866  
    4949    <para>Prepare Util-linux for compilation:</para>
    5050
    51 <screen revision="sysv"><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
    52             --bindir=/usr/bin    \
     51<screen revision="sysv"><userinput remap="configure">./configure --bindir=/usr/bin    \
    5352            --libdir=/usr/lib    \
    5453            --runstatedir=/run   \
     
    6463            --without-python     \
    6564            --without-systemd    \
    66             --without-systemdsystemunitdir \
     65            --without-systemdsystemunitdir        \
     66            ADJTIME_PATH=/var/lib/hwclock/adjtime \
    6767            --docdir=/usr/share/doc/util-linux-&util-linux-version;</userinput></screen>
    6868
    69 <screen revision="systemd"><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
    70             --bindir=/usr/bin    \
     69<screen revision="systemd"><userinput remap="configure">./configure --bindir=/usr/bin    \
    7170            --libdir=/usr/lib    \
    7271            --runstatedir=/run   \
     
    8180            --disable-static     \
    8281            --without-python     \
     82            ADJTIME_PATH=/var/lib/hwclock/adjtime \
    8383            --docdir=/usr/share/doc/util-linux-&util-linux-version;</userinput></screen>
    8484
Note: See TracChangeset for help on using the changeset viewer.