- Timestamp:
- 12/31/2023 09:57:54 PM (7 months ago)
- Branches:
- xry111/arm64
- Children:
- 9f894d5
- Parents:
- 00de269 (diff), 6fec3f5 (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:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/autoconf.xml
r00de269 r2576866 42 42 <title>Installation of Autoconf</title> 43 43 44 <para>First, fix several problems with the tests caused by bash-5.2 and later:</para>45 46 <screen><userinput remap="pre">sed -e 's/SECONDS|/&SHLVL|/' \47 -e '/BASH_ARGV=/a\ /^SHLVL=/ d' \48 -i.orig tests/local.at</userinput></screen>49 50 44 <para>Prepare Autoconf for compilation:</para> 51 45 … … 62 56 --> 63 57 <screen><userinput remap="test">make check</userinput></screen> 64 <!--65 <para>This takes a long time, about &autoconf-fin-sbu-tests; SBUs. In addition,66 several tests are skipped that use Automake. For full test coverage,67 Autoconf can be re-tested after Automake has been installed. In addition,68 two tests fail due to changes in libtool-2.4.3 and later.</para>69 -->70 <note><para>The test time for autoconf can be reduced significantly on a71 system with multiple cores. To do this, append72 <command>TESTSUITEFLAGS=-j<N></command> to the line above. For73 instance, using -j4 can reduce the test time by over 6074 percent.</para></note>75 58 76 59 <para>Install the package:</para> -
chapter08/binutils.xml
r00de269 r2576866 58 58 --disable-werror \ 59 59 --enable-64-bit-bfd \ 60 --with-system-zlib</userinput></screen> 60 --with-system-zlib \ 61 --enable-default-hash-style=gnu</userinput></screen> 62 61 63 <variablelist> 62 <title>The meaning of the configure parameters:</title>64 <title>The meaning of the new configure parameters:</title> 63 65 64 66 <varlistentry> … … 82 84 <listitem> 83 85 <para>Enables plugin support for the linker.</para> 84 </listitem>85 </varlistentry>86 87 <varlistentry>88 <term><parameter>--enable-64-bit-bfd</parameter></term>89 <listitem>90 <para>Enables 64-bit support (on hosts with narrower word sizes).91 May not be needed on 64-bit systems, but does no harm.</para>92 86 </listitem> 93 87 </varlistentry> -
chapter08/grub.xml
r00de269 r2576866 74 74 75 75 <para> 76 Fix an issue causing <command>grub-install</command> to fail when the 77 <filename class='directory'>/boot</filename> partition (or the root 78 partition if <filename class='directory'>/boot</filename> is not a 79 separate partition) is created by e2fsprogs-1.47.0 or later: 76 Add a file missing from the release tarball: 80 77 </para> 81 78 82 <screen><userinput remap='pre'> patch -Np1 -i ../grub-&grub-version;-upstream_fixes-1.patch</userinput></screen>79 <screen><userinput remap='pre'>echo <literal>depends bli part_gpt</literal> > grub-core/extra_deps.lst</userinput></screen> 83 80 84 81 <!--https://git.savannah.gnu.org/cgit/grub.git/commit/?id=69edb312 --> -
chapter08/libtool.xml
r00de269 r2576866 54 54 55 55 <screen><userinput remap="test">make -k check</userinput></screen> 56 57 <note><para>The test time for Libtool can be reduced significantly on a58 system with multiple cores. To do this, append59 <command>TESTSUITEFLAGS=-j<N></command> to the line above. For60 instance, using -j4 can reduce the test time by over 6061 percent.</para></note>62 56 63 57 <para>Five tests are known to fail in the LFS build environment due -
chapter08/systemd.xml
r00de269 r2576866 48 48 <screen><userinput remap="pre">sed -i -e 's/GROUP="render"/GROUP="video"/' \ 49 49 -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in</userinput></screen> 50 51 <!-- https://github.com/systemd/systemd/pull/30549 --> 52 <para>Now fix a security vulnerability in the DNSSEC verification of 53 <command>systemd-resolved</command>:</para> 54 55 <screen><userinput remap='pre'>sed -e '/return FLAGS_SET.*AUTHENTICATED/s/(t/(dt/' \ 56 -i src/resolve/resolved-dns-transaction.c</userinput></screen> 50 57 51 58 <para>Prepare systemd for compilation:</para> … … 63 70 -Dsysusers=false \ 64 71 -Drpmmacrosdir=no \ 65 -Dhomed= false\72 -Dhomed=disabled \ 66 73 -Duserdb=false \ 67 74 -Dman=false \ … … 70 77 -Ddev-kvm-mode=0660 \ 71 78 -Dnobody-group=nogroup \ 79 -Dsysupdate=disabled \ 80 -Dukify=disabled \ 72 81 -Ddocdir=/usr/share/doc/systemd-&systemd-version; \ 73 82 ..</userinput></screen> … … 140 149 141 150 <varlistentry> 142 <term><parameter>-D{userdb,homed}=false</parameter></term> 151 <term><parameter>-Dhomed=disabled</parameter> and 152 <parameter>-Duserdb=false</parameter></term> 143 153 <listitem> 144 154 <para>Remove two daemons with dependencies that do not fit … … 188 198 </listitem> 189 199 </varlistentry> 200 201 <varlistentry> 202 <term><parameter>-Dsysupdate=disabled</parameter></term> 203 <listitem> 204 <para>Do not install the <command>systemd-sysupdate</command> 205 tool. It's designed for automatically upgrading binary distros, 206 so it's useless for a basic Linux system built from source. 207 And it will report errors on boot if it's enabled but not properly 208 configured.</para> 209 </listitem> 210 </varlistentry> 211 212 <varlistentry> 213 <term><parameter>-Dukify=disabled</parameter></term> 214 <listitem> 215 <para>Do not install the <command>systemd-ukify</command> script. 216 At runtime this script requires the 217 <application>pefile</application> Python module that neither LFS 218 nor BLFS provides.</para> 219 </listitem> 220 </varlistentry> 221 190 222 </variablelist> 191 223 … … 214 246 215 247 <screen><userinput remap="adjust">systemctl preset-all</userinput></screen> 216 217 <para>Disable two services for upgrading binary distros. They are useless for218 a basic Linux system built from source, and each one will report an error if219 it's enabled but not configured:</para>220 221 <screen><userinput remap="adjust">systemctl disable systemd-sysupdate{,-reboot}</userinput></screen>222 248 223 249 <!-- dev: 50-pid-max.conf is not removed in BLFS, so I commented the following out. -
chapter08/tar.xml
r00de269 r2576866 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 a77 system with multiple cores. To do this, append78 <command>TESTSUITEFLAGS=-j<N></command> to the line above. For79 instance, using -j4 can reduce the test time by over 7080 percent.</para></note>81 82 75 <para>One test, capabilities: binary store/restore, is known to fail if it is 83 76 run because LFS lacks selinux, but will be skipped if the host kernel does -
chapter08/udev.xml
r00de269 r2576866 126 126 </variablelist> 127 127 128 <para>Get the list of the shipped udev helpers and save it into an 129 environment variable:</para> 130 131 <screen><userinput remap="make">udev_helpers=$(grep "'name' :" ../src/udev/meson.build | \ 132 awk '{print $3}' | tr -d ",'" | grep -v 'udevadm')</userinput></screen> 133 128 134 <para>Only build the components needed for udev:</para> 129 135 130 136 <screen><userinput remap="make">ninja udevadm systemd-hwdb \ 131 137 $(ninja -n | grep -Eo '(src/(lib)?udev|rules.d|hwdb.d)/[^ ]*') \ 132 $(realpath libudev.so --relative-to .)</userinput></screen> 138 $(realpath libudev.so --relative-to .) \ 139 $udev_helpers udevadm</userinput></screen> 133 140 134 141 <para>Install the package:</para> … … 148 155 -not -name '*power-switch*') /usr/lib/udev/rules.d/ 149 156 install -vm644 hwdb.d/* ../hwdb.d/{*.hwdb,README} /usr/lib/udev/hwdb.d/ 150 install -vm755 $(find src/udev \ 151 -type f -not -name '*.*') /usr/lib/udev 157 install -vm755 $udev_helpers /usr/lib/udev 152 158 install -vm644 ../network/99-default.link /usr/lib/udev/network</userinput></screen> 153 159 -
chapter08/util-linux.xml
r00de269 r2576866 49 49 <para>Prepare Util-linux for compilation:</para> 50 50 51 <screen revision="sysv"><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ 52 --bindir=/usr/bin \ 51 <screen revision="sysv"><userinput remap="configure">./configure --bindir=/usr/bin \ 53 52 --libdir=/usr/lib \ 54 53 --runstatedir=/run \ … … 64 63 --without-python \ 65 64 --without-systemd \ 66 --without-systemdsystemunitdir \ 65 --without-systemdsystemunitdir \ 66 ADJTIME_PATH=/var/lib/hwclock/adjtime \ 67 67 --docdir=/usr/share/doc/util-linux-&util-linux-version;</userinput></screen> 68 68 69 <screen revision="systemd"><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ 70 --bindir=/usr/bin \ 69 <screen revision="systemd"><userinput remap="configure">./configure --bindir=/usr/bin \ 71 70 --libdir=/usr/lib \ 72 71 --runstatedir=/run \ … … 81 80 --disable-static \ 82 81 --without-python \ 82 ADJTIME_PATH=/var/lib/hwclock/adjtime \ 83 83 --docdir=/usr/share/doc/util-linux-&util-linux-version;</userinput></screen> 84 84
Note:
See TracChangeset
for help on using the changeset viewer.