- Timestamp:
- 08/27/2023 03:06:02 AM (10 months ago)
- 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. - Location:
- chapter08
- Files:
-
- 1 added
- 1 deleted
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/binutils.xml
r9a5dab1 r64e8131 142 142 <screen><userinput remap="test">grep '^FAIL:' $(find -name '*.log')</userinput></screen> 143 143 144 <para>Three tests in the gprofng suite are known to fail.</para> 145 144 146 <para>Install the package:</para> 145 147 146 148 <screen><userinput remap="install">make tooldir=/usr install</userinput></screen> 147 149 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> 152 153 153 154 </sect2> … … 164 165 <seg>addr2line, ar, as, c++filt, dwp, elfedit, gprof, gprofng, ld, ld.bfd, ld.gold, nm, 165 166 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> 167 169 <seg>/usr/lib/ldscripts</seg> 168 170 </seglistitem> … … 412 414 </varlistentry> 413 415 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 414 427 <varlistentry id="libopcodes"> 415 428 <term><filename class="libraryfile">libopcodes</filename></term> -
chapter08/chapter08.xml
r9a5dab1 r64e8131 92 92 93 93 <!-- 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"/> 95 95 96 96 <!-- Both sysv on systemd builds --> -
chapter08/coreutils.xml
r9a5dab1 r64e8131 117 117 user <systemitem class="username">tester</systemitem> a part of it:</para> 118 118 119 <screen><userinput remap="test"> echo "dummy:x:102:tester" >> /etc/group</userinput></screen>119 <screen><userinput remap="test">groupadd -g 102 dummy -U tester</userinput></screen> 120 120 121 121 <para>Fix some of the permissions so that the non-&root; user can … … 135 135 <para>Remove the temporary group:</para> 136 136 137 <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen> 137 <screen><userinput remap="test">groupdel dummy</userinput></screen> 138 138 139 <para>Install the package:</para> 139 140 -
chapter08/dbus.xml
r9a5dab1 r64e8131 53 53 --localstatedir=/var \ 54 54 --runstatedir=/run \ 55 --enable-user-session \ 55 56 --disable-static \ 56 57 --disable-doxygen-docs \ … … 71 72 to be in <filename class="directory">/run</filename>, instead of 72 73 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> 73 86 </listitem> 74 87 </varlistentry> -
chapter08/gawk.xml
r9a5dab1 r64e8131 62 62 <screen><userinput remap="install">make LN='ln -f' install</userinput></screen> 63 63 64 <para>The installation process already created <command>awk</command>65 as a symlink to <command>gawk</command>, create its man page as a66 symlink as well:</para>67 68 <screen><userinput remap="install">ln -sv gawk.1 /usr/share/man/man1/awk.1</userinput></screen>69 70 64 <variablelist> 71 65 <title>The meaning of the overridden make variable:</title> … … 79 73 </varlistentry> 80 74 </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> 81 81 82 82 <para>If desired, install the documentation:</para> -
chapter08/gcc.xml
r9a5dab1 r64e8131 178 178 <para>Many gcc and g++ tests related to hwasan are known to fail.</para> 179 179 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 180 191 <para>A few unexpected failures cannot always be avoided. The GCC developers 181 192 are usually aware of these issues, but have not resolved them yet. -
chapter08/glibc.xml
r9a5dab1 r64e8131 51 51 <screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen> 52 52 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> 62 57 63 58 <para>The Glibc documentation recommends building Glibc … … 80 75 --enable-stack-protector=strong \ 81 76 --with-headers=/usr/include \ 82 --disable-crypt \83 77 libc_cv_slibdir=/usr/lib</userinput></screen> 84 78 … … 167 161 </listitem> 168 162 163 <!-- Did not fail with glibc-2.38 169 164 <listitem> 170 165 <para><emphasis>misc/tst-ttyname</emphasis> 171 166 is known to fail in the LFS chroot environment.</para> 172 167 </listitem> 168 --> 173 169 174 170 <!-- https://sourceware.org/pipermail/libc-alpha/2022-August/141567.html --> -
chapter08/gmp.xml
r9a5dab1 r64e8131 46 46 the host processor. If libraries suitable for processors less 47 47 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> 49 50 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. --> 52 54 </note> 53 55 … … 98 100 applications using the gmp libraries with the message "Illegal 99 101 instruction". In this case, gmp should be reconfigured with the option 100 --build=aarch64-unknown-linux-gnuand rebuilt.</para></caution>102 <option>--host=none-linux-gnu</option> and rebuilt.</para></caution> 101 103 102 <para>Ensure that all 19 7tests in the test suite passed.104 <para>Ensure that all 199 tests in the test suite passed. 103 105 Check the results by issuing the following command:</para> 104 106 -
chapter08/jinja2.xml
r9a5dab1 r64e8131 6 6 ]> 7 7 8 <sect1 id="ch-system-jinja2" role="wrap" revision="systemd">8 <sect1 id="ch-system-jinja2" role="wrap"> 9 9 <?dbhtml filename="jinja2.html"?> 10 10 -
chapter08/less.xml
r9a5dab1 r64e8131 63 63 <screen><userinput remap="make">make</userinput></screen> 64 64 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> 66 68 67 69 <para>Install the package:</para> -
chapter08/libxcrypt.xml
r9a5dab1 r64e8131 101 101 that link against these functions require ABI version 1. If you must 102 102 have such functions because of some binary-only application or to be 103 to becompliant with LSB, build the package again with the following103 compliant with LSB, build the package again with the following 104 104 commands:</para> 105 105 106 <screen ><userinput remap="nodump">make distclean106 <screen role="nodump"><userinput>make distclean 107 107 ./configure --prefix=/usr \ 108 108 --enable-hashes=strong,glibc \ -
chapter08/man-db.xml
r9a5dab1 r64e8131 112 112 <screen><userinput remap="make">make</userinput></screen> 113 113 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> 117 121 118 122 <para>Install the package:</para> -
chapter08/man-pages.xml
r9a5dab1 r64e8131 41 41 <title>Installation of Man-pages</title> 42 42 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 43 49 <para>Install Man-pages by running:</para> 44 50 -
chapter08/markupsafe.xml
r9a5dab1 r64e8131 6 6 ]> 7 7 8 <sect1 id="ch-system-markupsafe" role="wrap" revision="systemd">8 <sect1 id="ch-system-markupsafe" role="wrap"> 9 9 <?dbhtml filename="markupsafe.html"?> 10 10 -
chapter08/meson.xml
r9a5dab1 r64e8131 35 35 </seglistitem> 36 36 </segmentedlist> 37 38 <tip revision="sysv">39 <para>This section is not strictly required when LFS does not use40 systemd. On the other hand, Meson, along with Ninja, makes41 a powerful build system combination,42 which will probably be used more and more often. It is required for43 several packages in <ulink url="&blfs-book;">the BLFS44 book</ulink>.</para>45 </tip>46 37 47 38 </sect2> -
chapter08/ncurses.xml
r9a5dab1 r64e8131 159 159 <para>If desired, install the Ncurses documentation:</para> 160 160 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> 163 162 164 163 <note> -
chapter08/ninja.xml
r9a5dab1 r64e8131 35 35 </seglistitem> 36 36 </segmentedlist> 37 38 <tip revision="sysv">39 <para>This section is not strictly required when LFS does not use40 systemd. On the other hand, Ninja, along with Meson, makes41 a powerful build system combination,42 which will probably be used more and more often. It is required for43 several packages in <ulink url="&blfs-book;">the BLFS44 book</ulink>.</para>45 </tip>46 37 47 38 </sect2> -
chapter08/pkgconf.xml
r9a5dab1 r64e8131 42 42 43 43 <sect2 role="installation"> 44 44 45 <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> 45 52 53 <screen><userinput remap="pre">sed -i '1330,1336s|^|//|' cli/main.c</userinput></screen> 54 --> 46 55 <para>Prepare Pkgconf for compilation:</para> 47 56 -
chapter08/procps.xml
r9a5dab1 r64e8131 83 83 84 84 <screen><userinput remap="test">make check</userinput></screen> 85 86 <!-- It's because "free -v" shows "used" greater than "total", and87 a negative "free" for "Comm" line. The "total" value is from88 "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 (for94 example, JVM and Web browsers) are running on the host distro.</para>95 85 96 86 <para>Install the package:</para> -
chapter08/stripping.xml
r9a5dab1 r64e8131 90 90 online_usrbin="bash find strip" 91 91 online_usrlib="libbfd-&binutils-version;.so 92 libsframe.so. 0.0.092 libsframe.so.&libsframe-version; 93 93 libhistory.so.&readline-soversion; 94 94 libncursesw.so.&ncurses-version; -
chapter08/systemd.xml
r9a5dab1 r64e8131 40 40 <sect2 role="installation"> 41 41 <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 built46 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 &&51 sed '/devt_hash_func/s/_pure_//' \52 -i src/basic/hash-funcs.h &&53 sed '/job_get_timeout/s/_pure_//' \54 -i src/core/job.h</userinput></screen>55 42 56 43 <para>Remove two unneeded groups, … … 206 193 <!-- Please make sure systemd man pages tarball has a common leading 207 194 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> 209 198 210 199 <para>Create the <filename>/etc/machine-id</filename> file needed by … … 245 234 <seg>busctl, coredumpctl, halt (symlink to systemctl), 246 235 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 248 238 systemctl), reboot (symlink to systemctl), resolvconf (symlink to 249 239 resolvectl), resolvectl, runlevel (symlink to systemctl), shutdown 250 240 (symlink to systemctl), systemctl, systemd-ac-power, systemd-analyze, 251 241 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, 253 244 systemd-dissect, systemd-escape, systemd-hwdb, systemd-id128, 254 245 systemd-inhibit, systemd-machine-id-setup,
Note:
See TracChangeset
for help on using the changeset viewer.