diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml
index 64a899b9a..6c9e8a76b 100644
--- a/appendices/dependencies.xml
+++ b/appendices/dependencies.xml
@@ -718,7 +718,9 @@
&external;
- None
+
+ Libseccomp
+
@@ -1116,7 +1118,7 @@
&external;
- Ghostscript
+ Ghostscript and uchardet
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 5cdfee5d0..5f2907c09 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -44,6 +44,134 @@
or as
appropriate for the entry or if needed the entire day's listitem.
-->
+
+ 2021-03-26
+
+
+ [renodr] - Update to openssl-1.1.1k (Security Update). Fixes
+ #4838.
+
+
+ [renodr] - Update to attr-2.5.1. Fixes
+ #4833.
+
+
+ [renodr] - Update to linux-5.11.10. Fixes
+ #4834.
+
+
+ [renodr] - Update to bc-3.3.4. Fixes
+ #4835.
+
+
+ [renodr] - Update to man-pages-5.11. Fixes
+ #4836.
+
+
+ [renodr] - Update to expat-2.3.0. Fixes
+ #4837.
+
+
+ [renodr] - Update to acl-2.3.1. Fixes
+ #4832.
+
+
+
+
+
+ 2021-03-17
+
+
+ [xry111] - Use for Binutils
+ installation. Thanks report from Hans Meier.
+
+
+
+
+
+ 2021-03-15
+
+
+ [bdubbs] - Update to vim-8.2.2604. Addreses
+ #4500.
+
+
+ [bdubbs] - Update to iana-etc-20210304. Addreses
+ #4722.
+
+
+ [bdubbs] - Update to zstd-1.4.9. Fixes
+ #4827.
+
+
+ [bdubbs] - Update to sysvinit-2.99. Fixes
+ #4822.
+
+
+ [bdubbs] - Update to linux-5.11.6. Fixes
+ #4824.
+
+
+ [bdubbs] - Update to libcap-2.49. Fixes
+ #4831.
+
+
+ [bdubbs] - Update to iproute2-5.11.0. Fixes
+ #4823.
+
+
+ [bdubbs] - Update to e2fsprogs-1.46.2. Fixes
+ #4826.
+
+
+ [bdubbs] - Update to bison-3.7.6. Fixes
+ #4828.
+
+
+ [bdubbs] - Update to bc-3.3.3. Fixes
+ #4825.
+
+
+ [bdubbs] - Update to attr-2.5.0. Fixes
+ #4830.
+
+
+ [bdubbs] - Update to acl-2.3.0. Fixes
+ #4829.
+
+
+
+
+
+ 2021-03-05
+
+
+ [xry111] - Simplify the installation of systemd man pages.
+
+
+
+
+
+
+ 2021-03-04
+
+
+ [renodr] - Patch systemd-247 so that it will function with
+ Linux-5.11 API headers.
+
+
+
+
+
+ 2021-03-02
+
+
+ [pierre] - Fix a header file for python, so that
+ #include <python&python-minor;/Python.h>
+ works.
+
+
+ 2021-03-01
diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml
index b44d74e76..72237e48d 100644
--- a/chapter01/whatsnew.xml
+++ b/chapter01/whatsnew.xml
@@ -30,12 +30,12 @@
-
-
+
@@ -45,15 +45,15 @@
-
+
-
+
@@ -72,15 +72,15 @@
-
+
-
+
@@ -120,24 +120,24 @@
-
+
-
+
-
+
@@ -150,9 +150,9 @@
-
+
@@ -165,9 +165,9 @@
-
+
@@ -177,9 +177,9 @@
-
+
@@ -195,9 +195,9 @@
-
+
@@ -225,15 +225,15 @@
-
+
-
+
@@ -249,9 +249,9 @@
-
+
@@ -261,9 +261,9 @@
-
+
-
+
diff --git a/chapter03/packages.xml b/chapter03/packages.xml
index 48b338451..f8dd8b3c3 100644
--- a/chapter03/packages.xml
+++ b/chapter03/packages.xml
@@ -190,15 +190,6 @@
Home page: Download: MD5 sum: &file-md5;
-
-
- File (&file-version;) may no longer be available at the
- listed location. The site administrators of the master download
- location occasionally remove older versions when new ones are
- released. An alternative download location that may have the correct
- version available can also be found at: .
-
diff --git a/chapter04/creatingminlayout.xml b/chapter04/creatingminlayout.xml
index 512f895f4..021a50dc1 100644
--- a/chapter04/creatingminlayout.xml
+++ b/chapter04/creatingminlayout.xml
@@ -12,7 +12,8 @@
The first task performed in the LFS partition is to create a limited
directory hierarchy so that programs compiled in may be installed in their final
+ linkend="chapter-temporary-tools"/> (as well as glibc and libstdc++ in ) may be installed in their final
location. This is needed so that those temporary programs be overwritten
when rebuilding them in .
diff --git a/chapter05/binutils-pass1.xml b/chapter05/binutils-pass1.xml
index c44847b61..98209ac31 100644
--- a/chapter05/binutils-pass1.xml
+++ b/chapter05/binutils-pass1.xml
@@ -144,7 +144,20 @@ cd build
Install the package:
-make install
+make install -j1
+
+
+ The meaning of the make parameter:
+
+
+ -j1
+
+ An issue in the building system may cause the installation
+ to fail with in MAKEFLAGS.
+ Override it to workaround this issue.
+
+
+
diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml
index 4c020de3b..c89e95b6c 100644
--- a/chapter05/glibc.xml
+++ b/chapter05/glibc.xml
@@ -43,7 +43,7 @@
Installation of Glibc
- First, create a symbolic link for LSB compliance. Additionally,
+ First, create a symbolic link for LSB compliance. Additionally,
for x86_64, create a compatibility symbolic link required for proper
operation of the dynamic library loader:
@@ -54,15 +54,19 @@
ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64/ld-lsb-x86-64.so.3
;;
esac
-
- First, create symbolic links for LSB compliance
- and compatibility symbolic links required for proper
- operation of the dynamic library loader:
-
ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64
ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64/ld-lsb-x86-64.so.3
+
+
+ The above command is correct. The ln command has
+ a few syntactic versions, so be sure to check
+ info coreutils ln and ln(1)
+ before reporting what you may think is an error.
+
+
+
Some of the Glibc programs use the non-FHS compliant
/var/db directory to store their
runtime data. Apply the following patch to make such programs store their
diff --git a/chapter05/libstdc++.xml b/chapter05/libstdc++.xml
index f17f9db89..9820a3d02 100644
--- a/chapter05/libstdc++.xml
+++ b/chapter05/libstdc++.xml
@@ -75,8 +75,9 @@ cd build
--host=...
- Specifies the use the cross compiler we have just built
- instead of the one in /usr/bin.
+ Specifies that the cross compiler we have just built
+ should be used instead of the one in
+ /usr/bin.
diff --git a/chapter06/binutils-pass2.xml b/chapter06/binutils-pass2.xml
index 3b8d34228..187eb7297 100644
--- a/chapter06/binutils-pass2.xml
+++ b/chapter06/binutils-pass2.xml
@@ -106,17 +106,9 @@ cd build
libctf.so
to link against zlib from the host distribution:
-make DESTDIR=$LFS install
+make DESTDIR=$LFS install -j1
install -vm755 libctf/.libs/libctf.so.0.0.0 $LFS/usr/lib
-
- Workaround an issue causing
- libctf.so
- to link against zlib from the host distribution:
-
-
-install -vm755 libctf/.libs/libctf.so.0.0.0 $LFS/usr/lib
-
diff --git a/chapter06/file.xml b/chapter06/file.xml
index dc6024177..b44a639be 100644
--- a/chapter06/file.xml
+++ b/chapter06/file.xml
@@ -90,6 +90,12 @@ popd
make DESTDIR=$LFS install
+ Move a shared library into its final location in the LFS system,
+ and recreate the symlink for it:
+
+mv -v $LFS/usr/lib/libmagic.so.* $LFS/lib
+ln -sfv ../../lib/$(readlink /usr/lib/libmagic.so) $LFS/usr/lib/libmagic.so
+
diff --git a/chapter08/autoconf.xml b/chapter08/autoconf.xml
index 23fdf1b75..d7563963b 100644
--- a/chapter08/autoconf.xml
+++ b/chapter08/autoconf.xml
@@ -65,13 +65,13 @@
several tests are skipped that use Automake. For full test coverage,
Autoconf can be re-tested after Automake has been installed. In addition,
two tests fail due to changes in libtool-2.4.3 and later.
-
+-->
The test time for autoconf can be reduced significantly on a
system with multiple cores. To do this, append
TESTSUITEFLAGS=-j<N> to the line above. For
instance, using -j4 can reduce the test time by over 60
percent.
--->
+
Install the package:make install
diff --git a/chapter08/bc.xml b/chapter08/bc.xml
index dfff0364f..2f29c1859 100644
--- a/chapter08/bc.xml
+++ b/chapter08/bc.xml
@@ -43,15 +43,15 @@
Prepare Bc for compilation:
-PREFIX=/usr CC=gcc ./configure.sh -G -O3
+CC=gcc ./configure --prefix=/usr -G -O3The meaning of the configure options:
- CC=gcc"
+ CC=gcc
- These parameters specify the compiler to use.
+ This parameter specifies the compiler to use.
diff --git a/chapter08/binutils.xml b/chapter08/binutils.xml
index 1d84b4851..5c0d51605 100644
--- a/chapter08/binutils.xml
+++ b/chapter08/binutils.xml
@@ -153,7 +153,7 @@ cd build
ultimately be located) is set to $(exec_prefix)/$(target_alias). For
example, x86_64 machines would expand that to /usr/x86_64-unknown-linux-gnu. Because this is
+ class="directory">/usr/x86_64-pc-linux-gnu. Because this is
a custom system, this target-specific directory in /usr is not required. $(exec_prefix)/$(target_alias) would be
@@ -179,7 +179,7 @@ cd build
Install the package:
-make tooldir=/usr install
+make tooldir=/usr install -j1Remove useless static libraries:
diff --git a/chapter08/coreutils.xml b/chapter08/coreutils.xml
index b8082c830..48572eef0 100644
--- a/chapter08/coreutils.xml
+++ b/chapter08/coreutils.xml
@@ -194,7 +194,7 @@ sed -i 's/"1"/"8"/' /usr/share/man/man8/chroot.8
[Is an actual command, /usr/bin/[, that is a synonym
- for the test command.
+ for the test command
[
diff --git a/chapter08/file.xml b/chapter08/file.xml
index b444fdad2..3356be936 100644
--- a/chapter08/file.xml
+++ b/chapter08/file.xml
@@ -57,6 +57,16 @@
make install
+ /bin/more from util-linux will link to
+ libmagic.so, so the shared
+ library should be moved to /lib,
+ and as a result the
+ .so file in
+ /usr/lib will need to be recreated:
+
+mv -v /usr/lib/libmagic.so.* /lib
+ln -sfv ../../lib/$(readlink /usr/lib/libmagic.so) /usr/lib/libmagic.so
+
diff --git a/chapter08/gmp.xml b/chapter08/gmp.xml
index 3169bfeb2..9e8f79829 100644
--- a/chapter08/gmp.xml
+++ b/chapter08/gmp.xml
@@ -106,7 +106,7 @@ make html
the system capabilities and there will be errors in the tests or other
applications using the gmp libraries with the message "Illegal
instruction". In this case, gmp should be reconfigured with the option
- --build=x86_64-unknown-linux-gnu and rebuilt.
+ --build=x86_64-pc-linux-gnu and rebuilt.
Ensure that all 197 tests in the test suite passed.
Check the results by issuing the following command:
diff --git a/chapter08/grub.xml b/chapter08/grub.xml
index d78a4458a..a2ac15011 100644
--- a/chapter08/grub.xml
+++ b/chapter08/grub.xml
@@ -40,11 +40,6 @@
Installation of GRUB
- First, fix an issue introduced by binutils-2.36:
-
-sed "s/gold-version/& -R .note.gnu.property/" \
- -i Makefile.in grub-core/Makefile.in
-
Prepare GRUB for compilation:./configure --prefix=/usr \
@@ -78,7 +73,9 @@
make
- This package does not come with a test suite.
+ The test suite for this packages is not recommended. Most of
+ the tests depend on packages that are not available in the limited
+ LFS environment. To run the tests anyway, run make check.Install the package:
diff --git a/chapter08/meson.xml b/chapter08/meson.xml
index cf23abf29..27e2bdf24 100644
--- a/chapter08/meson.xml
+++ b/chapter08/meson.xml
@@ -63,7 +63,9 @@
Install the package:python3 setup.py install --root=dest
-cp -rv dest/* /
+cp -rv dest/* /
+install -vDm644 data/shell-completions/bash/meson /usr/share/bash-completion/completions/meson
+install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/_mesonThe meaning of the install parameters:
diff --git a/chapter08/python.xml b/chapter08/python.xml
index b71822b9b..27384e94c 100644
--- a/chapter08/python.xml
+++ b/chapter08/python.xml
@@ -42,6 +42,10 @@
Installation of Python 3
+ First, a header file needs to be fixed:
+
+sed 's|cpython/||' -i Include/cpython/pystate.h
+
Prepare Python for compilation:./configure --prefix=/usr \
diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml
index 6ae4f3b0d..fc26f6daf 100644
--- a/chapter08/systemd.xml
+++ b/chapter08/systemd.xml
@@ -46,17 +46,11 @@
patch -Np1 -i ../systemd-&systemd-version;-gcc_10-fixes-2.patch
-->
- First, apply a patch to fix some regressions:
+
+ First, apply a patch to fix some regressions and fix functionality
+ with future versions of the kernel:
-patch -Np1 -i ../systemd-&systemd-version;-upstream_fixes-1.patch
-
- Create a symlink to work around the xsltproc command not being installed:
-
-ln -sf /bin/true /usr/bin/xsltproc
-
- Set up the man pages:
-
-tar -xf ../systemd-man-pages-&systemd-version;.tar.xz
+patch -Np1 -i ../systemd-&systemd-version;-upstream_fixes-2.patchRemove tests that cannot be built in chroot:
@@ -95,7 +89,7 @@ meson --prefix=/usr \
-Drpmmacrosdir=no \
-Dhomed=false \
-Duserdb=false \
- -Dman=true \
+ -Dman=false \
-Dmode=release \
-Ddocdir=/usr/share/doc/systemd-&systemd-version; \
..
@@ -190,6 +184,15 @@ meson --prefix=/usr \
+
+ -Dman=false
+
+ Prevent the generation of man pages to avoid extra
+ dependencies. We will install pre-generated man pages for systemd
+ from a tarball later.
+
+
+
-Dmode=release
@@ -208,9 +211,9 @@ meson --prefix=/usr \
LANG=en_US.UTF-8 ninja install
- Remove an unnecessary symbolic link:
+ Install the man pages:
-rm -f /usr/bin/xsltproc
+tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz --strip-components=1 -C /usr/share/manRemove a useless directory:
diff --git a/chapter09/networkd.xml b/chapter09/networkd.xml
index 229b313b1..49d4031a0 100644
--- a/chapter09/networkd.xml
+++ b/chapter09/networkd.xml
@@ -167,12 +167,13 @@ EOF
systemd-resolved Configuration
- If using another means to configure your network
- interfaces (ex: ppp, network-manager, etc.), or if using any type of
- local resolver (ex: bind, dnsmasq, unbound, etc.), or any other software
- that generates an /etc/resolv.conf (ex: resolvconf),
- the systemd-resolved service should not be
- used.
+ If using methods incompatible with systemd-resolved to
+ configure your network interfaces (ex: ppp, etc.), or if using any
+ type of local resolver (ex: bind, dnsmasq, unbound, etc.),
+ or any other software that generates an /etc/resolv.conf
+ (ex: a resolvconf program other than the one
+ provided by systemd), the systemd-resolved service
+ should not be used.When using systemd-resolved for DNS
configuration, it creates the file
diff --git a/general.ent b/general.ent
index 54b98a042..83111c4a7 100644
--- a/general.ent
+++ b/general.ent
@@ -1,13 +1,13 @@
-
+
-
+
-
+
@@ -42,6 +42,7 @@
+
diff --git a/packages.ent b/packages.ent
index 9b2a0161e..9b3b55fab 100644
--- a/packages.ent
+++ b/packages.ent
@@ -13,18 +13,18 @@
*-knl-* Package info for Kernel stuff
-->
-
-
-
-
+
+
+
+
-
-
+
+
-
+
@@ -57,10 +57,10 @@
-
-
+
+
-
+
@@ -77,10 +77,10 @@
-
-
+
+
-
+
@@ -139,10 +139,10 @@
-
-
+
+
-
+
@@ -162,10 +162,10 @@
-
-
+
+
-
+
@@ -181,7 +181,7 @@
-
+
@@ -301,10 +301,11 @@
-
-
-
-
+
+
+
+
+
@@ -319,10 +320,10 @@
-
+
-
+
@@ -343,10 +344,10 @@
-
-
+
+
-
+
@@ -391,10 +392,10 @@
-
-
+
+
-
+
@@ -424,13 +425,13 @@
-
-
+
+
-
+
-
+
+
-
-
+
+
-
-
+
+
-
+
@@ -702,19 +704,19 @@
-
+
-
+
-
+
-
+
@@ -745,10 +747,10 @@
-
-
+
+
-
+
diff --git a/patches.ent b/patches.ent
index 316e85cac..5bbfc57ba 100644
--- a/patches.ent
+++ b/patches.ent
@@ -67,6 +67,6 @@
-
-
-
+
+
+