Changeset 2882861 for chapter08


Ignore:
Timestamp:
08/08/2023 03:16:54 AM (13 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1
Children:
8a243b5e
Parents:
428ca6c (diff), 9cca53d (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/loongarch

Location:
chapter08
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • chapter08/binutils.xml

    r428ca6c r2882861  
    133133<screen><userinput remap="test">grep '^FAIL:' $(find -name '*.log')</userinput></screen>
    134134
     135    <para>Three tests in the gprofng suite are known to fail.</para>
     136
    135137    <para>Install the package:</para>
    136138
    137139<screen><userinput remap="install">make tooldir=/usr install</userinput></screen>
    138140
    139     <para>Remove useless static libraries and an empty man page:</para>
    140 
    141 <screen><userinput remap="install">rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,sframe,opcodes}.a
    142 rm -fv /usr/share/man/man1/{gprofng,gp-*}.1</userinput></screen>
     141    <para>Remove useless static libraries:</para>
     142
     143<screen><userinput remap="install">rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,sframe,opcodes}.a</userinput></screen>
    143144
    144145  </sect2>
  • chapter08/dbus.xml

    r428ca6c r2882861  
    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/gcc.xml

    r428ca6c r2882861  
    178178    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> are known to fail.
     184      In the asan tests, the subtest named
     185      <filename>AddressSanitizer_StrtolOOBTest</filename> in the test
     186      <filename>asan_test.C</filename> and the test named
     187      <filename>interception-malloc-test-1.C</filename> are known to fail.
     188    </para>
     189
    180190    <para>A few unexpected failures cannot always be avoided. The GCC developers
    181191    are usually aware of these issues, but have not resolved them yet.
  • chapter08/glibc.xml

    r428ca6c r2882861  
    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>
    62 
    6353    <para>The Glibc documentation recommends building Glibc
    6454    in a dedicated build directory:</para>
     
    8070             --enable-stack-protector=strong          \
    8171             --with-headers=/usr/include              \
    82              --disable-crypt                          \
    8372             libc_cv_slibdir=/usr/lib</userinput></screen>
    8473
     
    167156      </listitem>
    168157
     158<!-- Did not fail with glibc-2.38
    169159      <listitem>
    170160        <para><emphasis>misc/tst-ttyname</emphasis>
    171161        is known to fail in the LFS chroot environment.</para>
    172162      </listitem>
     163-->
    173164
    174165      <!-- https://sourceware.org/pipermail/libc-alpha/2022-August/141567.html -->
  • chapter08/gmp.xml

    r428ca6c r2882861  
    5959      the host processor.  If libraries suitable for processors less
    6060      capable than the host's CPU are desired, generic libraries can be
    61       created by running the following:
     61      created by appending the <option>--host=none-linux-gnu</option> option
     62      to the <command>configure</command> command.</para>
    6263
    63 <screen role="nodump"><userinput>cp -v configfsf.guess config.guess
    64 cp -v configfsf.sub   config.sub</userinput></screen></para>
     64      <!-- To editors: the configure script says "the none host is obsolete,
     65           use - -disable-assembly", but don't believe it: with the latter
     66           CFLAGS is still automatically set to -march=something.  -->
    6567    </note>
    6668
     
    111113    applications using the gmp libraries with the message "Illegal
    112114    instruction".  In this case, gmp should be reconfigured with the option
    113     --build=x86_64-pc-linux-gnu and rebuilt.</para></caution>
     115    <option>--host=none-linux-gnu</option> and rebuilt.</para></caution>
    114116
    115     <para>Ensure that all 197 tests in the test suite passed.
     117    <para>Ensure that all 199 tests in the test suite passed.
    116118    Check the results by issuing the following command:</para>
    117119
  • chapter08/pkgconf.xml

    r428ca6c r2882861  
    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>
     52
     53     <screen><userinput remap="pre">sed -i '/1330,1336/s|^|//|' cli/main.c</userinput></screen>
    4554
    4655    <para>Prepare Pkgconf for compilation:</para>
  • chapter08/procps.xml

    r428ca6c r2882861  
    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

    r428ca6c r2882861  
    8989online_usrbin="bash find strip"
    9090online_usrlib="libbfd-&binutils-version;.so
    91                libsframe.so.0.0.0
     91               libsframe.so.&libsframe-version;
    9292               libhistory.so.&readline-soversion;
    9393               libncursesw.so.&ncurses-version;
  • chapter08/systemd.xml

    r428ca6c r2882861  
    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,
     
    207194    <!-- Please make sure systemd man pages tarball has a common leading
    208195         component in the path.  -->
    209 <screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz --strip-components=1 -C /usr/share/man</userinput></screen>
     196<screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-version;.tar.xz \
     197    --no-same-owner --strip-components=1   \
     198    -C /usr/share/man</userinput></screen>
    210199
    211200    <para>Create the <filename>/etc/machine-id</filename> file needed by
     
    246235        <seg>busctl, coredumpctl, halt (symlink to systemctl),
    247236        hostnamectl, init, journalctl, kernel-install, localectl, loginctl,
    248         machinectl, networkctl, oomctl, portablectl, poweroff (symlink to
     237        machinectl, mount.ddi (symlink to systemd-dissect), networkctl,
     238        oomctl, portablectl, poweroff (symlink to
    249239        systemctl), reboot (symlink to systemctl), resolvconf (symlink to
    250240        resolvectl), resolvectl, runlevel (symlink to systemctl), shutdown
    251241        (symlink to systemctl), systemctl, systemd-ac-power, systemd-analyze,
    252242        systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop,
    253         systemd-creds, systemd-delta, systemd-detect-virt,
     243        systemd-confext (symlink to systemd-sysext), systemd-creds,
     244        systemd-delta, systemd-detect-virt,
    254245        systemd-dissect, systemd-escape, systemd-hwdb, systemd-id128,
    255246        systemd-inhibit, systemd-machine-id-setup,
  • chapter08/udev.xml

    r428ca6c r2882861  
    129129install -vm755 udevadm                     /usr/bin/
    130130install -vm755 systemd-hwdb                /usr/bin/udev-hwdb
    131 ln      -sv    ../bin/udevadm              /usr/sbin/udevd
     131ln      -svfn  ../bin/udevadm              /usr/sbin/udevd
    132132cp      -av    libudev.so{,*[0-9]}         /usr/lib/
    133133install -vm644 ../src/libudev/libudev.h    /usr/include/
     
    149149    <!-- Please make sure systemd man pages tarball has a common leading
    150150         component in the path.  -->
    151 <screen><userinput remap="install">tar -xf ../../systemd-man-pages-253.tar.xz --strip-components=1       \
     151<screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz                            \
     152    --no-same-owner --strip-components=1                              \
    152153    -C /usr/share/man --wildcards '*/udev*' '*/libudev*'              \
    153154                                  '*/systemd-'{hwdb,udevd.service}.8
    154 sed 's/systemd\(\\\?-\)/udev-/' /usr/share/man/man8/systemd-hwdb.8    \
    155                               > /usr/share/man/man8/udev-hwdb.8
     155sed 's/systemd\(\\\?-\)/udev\1/' /usr/share/man/man8/systemd-hwdb.8   \
     156                               > /usr/share/man/man8/udev-hwdb.8
    156157sed 's|lib.*udevd|sbin/udevd|'                                        \
    157158    /usr/share/man/man8/systemd-udevd.service.8                       \
Note: See TracChangeset for help on using the changeset viewer.