Changeset 64e8131 for chapter08


Ignore:
Timestamp:
08/27/2023 03:06:02 AM (10 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/arm64, xry111/arm64-12.0
Children:
e08ba0a
Parents:
9a5dab1 (diff), 11cfb5b (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:
1 added
1 deleted
21 edited

Legend:

Unmodified
Added
Removed
  • chapter08/binutils.xml

    r9a5dab1 r64e8131  
    142142<screen><userinput remap="test">grep '^FAIL:' $(find -name '*.log')</userinput></screen>
    143143
     144    <para>Three tests in the gprofng suite are known to fail.</para>
     145
    144146    <para>Install the package:</para>
    145147
    146148<screen><userinput remap="install">make tooldir=/usr install</userinput></screen>
    147149
    148     <para>Remove useless static libraries and an empty man page:</para>
    149 
    150 <screen><userinput remap="install">rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,sframe,opcodes}.a
    151 rm -fv /usr/share/man/man1/{gprofng,gp-*}.1</userinput></screen>
     150    <para>Remove useless static libraries:</para>
     151
     152<screen><userinput remap="install">rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,gprofng,opcodes,sframe}.a</userinput></screen>
    152153
    153154  </sect2>
     
    164165        <seg>addr2line, ar, as, c++filt, dwp, elfedit, gprof, gprofng, ld, ld.bfd, ld.gold, nm,
    165166        objcopy, objdump, ranlib, readelf, size, strings, and strip</seg>
    166         <seg>libbfd.so, libctf.so, libctf-nobfd.so, libopcodes.so, and libsframe.so</seg>
     167        <seg>libbfd.so, libctf.so, libctf-nobfd.so, libgprofng.so,
     168        libopcodes.so, and libsframe.so</seg>
    167169        <seg>/usr/lib/ldscripts</seg>
    168170      </seglistitem>
     
    412414      </varlistentry>
    413415
     416      <varlistentry id="libgprofng">
     417        <term><filename class="libraryfile">libgprofng</filename></term>
     418        <listitem>
     419          <para>A library containing most routines used by
     420          <command>gprofng</command></para>
     421          <indexterm zone="ch-system-binutils libgprofng">
     422            <primary sortas="c-libgprofng">libgprofng</primary>
     423          </indexterm>
     424        </listitem>
     425      </varlistentry>
     426
    414427      <varlistentry id="libopcodes">
    415428        <term><filename class="libraryfile">libopcodes</filename></term>
  • chapter08/chapter08.xml

    r9a5dab1 r64e8131  
    9292
    9393  <!-- sysv only -->
    94   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="eudev.xml"/>
     94  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="udev.xml"/>
    9595
    9696  <!-- Both sysv on systemd builds -->
  • chapter08/coreutils.xml

    r9a5dab1 r64e8131  
    117117    user <systemitem class="username">tester</systemitem> a part of it:</para>
    118118
    119 <screen><userinput remap="test">echo "dummy:x:102:tester" &gt;&gt; /etc/group</userinput></screen>
     119<screen><userinput remap="test">groupadd -g 102 dummy -U tester</userinput></screen>
    120120
    121121    <para>Fix some of the permissions so that the non-&root; user can
     
    135135    <para>Remove the temporary group:</para>
    136136
    137 <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
     137<screen><userinput remap="test">groupdel dummy</userinput></screen>
     138
    138139    <para>Install the package:</para>
    139140
  • chapter08/dbus.xml

    r9a5dab1 r64e8131  
    5353            --localstatedir=/var                 \
    5454            --runstatedir=/run                   \
     55            --enable-user-session                \
    5556            --disable-static                     \
    5657            --disable-doxygen-docs               \
     
    7172          to be in <filename class="directory">/run</filename>, instead of
    7273          the deprecated <filename class="directory">/var/run</filename>.</para>
     74        </listitem>
     75      </varlistentry>
     76
     77      <varlistentry>
     78        <term>
     79          <parameter>--enable-user-session</parameter>
     80        </term>
     81        <listitem>
     82          <para>This ensures the D-Bus per-user service and socket unit
     83          files are installed for Systemd.  They are not useful (but
     84          harmless) in a base LFS installation, however they can be used
     85          once systemd is rebuilt with PAM support in BLFS.</para>
    7386        </listitem>
    7487      </varlistentry>
  • chapter08/gawk.xml

    r9a5dab1 r64e8131  
    6262<screen><userinput remap="install">make LN='ln -f' install</userinput></screen>
    6363
    64     <para>The installation process already created <command>awk</command>
    65     as a symlink to <command>gawk</command>, create its man page as a
    66     symlink as well:</para>
    67 
    68 <screen><userinput remap="install">ln -sv gawk.1 /usr/share/man/man1/awk.1</userinput></screen>
    69 
    7064    <variablelist>
    7165      <title>The meaning of the overridden make variable:</title>
     
    7973      </varlistentry>
    8074   </variablelist>
     75
     76    <para>The installation process already created <command>awk</command>
     77    as a symlink to <command>gawk</command>, create its man page as a
     78    symlink as well:</para>
     79
     80<screen><userinput remap="install">ln -sv gawk.1 /usr/share/man/man1/awk.1</userinput></screen>
    8181
    8282    <para>If desired, install the documentation:</para>
  • chapter08/gcc.xml

    r9a5dab1 r64e8131  
    178178    <para>Many gcc and g++ tests related to hwasan are known to fail.</para>
    179179
     180    <para>
     181      With Glibc-2.38, the analyzer tests named
     182      <filename>data-model-4.c</filename> and
     183      <filename>conftest-1.c</filename>
     184        are known to fail.
     185      In the asan tests, several tests in <filename>asan_test.C</filename>
     186        are known to fail.
     187      The test named <filename>interception-malloc-test-1.C</filename>
     188        is known to fail.
     189    </para>
     190
    180191    <para>A few unexpected failures cannot always be avoided. The GCC developers
    181192    are usually aware of these issues, but have not resolved them yet.
  • chapter08/glibc.xml

    r9a5dab1 r64e8131  
    5151<screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen>
    5252
    53     <!-- https://sourceware.org/bugzilla/show_bug.cgi?id=30068
    54          Upstream fix also added a test case and renamed "prec" to
    55          "prec_inc".  We'll test this with MPFR test suite so we don't
    56          need the test here, and the renaming does not affect program
    57          behavior.  -->
    58     <para>Fix a security issue identified upstream:</para>
    59 
    60 <screen><userinput remap="pre">sed '/width -=/s/workend - string/number_length/' \
    61     -i stdio-common/vfprintf-process-arg.c</userinput></screen>
     53    <para>Now fix a regression causing the posix_memalign() function
     54    to be very slow in some conditions:</para>
     55
     56<screen><userinput remap="pre">patch -Np1 -i ../&glibc-memalign-patch;</userinput></screen>
    6257
    6358    <para>The Glibc documentation recommends building Glibc
     
    8075             --enable-stack-protector=strong          \
    8176             --with-headers=/usr/include              \
    82              --disable-crypt                          \
    8377             libc_cv_slibdir=/usr/lib</userinput></screen>
    8478
     
    167161      </listitem>
    168162
     163<!-- Did not fail with glibc-2.38
    169164      <listitem>
    170165        <para><emphasis>misc/tst-ttyname</emphasis>
    171166        is known to fail in the LFS chroot environment.</para>
    172167      </listitem>
     168-->
    173169
    174170      <!-- https://sourceware.org/pipermail/libc-alpha/2022-August/141567.html -->
  • chapter08/gmp.xml

    r9a5dab1 r64e8131  
    4646      the host processor.  If libraries suitable for processors less
    4747      capable than the host's CPU are desired, generic libraries can be
    48       created by running the following:
     48      created by appending the <option>--host=none-linux-gnu</option> option
     49      to the <command>configure</command> command.</para>
    4950
    50 <screen role="nodump"><userinput>cp -v configfsf.guess config.guess
    51 cp -v configfsf.sub   config.sub</userinput></screen></para>
     51      <!-- To editors: the configure script says "the none host is obsolete,
     52           use - -disable-assembly", but don't believe it: with the latter
     53           CFLAGS is still automatically set to -march=something.  -->
    5254    </note>
    5355
     
    98100    applications using the gmp libraries with the message "Illegal
    99101    instruction".  In this case, gmp should be reconfigured with the option
    100     --build=aarch64-unknown-linux-gnu and rebuilt.</para></caution>
     102    <option>--host=none-linux-gnu</option> and rebuilt.</para></caution>
    101103
    102     <para>Ensure that all 197 tests in the test suite passed.
     104    <para>Ensure that all 199 tests in the test suite passed.
    103105    Check the results by issuing the following command:</para>
    104106
  • chapter08/jinja2.xml

    r9a5dab1 r64e8131  
    66]>
    77
    8 <sect1 id="ch-system-jinja2" role="wrap" revision="systemd">
     8<sect1 id="ch-system-jinja2" role="wrap">
    99  <?dbhtml filename="jinja2.html"?>
    1010
  • chapter08/less.xml

    r9a5dab1 r64e8131  
    6363<screen><userinput remap="make">make</userinput></screen>
    6464
    65     <para>This package does not come with a test suite.</para>
     65    <para>To test the results, issue:</para>
     66
     67<screen><userinput remap="test">make check</userinput></screen>
    6668
    6769    <para>Install the package:</para>
  • chapter08/libxcrypt.xml

    r9a5dab1 r64e8131  
    101101      that link against these functions require ABI version 1.  If you must
    102102      have such functions because of some binary-only application or to be
    103       to be compliant with LSB, build the package again with the following
     103      compliant with LSB, build the package again with the following
    104104      commands:</para>
    105105
    106 <screen><userinput remap="nodump">make distclean
     106<screen role="nodump"><userinput>make distclean
    107107./configure --prefix=/usr                \
    108108            --enable-hashes=strong,glibc \
  • chapter08/man-db.xml

    r9a5dab1 r64e8131  
    112112<screen><userinput remap="make">make</userinput></screen>
    113113
    114    <para>To test the results, issue:</para>
    115 
    116 <screen><userinput remap="test">make check</userinput></screen>
     114    <para>To test the results, issue:</para>
     115
     116<screen><userinput remap="test">make -k check</userinput></screen>
     117
     118    <!-- https://gitlab.com/man-db/man-db/-/issues/25 -->
     119    <para>One test named <filename>man1/lexgrog.1</filename> is known
     120    to fail.</para>
    117121
    118122    <para>Install the package:</para>
  • chapter08/man-pages.xml

    r9a5dab1 r64e8131  
    4141    <title>Installation of Man-pages</title>
    4242
     43    <para>Remove two man pages for password hashing functions.
     44    <application>Libxcrypt</application> will provide a better version
     45    of these man pages:</para>
     46
     47<screen><userinput remap="pre">rm -v man3/crypt*</userinput></screen>
     48
    4349    <para>Install Man-pages by running:</para>
    4450
  • chapter08/markupsafe.xml

    r9a5dab1 r64e8131  
    66]>
    77
    8 <sect1 id="ch-system-markupsafe" role="wrap" revision="systemd">
     8<sect1 id="ch-system-markupsafe" role="wrap">
    99  <?dbhtml filename="markupsafe.html"?>
    1010
  • chapter08/meson.xml

    r9a5dab1 r64e8131  
    3535      </seglistitem>
    3636    </segmentedlist>
    37 
    38     <tip revision="sysv">
    39       <para>This section is not strictly required when LFS does not use
    40       systemd. On the other hand, Meson, along with Ninja, makes
    41       a powerful build system combination,
    42       which will probably be used more and more often. It is required for
    43       several packages in <ulink url="&blfs-book;">the BLFS
    44       book</ulink>.</para>
    45     </tip>
    4637
    4738  </sect2>
  • chapter08/ncurses.xml

    r9a5dab1 r64e8131  
    159159    <para>If desired, install the Ncurses documentation:</para>
    160160
    161 <screen><userinput remap="install">mkdir -pv      /usr/share/doc/ncurses-&ncurses-version;
    162 cp -v -R doc/* /usr/share/doc/ncurses-&ncurses-version;</userinput></screen>
     161<screen><userinput remap="install">cp -v -R doc -T /usr/share/doc/ncurses-&ncurses-version;</userinput></screen>
    163162
    164163    <note>
  • chapter08/ninja.xml

    r9a5dab1 r64e8131  
    3535      </seglistitem>
    3636    </segmentedlist>
    37 
    38     <tip revision="sysv">
    39       <para>This section is not strictly required when LFS does not use
    40       systemd. On the other hand, Ninja, along with Meson, makes
    41       a powerful build system combination,
    42       which will probably be used more and more often. It is required for
    43       several packages in <ulink url="&blfs-book;">the BLFS
    44       book</ulink>.</para>
    45     </tip>
    4637
    4738  </sect2>
  • chapter08/pkgconf.xml

    r9a5dab1 r64e8131  
    4242
    4343  <sect2 role="installation">
     44
    4445    <title>Installation of Pkgconf</title>
     46<!--
     47    <para>Pkgconf-2.0.0 explicitly errors when attempting to run
     48    <option>- -modversion</option> with multiple arguments, even if these
     49    arguments are constraints for the same package.  This breaks many
     50    packages in BLFS. Run this sed to reinstate the old
     51    output for pkgconf:</para>
    4552
     53     <screen><userinput remap="pre">sed -i '1330,1336s|^|//|' cli/main.c</userinput></screen>
     54-->
    4655    <para>Prepare Pkgconf for compilation:</para>
    4756
  • chapter08/procps.xml

    r9a5dab1 r64e8131  
    8383
    8484<screen><userinput remap="test">make check</userinput></screen>
    85 
    86     <!-- It's because "free -v" shows "used" greater than "total", and
    87          a negative "free" for "Comm" line.  The "total" value is from
    88          "CommitLimit" in /proc/meminfo, which is the limit for one process.
    89          But the "used" value is from "Committed_AS" in the same file,
    90          which is the total commited virtual memory space of all processes.
    91          I'll make a report to upstream anyway.  -->
    92     <para>One test named <filename>free with commit</filename>
    93     may fail if some applications with a custom memory allocator (for
    94     example, JVM and Web browsers) are running on the host distro.</para>
    9585
    9686    <para>Install the package:</para>
  • chapter08/stripping.xml

    r9a5dab1 r64e8131  
    9090online_usrbin="bash find strip"
    9191online_usrlib="libbfd-&binutils-version;.so
    92                libsframe.so.0.0.0
     92               libsframe.so.&libsframe-version;
    9393               libhistory.so.&readline-soversion;
    9494               libncursesw.so.&ncurses-version;
  • chapter08/systemd.xml

    r9a5dab1 r64e8131  
    4040  <sect2 role="installation">
    4141    <title>Installation of systemd</title>
    42 
    43     <para>
    44       Remove several inappropriate uses of the <literal>pure</literal>
    45       attribute that cause runtime issues when the package is built
    46       with gcc-13 or later:
    47     </para>
    48 
    49 <screen><userinput remap='pre'>sed '/bus_message_type_from_string/s/_pure_//' \
    50     -i src/libsystemd/sd-bus/bus-internal.h    &amp;&amp;
    51 sed '/devt_hash_func/s/_pure_//'               \
    52     -i src/basic/hash-funcs.h                  &amp;&amp;
    53 sed '/job_get_timeout/s/_pure_//'              \
    54     -i src/core/job.h</userinput></screen>
    5542
    5643    <para>Remove two unneeded groups,
     
    206193    <!-- Please make sure systemd man pages tarball has a common leading
    207194         component in the path.  -->
    208 <screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz --strip-components=1 -C /usr/share/man</userinput></screen>
     195<screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-version;.tar.xz \
     196    --no-same-owner --strip-components=1   \
     197    -C /usr/share/man</userinput></screen>
    209198
    210199    <para>Create the <filename>/etc/machine-id</filename> file needed by
     
    245234        <seg>busctl, coredumpctl, halt (symlink to systemctl),
    246235        hostnamectl, init, journalctl, kernel-install, localectl, loginctl,
    247         machinectl, networkctl, oomctl, portablectl, poweroff (symlink to
     236        machinectl, mount.ddi (symlink to systemd-dissect), networkctl,
     237        oomctl, portablectl, poweroff (symlink to
    248238        systemctl), reboot (symlink to systemctl), resolvconf (symlink to
    249239        resolvectl), resolvectl, runlevel (symlink to systemctl), shutdown
    250240        (symlink to systemctl), systemctl, systemd-ac-power, systemd-analyze,
    251241        systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop,
    252         systemd-creds, systemd-delta, systemd-detect-virt,
     242        systemd-confext (symlink to systemd-sysext), systemd-creds,
     243        systemd-delta, systemd-detect-virt,
    253244        systemd-dissect, systemd-escape, systemd-hwdb, systemd-id128,
    254245        systemd-inhibit, systemd-machine-id-setup,
Note: See TracChangeset for help on using the changeset viewer.