From 7a6cafbe952b35a4d2de1f3c33ee90851fe74653 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 1 May 2025 21:34:32 +0800 Subject: [PATCH 1/6] stripping: Switch to zstd to compress debug info Now BLFS has valgrind-3.25.0 which supports zstd-compressed debug section. --- chapter08/stripping.xml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/chapter08/stripping.xml b/chapter08/stripping.xml index 2839cfda7..b1f88f33a 100644 --- a/chapter08/stripping.xml +++ b/chapter08/stripping.xml @@ -34,11 +34,8 @@ After stripping with --strip-debug it is 5.9 MB. Using --strip-unneeded only reduces the size further to only 5.8 MB. - The debugging symbols from selected libraries are compressed with - Zlib and preserved in separate files. That + Zstd and preserved in separate files. That debugging information is needed to run regression tests with valgrind or gdb later, in BLFS. @@ -86,7 +83,7 @@ cd /usr/lib for LIB in $save_usrlib; do - objcopy --only-keep-debug --compress-debug-sections=zlib $LIB $LIB.dbg + objcopy --only-keep-debug --compress-debug-sections=zstd $LIB $LIB.dbg cp $LIB /tmp/$LIB strip --strip-debug /tmp/$LIB objcopy --add-gnu-debuglink=$LIB.dbg /tmp/$LIB From cbdfdd32fdd7ead208c2bb0fb98b514746689fc0 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 2 May 2025 12:41:33 +0800 Subject: [PATCH 2/6] stripping: Decorate with XML labels --- chapter08/stripping.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/chapter08/stripping.xml b/chapter08/stripping.xml index b1f88f33a..45da34cda 100644 --- a/chapter08/stripping.xml +++ b/chapter08/stripping.xml @@ -29,10 +29,12 @@ needed by the linker (for static libraries) or dynamic linker (for dynamically linked binaries and shared libraries). Using --strip-debug does not remove symbol table entries - that may be needed by some applications. The difference between "unneeded" - and "debug" is very small. For example, an unstripped libc.a is 22.4 MB. - After stripping with --strip-debug it is 5.9 MB. Using --strip-unneeded only - reduces the size further to only 5.8 MB. + that may be needed by some applications. The difference between + unneeded and debug is very small. + For example, an unstripped libc.a + is 22.4 MB. After stripping with --strip-debug it + is 5.9 MB. Using --strip-unneeded only reduces the + size further to 5.8 MB. The debugging symbols from selected libraries are compressed with Zstd and preserved in separate files. That From 3dc11a77cfbf92555f971837fb3c54b07352eb3b Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 11 May 2025 23:38:57 -0500 Subject: [PATCH 3/6] Fix currency fo ropenssl. --- 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 a6723e909..d43431d29 100644 --- a/lfs-latest-git.php +++ b/lfs-latest-git.php @@ -279,7 +279,7 @@ if ( $package == "zstd" ) $dirpath = github("facebook/zstd"); return find_max( $lines, "/tag_name/", '/^.*v([\d\.]+).*$/' ); if ( $package == "openssl" ) - return find_max( $lines, "/name.:/", "/^.*OpenSSL ([\d\.]+\d).*$/" ); + return find_max( $lines, "/name:/", "/^.*OpenSSL ([\d\.]+\d).*$/" ); if ( $package == "Python" ) return find_max( $lines, "/Python 3/", "/^.*Python (3[\d\.]*\d) .*$/" ); From ac5a955c849d020c68935673de0b9d0ea05a56bd Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Mon, 12 May 2025 10:50:04 -0500 Subject: [PATCH 4/6] Restore openssl 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 d43431d29..a6723e909 100644 --- a/lfs-latest-git.php +++ b/lfs-latest-git.php @@ -279,7 +279,7 @@ if ( $package == "zstd" ) $dirpath = github("facebook/zstd"); return find_max( $lines, "/tag_name/", '/^.*v([\d\.]+).*$/' ); if ( $package == "openssl" ) - return find_max( $lines, "/name:/", "/^.*OpenSSL ([\d\.]+\d).*$/" ); + return find_max( $lines, "/name.:/", "/^.*OpenSSL ([\d\.]+\d).*$/" ); if ( $package == "Python" ) return find_max( $lines, "/Python 3/", "/^.*Python (3[\d\.]*\d) .*$/" ); From de932d6de530a6ff8fd28446aee769fc34be7e0a Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 15 May 2025 08:20:18 -0500 Subject: [PATCH 5/6] Fix alignment. --- chapter08/systemd.xml | 2 +- chapter08/tcl.xml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml index 989082419..01730e235 100644 --- a/chapter08/systemd.xml +++ b/chapter08/systemd.xml @@ -243,7 +243,7 @@ ninja test tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz \ - --no-same-owner --strip-components=1 \ + --no-same-owner --strip-components=1 \ -C /usr/share/man Create the /etc/machine-id file needed by diff --git a/chapter08/tcl.xml b/chapter08/tcl.xml index 0905af0d4..2cb10d72c 100644 --- a/chapter08/tcl.xml +++ b/chapter08/tcl.xml @@ -82,9 +82,9 @@ sed -e "s|$SRCDIR/unix|/usr/lib|" \ -i tclConfig.sh sed -e "s|$SRCDIR/unix/pkgs/tdbc&tdbc-ver;|/usr/lib/tdbc&tdbc-ver;|" \ - -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;/generic|/usr/include|" \ - -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;/library|/usr/lib/tcl8.6|" \ - -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;|/usr/include|" \ + -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;/generic|/usr/include|" \ + -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;/library|/usr/lib/tcl8.6|" \ + -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;|/usr/include|" \ -i pkgs/tdbc&tdbc-ver;/tdbcConfig.sh sed -e "s|$SRCDIR/unix/pkgs/itcl&itcl-ver;|/usr/lib/itcl&itcl-ver;|" \ From fd694409776e1bf4ac5ac0d61f0adb9034179fcd Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 15 May 2025 09:42:51 -0500 Subject: [PATCH 6/6] Package updates. Update to setuptools-80.7.1. Update to man-pages-6.14. Update to man-db-2.13.1. Update to m4-1.4.20. Update to linux-6.14.6. Update to gettext-0.25. --- chapter01/changelog.xml | 30 ++++++++++++++++++++++++++++++ chapter01/whatsnew.xml | 12 ++++++------ packages.ent | 36 ++++++++++++++++++------------------ 3 files changed, 54 insertions(+), 24 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index f15b55335..14f3cb970 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. --> + + 2025-05-15 + + + [bdubbs] - Update to setuptools-80.7.1. Fixes + #5715. + + + [bdubbs] - Update to man-pages-6.14. Fixes + #5720. + + + [bdubbs] - Update to man-db-2.13.1. Fixes + #5719. + + + [bdubbs] - Update to m4-1.4.20. Fixes + #5722. + + + [bdubbs] - Update to linux-6.14.6. Fixes + #5717. + + + [bdubbs] - Update to gettext-0.25. Fixes + #5718. + + + + 2025-05-01 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 61168b9dd..819b1f243 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -95,9 +95,9 @@ GDBM-&gdbm-version; - + @@ -170,15 +170,15 @@ - + - + Man-pages-&man-pages-version; diff --git a/packages.ent b/packages.ent index adde037fb..6e7985744 100644 --- a/packages.ent +++ b/packages.ent @@ -237,10 +237,10 @@ - - + + - + @@ -423,12 +423,12 @@ - + - + - +