From 1fde5b2617369cdf70948bcf07c217bb19c9be94 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 18 May 2023 13:36:37 -0500 Subject: [PATCH 01/13] Package updates. Update to util-linux-2.39. Update to linux-6.3.3. Update to libcap-2.69. Update to grep-3.11. Update to flit_core-3.9.0. Update to eudev-3.2.12. --- chapter01/changelog.xml | 30 ++++++++++++++++++++++++++++++ chapter01/whatsnew.xml | 15 +++++++++------ chapter07/util-linux.xml | 4 ++-- chapter08/eudev.xml | 4 ++-- chapter08/util-linux.xml | 2 ++ packages.ent | 38 +++++++++++++++++++------------------- 6 files changed, 64 insertions(+), 29 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 58c77b66b..08359561c 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,36 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2023-05-18 + + + [bdubbs] - Update to util-linux-2.39. Fixes + #5259. + + + [bdubbs] - Update to linux-6.3.3. Fixes + #5261. + + + [bdubbs] - Update to libcap-2.69. Fixes + #5258. + + + [bdubbs] - Update to grep-3.11. Fixes + #5256. + + + [bdubbs] - Update to flit_core-3.9.0. Fixes + #5257. + + + [bdubbs] - Update to eudev-3.2.12. Fixes + #5260. + + + + 2023-05-13 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 8c2bfda05..293fbb274 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -91,9 +91,9 @@ - + @@ -109,6 +109,9 @@ + + Flit-core-&flit-core-version; + @@ -169,9 +172,9 @@ - + Libelf-&elfutils-version; (from elfutils) @@ -268,9 +271,9 @@ - + Vim-&vim-version; diff --git a/chapter07/util-linux.xml b/chapter07/util-linux.xml index 9adf2995c..2f88e7d5f 100644 --- a/chapter07/util-linux.xml +++ b/chapter07/util-linux.xml @@ -53,6 +53,7 @@ ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ --libdir=/usr/lib \ + --runstatedir=/run \ --docdir=/usr/share/doc/util-linux-&util-linux-version; \ --disable-chfn-chsh \ --disable-login \ @@ -62,8 +63,7 @@ --disable-runuser \ --disable-pylibmount \ --disable-static \ - --without-python \ - runstatedir=/run + --without-python The meaning of the configure options: diff --git a/chapter08/eudev.xml b/chapter08/eudev.xml index f4c5ac5d2..c9b0e7617 100644 --- a/chapter08/eudev.xml +++ b/chapter08/eudev.xml @@ -39,11 +39,11 @@ Installation of Eudev - + Prepare Eudev for compilation: ./configure --prefix=/usr \ diff --git a/chapter08/util-linux.xml b/chapter08/util-linux.xml index 44d55697d..7a21e2a1a 100644 --- a/chapter08/util-linux.xml +++ b/chapter08/util-linux.xml @@ -47,6 +47,7 @@ ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ --bindir=/usr/bin \ --libdir=/usr/lib \ + --runstatedir=/run \ --sbindir=/usr/sbin \ --disable-chfn-chsh \ --disable-login \ @@ -64,6 +65,7 @@ ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ --bindir=/usr/bin \ --libdir=/usr/lib \ + --runstatedir=/run \ --sbindir=/usr/sbin \ --disable-chfn-chsh \ --disable-login \ diff --git a/packages.ent b/packages.ent index 88a61d6d2..9615dc893 100644 --- a/packages.ent +++ b/packages.ent @@ -156,10 +156,10 @@ - - + + - + @@ -207,10 +207,10 @@ - - + + - + @@ -289,10 +289,10 @@ - - + + - + @@ -398,10 +398,10 @@ - - + + - + @@ -432,12 +432,12 @@ - + - + - + - + + + - + From fb5f62be63a5e84a2badbade07fba1839df7ab5d Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 18 May 2023 15:33:34 -0500 Subject: [PATCH 02/13] Speling --- chapter08/gcc.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index 281883c0a..482b588db 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -103,7 +103,7 @@ cd build By default, during the installation of GCC some system headers would be fixed to be used with GCC. This - is not necessary for a modern Linux system, and potentionally + is not necessary for a modern Linux system, and potentially harmful if a package is reinstalled after installing GCC. This switch prevents GCC from fixing the headers. From 0a7df4c5db8e0e33e96cf8f5fae7cac0f0e82c56 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 18 May 2023 19:33:31 -0500 Subject: [PATCH 03/13] Skip a problem test in util-linux. --- chapter08/util-linux.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chapter08/util-linux.xml b/chapter08/util-linux.xml index 7a21e2a1a..6c37af728 100644 --- a/chapter08/util-linux.xml +++ b/chapter08/util-linux.xml @@ -42,6 +42,10 @@ Installation of Util-linux + First, disable a problem test: + + sed -i '/test_mkfds/s/^/#/' tests/helpers/Makemodule.am + Prepare Util-linux for compilation: ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ From bf1e3fa174cae908269904a5e2da9cf16ae0bc5d Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 19 May 2023 12:18:39 -0500 Subject: [PATCH 04/13] Tweak ninja currency --- lfs-latest-git.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfs-latest-git.php b/lfs-latest-git.php index b380a5a83..06887b0bd 100644 --- a/lfs-latest-git.php +++ b/lfs-latest-git.php @@ -292,7 +292,7 @@ if ( $package == "zstd" ) $dirpath = "https://github.com/facebook/zstd/rel return find_max( $lines, "/tcl\d/", "/^.*tcl(\d\.[\d\.]*\d)-src.*$/" ); if ( $package == "ninja" ) - return find_max( $lines, "/v\d/", "/^.*v(\d[\d\.]*\d).*$/" ); + return find_max( $lines, "/^ *v\d/", "/^.*v(\d[\d\.]*\d).*$/" ); if ( $package == "gmp" ) return find_max( $lines, "/$package/", "/^.*$package-([\d\._]*\d[a-z]?).tar.*$/" ); From 507bf71541a3b32fb9cc4d7060325a7e45b732b5 Mon Sep 17 00:00:00 2001 From: Ken Moffat Date: Thu, 25 May 2023 21:27:33 +0100 Subject: [PATCH 05/13] sysv book: Remove unneeded group sgx from eudev. --- chapter01/changelog.xml | 11 +++++++++++ chapter08/eudev.xml | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 08359561c..ff3b3fb55 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,17 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2023-05-25 + + + [ken] - Remove unneeded group sgx from eudev rules. Fixes + #5265. + + + + + 2023-05-18 diff --git a/chapter08/eudev.xml b/chapter08/eudev.xml index c9b0e7617..619526bea 100644 --- a/chapter08/eudev.xml +++ b/chapter08/eudev.xml @@ -44,6 +44,14 @@ sed -i '/udevdir/a udev_dir=${udevdir}' src/udev/udev.pc.in --> + + Remove an unneeded group + sgx, from the default udev + rules: + +sed -i -e 's/GROUP="sgx", //' rules/50-udev-default.rules + Prepare Eudev for compilation: ./configure --prefix=/usr \ From 0aba9cbb0cf1377f893cd8040bc7dbd06051522e Mon Sep 17 00:00:00 2001 From: Ken Moffat Date: Thu, 25 May 2023 21:29:19 +0100 Subject: [PATCH 06/13] Fix to past changelog: util-linux-2.39 is in both books. --- chapter01/changelog.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index ff3b3fb55..2c0f240ac 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -53,7 +53,7 @@ 2023-05-18 - + [bdubbs] - Update to util-linux-2.39. Fixes #5259. From 55a29ccad28fe8bd4ab53d25ed7a96345aa2f94b Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 27 May 2023 19:05:06 +0800 Subject: [PATCH 07/13] pkgmgt: Mention the "dependency hell" issue --- chapter08/pkgmgt.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/chapter08/pkgmgt.xml b/chapter08/pkgmgt.xml index 8bf8dfdaa..a5c64f3f6 100644 --- a/chapter08/pkgmgt.xml +++ b/chapter08/pkgmgt.xml @@ -85,6 +85,22 @@ libraries until all the dependent packages have been recompiled. + If a package is (directly or indirectly) linked to + both the old and new names of one shared library (for example, the + package links to both + libfoo.so.2 and + libbar.so.1, while the latter + links to + libfoo.so.3 in turn), the + package may malfunction because the different names of the shared + library provide incompatible functions with same symbol names. This + can be caused by recompiling some (but not all) packages linked to the + old shared library name after the package providing the shared library + is upgraded. To avoid the issue, it's recommended to recompile every + package linked to a shared library of which the name has been changed + during an upgrade as soon as possible, in their dependency order. + + If a package containing a shared library is updated, and the name of the library doesn't change, but the version number of the library file decreases (for example, From d0da969c43b3963ae20a88884e2fa2f2503172d5 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 27 May 2023 17:07:58 -0500 Subject: [PATCH 08/13] Reword library conflict paragraph. --- chapter08/pkgmgt.xml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/chapter08/pkgmgt.xml b/chapter08/pkgmgt.xml index a5c64f3f6..f64778e71 100644 --- a/chapter08/pkgmgt.xml +++ b/chapter08/pkgmgt.xml @@ -85,20 +85,18 @@ libraries until all the dependent packages have been recompiled. - If a package is (directly or indirectly) linked to - both the old and new names of one shared library (for example, the - package links to both - libfoo.so.2 and + If a package is (directly or indirectly) linked to both + the old and new versions of a shared library (for example, the package + links to both libfoo.so.2 and libbar.so.1, while the latter - links to - libfoo.so.3 in turn), the - package may malfunction because the different names of the shared - library provide incompatible functions with same symbol names. This - can be caused by recompiling some (but not all) packages linked to the - old shared library name after the package providing the shared library - is upgraded. To avoid the issue, it's recommended to recompile every - package linked to a shared library of which the name has been changed - during an upgrade as soon as possible, in their dependency order. + links to libfoo.so.3), the + package may malfunction because the different revisions of the shared + library present conflicting locations for some symbol names. This can be + caused by recompiling some, but not all, of the packages linked to the + old shared library after the package providing the shared library is + upgraded. To avoid the issue, users will need to rebuild every package + linked to a shared library with an updated revision (e.g. libfoo.so.2 to + libfoo.so.3) as soon as possible. If a package containing a shared library is updated, From 360371a30f5f29ebc24381912a64d149f7703004 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 28 May 2023 19:57:28 -0500 Subject: [PATCH 09/13] Minor rewording --- chapter08/pkgmgt.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chapter08/pkgmgt.xml b/chapter08/pkgmgt.xml index f64778e71..f5e50524b 100644 --- a/chapter08/pkgmgt.xml +++ b/chapter08/pkgmgt.xml @@ -126,14 +126,13 @@ (replace libfoo with the name of the library): -grep -l -e 'libfoo.*deleted' /proc/*/maps | - tr -cd 0-9\\n | xargs -r ps u +grep -l 'libfoo.*deleted' /proc/*/maps | tr -cd 0-9\\n | xargs -r ps u If OpenSSH is being used to access the system and it is linked to the updated library, you must restart the sshd service, then logout, login again, - and rerun the preceding ps command to confirm that nothing is still using the + and run the preceding command again to confirm that nothing is still using the deleted libraries. From 732ce30389a13693b3916952a13cdb88007c802c Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Thu, 1 Jun 2023 17:41:32 +0200 Subject: [PATCH 10/13] Remove a remap="configure" attribute in eudev remap="configure" means it is for configuring the build before running make (or ninja), not for configuring the system after the package is installed. We don't have a special attribute for that. --- chapter08/eudev.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/eudev.xml b/chapter08/eudev.xml index 619526bea..785e70103 100644 --- a/chapter08/eudev.xml +++ b/chapter08/eudev.xml @@ -104,7 +104,7 @@ make -f &udev-lfs-version;/Makefile.lfs install consider it dangerous. Create a configuration file to override it: -cat > /etc/udev/rules.d/65-kvm.rules << "EOF" +cat > /etc/udev/rules.d/65-kvm.rules << "EOF" KERNEL=="kvm", GROUP="kvm", MODE="0660", TAG+="uaccess" EOF From 87fbad76f17664bcfd92aa3272a4b432c10c3db7 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 3 Jun 2023 17:48:12 -0500 Subject: [PATCH 11/13] Package updates. Update to iana-etc-20230524. Update to MarkupSafe-2.1.3 (Python Module) Update to linux-6.3.5. Update to openssl-3.1.1. Update to meson-1.1.1. Update to diffutils-3.10. Update to bc-6.6.0. --- chapter01/changelog.xml | 35 ++++++++++++++++++++++++++++++++++- chapter01/whatsnew.xml | 12 ++++++------ general.ent | 2 +- packages.ent | 38 +++++++++++++++++++------------------- 4 files changed, 60 insertions(+), 27 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 2c0f240ac..481efe10a 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,40 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2023-06-03 + + + [bdubbs] - Update to iana-etc-20230524. Addresses + #5006. + + + [bdubbs] - Update to MarkupSafe-2.1.3 (Python Module) + #5268. + + + [bdubbs] - Update to linux-6.3.5. Fixes + #5264. + + + [bdubbs] - Update to openssl-3.1.1. Fixes + #5267. + + + [bdubbs] - Update to meson-1.1.1. Fixes + #5266. + + + [bdubbs] - Update to diffutils-3.10. Fixes + #5262. + + + [bdubbs] - Update to bc-6.6.0. Fixes + #5263. + + + + 2023-05-25 @@ -49,7 +83,6 @@ - 2023-05-18 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 293fbb274..dbdc59ac9 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -85,9 +85,9 @@ - + @@ -202,9 +202,9 @@ Man-pages-&man-pages-version; - + Meson-&meson-version; @@ -220,9 +220,9 @@ - + diff --git a/general.ent b/general.ent index 1cc9fe030..912a360d6 100644 --- a/general.ent +++ b/general.ent @@ -91,7 +91,7 @@ - + - + - +