- Timestamp:
- 09/15/2023 10:54:55 AM (10 months ago)
- Branches:
- xry111/clfs-ng
- Children:
- 7546d8b
- Parents:
- d58da4b (diff), ba40e32 (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:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/autoconf.xml
rd58da4b r2df066c9 154 154 software package; it examines the source files in a directory tree, 155 155 searching them for common portability issues, and creates a 156 <filename>configure.scan</filename> file that serves as a s a156 <filename>configure.scan</filename> file that serves as a 157 157 preliminary <filename>configure.in</filename> file for the 158 158 package</para> -
chapter08/binutils.xml
rd58da4b r2df066c9 146 146 <option>--enable-default-ssp</option> options are passed to GCC.</para> 147 147 148 <para>Three tests in the gprofng suite are also known to fail.</para> 149 148 150 <para>Install the package:</para> 149 151 150 152 <screen><userinput remap="install">make tooldir=/usr install</userinput></screen> 151 153 152 <para>Remove useless static libraries and an empty man page:</para> 153 154 <screen><userinput remap="install">rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,sframe,opcodes}.a 155 rm -fv /usr/share/man/man1/{gprofng,gp-*}.1</userinput></screen> 154 <para>Remove useless static libraries:</para> 155 156 <screen><userinput remap="install">rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,gprofng,opcodes,sframe}.a</userinput></screen> 156 157 157 158 </sect2> … … 168 169 <seg>addr2line, ar, as, c++filt, dwp, elfedit, gprof, gprofng, ld, ld.bfd, ld.gold, nm, 169 170 objcopy, objdump, ranlib, readelf, size, strings, and strip</seg> 170 <seg>libbfd.so, libctf.so, libctf-nobfd.so, libopcodes.so, and libsframe.so</seg> 171 <seg>libbfd.so, libctf.so, libctf-nobfd.so, libgprofng.so, 172 libopcodes.so, and libsframe.so</seg> 171 173 <seg>/usr/lib/ldscripts</seg> 172 174 </seglistitem> … … 416 418 </varlistentry> 417 419 420 <varlistentry id="libgprofng"> 421 <term><filename class="libraryfile">libgprofng</filename></term> 422 <listitem> 423 <para>A library containing most routines used by 424 <command>gprofng</command></para> 425 <indexterm zone="ch-system-binutils libgprofng"> 426 <primary sortas="c-libgprofng">libgprofng</primary> 427 </indexterm> 428 </listitem> 429 </varlistentry> 430 418 431 <varlistentry id="libopcodes"> 419 432 <term><filename class="libraryfile">libopcodes</filename></term> -
chapter08/chapter08.xml
rd58da4b r2df066c9 30 30 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="expect.xml"/> 31 31 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dejagnu.xml"/> 32 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pkgconf.xml"/> 32 33 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="binutils.xml"/> 33 34 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gmp.xml"/> … … 40 41 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="shadow.xml"/> 41 42 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gcc.xml"/> 42 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pkgconf.xml"/>43 43 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ncurses.xml"/> 44 44 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sed.xml"/> -
chapter08/coreutils.xml
rd58da4b r2df066c9 122 122 user <systemitem class="username">tester</systemitem> a part of it:</para> 123 123 124 <screen><userinput remap="test"> echo "dummy:x:102:tester" >> /etc/group</userinput></screen>124 <screen><userinput remap="test">groupadd -g 102 dummy -U tester</userinput></screen> 125 125 126 126 <para>Fix some of the permissions so that the non-&root; user can … … 140 140 <para>Remove the temporary group:</para> 141 141 142 <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen> 142 <screen><userinput remap="test">groupdel dummy</userinput></screen> 143 143 144 <para>Install the package:</para> 144 145 -
chapter08/dbus.xml
rd58da4b r2df066c9 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/flit-core.xml
rd58da4b r2df066c9 43 43 <para>Build the package:</para> 44 44 45 <screen><userinput remap="install">pip3 wheel -w dist --no- build-isolation --no-deps $PWD</userinput></screen>45 <screen><userinput remap="install">pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD</userinput></screen> 46 46 47 47 <para>Install the package:</para> … … 64 64 <para>Instructs pip to put the created wheel into the 65 65 <filename class='directory'>dist</filename> directory.</para> 66 </listitem> 67 </varlistentry> 68 69 <varlistentry> 70 <term><parameter>--no-cache-dir</parameter></term> 71 <listitem> 72 <para>Prevents pip from copying the created wheel into the 73 <filename class='directory'>/root/.cache/pip</filename> 74 directory.</para> 66 75 </listitem> 67 76 </varlistentry> -
chapter08/gawk.xml
rd58da4b r2df066c9 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
rd58da4b r2df066c9 172 172 <ulink url="https://gcc.gnu.org/ml/gcc-testresults/"/>.</para> 173 173 174 <para>Two tests named <filename>pr104610.c</filename> and174 <para><!--Two tests named <filename>pr104610.c</filename> and 175 175 <filename>pr69482-1.c</filename> are known to fail because the test 176 176 files does not account for the 177 <parameter>- -enable-default-ssp</parameter> option.177 <parameter>- -enable-default-ssp</parameter> option.--> 178 178 <!-- https://gcc.gnu.org/PR106375 and https://gcc.gnu.org/PR109353 --> 179 179 Two tests named <filename>copy.cc</filename> and … … 183 183 <filename class='directory'>vect</filename> directory are known to fail 184 184 if the hardware does not support AVX.</para> 185 186 <para> 187 With Glibc-2.38, the analyzer tests named 188 <filename>data-model-4.c</filename> and 189 <filename>conftest-1.c</filename> 190 are known to fail. 191 In the asan tests, several tests in <filename>asan_test.C</filename> 192 are known to fail. 193 The test named <filename>interception-malloc-test-1.C</filename> 194 is known to fail. 195 </para> 185 196 186 197 <para>A few unexpected failures cannot always be avoided. The GCC developers -
chapter08/glibc.xml
rd58da4b r2df066c9 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 two security vulnerabilities and a regression causing the 54 posix_memalign() function very slow in some conditions:</para> 55 56 <screen><userinput remap="pre">patch -Np1 -i ../&glibc-upstream-fixes-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 … … 168 162 </listitem> 169 163 164 <!-- Did not fail with glibc-2.38 170 165 <listitem> 171 166 <para><emphasis>misc/tst-ttyname</emphasis> 172 167 is known to fail in the LFS chroot environment.</para> 173 168 </listitem> 169 --> 174 170 175 171 <!-- https://sourceware.org/pipermail/libc-alpha/2022-August/141567.html --> … … 326 322 following:</para> 327 323 328 <screen ><userinput>cat > /etc/nsswitch.conf << "EOF"324 <screen revision='sysv'><userinput>cat > /etc/nsswitch.conf << "EOF" 329 325 <literal># Begin /etc/nsswitch.conf 330 326 … … 334 330 335 331 hosts: files dns 332 networks: files 333 334 protocols: files 335 services: files 336 ethers: files 337 rpc: files 338 339 # End /etc/nsswitch.conf</literal> 340 EOF</userinput></screen> 341 342 <screen revision='systemd'><userinput>cat > /etc/nsswitch.conf << "EOF" 343 <literal># Begin /etc/nsswitch.conf 344 345 passwd: files systemd 346 group: files systemd 347 shadow: files systemd 348 349 hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns 336 350 networks: files 337 351 -
chapter08/gmp.xml
rd58da4b r2df066c9 55 55 the host processor. If libraries suitable for processors less 56 56 capable than the host's CPU are desired, generic libraries can be 57 created by running the following: 57 created by appending the <option>--host=none-linux-gnu</option> option 58 to the <command>configure</command> command.</para> 58 59 59 <screen role="nodump"><userinput>cp -v configfsf.guess config.guess 60 cp -v configfsf.sub config.sub</userinput></screen></para> 60 <!-- To editors: the configure script says "the none host is obsolete, 61 use - -disable-assembly", but don't believe it: with the latter 62 CFLAGS is still automatically set to -march=something. --> 61 63 </note> 62 64 … … 107 109 applications using the gmp libraries with the message "Illegal 108 110 instruction". In this case, gmp should be reconfigured with the option 109 --build=x86_64-pc-linux-gnuand rebuilt.</para></caution>111 <option>--host=none-linux-gnu</option> and rebuilt.</para></caution> 110 112 111 <para>Ensure that all 197 tests in the test suite passed. 113 <!-- Some tests PASS on a specific uarch but SKIP on other CPUs. 114 For example on K8 the following command outputs 200. --> 115 <para>Ensure that at least 199 tests in the test suite passed. 112 116 Check the results by issuing the following command:</para> 113 117 … … 125 129 126 130 <segmentedlist> 127 <segtitle>Installed Libraries</segtitle>131 <segtitle>Installed libraries</segtitle> 128 132 <segtitle>Installed directory</segtitle> 129 133 -
chapter08/jinja2.xml
rd58da4b r2df066c9 43 43 <para>Build the package:</para> 44 44 45 <screen><userinput remap="install">pip3 wheel -w dist --no- build-isolation --no-deps $PWD</userinput></screen>45 <screen><userinput remap="install">pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD</userinput></screen> 46 46 47 47 <para>Install the package:</para> -
chapter08/less.xml
rd58da4b r2df066c9 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/libelf.xml
rd58da4b r2df066c9 71 71 72 72 <segmentedlist> 73 <segtitle>Installed Library</segtitle>74 <segtitle>Installed Directory</segtitle>73 <segtitle>Installed library</segtitle> 74 <segtitle>Installed directory</segtitle> 75 75 76 76 <seglistitem> -
chapter08/libxcrypt.xml
rd58da4b r2df066c9 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/markupsafe.xml
rd58da4b r2df066c9 43 43 <para>Compile MarkupSafe with the following command:</para> 44 44 45 <screen><userinput remap="make">pip3 wheel -w dist --no- build-isolation --no-deps $PWD</userinput></screen>45 <screen><userinput remap="make">pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD</userinput></screen> 46 46 47 47 <para>This package does not come with a test suite.</para> -
chapter08/meson.xml
rd58da4b r2df066c9 47 47 <para>Compile Meson with the following command:</para> 48 48 49 <screen><userinput remap="make">pip3 wheel -w dist --no- build-isolation --no-deps $PWD</userinput></screen>49 <screen><userinput remap="make">pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD</userinput></screen> 50 50 51 51 <para>The test suite requires some packages outside the scope of LFS.</para> -
chapter08/mpc.xml
rd58da4b r2df066c9 70 70 71 71 <segmentedlist> 72 <segtitle>Installed Libraries</segtitle>73 <segtitle>Installed Directory</segtitle>72 <segtitle>Installed libraries</segtitle> 73 <segtitle>Installed directory</segtitle> 74 74 75 75 <seglistitem> -
chapter08/mpfr.xml
rd58da4b r2df066c9 42 42 <title>Installation of MPFR</title> 43 43 44 <!-- https://sympa.inria.fr/sympa/arc/mpfr/2023-01/msg00002.html45 https://gitlab.inria.fr/mpfr/mpfr/-/commit/5172494c46 47 Note that it's a different issue from Glibc #30068 we've fixed in48 chapter08/glibc.xml with a sed. Normally we just document the49 test failure, but in this case the particular subtest also serves50 as an additional guard against Glibc #30068. So we apply the51 upstream fix here. -->52 <para>Fix a test case based on a bug of old Glibc releases:</para>53 54 <screen><userinput remap="pre">sed -e 's/+01,234,567/+1,234,567 /' \55 -e 's/13.10Pd/13Pd/' \56 -i tests/tsprintf.c</userinput></screen>57 58 44 <para>Prepare MPFR for compilation:</para> 59 45 … … 73 59 </important> 74 60 75 <para>Test the results and ensure that all 19 7tests passed:</para>61 <para>Test the results and ensure that all 198 tests passed:</para> 76 62 77 63 <screen><userinput remap="test">make check</userinput></screen> … … 89 75 90 76 <segmentedlist> 91 <segtitle>Installed Libraries</segtitle>77 <segtitle>Installed libraries</segtitle> 92 78 <segtitle>Installed directory</segtitle> 93 79 -
chapter08/ncurses.xml
rd58da4b r2df066c9 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/openssl.xml
rd58da4b r2df066c9 100 100 <emphasis>when upgrading to a version with the same MAJOR version 101 101 number</emphasis>. 102 </para>103 104 <!-- https://bugzilla.mindrot.org/show_bug.cgi?id=3548 -->105 <para>106 If <application>OpenSSH</application> is installed, it will be an107 exception of the general rule above. It contains an108 over-restrictive OpenSSL version check, so both SSH client and SSH109 server will refuse to start if OpenSSL110 is updated with MAJOR version number unchanged but MINOR version111 number changed. You need to rebuild112 <application>OpenSSH</application> after such an upgrade.113 <emphasis role='bold'>If <application>OpenSSH</application> is being114 used to access the system, you must rebuild and reinstall it115 after upgrading OpenSSL to a new MINOR version number before logout116 or you won't be able to login via SSH anymore.</emphasis>117 102 </para> 118 103 -
chapter08/perl.xml
rd58da4b r2df066c9 77 77 78 78 <variablelist> 79 <title>The meaning of the configure options:</title> 80 81 <varlistentry> 82 <term><parameter>-Dvendorprefix=/usr</parameter></term> 83 <listitem> 84 <para>This ensures <command>perl</command> knows how to 85 tell packages where they should install their Perl modules.</para> 86 </listitem> 87 </varlistentry> 79 <title>The meaning of the new Configure options:</title> 88 80 89 81 <varlistentry> … … 106 98 107 99 <varlistentry> 108 <term><parameter>-Duseshrplib</parameter></term>109 <listitem>110 <para>Build a shared libperl needed by some Perl modules.</para>111 </listitem>112 </varlistentry>113 114 <varlistentry>115 100 <term><parameter>-Dusethreads</parameter></term> 116 101 <listitem> 117 102 <para>Build Perl with support for threads.</para> 118 </listitem>119 </varlistentry>120 121 <varlistentry>122 <term><parameter>-Dprivlib,-Darchlib,-Dsitelib,...</parameter></term>123 <listitem>124 <para>These settings define where Perl looks for installed125 modules. The LFS editors chose to put them in a directory structure126 based on the MAJOR.MINOR version of Perl (&perl-version-min;) which127 allows upgrading Perl to newer patch levels (the patch level is128 the last dot separated part in the full version string like129 &perl-version;) without reinstalling all of the modules.</para>130 103 </listitem> 131 104 </varlistentry> -
chapter08/pkgconf.xml
rd58da4b r2df066c9 42 42 43 43 <sect2 role="installation"> 44 44 45 <title>Installation of Pkgconf</title> 46 47 <!-- https://github.com/pkgconf/pkgconf/issues/317 --> 48 <para>Fix a regression in pkgconf-2.0.3 breaking BLFS packages:</para> 49 50 <screen><userinput remap="pre">sed -i 's/str\(cmp.*package\)/strn\1, strlen(pkg->why)/' cli/main.c</userinput></screen> 45 51 46 52 <para>Prepare Pkgconf for compilation:</para> -
chapter08/procps.xml
rd58da4b r2df066c9 68 68 <para>Compile the package:</para> 69 69 70 <screen><userinput remap="make">make</userinput></screen> 71 <!-- 72 <para>The test suite needs some custom modifications for LFS. 73 Remove a test that fails when scripting does not use a tty device and 74 fix two others. 75 To run the test suite, run the following commands:</para> 76 77 <screen><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp 78 sed -i '/set tty/d' testsuite/pkill.test/pkill.exp 79 rm testsuite/pgrep.test/pgrep.exp 80 make check</userinput></screen> 81 --> 70 <screen revision='sysv'><userinput remap="make">make</userinput></screen> 71 <screen revision='systemd'><userinput remap="make">make src_w_LDADD='$(LDADD) -lsystemd'</userinput></screen> 72 82 73 <para> To run the test suite, run:</para> 83 74 84 75 <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 76 96 77 <para>Install the package:</para> -
chapter08/python.xml
rd58da4b r2df066c9 192 192 193 193 <segmentedlist> 194 <segtitle>Installed Programs</segtitle>195 <segtitle>Installed Library</segtitle>196 <segtitle>Installed Directories</segtitle>194 <segtitle>Installed programs</segtitle> 195 <segtitle>Installed library</segtitle> 196 <segtitle>Installed directories</segtitle> 197 197 198 198 <seglistitem> -
chapter08/shadow.xml
rd58da4b r2df066c9 108 108 --disable-static \ 109 109 --with-{b,yes}crypt \ 110 --without-libbsd \ 110 111 --with-group-name-max-length=32</userinput></screen> 111 112 … … 142 143 <para>The longest permissible user name is 32 characters. Make the maximum 143 144 length of a group name the same.</para> 145 </listitem> 146 </varlistentry> 147 148 <varlistentry> 149 <term><parameter>--without-libbsd</parameter></term> 150 <listitem> 151 <para>Do not use the readpassphrase function from libbsd which 152 is not in LFS. Use the internal copy instead.</para> 144 153 </listitem> 145 154 </varlistentry> -
chapter08/stripping.xml
rd58da4b r2df066c9 30 30 dynamically linked binaries and shared libraries).</para> 31 31 32 <para>The debugging symbols from selected libraries are preserved 33 in separate files. That debugging information is needed to run 34 regression tests with <ulink 32 <!-- TODO: Zstd is better than Zlib for both speed and size. 33 Unfortunately Valgrind does not support Zstd-compressed debug 34 info yet: https://bugs.kde.org/show_bug.cgi?id=469782 --> 35 <para>The debugging symbols from selected libraries are compressed with 36 <application>Zlib</application> and preserved in separate files. That 37 debugging information is needed to run regression tests with <ulink 35 38 url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink 36 39 url='&blfs-book;/general/gdb.html'>gdb</ulink> later, in BLFS. … … 79 82 80 83 for LIB in $save_usrlib; do 81 objcopy --only-keep-debug $LIB $LIB.dbg84 objcopy --only-keep-debug --compress-debug-sections=zlib $LIB $LIB.dbg 82 85 cp $LIB /tmp/$LIB 83 86 strip --strip-unneeded /tmp/$LIB … … 89 92 online_usrbin="bash find strip" 90 93 online_usrlib="libbfd-&binutils-version;.so 91 libsframe.so. 0.0.094 libsframe.so.&libsframe-version; 92 95 libhistory.so.&readline-soversion; 93 96 libncursesw.so.&ncurses-version; … … 95 98 libreadline.so.&readline-soversion; 96 99 libz.so.&zlib-version; 100 libzstd.so.&zstd-version; 97 101 $(cd /usr/lib; find libnss*.so* -type f)" 98 102 -
chapter08/systemd.xml
rd58da4b r2df066c9 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, … … 82 69 -Dpamconfdir=no \ 83 70 -Ddev-kvm-mode=0660 \ 71 -Dnobody-group=nogroup \ 84 72 -Ddocdir=/usr/share/doc/systemd-&systemd-version; \ 85 73 ..</userinput></screen> … … 192 180 </listitem> 193 181 </varlistentry> 182 183 <varlistentry> 184 <term><parameter>-Dnobody-group=nogroup</parameter></term> 185 <listitem> 186 <para>Tell the package the group name with GID 65534 is 187 <systemitem class='groupname'>nogroup</systemitem>.</para> 188 </listitem> 189 </varlistentry> 194 190 </variablelist> 195 191 … … 206 202 <!-- Please make sure systemd man pages tarball has a common leading 207 203 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> 204 <screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-version;.tar.xz \ 205 --no-same-owner --strip-components=1 \ 206 -C /usr/share/man</userinput></screen> 209 207 210 208 <para>Create the <filename>/etc/machine-id</filename> file needed by … … 245 243 <seg>busctl, coredumpctl, halt (symlink to systemctl), 246 244 hostnamectl, init, journalctl, kernel-install, localectl, loginctl, 247 machinectl, networkctl, oomctl, portablectl, poweroff (symlink to 245 machinectl, mount.ddi (symlink to systemd-dissect), networkctl, 246 oomctl, portablectl, poweroff (symlink to 248 247 systemctl), reboot (symlink to systemctl), resolvconf (symlink to 249 248 resolvectl), resolvectl, runlevel (symlink to systemctl), shutdown 250 249 (symlink to systemctl), systemctl, systemd-ac-power, systemd-analyze, 251 250 systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop, 252 systemd-creds, systemd-delta, systemd-detect-virt, 251 systemd-confext (symlink to systemd-sysext), systemd-creds, 252 systemd-delta, systemd-detect-virt, 253 253 systemd-dissect, systemd-escape, systemd-hwdb, systemd-id128, 254 254 systemd-inhibit, systemd-machine-id-setup, -
chapter08/tar.xml
rd58da4b r2df066c9 73 73 <screen><userinput remap="test">make check</userinput></screen> 74 74 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<N></command> to the line above. For 79 instance, using -j4 can reduce the test time by over 70 80 percent.</para></note> 81 75 82 <para>One test, capabilities: binary store/restore, is known to fail if it is 76 83 run because LFS lacks selinux, but will be skipped if the host kernel does 77 not support extended attributes on the filesystem used for building LFS.</para> 84 not support extended attributes or security labels on the filesystem 85 used for building LFS.</para> 78 86 79 87 <para>Install the package:</para> -
chapter08/udev.xml
rd58da4b r2df066c9 128 128 install -vm755 udevadm /usr/bin/ 129 129 install -vm755 systemd-hwdb /usr/bin/udev-hwdb 130 ln -sv 130 ln -svfn ../bin/udevadm /usr/sbin/udevd 131 131 cp -av libudev.so{,*[0-9]} /usr/lib/ 132 132 install -vm644 ../src/libudev/libudev.h /usr/include/ … … 148 148 <!-- Please make sure systemd man pages tarball has a common leading 149 149 component in the path. --> 150 <screen><userinput remap="install">tar -xf ../../systemd-man-pages-253.tar.xz --strip-components=1 \ 150 <screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz \ 151 --no-same-owner --strip-components=1 \ 151 152 -C /usr/share/man --wildcards '*/udev*' '*/libudev*' \ 152 153 '*/systemd-'{hwdb,udevd.service}.8 153 sed 's/systemd\(\\\?-\)/udev -/' /usr/share/man/man8/systemd-hwdb.8\154 > /usr/share/man/man8/udev-hwdb.8154 sed 's/systemd\(\\\?-\)/udev\1/' /usr/share/man/man8/systemd-hwdb.8 \ 155 > /usr/share/man/man8/udev-hwdb.8 155 156 sed 's|lib.*udevd|sbin/udevd|' \ 156 157 /usr/share/man/man8/systemd-udevd.service.8 \ -
chapter08/util-linux.xml
rd58da4b r2df066c9 43 43 <title>Installation of Util-linux</title> 44 44 45 <para>First, disable a problem test:</para>45 <para>First, disable a problematic test:</para> 46 46 47 47 <screen><userinput remap="pre">sed -i '/test_mkfds/s/^/#/' tests/helpers/Makemodule.am</userinput></screen> … … 1231 1231 unique among all UUIDs created, on the local system and on other 1232 1232 systems, in the past and in the future, with extremely high 1233 probability (~340 trillion trillion trillion unique UUIDs are possible)</para> 1233 probability (2<superscript>128</superscript> UUIDs are 1234 possible)</para> 1234 1235 <indexterm zone="ch-system-util-linux uuidgen"> 1235 1236 <primary sortas="b-uuidgen">uuidgen</primary> -
chapter08/wheel.xml
rd58da4b r2df066c9 43 43 <para>Compile Wheel with the following command:</para> 44 44 45 <screen><userinput remap="make">pip3 wheel -w dist --no- build-isolation --no-deps $PWD</userinput></screen>45 <screen><userinput remap="make">pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD</userinput></screen> 46 46 47 47 <para>Install Wheel with the following command:</para>
Note:
See TracChangeset
for help on using the changeset viewer.