- Timestamp:
- 08/08/2023 03:16:54 AM (13 months ago)
- 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. - Location:
- chapter08
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/binutils.xml
r428ca6c r2882861 133 133 <screen><userinput remap="test">grep '^FAIL:' $(find -name '*.log')</userinput></screen> 134 134 135 <para>Three tests in the gprofng suite are known to fail.</para> 136 135 137 <para>Install the package:</para> 136 138 137 139 <screen><userinput remap="install">make tooldir=/usr install</userinput></screen> 138 140 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> 143 144 144 145 </sect2> -
chapter08/dbus.xml
r428ca6c r2882861 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/gcc.xml
r428ca6c r2882861 178 178 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> 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 180 190 <para>A few unexpected failures cannot always be avoided. The GCC developers 181 191 are usually aware of these issues, but have not resolved them yet. -
chapter08/glibc.xml
r428ca6c r2882861 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=3006854 Upstream fix also added a test case and renamed "prec" to55 "prec_inc". We'll test this with MPFR test suite so we don't56 need the test here, and the renaming does not affect program57 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 63 53 <para>The Glibc documentation recommends building Glibc 64 54 in a dedicated build directory:</para> … … 80 70 --enable-stack-protector=strong \ 81 71 --with-headers=/usr/include \ 82 --disable-crypt \83 72 libc_cv_slibdir=/usr/lib</userinput></screen> 84 73 … … 167 156 </listitem> 168 157 158 <!-- Did not fail with glibc-2.38 169 159 <listitem> 170 160 <para><emphasis>misc/tst-ttyname</emphasis> 171 161 is known to fail in the LFS chroot environment.</para> 172 162 </listitem> 163 --> 173 164 174 165 <!-- https://sourceware.org/pipermail/libc-alpha/2022-August/141567.html --> -
chapter08/gmp.xml
r428ca6c r2882861 59 59 the host processor. If libraries suitable for processors less 60 60 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> 62 63 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. --> 65 67 </note> 66 68 … … 111 113 applications using the gmp libraries with the message "Illegal 112 114 instruction". In this case, gmp should be reconfigured with the option 113 --build=x86_64-pc-linux-gnuand rebuilt.</para></caution>115 <option>--host=none-linux-gnu</option> and rebuilt.</para></caution> 114 116 115 <para>Ensure that all 19 7tests in the test suite passed.117 <para>Ensure that all 199 tests in the test suite passed. 116 118 Check the results by issuing the following command:</para> 117 119 -
chapter08/pkgconf.xml
r428ca6c r2882861 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> 52 53 <screen><userinput remap="pre">sed -i '/1330,1336/s|^|//|' cli/main.c</userinput></screen> 45 54 46 55 <para>Prepare Pkgconf for compilation:</para> -
chapter08/procps.xml
r428ca6c r2882861 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
r428ca6c r2882861 89 89 online_usrbin="bash find strip" 90 90 online_usrlib="libbfd-&binutils-version;.so 91 libsframe.so. 0.0.091 libsframe.so.&libsframe-version; 92 92 libhistory.so.&readline-soversion; 93 93 libncursesw.so.&ncurses-version; -
chapter08/systemd.xml
r428ca6c r2882861 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, … … 207 194 <!-- Please make sure systemd man pages tarball has a common leading 208 195 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> 210 199 211 200 <para>Create the <filename>/etc/machine-id</filename> file needed by … … 246 235 <seg>busctl, coredumpctl, halt (symlink to systemctl), 247 236 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 249 239 systemctl), reboot (symlink to systemctl), resolvconf (symlink to 250 240 resolvectl), resolvectl, runlevel (symlink to systemctl), shutdown 251 241 (symlink to systemctl), systemctl, systemd-ac-power, systemd-analyze, 252 242 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, 254 245 systemd-dissect, systemd-escape, systemd-hwdb, systemd-id128, 255 246 systemd-inhibit, systemd-machine-id-setup, -
chapter08/udev.xml
r428ca6c r2882861 129 129 install -vm755 udevadm /usr/bin/ 130 130 install -vm755 systemd-hwdb /usr/bin/udev-hwdb 131 ln -sv 131 ln -svfn ../bin/udevadm /usr/sbin/udevd 132 132 cp -av libudev.so{,*[0-9]} /usr/lib/ 133 133 install -vm644 ../src/libudev/libudev.h /usr/include/ … … 149 149 <!-- Please make sure systemd man pages tarball has a common leading 150 150 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 \ 152 153 -C /usr/share/man --wildcards '*/udev*' '*/libudev*' \ 153 154 '*/systemd-'{hwdb,udevd.service}.8 154 sed 's/systemd\(\\\?-\)/udev -/' /usr/share/man/man8/systemd-hwdb.8\155 > /usr/share/man/man8/udev-hwdb.8155 sed 's/systemd\(\\\?-\)/udev\1/' /usr/share/man/man8/systemd-hwdb.8 \ 156 > /usr/share/man/man8/udev-hwdb.8 156 157 sed 's|lib.*udevd|sbin/udevd|' \ 157 158 /usr/share/man/man8/systemd-udevd.service.8 \
Note:
See TracChangeset
for help on using the changeset viewer.