From 6890c71897c695883edc8d40210120e56b6f4139 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 31 May 2026 13:06:20 -0500 Subject: [PATCH 1/4] Package updates. Update to systemd-260.2. Update to kbd-2.10.0. Update to util-linux-2.42.1. Update to less-702. Update to vim-9.2.0567 (Security Update). Update to iana-etc-20260529. --- chapter01/changelog.xml | 32 ++++++++++++++++++++++++++++++- chapter01/whatsnew.xml | 8 ++++---- chapter03/patches.xml | 4 ++-- chapter08/systemd.xml | 4 ++-- packages.ent | 42 ++++++++++++++++++++--------------------- patches.ent | 3 ++- 6 files changed, 62 insertions(+), 31 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index dee9e8e16..96afa4d3d 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,36 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2026-06-01 + + + [bdubbs] - Update to systemd-260.2. Fixes + #5944. + + + [bdubbs] - Update to kbd-2.10.0. Fixes + #5943. + + + [bdubbs] - Update to util-linux-2.42.1. Fixes + #5939. + + + [bdubbs] - Update to less-702. Fixes + #5941. + + + [bdubbs] - Update to vim-9.2.0567 (Security Update). Fixes + #5940. + + + [bdubbs] - Update to iana-etc-20260529. Addresses + #5006. + + + + 2026-05-24 @@ -122,7 +152,7 @@ #5917. - [bdubbs] - Update to iana-etc-20260604. Addresses + [bdubbs] - Update to iana-etc-20260504. Addresses #5006. diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 9ada1dd34..f935f0e56 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -134,15 +134,15 @@ - + - + diff --git a/chapter03/patches.xml b/chapter03/patches.xml index fee016912..a98cb34a6 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -148,7 +148,7 @@ MD5 sum: &sysvinit-consolidated-patch-md5; - + Remove two unneeded groups, render and sgx, from the default udev diff --git a/packages.ent b/packages.ent index e343367d5..d924e22dd 100644 --- a/packages.ent +++ b/packages.ent @@ -310,10 +310,10 @@ - - + + - + @@ -350,10 +350,10 @@ - - + + - + @@ -366,10 +366,10 @@ - - + + - + @@ -686,21 +686,21 @@ - + - + - + - - + + - + @@ -759,19 +759,19 @@ - - + + - + - + - + - + diff --git a/patches.ent b/patches.ent index 4f2a29902..e27f486cf 100644 --- a/patches.ent +++ b/patches.ent @@ -58,7 +58,8 @@ - + From 840726a09a6d15a071b46b4b82b205c620a23451 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 29 May 2026 17:17:31 +0800 Subject: [PATCH 2/4] gcc: get rid of the meaningless (to us) "mv" commands in test_summary output --- chapter08/gcc.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index e135f512d..185037762 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -199,7 +199,7 @@ su tester -c "PATH=$PATH make -k check" To extract a summary of the test suite results, run: -../contrib/test_summary +../contrib/test_summary -t To filter out only the summaries, pipe the output through grep -A7 Summ. From de4fbf0adfff1cd5bdae2c5ec72bf628388e6ce6 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 2 Jun 2026 00:04:10 +0800 Subject: [PATCH 3/4] gcc-pass2: use the build system machinery to enable thread instead of hacking it Also reorder the explanations to match the order of switches in the instruction. --- chapter06/gcc-pass2.xml | 58 +++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml index 89b2bc33e..98dd9c875 100644 --- a/chapter06/gcc-pass2.xml +++ b/chapter06/gcc-pass2.xml @@ -63,12 +63,6 @@ mv -v mpc-&mpc-version; mpc ;; esac - Override the build rules of the libgcc and libstdc++ headers to - allow building these libraries with POSIX threads support: - -sed '/thread_header =/s/@.*@/gthr-posix.h/' \ - -i libgcc/Makefile.in libstdc++-v3/include/Makefile.in - Create a separate build directory again: mkdir -v build @@ -96,24 +90,12 @@ cd build --disable-libssp \ --disable-libvtv \ --enable-languages=c,c++ \ - LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc + LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc \ + target_configargs=gcc_cv_target_thread_file=posix The meaning of the new configure options: - - --with-build-sysroot=$LFS - - Normally, using --host ensures that - a cross-compiler is used for building GCC, and that compiler knows - that it has to look for headers and libraries in $LFS. However, the build system for GCC - uses additional tools which are not aware of this location. This - switch is needed so those tools will find the needed files in - $LFS, and not on the host. - - - --target=$LFS_TGT @@ -130,6 +112,30 @@ cd build + + --with-build-sysroot=$LFS + + Normally, using --host ensures that + a cross-compiler is used for building GCC, and that compiler knows + that it has to look for headers and libraries in $LFS. However, the build system for GCC + uses additional tools which are not aware of this location. This + switch is needed so those tools will find the needed files in + $LFS, and not on the host. + + + + + --disable-libsanitizer + + Disable GCC sanitizer runtime libraries. They are not + needed for the temporary installation. In + it was implied by + --disable-libstdcxx, and now we can + explicitly pass it. + + + LDFLAGS_FOR_TARGET=... @@ -143,13 +149,13 @@ cd build - --disable-libsanitizer + target_configargs=gcc_cv_target_thread_file=posix - Disable GCC sanitizer runtime libraries. They are not - needed for the temporary installation. In - it was implied by - --disable-libstdcxx, and now we can - explicitly pass it. + Build the target libraries libgcc and libstdc++ with POSIX + thread support enabled. The default is following the + configuration of the compiler used for building the target library + (in this case, which was + configured with none thread support). From b28a98b4af22f8f8c5d760698fef39f59b2afb1f Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 2 Jun 2026 19:23:03 +0800 Subject: [PATCH 4/4] gcc: adjust the words of languages with external dependencies per Rainer's suggestion. --- chapter08/gcc.xml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index 185037762..854ddf202 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -77,18 +77,20 @@ cd build We only enable C and C++ here to save the build time as no packages in LFS and BLFS require GCC to compile other languages. Append - cobol for Cobol (note that it will cause GCC fail - to build on a 32-bit LFS system), + algol68 for Algol 68, fortran for Fortran, go for Go, objc for Objective C, obj-c++ for Objective C++, and/or m2 for Modula 2 into the value of --enable-languages option if you want to compile - programs in one or more of those languages with GCC. GCC also supports - Ada and D, but the code to support Ada or D is written in Ada or D - itself, so the support can only be built with an existing Ada or D - compiler installation and we cannot enable the support here. + programs in one or more of those languages with GCC. + + GCC also supports the Ada, COBOL, and D languages. But that would + require some dependencies which are not available in the base LFS system + and would exceed the scope of this book. Read + the upstream + documentation for details. The meaning of the new configure parameters: