From 68528292e668ca68b64d14e3fe882d19af09f3c5 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Wed, 21 May 2025 16:46:52 -0500 Subject: [PATCH 1/4] Changes for gcc15. --- chapter01/changelog.xml | 26 ++++++++++++++++++++++++++ chapter01/whatsnew.xml | 16 ++++++++-------- chapter03/patches.xml | 16 ++++++++-------- chapter06/bash.xml | 4 ++++ chapter08/bc.xml | 6 +++--- chapter08/expect.xml | 4 ++-- chapter08/gmp.xml | 4 ++++ chapter08/ncurses.xml | 4 ++-- packages.ent | 35 ++++++++++++++++++----------------- patches.ent | 15 +++++++-------- 10 files changed, 82 insertions(+), 48 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 14f3cb970..403b5f4c4 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,32 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2025-06-01 + + + [bdubbs] - Update build instructions to accomodate + gcc-15 for bc, expect, ncurses, and gmp. + + + [bdubbs] - Update to gcc-15.1.0. Fixes + #5707. + + + [bdubbs] - Update to less-678. Fixes + #5724. + + + [bdubbs] - Update to readline-8.3-rc1. Fixes + #5726. + + + [bdubbs] - Update to bash-5.3-rc1. Fixes + #5714. + + + + 2025-05-15 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 819b1f243..f21ea40d4 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -38,9 +38,9 @@ - + @@ -89,9 +89,9 @@ Gawk-&gawk-version; - + GDBM-&gdbm-version; @@ -140,9 +140,9 @@ Kmod-&kmod-version; - + @@ -221,9 +221,9 @@ Python-&python-version; - + diff --git a/chapter03/patches.xml b/chapter03/patches.xml index dd592f663..907f6ed3e 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -26,15 +26,15 @@ --> - + + First, make an adjustment for compatibilty with gcc-15 and later: + +sed -i '/long long t1;/,+1s/()/(...)/' configure + Prepare GMP for compilation: ./configure --prefix=/usr \ diff --git a/chapter08/ncurses.xml b/chapter08/ncurses.xml index a825f63c9..84970f306 100644 --- a/chapter08/ncurses.xml +++ b/chapter08/ncurses.xml @@ -137,8 +137,8 @@ ): make DESTDIR=$PWD/dest install -install -vm755 dest/usr/lib/libncursesw.so.&ncurses-version; /usr/lib -rm -v dest/usr/lib/libncursesw.so.&ncurses-version; +install -vm755 dest/usr/lib/libncursesw.so.&ncurses-base-version; /usr/lib +rm -v dest/usr/lib/libncursesw.so.&ncurses-base-version; sed -e 's/^#if.*XOPEN.*$/#if 1/' \ -i dest/usr/include/curses.h cp -av dest/* / diff --git a/packages.ent b/packages.ent index 6e7985744..159bbc313 100644 --- a/packages.ent +++ b/packages.ent @@ -47,10 +47,10 @@ - - + + - + @@ -210,10 +210,10 @@ - - + + - + @@ -365,10 +365,10 @@ - - + + - + @@ -519,10 +519,11 @@ - - - - + + + + + @@ -618,11 +619,11 @@ - - - + + + - + diff --git a/patches.ent b/patches.ent index c7b2ab19b..d800a74d6 100644 --- a/patches.ent +++ b/patches.ent @@ -2,11 +2,10 @@ - + + + + From 14b85031e4b0c8a55e70666288b3082620157570 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 30 May 2025 11:00:14 -0500 Subject: [PATCH 3/4] Package updates. Update to systemd-257.6. Update to setuptools-80.9.0. Update to meson-1.8.1. Update to automake-1.18. Add Python-3.13.3-security_fixes-1.patch Add coreutils-9.7-upstream_fix-1.patch Add perl-5.40.2-upstream_fix-1.patch --- chapter01/changelog.xml | 16 ++++++++++++++++ chapter01/whatsnew.xml | 20 ++++++++++++++++---- chapter03/patches.xml | 29 ++++++++++++++++++----------- chapter08/coreutils.xml | 4 ++++ chapter08/perl.xml | 4 ++++ chapter08/python.xml | 21 +++++++++++++++++---- packages.ent | 24 ++++++++++++------------ patches.ent | 22 +++++++++++++++++----- 8 files changed, 104 insertions(+), 36 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 403b5f4c4..4106b4b6b 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,22 @@ 2025-06-01 + + [bdubbs] - Update to systemd-257.6. Fixes + #5774. + + + [bdubbs] - Update to setuptools-80.9.0. Fixes + #5728. + + + [bdubbs] - Update to meson-1.8.1. Fixes + #5731. + + + [bdubbs] - Update to automake-1.18. Fixes + #5734. + [bdubbs] - Update build instructions to accomodate gcc-15 for bc, expect, ncurses, and gmp. diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index f21ea40d4..e81c594f4 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -35,9 +35,9 @@ - + Bash-&bash-version; @@ -236,9 +236,9 @@ Sysklogd-&sysklogd-version; - + @@ -296,6 +296,18 @@ Packaging-&packaging-version; + + bash-5.3-rc1-cross_compile_fix-1.patch + + + coreutils-9.7-upstream_fix-1.patch + + + perl-5.40.2-upstream_fix-1.patch + + + Python-3.13.3-security_fixes-1.patch + diff --git a/chapter03/patches.xml b/chapter03/patches.xml index 907f6ed3e..435fa6acd 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -52,6 +52,14 @@ + + Coreutils Upstream Fixe Patch - &coreutils-upstream-patch-size;: + + Download: + MD5 sum: &coreutils-upstream-patch-md5; + + + Coreutils Internationalization Fixes Patch - &coreutils-i18n-patch-size;: @@ -61,7 +69,7 @@ - Expect GCC14 Patch - &expect-gcc15-patch-size;: + Expect GCC15 Patch - &expect-gcc15-patch-size;: Download: MD5 sum: &expect-gcc15-patch-md5; @@ -118,24 +126,23 @@ --> - - + SysVinit Consolidated Patch - &sysvinit-consolidated-patch-size;: diff --git a/chapter08/coreutils.xml b/chapter08/coreutils.xml index 36d428981..abf5f7819 100644 --- a/chapter08/coreutils.xml +++ b/chapter08/coreutils.xml @@ -41,6 +41,10 @@ Installation of Coreutils + First apply a security patch identified upstream: + +patch -Np1 -i ../&coreutils-upstream-patch; + POSIX requires that programs from Coreutils recognize character boundaries correctly even in multibyte locales. The following patch fixes this non-compliance and other internationalization-related bugs. diff --git a/chapter08/perl.xml b/chapter08/perl.xml index b678f7f9d..0416aa85e 100644 --- a/chapter08/perl.xml +++ b/chapter08/perl.xml @@ -41,6 +41,10 @@ Installation of Perl + First, apply a security patch identified upstream: + +patch -Np1 -i ../&perl-upstream-fix-patch; + This version of Perl builds the Compress::Raw::Zlib and Compress::Raw::BZip2 modules. By default Perl will use an internal copy of the sources for the build. diff --git a/chapter08/python.xml b/chapter08/python.xml index ebda61181..0cbce0b0c 100644 --- a/chapter08/python.xml +++ b/chapter08/python.xml @@ -43,12 +43,17 @@ Installation of Python 3 + First, apply a security patch to the current package: + + patch -Np1 -i ../&python-security-fixes-patch; + Prepare Python for compilation: -./configure --prefix=/usr \ - --enable-shared \ - --with-system-expat \ - --enable-optimizations +./configure --prefix=/usr \ + --enable-shared \ + --with-system-expat \ + --enable-optimizations \ + --without-static-libpython The meaning of the configure options: @@ -72,6 +77,14 @@ + + --without-static-libpython + + This switch prevents building a large, but unneeded, static + library. + + + Compile the package: diff --git a/packages.ent b/packages.ent index 159bbc313..405b0c373 100644 --- a/packages.ent +++ b/packages.ent @@ -38,11 +38,11 @@ - - + + - + @@ -495,10 +495,10 @@ - - + + - + @@ -638,10 +638,10 @@ - - + + - + @@ -662,15 +662,15 @@ - + - + - + diff --git a/patches.ent b/patches.ent index d800a74d6..dc666134a 100644 --- a/patches.ent +++ b/patches.ent @@ -11,6 +11,7 @@ --> + @@ -19,6 +20,10 @@ + + + + @@ -26,22 +31,29 @@ - + + + + + + + + + + + + + Kmod-&kmod-version; diff --git a/chapter08/kbd.xml b/chapter08/kbd.xml index 3239d6a21..06537f271 100644 --- a/chapter08/kbd.xml +++ b/chapter08/kbd.xml @@ -80,9 +80,14 @@ sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in make - To test the results, issue: - + The tests for this package will all fail in the chroot environment + because they require valgrind. In addition + on a full system with valgrind, several + tests still fail in a graphical environment. The tests pass in + a non-graphical environment. + Install the package: diff --git a/packages.ent b/packages.ent index 405b0c373..dffe24262 100644 --- a/packages.ent +++ b/packages.ent @@ -309,10 +309,10 @@ - + - + @@ -349,10 +349,10 @@ - - + + - + @@ -672,11 +672,11 @@ - - + + - + @@ -745,10 +745,10 @@ - + - + - +