From f2af13d7a0e190836a16e03f474f17b1e03a945d Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 20 Aug 2022 10:35:01 -0500 Subject: [PATCH 1/9] Intermediate update prior to lfs-11.2-rc1 --- chapter01/whatsnew.xml | 4 +++- chapter03/patches.xml | 8 +++---- chapter06/gcc-pass2.xml | 4 ++-- chapter08/gcc.xml | 3 ++- chapter08/xz.xml | 4 ++-- packages.ent | 46 ++++++++++++++++++++--------------------- patches.ent | 19 ++++++++++------- 7 files changed, 47 insertions(+), 41 deletions(-) diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index effa1361a..6f0222a1a 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -283,12 +283,14 @@ Wheel-&wheel-version; + &zstd-upstream-fixes-patch; - + diff --git a/chapter03/patches.xml b/chapter03/patches.xml index af3bd7b6a..2bba9c16d 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -68,7 +68,7 @@ --> - + Glibc FHS Patch - &glibc-fhs-patch-size;: @@ -142,7 +142,7 @@ MD5 sum: &systemd-upstream-patch-md5; - + Zstd Upstream Fixes Patch - &zstd-upstream-fixes-patch-size;: diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml index de78bb2aa..70295bdaa 100644 --- a/chapter06/gcc-pass2.xml +++ b/chapter06/gcc-pass2.xml @@ -42,11 +42,11 @@ Installation of GCC - + As in the first build of GCC, the GMP, MPFR, and MPC packages are required. Unpack the tarballs and move them into the required directory names: diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index 01225cd78..9c7c0065a 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -49,10 +49,11 @@ -e 's/return kAltStackSize/return SIGSTKSZ * 4/' \ -i libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cpp --> + If building on x86_64, change the default directory name for 64-bit libraries to lib: diff --git a/chapter08/xz.xml b/chapter08/xz.xml index bf108ad34..362c667dc 100644 --- a/chapter08/xz.xml +++ b/chapter08/xz.xml @@ -43,11 +43,11 @@ Installation of Xz - + Prepare Xz for compilation with: ./configure --prefix=/usr \ diff --git a/packages.ent b/packages.ent index 691c3ccf2..0da2afb5c 100644 --- a/packages.ent +++ b/packages.ent @@ -217,11 +217,11 @@ - - + + - - + + @@ -320,10 +320,10 @@ - + - + @@ -427,12 +427,12 @@ - + - + - + - + - + @@ -748,10 +748,10 @@ - - + + - + diff --git a/patches.ent b/patches.ent index 9efd90285..54c0c11fa 100644 --- a/patches.ent +++ b/patches.ent @@ -2,19 +2,21 @@ + + + @@ -39,11 +41,11 @@ --> - + @@ -88,11 +90,12 @@ - + + From 3a1168d93760804a0bd06415767584b9136a5a99 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 21 Aug 2022 14:05:48 +0800 Subject: [PATCH 2/9] add changelog entries for last package update --- chapter01/changelog.xml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 780ebbfe5..07e530bec 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,44 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2022-08-20 + + + [bdubbs] - Update to gcc-12.2.0. Fixes + #5098. + + + [bdubbs] - Update to iana-etc-20220812. Addresses + #5006. + + + [bdubbs] - Update to linux-5.19.2 (security fixes). Fixes + #5097. + + + [bdubbs] - Update to meson-0.63.1. Fixes + #5094. + + + [bdubbs] - Update to shadow-4.12.2 (security fix). Fixes + #5095. + + + [bdubbs] - Update to tzdata-2022c. Fixes + #5096. + + + [bdubbs] - Update to vim-9.0.0228. Addresses + #4500. + + + [bdubbs] - Update to xz-5.2.6. Fixes + #5093. + + + + 2022-08-18 From 983647975bdd3c91cf4c1dc2ef8b23990e1d8c77 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 21 Aug 2022 14:10:56 +0800 Subject: [PATCH 3/9] shadow: fix download URL --- packages.ent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages.ent b/packages.ent index 0da2afb5c..3ee2b7971 100644 --- a/packages.ent +++ b/packages.ent @@ -626,7 +626,7 @@ - + From 942e81de788ae13a07afe6e6abbbb4fd6a1719ac Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 21 Aug 2022 20:27:28 +0800 Subject: [PATCH 4/9] stripping: also mention symbol table bisides debug symbols --- chapter08/stripping.xml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/chapter08/stripping.xml b/chapter08/stripping.xml index 519119088..d82b72ac1 100644 --- a/chapter08/stripping.xml +++ b/chapter08/stripping.xml @@ -13,9 +13,9 @@ This section is optional. If the intended user is not a programmer and does not plan to do any debugging on the system software, the system size can be decreased - by about 2 GB by removing the debugging symbols from binaries and - libraries. This causes no inconvenience other than not being able to - debug the software fully anymore. + by about 2 GB by removing the debugging symbols and unneeded symbol table + entries from binaries and libraries. This causes no inconvenience other + than not being able to debug the software fully anymore. Most people who use the commands mentioned below do not experience any difficulties. However, it is easy to make a typo and @@ -23,6 +23,12 @@ strip commands, it is a good idea to make a backup of the LFS system in its current state. + A strip command with + --strip-unneeded option removes all debug symbols + from a binary or library. And, it removes all symbol table entries not + needed by the linker (for static libraries) or dynamic linker (for + dynamic-linked binaries and shared libraries). + The debugging symbols for selected libraries are placed in separate files. This debugging information is needed if running regression tests that use Date: Sun, 21 Aug 2022 08:36:00 -0500 Subject: [PATCH 5/9] Update stats for systemd packages in preparation of 11.2-rc1 --- packages.ent | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages.ent b/packages.ent index 3ee2b7971..9c3213c8b 100644 --- a/packages.ent +++ b/packages.ent @@ -119,8 +119,8 @@ - - + + @@ -358,7 +358,7 @@ - + @@ -487,7 +487,7 @@ - + @@ -654,8 +654,8 @@ - - + + From a7a9d696fc3c4dcaedf44d1a1e9fdfe1120b98ae Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 21 Aug 2022 10:04:47 -0500 Subject: [PATCH 6/9] Minor updates --- chapter01/changelog.xml | 26 +++++++++++++------------- chapter01/whatsnew.xml | 8 ++++---- chapter08/tar.xml | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 07e530bec..d49840dad 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -44,32 +44,32 @@ 2022-08-20 - [bdubbs] - Update to gcc-12.2.0. Fixes - #5098. + [bdubbs] - Update to vim-9.0.0228. Addresses + #4500. [bdubbs] - Update to iana-etc-20220812. Addresses #5006. - [bdubbs] - Update to linux-5.19.2 (security fixes). Fixes + [bdubbs] - Update to gcc-12.2.0. Fixes + #5098. + + + [bdubbs] - Update to linux-5.19.2. Fixes #5097. - - [bdubbs] - Update to meson-0.63.1. Fixes - #5094. - - - [bdubbs] - Update to shadow-4.12.2 (security fix). Fixes - #5095. - [bdubbs] - Update to tzdata-2022c. Fixes #5096. - [bdubbs] - Update to vim-9.0.0228. Addresses - #4500. + [bdubbs] - Update to shadow-4.12.2. Fixes + #5095. + + + [bdubbs] - Update to meson-0.63.1. Fixes + #5094. [bdubbs] - Update to xz-5.2.6. Fixes diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 6f0222a1a..1ee469b77 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -224,9 +224,9 @@ - + @@ -257,9 +257,9 @@ - + Zlib-&zlib-version; diff --git a/chapter08/tar.xml b/chapter08/tar.xml index b4ec0e28b..bfb1cf469 100644 --- a/chapter08/tar.xml +++ b/chapter08/tar.xml @@ -73,7 +73,7 @@ make check One test, capabilities: binary store/restore, is known to fail if it is - run (LFS lacks selinux), but will be skipped if the host kernel does + run because LFS lacks selinux, but will be skipped if the host kernel does not support extended attributes on the filesystem used for building LFS. Install the package: From fd6f71bd35f15453a881f48d5c3490da53727057 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 21 Aug 2022 12:00:34 -0500 Subject: [PATCH 7/9] Update SBU times and disk usage for all packages --- packages.ent | 187 +++++++++++++++++++++++++-------------------------- 1 file changed, 91 insertions(+), 96 deletions(-) diff --git a/packages.ent b/packages.ent index 9c3213c8b..5d8adcf7d 100644 --- a/packages.ent +++ b/packages.ent @@ -35,7 +35,7 @@ - + @@ -45,8 +45,8 @@ - - + + @@ -54,16 +54,16 @@ - + - + - + @@ -71,22 +71,22 @@ - + - - - - + + + + - + - - + + @@ -102,17 +102,17 @@ - + - + - - + + @@ -135,9 +135,9 @@ - + - + @@ -145,15 +145,15 @@ - - + + - + @@ -184,9 +184,9 @@ - - - + + + @@ -196,15 +196,15 @@ - - + + - + @@ -214,7 +214,7 @@ - + @@ -224,20 +224,18 @@ - + - - + + - + - - @@ -252,9 +250,9 @@ - + - + @@ -262,19 +260,18 @@ - - + + - - - + + @@ -289,10 +286,10 @@ - + - - + + @@ -307,7 +304,7 @@ - + @@ -317,15 +314,15 @@ - - + + - + @@ -334,7 +331,7 @@ - + @@ -350,7 +347,7 @@ - + @@ -366,7 +363,7 @@ - + @@ -407,14 +404,14 @@ - + - + @@ -440,7 +437,7 @@ - + @@ -728,8 +725,8 @@ - - + + @@ -737,7 +734,7 @@ - + @@ -745,7 +742,7 @@ - + @@ -753,9 +750,9 @@ - + - + @@ -763,9 +760,7 @@ - - - + @@ -773,6 +768,6 @@ - + From ec3cad45c3f81dd5132bb98ebae8f8ce4753899a Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 22 Aug 2022 11:17:46 +0800 Subject: [PATCH 8/9] mark linux-5.19.2 and shadow-4.12.2 as security fix --- chapter01/changelog.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index d49840dad..0bef020e4 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -56,7 +56,7 @@ #5098. - [bdubbs] - Update to linux-5.19.2. Fixes + [bdubbs] - Update to linux-5.19.2 (security fixes). Fixes #5097. @@ -64,7 +64,7 @@ #5096. - [bdubbs] - Update to shadow-4.12.2. Fixes + [bdubbs] - Update to shadow-4.12.2 (security fix). Fixes #5095. From 20007e51c22ad737e2e1d57bce351b2d31802a0e Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 23 Aug 2022 18:43:10 +0800 Subject: [PATCH 9/9] glibc: update test status Text change only. Add tst-arc4random-thread failure recently reported to upstream, remove namespace related failures as they are UNSUPPORTED now in 2.36. --- chapter08/glibc.xml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index cb00c0719..7a1796a54 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -172,6 +172,12 @@ esac addresses. + + + The stdlib/tst-arc4random-thread + test is known to fail if the host kernel is relatively old. + + Some tests, for example nss/tst-nss-files-hosts-multi, @@ -179,16 +185,6 @@ esac timeout. - - - About 27 tests, for example elf/tst-pldd, - are known to fail if the kernel supports namespaces (see - namespaces(7) for details) but the host distro - has disabled them via sysctl. -