From 67056c18a53a5b785a9b12b3ccde696d9ea7782d Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 29 Aug 2024 10:02:14 -0500 Subject: [PATCH 001/151] Typo --- chapter04/aboutsbus.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter04/aboutsbus.xml b/chapter04/aboutsbus.xml index a442c20ab..2fd61a7cf 100644 --- a/chapter04/aboutsbus.xml +++ b/chapter04/aboutsbus.xml @@ -36,7 +36,7 @@ to give an estimate of how long it might take to install a package, but the numbers can vary by as much as dozens of minutes in some cases. - On some newer systems, the motherboard is capable of contolling + On some newer systems, the motherboard is capable of controlling the system clock speed. This can be controlled with a command such as powerprofilesctl. This is not available in LFS, but may be available on the host distro. After LFS is complete, it can be From 4b8c6b4f618ee1138c52633437063ae0d2d97a1c Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 31 Aug 2024 11:13:01 -0500 Subject: [PATCH 002/151] Set up after lfs-12.2 --- chapter01/changelog.xml | 608 +--------------------------------------- chapter01/whatsnew.xml | 194 ++++++------- 2 files changed, 100 insertions(+), 702 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 69860723f..de0c8ae9c 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,615 +40,11 @@ appropriate for the entry or if needed the entire day's listitem. --> - - 2024-08-23 - - - [xry111] - Update to lfs-bootscripts-20240825. Only trivial - non-functional changes. - - - - - - 2024-08-23 - - - [xry111] - Update to lfs-bootscripts-20240823, to fix an - issue causing VT 2-6 not affected by the FONT= setting in - /etc/sysconfig/console. - - - - - 2024-08-17 + 2024-09-01 - [bdubbs] - Update to setuptools-72.2.0. Fixes - #5542. - - - [bdubbs] - Update to kmod-33. Fixes - #5540. - - - [bdubbs] - Update to binutils-2.43.1. Fixes - #5543. - - - [bdubbs] - Update to linux-6.10.5. Fixes - #5541. - - - - - - 2024-08-15 - - - [bdubbs] - Update to iana-etc-20240806. Addresses - #5006. - - - [bdubbs] - Update to pkgconf-2.3.0. Fixes - #5537. - - - [bdubbs] - Update to python3-3.12.5. Fixes - #5538. - - - [bdubbs] - Update to linux-6.10.4. Fixes - #5539. - - - - - - 2024-08-05 - - - [bdubbs] - Update to bash-5.2.32. Fixes - #5532. - - - [bdubbs] - Update to iana-etc-20240801. Addresses - #5006. - - - [bdubbs] - Update to vim-9.1.0660. Addresses - #4500. - - - [bdubbs] - Update to binutils-2.43. Fixes - #5535. - - - [bdubbs] - Update to linux-6.10.3. Fixes - #5534. - - - [bdubbs] - Update to readline-8.2.13. Fixes - #5533. - - - [bdubbs] - Update to wheel-0.44.0. Fixes - #5536. - - - - - - 2024-08-01 - - - [bdubbs] - Update to gcc-14.2.0. Fixes - #5530. - - - [bdubbs] - Update to iana-etc-20240723. Addresses - #5006. - - - [bdubbs] - Update to glibc-2.40. Fixes - #5529. - - - [bdubbs] - Update to iproute2-6.10.0. Fixes - #5523. - - - [bdubbs] - Update to linux-6.10.2. Fixes - #5521. - - - [bdubbs] - Update to lz4-1.10.0. Fixes - #5526. - - - [bdubbs] - Update to meson-1.5.1. Fixes - #5527. - - - [bdubbs] - Update to setuptools-72.1.0. Fixes - #5531. - - - [bdubbs] - Update to sysklogd-2.6.1. Fixes - #5522. - - - [bdubbs] - Update to systemd-256.4. Fixes - #5518. - - - [bdubbs] - Update to sysvinit-3.10. Fixes - #5528. - - - - - - 2024-07-15 - - - [bdubbs] - Update to iana-etc-20240701. Addresses - #5006. - - - [bdubbs] - Update to vim-9.1.0580. Addresses - #4500. - - - [bdubbs] - Update to automake-1.17. Fixes - #5520. - - - [bdubbs] - Update to gdbm-1.24. Fixes - #5515. - - - [bdubbs] - Update to linux-6.9.9. Fixes - #5517. - - - [bdubbs] - Update to less-661. Fixes - #5513. - - - [bdubbs] - Update to meson-1.5.0. Fixes - #5519. - - - [bdubbs] - Update to setuptools-70.3.0. Fixes - #5514. - - - [bdubbs] - Update to util-linux-2.40.2. Fixes - #5516. - - - - - - 2024-07-01 - - - [bdubbs] - Update lfs-bootscripts to only output - escape sequences to a terminal. - - - - - - 2024-07-01 - - - [bdubbs] - Update to iana-etc-20240612. Addresses - #5006. - - - [bdubbs] - Update to bc-6.7.6. Fixes - #5506. - - - [bdubbs] - Update to man-pages-6.9.1. Fixes - #5507. - - - [bdubbs] - Update to linux-6.9.7. Fixes - #5508. - - - [bdubbs] - Update to sysklogd-2.5.2. Fixes - #5509. - - - [bdubbs] - Update to shadow-4.16.0. Fixes - #5510. - - - [bdubbs] - Update to systemd-256.1. Fixes - #5511. - - - [bdubbs] - Update to setuptools-70.1.1. Fixes - #5512. - - - - - - 2024-06-15 - - - [bdubbs] - Update to vim-9.1.0478. Addresses - #4500. - - - [bdubbs] - Update to iana-etc-20240607. Addresses - #5006. - - - [bdubbs] - Update to systemd-256. Fixes - #5504. - - - [bdubbs] - Update to python3-3.12.4. Fixes - #5502. - - - [bdubbs] - Update to perl-5.40.0. Fixes - #5503. - - - [bdubbs] - Update to openssl-3.3.1 (Security fix). Fixes - #5500. - - - [bdubbs] - Update to linux-6.9.4. Fixes - #5505. - - - [bdubbs] - Update to findutils-4.10.0. Fixes - #5499. - - - - - - 2024-05-31 - - - [bdubbs] - Update to meson-1.4.1. Fixes - #5498. - - - [bdubbs] - Update to xz-5.6.2. Fixes - #5471. - - - [bdubbs] - Add linux-6.9.x compatibility instructions to - systemd - udev. - Fixes #5496. - - - [bdubbs] - Update to setuptools-70.0.0 (python module). Fixes - #5491. - - - [bdubbs] - Update to ninja-1.12.1. Fixes - #5489. - - - [bdubbs] - Update to man-pages-6.8. Fixes - #5494. - - - [bdubbs] - Update to linux-6.9.3. Fixes - #5491. - - - [bdubbs] - Update to libcap-2.70. Fixes - #5493. - - - [bdubbs] - Update to iproute2-6.9.0. Fixes - #5492. - - - [bdubbs] - Update to e2fsprogs-1.47.1. Fixes - #5495. - - - - - - 2024-05-13 - - - [xry111] - Synchronize coreutils i18n patch from Fedora - to fix a build failure on 32-bit x86 and an alarming compiler - warning on both 32-bit x86 and x86_64 with GCC 14.1 or - later. - - - - - - 2024-05-11 - - - [bdubbs] - Update to vim-9.1.0405. Addresses - #4500. - - - [bdubbs] - Update to util-linux-2.40.1. Fixes - #5482. - - - [bdubbs] - Update to linux-6.8.9. Fixes - #5484. - - - [bdubbs] - Update to jinja2-3.1.4 (Python module). Fixes - #5485. - - - [bdubbs] - Update to iana-etc-20240502. Addresses - #5006. - - - [bdubbs] - Update to gcc-14.1.0. Fixes - #5486. - - - - - - 2024-05-01 - - - [bdubbs] - Add security fix to glibc. Fixes - #5481. - - - [bdubbs] - Update to linux-6.8.8. Fixes - #5480. - - - [bdubbs] - Update to ncurses-6.5. Fixes - #5483. - - - - - - 2024-04-16 - - - [bdubbs] - Make minor change to ifup script output text. - - - - - - 2024-04-15 - - - [bdubbs] - Update to setuptools-69.5.1. Fixes - #5478. - - - [bdubbs] - Update to python3-3.12.3. Fixes - #5476. - - - [bdubbs] - Update to openssl-3.3.0. Fixes - #5475. - - - [bdubbs] - Update to ninja-1.12.0. Fixes - #5477. - - - [bdubbs] - Update to man-db-2.12.1. Fixes - #5474. - - - [bdubbs] - Update to linux-6.8.6. Fixes - #5472. - - - [bdubbs] - Update to iana-etc-20240412. Addresses - #5006. - - - [bdubbs] - Update to vim-9.1.0330. Addresses - #4500. - - - - - - 2024-03-31 - - - [bdubbs] - Update to iana-etc-20240318. Addresses - #5006. - - - [bdubbs] - Update to zstd-1.5.6. Fixes - #5468. - - - [bdubbs] - Update to util-linux-2.40. Fixes - #5430. - - - [bdubbs] - Update to shadow-4.15.1. Fixes - #5465. - - - [bdubbs] - Update to pkgconf-2.2.0. Fixes - #5469. - - - [bdubbs] - Update to linux-6.8.2. Fixes - #5467. - - - [bdubbs] - Update to coreutils-9.5. Fixes - #5470. - - - - - - 2024-03-29 - - - [bdubbs] - Revert to xz-5.4.6 due to upstream - compromise. - - - - - - 2024-03-25 - - - [timtas] - Update to sysvinit-3.09. Fixes - #5466. - - - - - - 2024-03-19 - - - [renodr] - Update to iproute2-6.8.0. Fixes - #5458. - - - [renodr] - Update to man-pages-6.7. Fixes - #5464. - - - [renodr] - Update to Linux-6.8.1. Fixes - #5453. - - - [renodr] - Added LZ4 to the book. Fixes - #5463. - - - - - - 2024-03-15 - - - [bdubbs] - Update to wheel-0.43.0. Fixes - #5459. - - - [bdubbs] - Update to setuptools-69.2.0 (Python module). Fixes - #5462. - - - [bdubbs] - Update to meson-1.4.0. Fixes - #5460. - - - [bdubbs] - Update to expat-2.6.2 (Security fix). Fixes - #5461. - - - [bdubbs] - Update to iana-etc-20240305. Addresses - #5006. - - - [bdubbs] - Update to vim-9.1.0161. Addresses - #4500. - - - [bdubbs] - Update to xz-5.6.1. Fixes - #5457. - - - [bdubbs] - Update to shadow-4.15.0. Fixes - #5456. - - - [bdubbs] - Update to psmisc-23.7. Fixes - #5454. - - - [bdubbs] - Update to kmod-32. Fixes - #5455. - - - [bdubbs] - Update to elfutils-0.191. Fixes - #5451. - - - - - - 2024-03-02 - - - [bdubbs] - Update to iana-etc-20240222. Addresses - #5006. - - - [bdubbs] - Update to vim-9.1.0145. Addresses - #4500. - - - [bdubbs] - Update to xz-5.6.0. Fixes - #5447. - - - [bdubbs] - Update to tcl-8.6.14. Fixes - #5448. - - - [bdubbs] - Update to shadow-4.14.6. Fixes - #5450. - - - [bdubbs] - Update to setuptools-69.1.1. Fixes - #5446. - - - [bdubbs] - Update to linux-6.7.7. Fixes - #5444. - - - [bdubbs] - Update to libffi-3.4.6. Fixes - #5443. - - - [bdubbs] - Update to gettext-0.22.5. Fixes - #5445. - - - [bdubbs] - Update to expat-2.6.1. Fixes - #5449. - - - - - - 2024-03-01 - - - [bdubbs] - LFS-12.1 released. + [bdubbs] - LFS-12.2 released. diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index c807fa15d..afbbb6adc 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -35,18 +35,18 @@ - + + + + @@ -56,9 +56,9 @@ - + @@ -68,21 +68,21 @@ - + + - + @@ -92,18 +92,18 @@ - + + + + @@ -122,162 +122,162 @@ - + - + + - + + - + + + - + + - + + - + - + + + - + + - + + + - + + + + + - + - + + + + - + - + + Removed: - + + + From f2c8c6e0256a94a33c9b3292acecf438f636a681 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 3 Sep 2024 11:05:44 +0800 Subject: [PATCH 003/151] dependencies: Remove inconsistent punctuation --- appendices/dependencies.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml index fdd1f0f05..d9c44641c 100644 --- a/appendices/dependencies.xml +++ b/appendices/dependencies.xml @@ -1276,7 +1276,7 @@ &runtime; - Bash, GCC, Gettext, Glibc, Xz, and Sed. + Bash, GCC, Gettext, Glibc, Xz, and Sed From 39dca771d729e6acf80ac008bc754c9b6d835e6f Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 4 Sep 2024 20:20:30 +0800 Subject: [PATCH 004/151] openssl: Update the home page It seems openssl.org is now the home page of OpenSSL Software Foundation Inc, and the home page of the OpenSSL project is separated. --- packages.ent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages.ent b/packages.ent index e8108cfbd..53a582bd4 100644 --- a/packages.ent +++ b/packages.ent @@ -549,7 +549,7 @@ - + From e4b4449d1127522af19df602e0a2ecdc6e3c8c2b Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 18 Aug 2024 20:13:59 +0800 Subject: [PATCH 005/151] ncurses: Simplify evading from mawk Since it's overridable with the command line, just override it instead of using a sed. --- chapter06/ncurses.xml | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml index 29d406b57..22ccfd476 100644 --- a/chapter06/ncurses.xml +++ b/chapter06/ncurses.xml @@ -43,16 +43,12 @@ Installation of Ncurses - First, ensure that gawk is found first during configuration: - -sed -i s/mawk// configure - - Then, run the following commands to build the tic + First, run the following commands to build the tic program on the build host: mkdir build pushd build - ../configure + ../configure AWK=gawk make -C include make -C progs tic popd @@ -69,7 +65,8 @@ popd --with-cxx-shared \ --without-debug \ --without-ada \ - --disable-stripping + --disable-stripping \ + AWK=gawk The meaning of the new configure options: @@ -131,21 +128,17 @@ popd Using host tools on cross-compiled programs can cause failure. - versions of mawk can + cause this package fail to build. ---> Compile the package: From c5fbd9da124646aa5a11f45300d7fe2d1a841663 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Wed, 4 Sep 2024 09:59:12 -0500 Subject: [PATCH 006/151] Minor grammar fix. --- chapter06/ncurses.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml index 22ccfd476..2d2baf7dc 100644 --- a/chapter06/ncurses.xml +++ b/chapter06/ncurses.xml @@ -135,7 +135,7 @@ popd This switch prevents the building system from using the mawk program from the host. Some versions of mawk can - cause this package fail to build. From 75c9760329ed4d8bcb2350b799ba290cf87e16bc Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 7 Sep 2024 18:00:09 -0500 Subject: [PATCH 007/151] Package updates. Update to tzdata-2024b. Fixes Update to systemd-256.5. Fixes Update to setuptools-74.1.2. Fixes Update to python3-3.12.6. Fixes Update to openssl-3.3.2. Fixes Update to man-db-2.13.0. Fixes Update to linux-6.10.8. Fixes Update to libpipeline-1.5.8. Fixes Update to expat-2.6.3. Fixes Update to bc-7.0.1. Fixes + --- chapter01/changelog.xml | 48 ++++++++++++++++++++++++++ chapter01/whatsnew.xml | 48 +++++++++++++------------- packages.ent | 74 ++++++++++++++++++++--------------------- 3 files changed, 109 insertions(+), 61 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index de0c8ae9c..254ad0665 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,54 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2024-09-07 + + + [bdubbs] - Update to tzdata-2024b. Fixes + #5554. + + + [bdubbs] - Update to systemd-256.5. Fixes + #5551. + + + [bdubbs] - Update to setuptools-74.1.2. Fixes + #5546. + + + [bdubbs] - Update to python3-3.12.6. Fixes + #5555. + + + [bdubbs] - Update to openssl-3.3.2. Fixes + #5552. + + + [bdubbs] - Update to man-db-2.13.0. Fixes + #5550. + + + [bdubbs] - Update to linux-6.10.8. Fixes + #5545. + + + [bdubbs] - Update to libpipeline-1.5.8. Fixes + #5548. + + + [bdubbs] - Update to expat-2.6.3. Fixes + #5553. + + + [bdubbs] - Update to bc-7.0.1. Fixes + #5547. + + + + + + 2024-09-01 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index afbbb6adc..988b35746 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -41,9 +41,9 @@ - + @@ -71,9 +71,9 @@ - + @@ -122,9 +122,9 @@ - + @@ -158,15 +158,15 @@ - + - + @@ -176,9 +176,9 @@ - + @@ -200,9 +200,9 @@ - + @@ -218,27 +218,27 @@ - + - + - + @@ -251,12 +251,12 @@ - - + diff --git a/packages.ent b/packages.ent index 53a582bd4..3613e5b2a 100644 --- a/packages.ent +++ b/packages.ent @@ -57,10 +57,10 @@ - - + + - + @@ -156,10 +156,10 @@ - - + + - + @@ -317,10 +317,10 @@ - + - + @@ -405,10 +405,10 @@ - - + + - + @@ -431,12 +431,12 @@ - + - + - + - + - + - + - - + + @@ -637,10 +637,10 @@ - - + + - + @@ -661,21 +661,21 @@ - + - + - + - - + + - + @@ -719,10 +719,10 @@ - - + + - + From 92bb02a32943c71bbfb637848e8b73a07b6b6f90 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 14 Sep 2024 09:33:38 -0500 Subject: [PATCH 008/151] Update openssl URL. --- packages.ent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages.ent b/packages.ent index 3613e5b2a..864666e57 100644 --- a/packages.ent +++ b/packages.ent @@ -547,7 +547,7 @@ - + From c080648959fdc3921cbcf61ddc82d09c65962006 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 17 Sep 2024 03:22:11 +0800 Subject: [PATCH 009/151] grub: Explain moving bash completion file --- chapter08/grub.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chapter08/grub.xml b/chapter08/grub.xml index a2dbbaf41..0710c4a37 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -105,7 +105,8 @@ the tests depend on packages that are not available in the limited LFS environment. To run the tests anyway, run make check. - Install the package: + Install the package, and move the Bash completion support file to + the location recommended by the Bash completion maintainers: make install mv -v /etc/bash_completion.d/grub /usr/share/bash-completion/completions From 984e1f10689e4ec5486a586669b45b8ed72a79be Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 21 Sep 2024 23:13:41 -0500 Subject: [PATCH 010/151] Package updates. Update to vim-9.1.0738. Update to texinfo-7,1,1. Update to tcl8.6.15. Update to sysklogd-2.6.2. Update to setuptools-75.1.0. Update to meson-1.5.2. Update to iana-etc-20240912. Update to gawk-5.3.1. Update to bc-7.0.2. --- chapter01/changelog.xml | 44 +++++++++++++++++++++++++++++++-- chapter01/whatsnew.xml | 24 +++++++++--------- chapter08/tcl.xml | 4 +-- packages.ent | 54 ++++++++++++++++++++--------------------- 4 files changed, 83 insertions(+), 43 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 254ad0665..34073e0a8 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,48 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2024-09-20 + + + [bdubbs] - Update to vim-9.1.0738. Addresses + #4500. + + + [bdubbs] - Update to texinfo-7,1,1. Fixes + #5558. + + + [bdubbs] - Update to tcl8.6.15. Fixes + #5562. + + + [bdubbs] - Update to sysklogd-2.6.2. Fixes + #5557. + + + [bdubbs] - Update to setuptools-75.1.0. Fixes + #5560. + + + [bdubbs] - Update to meson-1.5.2. Fixes + #5566. + + + [bdubbs] - Update to iana-etc-20240912. Addresses + #5006. + + + [bdubbs] - Update to gawk-5.3.1. Fixes + #5564. + + + [bdubbs] - Update to bc-7.0.2. Fixes + #5563. + + + + 2024-09-07 @@ -86,8 +128,6 @@ - - 2024-09-01 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 988b35746..dd1bf7bad 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -89,9 +89,9 @@ - + @@ -185,9 +185,9 @@ - + @@ -233,9 +233,9 @@ - + Systemd-&systemd-version; @@ -245,12 +245,12 @@ - - + Tzdata-&tzdata-version; @@ -260,9 +260,9 @@ - + diff --git a/chapter08/tcl.xml b/chapter08/tcl.xml index bfb23c3a8..28eac584b 100644 --- a/chapter08/tcl.xml +++ b/chapter08/tcl.xml @@ -3,8 +3,8 @@ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ %general-entities; - - + + ]> diff --git a/packages.ent b/packages.ent index 864666e57..afe8f0fc4 100644 --- a/packages.ent +++ b/packages.ent @@ -57,10 +57,10 @@ - + - + @@ -208,10 +208,10 @@ - - + + - + @@ -317,10 +317,10 @@ - + - + @@ -503,10 +503,10 @@ - - + + - + @@ -637,10 +637,10 @@ - - + + - + @@ -653,10 +653,10 @@ - - + + - + @@ -697,22 +697,22 @@ - + - + - + - - + + - - + + - + @@ -745,10 +745,10 @@ - + - + - + From 2fe2d58620f168821c590d7eb64382e2ab038913 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 22 Sep 2024 20:56:47 +0800 Subject: [PATCH 011/151] changelog: Fix a typo --- chapter01/changelog.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 34073e0a8..0dc02ab0f 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -48,7 +48,7 @@ #4500. - [bdubbs] - Update to texinfo-7,1,1. Fixes + [bdubbs] - Update to texinfo-7.1.1. Fixes #5558. From 2a2b22823cb6299a50d3f9a070943acb25f6eb10 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 26 Sep 2024 01:01:15 +0800 Subject: [PATCH 012/151] network: Fix the /etc/hosts line for local machine Since r10520-gcba2d4e6 the IP address of the local machine is assumed 192.168.1.2 (instead of 192.168.1.1) but the hosts line isn't updated. --- chapter09/network.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chapter09/network.xml b/chapter09/network.xml index a443ada2c..4c6caafc5 100644 --- a/chapter09/network.xml +++ b/chapter09/network.xml @@ -198,7 +198,7 @@ EOF x can be any number in the range 16-31. y can be any number in the range 0-255. - A valid private IP address could be 192.168.1.1. + A valid private IP address could be 192.168.1.2. If the computer is to be visible to the Internet, a valid FQDN can be the domain name itself, or a string resulted by concatenating a @@ -218,7 +218,7 @@ EOF 127.0.0.1 localhost.localdomain localhost 127.0.1.1 <FQDN> <HOSTNAME> -<192.168.1.1> <FQDN> <HOSTNAME> [alias1] [alias2 ...] +<192.168.1.2> <FQDN> <HOSTNAME> [alias1] [alias2 ...] ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters @@ -226,7 +226,7 @@ ff02::2 ip6-allrouters # End /etc/hosts EOF - The <192.168.1.1>, + The <192.168.1.2>, <FQDN>, and <HOSTNAME> values need to be changed for specific uses or requirements (if assigned an IP address by a From d77b09e5d0fc9fba18cf287ebe167c6d90ad8023 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 26 Sep 2024 02:58:38 +0800 Subject: [PATCH 013/151] standards: Fix it up to date The info has been severly outdated. And some info is even incorrect from day one, for example even Glibc and GCC are not listed for LSB core (they provide libc.so.6, libstdc++.so.6, etc.). --- prologue/standards.xml | 78 +++++++++++++++++++++++++++++++----------- 1 file changed, 58 insertions(+), 20 deletions(-) diff --git a/prologue/standards.xml b/prologue/standards.xml index 187264812..3cf6fbff2 100644 --- a/prologue/standards.xml +++ b/prologue/standards.xml @@ -32,7 +32,7 @@ Standard Base (LSB) Version 5.0 (2015) The LSB has four separate specifications: Core, Desktop, - Runtime Languages, and Imaging. Some parts of Core and Desktop + Languages, and Imaging. Some parts of Core and Desktop specifications are architecture specific. There are also two trial specifications: Gtk3 and Graphics. LFS attempts to conform to the LSB specifications for the IA32 (32-bit x86) or AMD64 (x86_64) @@ -50,7 +50,7 @@ While it is possible to create a complete system that will pass the LSB certification tests from scratch, this can't be done without many additional packages - that are beyond the scope of the LFS book. Installation instructions for these + that are beyond the scope of the LFS book. Installation instructions for some of these additional packages can be found in BLFS. @@ -62,9 +62,12 @@ LSB Core: - Bash, Bc, Binutils, Coreutils, Diffutils, File, Findutils, Gawk, - Grep, Gzip, M4, Man-DB, Ncurses, Procps, Psmisc, Sed, - Shadow, Tar, Util-linux, Zlib + + Bash, Bc, Binutils, Coreutils, Diffutils, File, Findutils, Gawk, + GCC, Gettext, Glibc, Grep, Gzip, M4, Man-DB, Procps, Psmisc, + Sed, Shadow, SysVinitSystemd, Tar, Util-linux, Zlib + @@ -76,9 +79,9 @@ - LSB Runtime Languages: + LSB Languages: - Perl, Python + Perl @@ -107,8 +110,9 @@ LSB Core: - At, Batch (a part of At), Cpio, Ed, Fcrontab, LSB-Tools, NSPR, - NSS, PAM, Pax, Sendmail (or Postfix or Exim), time + At, Batch (a part of At), BLFS Bash Startup Files, Cpio, Ed, + Fcrontab, LSB-Tools, NSPR, NSS, Linux-PAM, Pax, Sendmail + (or Postfix or Exim), Time @@ -117,15 +121,15 @@ LSB Desktop: Alsa, ATK, Cairo, Desktop-file-utils, Freetype, Fontconfig, - Gdk-pixbuf, Glib2, GTK+2, Icon-naming-utils, Libjpeg-turbo, Libpng, Libtiff, - Libxml2, MesaLib, Pango, Xdg-utils, Xorg + Gdk-pixbuf, Glib2, GLU, Icon-naming-utils, Libjpeg-turbo, + Libxml2, Mesa, Pango, Xdg-utils, Xorg - LSB Runtime Languages: + LSB Languages: - Libxml2, Libxslt + Libxml2, Libxslt @@ -146,29 +150,59 @@ - Packages not supplied by LFS or BLFS - needed to satisfy the LSB Requirements + Components not supplied or optionally + supplied by LFS or BLFS needed to satisfy the LSB + Requirements LSB Core: - None + + install_initd, + libcrypt.so.1 + (can be provided with optional instructions for the LFS + Libxcrypt package), + libncurses.so.5 + (can be provided with optional instructions for the LFS + Ncurses package), + libncursesw.so.5 + (but libncursesw.so.6 + is provided by the LFS Ncurses package) + LSB Desktop: - Qt4 (but Qt5 is provided) + + libgdk-x11-2.0 + (but libgdk-3.so + is provided by the BLFS GTK+-3 package), + libgtk-x11-2.0 + (but libgtk-3.so + and libgtk-4.so + are provided by the BLFS GTK+-3 and GTK-4 packages), + libpng12.so + (but libpng16.so + is provided by the BLFS Libpng package), + libQt*.so.4 + (but libQt6*.so.6 + are provided by the BLFS Qt6 package), + libtiff.so.4 + (but libtiff.so.6 + is provided by the BLFS Libtiff package) + - LSB Runtime Languages: + LSB Languages: - None + /usr/bin/python (LSB requires Python2 but + LFS and BLFS only provide Python3) @@ -182,7 +216,11 @@ LSB Gtk3 and LSB Graphics (Trial Use): - None + + libpng15.so + (but libpng16.so + is provided by the BLFS Libpng package) + From 8a9d7791787376e0f173dee527d5abe4bf76a5eb Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 1 Oct 2024 22:57:52 -0500 Subject: [PATCH 014/151] Package updates. Update to Python3-3.12.7. Update to tcl9.0.0. Update to linux-6.11.1. Update to libtool-2.5.3. Update to iproute2-6.11.0. Update to bash-5.2.37. Update to bc-7.0.3. --- chapter01/changelog.xml | 34 +++++++++++++++++++++++++++ chapter01/whatsnew.xml | 24 +++++++++---------- chapter08/expect.xml | 2 +- chapter08/python.xml | 2 +- chapter08/tcl.xml | 6 +++-- packages.ent | 52 ++++++++++++++++++++--------------------- patches.ent | 6 ++--- 7 files changed, 81 insertions(+), 45 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 0dc02ab0f..bac7482bd 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,40 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2024-10-01 + + + [bdubbs] - Update to Python3-3.12.7. Fixes + #5571. + + + [bdubbs] - Update to tcl9.0.0. Fixes + #5570. + + + [bdubbs] - Update to linux-6.11.1. Fixes + #5556. + + + [bdubbs] - Update to libtool-2.5.3. Fixes + #5569. + + + [bdubbs] - Update to iproute2-6.11.0. Fixes + #5561. + + + [bdubbs] - Update to bash-5.2.37. Fixes + #5567. + + + [bdubbs] - Update to bc-7.0.3. Fixes + #5568. + + + + 2024-09-20 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index dd1bf7bad..97b62cae0 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -38,9 +38,9 @@ - + Bc-&bc-version; @@ -131,9 +131,9 @@ - + @@ -161,9 +161,9 @@ Libpipeline-&libpipeline-version; - + Linux-&linux-version; @@ -292,17 +292,17 @@ Added: - + + expect-5.45.4-gcc14-2.patch + Removed: - + + expect-5.45.4-gcc14-1.patch + diff --git a/chapter08/expect.xml b/chapter08/expect.xml index d7c6341f4..b1ee27f29 100644 --- a/chapter08/expect.xml +++ b/chapter08/expect.xml @@ -69,7 +69,7 @@ Now, make some changes to allow the package with gcc-14.1 or later: -patch -Np1 -i ../expect-&expect-version;-gcc14-1.patch +patch -Np1 -i ../expect-&expect-version;-gcc14-2.patch Prepare Expect for compilation: diff --git a/chapter08/python.xml b/chapter08/python.xml index 0f22ab2a9..ed3df8453 100644 --- a/chapter08/python.xml +++ b/chapter08/python.xml @@ -163,7 +163,7 @@ EOF tar --no-same-owner \ -xvf ../python-&python-version;-docs-html.tar.bz2 -cp -R --no-preserve=mode python-&python-version;-docs-html/* \ +cp -R --no-preserve=mode python-&python-minor;-docs-html/* \ /usr/share/doc/python-&python-version;/html diff --git a/chapter08/tcl.xml b/chapter08/tcl.xml index 28eac584b..93621fc37 100644 --- a/chapter08/tcl.xml +++ b/chapter08/tcl.xml @@ -4,7 +4,7 @@ %general-entities; - + ]> @@ -75,7 +75,7 @@ cd unix Build the package: -make +make NATIVE_ZIP=$PWD/minizip sed -e "s|$SRCDIR/unix|/usr/lib|" \ -e "s|$SRCDIR|/usr/include|" \ @@ -104,6 +104,8 @@ unset SRCDIR make test + Twelve tests are known to fail in the chroot environment. + Install the package: make install diff --git a/packages.ent b/packages.ent index afe8f0fc4..056bb4851 100644 --- a/packages.ent +++ b/packages.ent @@ -47,20 +47,20 @@ - - + + - + - + - + @@ -341,10 +341,10 @@ - - + + - + @@ -413,10 +413,10 @@ - - + + - + @@ -430,13 +430,13 @@ - - + + - + - + - + - + - + - - + + @@ -697,15 +697,15 @@ - - - + + + - + - - + + diff --git a/patches.ent b/patches.ent index fbb773577..9c6cd418f 100644 --- a/patches.ent +++ b/patches.ent @@ -15,9 +15,9 @@ - - - + + + From 5607053b5ac756a4a048d3ef5f448b082a533186 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 3 Oct 2024 12:25:29 -0500 Subject: [PATCH 015/151] Revert back to tcl8.6.15. --- chapter01/changelog.xml | 9 +++++++++ chapter01/whatsnew.xml | 8 ++++---- chapter08/expect.xml | 2 +- chapter08/tcl.xml | 6 ++---- packages.ent | 12 ++++++------ 5 files changed, 22 insertions(+), 15 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index bac7482bd..f6ef99d3f 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,15 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2024-10-03 + + + [bdubbs] - Revert back to tcl8.6.15. + + + + 2024-10-01 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 97b62cae0..2bd9ce999 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -292,17 +292,17 @@ Added: - + Removed: - + diff --git a/chapter08/expect.xml b/chapter08/expect.xml index b1ee27f29..d7c6341f4 100644 --- a/chapter08/expect.xml +++ b/chapter08/expect.xml @@ -69,7 +69,7 @@ Now, make some changes to allow the package with gcc-14.1 or later: -patch -Np1 -i ../expect-&expect-version;-gcc14-2.patch +patch -Np1 -i ../expect-&expect-version;-gcc14-1.patch Prepare Expect for compilation: diff --git a/chapter08/tcl.xml b/chapter08/tcl.xml index 93621fc37..fa9d42dcc 100644 --- a/chapter08/tcl.xml +++ b/chapter08/tcl.xml @@ -4,7 +4,7 @@ %general-entities; - + ]> @@ -75,7 +75,7 @@ cd unix Build the package: -make NATIVE_ZIP=$PWD/minizip +make sed -e "s|$SRCDIR/unix|/usr/lib|" \ -e "s|$SRCDIR|/usr/include|" \ @@ -104,8 +104,6 @@ unset SRCDIR make test - Twelve tests are known to fail in the chroot environment. - Install the package: make install diff --git a/packages.ent b/packages.ent index 056bb4851..6909e23e9 100644 --- a/packages.ent +++ b/packages.ent @@ -697,15 +697,15 @@ - - - + + + - + - - + + From ebeebc26b272e341dd26fde14455b7be551b4f60 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 3 Oct 2024 15:39:25 -0500 Subject: [PATCH 016/151] Restore expect patch to previous version. --- patches.ent | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches.ent b/patches.ent index 9c6cd418f..a0ffcc350 100644 --- a/patches.ent +++ b/patches.ent @@ -15,9 +15,9 @@ - - - + + + From fc3eddd130007eeffb5073b63fcf78fa80a589b6 Mon Sep 17 00:00:00 2001 From: Thomas Trepl Date: Fri, 4 Oct 2024 09:52:39 +0200 Subject: [PATCH 017/151] Fix chksum of expect-5.45.4-gcc14-1.patch --- patches.ent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches.ent b/patches.ent index a0ffcc350..fbb773577 100644 --- a/patches.ent +++ b/patches.ent @@ -16,7 +16,7 @@ - + From ae191ad78ee2c912d9f4ee49a9f0f6a3712e5d52 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 6 Oct 2024 03:13:36 +0800 Subject: [PATCH 018/151] tcl: Remove trailing space in command It causes unnecessary trouble to translations because translating softwares do not ignore trailing space in s. --- chapter08/tcl.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/tcl.xml b/chapter08/tcl.xml index fa9d42dcc..28eac584b 100644 --- a/chapter08/tcl.xml +++ b/chapter08/tcl.xml @@ -75,7 +75,7 @@ cd unix Build the package: -make +make sed -e "s|$SRCDIR/unix|/usr/lib|" \ -e "s|$SRCDIR|/usr/include|" \ From 8d5a2a12e99ee86ccfe7cacf51f702226d9a8e81 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 6 Oct 2024 03:32:51 +0800 Subject: [PATCH 019/151] standards: Add extension names to libg{d,t}k-x11-2.0 to be consistent --- prologue/standards.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prologue/standards.xml b/prologue/standards.xml index 3cf6fbff2..88d894dad 100644 --- a/prologue/standards.xml +++ b/prologue/standards.xml @@ -178,10 +178,10 @@ LSB Desktop: - libgdk-x11-2.0 + libgdk-x11-2.0.so (but libgdk-3.so is provided by the BLFS GTK+-3 package), - libgtk-x11-2.0 + libgtk-x11-2.0.so (but libgtk-3.so and libgtk-4.so are provided by the BLFS GTK+-3 and GTK-4 packages), From d26d12f45c447f265ef9eb15fc4d357797f0039d Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 10 Oct 2024 13:11:31 -0500 Subject: [PATCH 020/151] Fix currency for MarkupSafe --- lfs-latest-git.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lfs-latest-git.php b/lfs-latest-git.php index 55c634e0b..6b7b2d4c2 100644 --- a/lfs-latest-git.php +++ b/lfs-latest-git.php @@ -256,6 +256,9 @@ if ( $package == "zstd" ) $dirpath = github("facebook/zstd"); if ( $package == "setuptools" ) return find_max( $lines, "/setuptools /", "/^.*setuptools ([\d\.]+)$/" ); + if ( $package == "MarkupSafe" ) + return find_max( $lines, "/MarkupSafe /", "/^.*MarkupSafe ([\d\.]+)$/" ); + if ( $package == "procps-ng" ) return find_max( $lines, "/v\d/", "/^.*v([\d\.]+)$/" ); From 33ec8810eea89dbe181c5abe4705f52b27b52707 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 14 Oct 2024 22:02:13 +0800 Subject: [PATCH 021/151] grub: Use "file system" instead of "filesystem" We've had the consensus on this since David's cleanup. --- chapter08/grub.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/grub.xml b/chapter08/grub.xml index 0710c4a37..b301d4f5a 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -177,7 +177,7 @@ mv -v /etc/bash_completion.d/grub /usr/share/bash-completion/completions grub-fstest - Is a tool to debug the filesystem driver + Is a tool to debug the file system driver grub-fstest From 52104e05f096555dd2da5d47290bd1cf2fa87c03 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 24 Oct 2024 21:14:17 -0500 Subject: [PATCH 022/151] Package updates. Update to iana-etc-20241015. Update to vim-9.1.0813. Update to xz-5.6.3. Update to sysvinit-3.11. Update to setuptools-75.2.0. Update to Python3-3.13.0. Update to openssl-3.4.0. Update to meson-1.6.0. Update to markupsafe-3.0.2. Update to linux-6.11.5. Update to less-668. Update to elfutils-0.192. --- chapter01/changelog.xml | 54 +++++++++++++++++++++++++++++ chapter01/whatsnew.xml | 20 +++++------ chapter08/python.xml | 5 +-- packages.ent | 76 ++++++++++++++++++++--------------------- 4 files changed, 105 insertions(+), 50 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index f6ef99d3f..948d4382b 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,60 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2024-10-25 + + + [bdubbs] - Update to iana-etc-20241015. Addresses + #5006. + + + [bdubbs] - Update to vim-9.1.0813. Addresses + #4500. + + + [bdubbs] - Update to xz-5.6.3. Fixes + #5572. + + + [bdubbs] - Update to sysvinit-3.11. Fixes + #5581. + + + [bdubbs] - Update to setuptools-75.2.0. Fixes + #5577. + + + [bdubbs] - Update to Python3-3.13.0. Fixes + #5575. + + + [bdubbs] - Update to openssl-3.4.0. Fixes + #5582. + + + [bdubbs] - Update to meson-1.6.0. Fixes + #5580. + + + [bdubbs] - Update to markupsafe-3.0.2. Fixes + #5576. + + + [bdubbs] - Update to linux-6.11.5. Fixes + #5574. + + + [bdubbs] - Update to less-668. Fixes + #5578. + + + [bdubbs] - Update to elfutils-0.192. Fixes + #5579. + + + + 2024-10-03 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 2bd9ce999..21032b1bf 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -143,18 +143,18 @@ - + - + @@ -182,9 +182,9 @@ - + Meson-&meson-version; @@ -239,9 +239,9 @@ Systemd-&systemd-version; - + @@ -269,9 +269,9 @@ - + diff --git a/chapter08/python.xml b/chapter08/python.xml index ed3df8453..75f18945f 100644 --- a/chapter08/python.xml +++ b/chapter08/python.xml @@ -88,7 +88,8 @@ limit and 1 SBU (measured when building Binutils pass 1 with one CPU core) should be enough. Some tests are flaky, so the test suite will automatically re-run failed tests. If a test failed but then passed - when re-run, it should be considered as passed. + when re-run, it should be considered as passed. One test, test_ssl, + is known to fail in the chroot environment. Install the package: @@ -163,7 +164,7 @@ EOF tar --no-same-owner \ -xvf ../python-&python-version;-docs-html.tar.bz2 -cp -R --no-preserve=mode python-&python-minor;-docs-html/* \ +cp -R --no-preserve=mode python-&python-version;-docs-html/* \ /usr/share/doc/python-&python-version;/html diff --git a/packages.ent b/packages.ent index 6909e23e9..ad149fc36 100644 --- a/packages.ent +++ b/packages.ent @@ -148,10 +148,10 @@ - - + + - + @@ -317,10 +317,10 @@ - + - + @@ -373,10 +373,10 @@ - - + + - + @@ -431,12 +431,12 @@ - + - + - + - - - + + + - + - - + + @@ -637,10 +637,10 @@ - - + + - + @@ -679,10 +679,10 @@ - + - + @@ -745,10 +745,10 @@ - + - + - + @@ -783,10 +783,10 @@ - - + + - + From 8a0ae36a91f9c351c3f0b0d9c667346ab9fc3c28 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 25 Oct 2024 11:37:55 -0500 Subject: [PATCH 023/151] Fix extra spacing around some xml tags. --- appendices/dependencies.xml | 12 ++++++------ chapter05/glibc.xml | 4 ++-- chapter10/kernel.xml | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml index d9c44641c..d93cc1f5e 100644 --- a/appendices/dependencies.xml +++ b/appendices/dependencies.xml @@ -4,8 +4,7 @@ %general-entities; - Systemd - Udev"> + SystemdUdev"> Berkeley DB"> ]> @@ -45,7 +44,7 @@ &dependencies; - Attr, Bash, Binutils, Coreutils, GCC, Gettext, Grep, M4, Make, + Attr, Bash, Binutils, Coreutils, GCC, Gettext, Grep, M4, Make, Perl, Sed, and Texinfo @@ -2571,9 +2570,10 @@ &before; Binutils, - D-Bus, E2fsprogs, - IProute2, Kmod, Man-DB, Procps-ng, Python, - &systemd-udev;, and Util-linux + D-Bus, + E2fsprogs, IProute2, Kmod, Man-DB, Procps-ng, Python, + &systemd-udev;, + and Util-linux diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index b8b8171da..2dccf93bf 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -187,8 +187,8 @@ cd build packages to define the location where the package should be installed. If it is not set, it defaults to the root (/) directory. Here we specify that - the package is installed in $LFS - , which will become the root directory in + $LFS, which will become the root directory in . diff --git a/chapter10/kernel.xml b/chapter10/kernel.xml index c1e02129a..4eb87a17b 100644 --- a/chapter10/kernel.xml +++ b/chapter10/kernel.xml @@ -339,7 +339,7 @@ If you've decided to use a separate &boot-dir; partition for the LFS system (maybe sharing a &boot-dir; partition with the host - distro) , the files copied below should go there. The easiest way to + distro), the files copied below should go there. The easiest way to do that is to create the entry for &boot-dir; in &fstab; first (read the previous section for details), then issue the following command as the &root; user in the From 08620feaa124f04c5fee08d462fc0669100306eb Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 25 Oct 2024 12:45:27 -0500 Subject: [PATCH 024/151] Fix currency for markupsafe. --- lfs-latest-git.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lfs-latest-git.php b/lfs-latest-git.php index 6b7b2d4c2..5309d38ad 100644 --- a/lfs-latest-git.php +++ b/lfs-latest-git.php @@ -14,6 +14,7 @@ $regex = array(); //$regex[ 'bzip2' ] = "/^.*current version is ([\d\.]+).*$/"; $regex[ 'intltool' ] = "/^.*Latest version is (\d[\d\.]+\d).*$/"; $regex[ 'less' ] = "/^.*current released version is less-(\d+).*$/"; +$regex[ 'markupsafe' ] = "/^.*MarkupSafe ([\d\.]+).*$/"; $regex[ 'mpfr' ] = "/^mpfr-([\d\.]+)\.tar.*$/"; //$regex[ 'Python' ] = "/^.*Latest Python 3.*Python (3[\d\.]+\d).*$/"; //$regex[ 'sysvinit' ] = "/^.*sysvinit-([\d\.]+)dsf\.tar.*$/"; @@ -147,7 +148,7 @@ if ( $package == "psmisc" ) $dirpath = "https://gitlab.com/psmisc/psmisc/-/t if ( $package == "Python" ) $dirpath = "https://www.python.org/downloads/source/"; if ( $package == "shadow" ) $dirpath = github("shadow-maint/shadow"); if ( $package == "sysvinit" ) $dirpath = github("slicer69/sysvinit"); -if ( $package == "MarkupSafe" ) $dirpath = "https://pypi.python.org/pypi/MarkupSafe/"; +if ( $package == "markupsafe" ) $dirpath = "https://pypi.python.org/pypi/MarkupSafe/"; if ( $package == "jinja" ) $dirpath = "https://pypi.python.org/pypi/Jinja2/"; if ( $package == "sysklogd" ) $dirpath = github("troglobit/sysklogd"); if ( $package == "systemd" ) $dirpath = github("systemd/systemd"); From a9517d383c52f744fef132d1d9f9ce649dd71df5 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 1 Nov 2024 11:38:36 -0500 Subject: [PATCH 025/151] Package updates. Update to linux-6.11.6. Update to libcap-2.71. Update to setuptools-75.3.0. Update to flit_core-3.10.0. --- chapter01/changelog.xml | 22 ++++++++++++++++++++++ chapter01/whatsnew.xml | 8 ++++---- chapter08/sysklogd.xml | 3 ++- packages.ent | 24 ++++++++++++------------ 4 files changed, 40 insertions(+), 17 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 948d4382b..0680f1e92 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,28 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2024-10-25 + + + [bdubbs] - Update to linux-6.11.6. Fixes + #5588. + + + [bdubbs] - Update to libcap-2.71. Fixes + #5584. + + + [bdubbs] - Update to setuptools-75.3.0. Fixes + #5585. + + + [bdubbs] - Update to flit_core-3.10.0. Fixes + #5587. + + + + 2024-10-25 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 21032b1bf..c1ef4374d 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -86,9 +86,9 @@ - + Gawk-&gawk-version; @@ -149,9 +149,9 @@ - + Libelf from Elfutils-&elfutils-version; diff --git a/chapter08/sysklogd.xml b/chapter08/sysklogd.xml index f86718873..af9b860f6 100644 --- a/chapter08/sysklogd.xml +++ b/chapter08/sysklogd.xml @@ -46,7 +46,8 @@ ./configure --prefix=/usr \ --sysconfdir=/etc \ --runstatedir=/run \ - --without-logger + --without-logger \ + --docdir=/usr/share/doc/sysklogd-&sysklogd-version; Compile the package: diff --git a/packages.ent b/packages.ent index ad149fc36..c2c995eee 100644 --- a/packages.ent +++ b/packages.ent @@ -200,10 +200,10 @@ - - + + - + @@ -389,10 +389,10 @@ - - + + - + @@ -431,12 +431,12 @@ - + - + - + + + 2024-11-08 + + + [bdubbs] - Added binutils-2.43.1-upstream_fix-1.patch. Fixes + #5591. + + + [bdubbs] - Update to flit_core-3.10.1. Fixes + #5589. + + + [bdubbs] - Update to expat-2.6.4. Fixes + #5590. + + + + 2024-10-25 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index c1ef4374d..2279d171d 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -292,9 +292,9 @@ Added: - + + binutils-2.43.1-upstream_fix-1.patch + diff --git a/chapter03/patches.xml b/chapter03/patches.xml index ef00fbe5a..1956d39f5 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -35,15 +35,15 @@ --> - + Bzip2 Documentation Patch - &bzip2-docs-patch-size;: diff --git a/chapter08/binutils.xml b/chapter08/binutils.xml index 629c698c3..2c28df6f1 100644 --- a/chapter08/binutils.xml +++ b/chapter08/binutils.xml @@ -41,6 +41,12 @@ Installation of Binutils + First, apply a patch to prevent a bug that causing + unnecessary relinking with packages that depend on cmake-3.31.0 + or newer: + +patch -Np1 -i ../&binutils-upstream-patch; + The Binutils documentation recommends building Binutils in a dedicated build directory: diff --git a/packages.ent b/packages.ent index c2c995eee..4013f7e53 100644 --- a/packages.ent +++ b/packages.ent @@ -156,10 +156,10 @@ - - + + - + @@ -200,10 +200,10 @@ - - + + - + diff --git a/patches.ent b/patches.ent index fbb773577..7035044cd 100644 --- a/patches.ent +++ b/patches.ent @@ -7,6 +7,10 @@ --> + + + + From 505b6b1581863013bd114510b5d72d8b08fe53ca Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 9 Nov 2024 18:31:59 +0800 Subject: [PATCH 028/151] shadow: Remove reference to cracklib The cracklib integration has been removed by upstream since shadow-4.15.0. --- chapter08/shadow.xml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/chapter08/shadow.xml b/chapter08/shadow.xml index de6b05f75..38d233a9d 100644 --- a/chapter08/shadow.xml +++ b/chapter08/shadow.xml @@ -44,18 +44,20 @@ If you've installed Linux-PAM, you should follow - the BLFS shadow - page instead of this page to build (or, rebuild or upgrade) - shadow. + the BLFS + instruction instead of this page to build (or, rebuild or + upgrade) shadow. - If you would like to enforce the use of strong passwords, refer to - for installing - CrackLib prior to building Shadow. Then add - --with-libcrack to the configure - command below. + If you would like to enforce the use of strong passwords, + install and configure + Linux-PAM first. Then + install and configure + shadow with the PAM support. Finally + install + libpwquality and configure PAM to use it. Disable the installation of the groups program @@ -94,11 +96,6 @@ find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \; - - If you chose to build Shadow with Cracklib support, issue this command: - -sed -i 's:DICTPATH.*:DICTPATH\t/lib/cracklib/pw_dict:' etc/login.defs - + + 2024-11-15 + + + [bdubbs] - Update to vim-9.1.0866. Addresses + #4500. + + + [bdubbs] - Update to iana-etc-20241024. Addresses + #5006. + + + [bdubbs] - Update to wheel-0.45.0 (Python Module). Fixes + #5593. + + + [bdubbs] - Update to setuptools-75.5.0 (Python Module). Fixes + #5595. + + + [bdubbs] - Update to linux-6.11.8. Fixes + #5582. + + + [bdubbs] - Update to libcap-2.72. Fixes + #5594. + + + + 2024-11-08 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 2279d171d..bf699eef3 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -263,9 +263,9 @@ Vim-&vim-version; - + diff --git a/chapter08/readline.xml b/chapter08/readline.xml index 882391cae..f5163e992 100644 --- a/chapter08/readline.xml +++ b/chapter08/readline.xml @@ -89,7 +89,9 @@ sed -i '/{OLDSUFF}/c:' support/shlib-install SHLIB_LIBS="-lncursesw" This option forces Readline to link against the - libncursesw library. + libncursesw library. + For details see the "Shared Libraries" section in the package's + "README" file. diff --git a/packages.ent b/packages.ent index 4013f7e53..35da245f8 100644 --- a/packages.ent +++ b/packages.ent @@ -317,10 +317,10 @@ - + - + @@ -389,10 +389,10 @@ - - + + - + @@ -431,12 +431,12 @@ - + - + - + @@ -767,10 +767,10 @@ - - + + - + From eca8b13b5927994b202c172035baa987d7aee70d Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 16 Nov 2024 08:57:29 +0800 Subject: [PATCH 030/151] readline: Decorate new info about SHLIB_LIBS --- chapter08/readline.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter08/readline.xml b/chapter08/readline.xml index f5163e992..2a01c86c8 100644 --- a/chapter08/readline.xml +++ b/chapter08/readline.xml @@ -90,8 +90,8 @@ sed -i '/{OLDSUFF}/c:' support/shlib-install This option forces Readline to link against the libncursesw library. - For details see the "Shared Libraries" section in the package's - "README" file. + For details see the Shared Libraries section in the + package's README file. From 4660ec224be5dff041eaadfaf413e3713f5ab6a1 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 15 Nov 2024 21:02:50 -0600 Subject: [PATCH 031/151] Fix vim stats. --- packages.ent | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages.ent b/packages.ent index 35da245f8..d8aa85732 100644 --- a/packages.ent +++ b/packages.ent @@ -748,7 +748,7 @@ - + - + From d5d6ec44ea835da5300e48781531567fd04ee6e7 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 17 Nov 2024 11:38:17 +0800 Subject: [PATCH 032/151] readline: Remove SHLIB_LIBS from make install It's not needed now and I don't know why it was added in the first place (at r10573-g2e8cbe04cdac). I'd say it likely just covered up some user error (for e.g. simply forgetting "make" before "make install"). Removing it anyway and if it turns out something bad is happening we can always revert. --- chapter08/readline.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/readline.xml b/chapter08/readline.xml index 2a01c86c8..eefd9f966 100644 --- a/chapter08/readline.xml +++ b/chapter08/readline.xml @@ -101,7 +101,7 @@ sed -i '/{OLDSUFF}/c:' support/shlib-install Install the package: -make SHLIB_LIBS="-lncursesw" install +make install If desired, install the documentation: From 410e400a7978c1236b10689dc1268883a33ce778 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 20 Nov 2024 09:59:23 +0800 Subject: [PATCH 033/151] shadow: Having /bin or /sbin in $PATH is not a good idea Turned out in a recent blfs-support discuss. --- chapter08/shadow.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/chapter08/shadow.xml b/chapter08/shadow.xml index 38d233a9d..4cdf2596e 100644 --- a/chapter08/shadow.xml +++ b/chapter08/shadow.xml @@ -83,13 +83,13 @@ find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;/usr. - - If you wish to include /bin - and/or /sbin in the PATH - for some reason, modify the - PATH in .bashrc after LFS has been - built. - + + Including /bin + and/or /sbin in + the PATH variable may cause some BLFS packages fail to + build, so don't do that + in the .bashrc file or anywhere else. + sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD YESCRYPT:' \ -e 's:/var/spool/mail:/var/mail:' \ From e5338216f06703f1a58721d52d849265de43d78e Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 19 Nov 2024 22:28:24 -0600 Subject: [PATCH 034/151] Remove unneeded PATH entries. --- chapter11/afterlfs.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter11/afterlfs.xml b/chapter11/afterlfs.xml index 633a782df..88a3c0114 100644 --- a/chapter11/afterlfs.xml +++ b/chapter11/afterlfs.xml @@ -168,7 +168,7 @@ EOF alias lfs='sudo /usr/sbin/chroot /mnt/lfs /usr/bin/env -i HOME=/root TERM="$TERM" PS1="\u:\w\\\\$ " -PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login' +PATH=/usr/bin:/usr/sbin /bin/bash --login' This alias is a little tricky because of the quoting and levels of From e5cc8213aafbe19f073345a4f5dbad05a6ed4a2d Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 28 Nov 2024 12:50:41 -0600 Subject: [PATCH 035/151] Typo --- chapter08/iproute2.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/iproute2.xml b/chapter08/iproute2.xml index 8a6755f3d..c010ee2ed 100644 --- a/chapter08/iproute2.xml +++ b/chapter08/iproute2.xml @@ -274,7 +274,7 @@ cp -v COPYING README* /usr/share/doc/iproute2-&iproute2-version;Traffic control for Quality of Service (QoS) and Class of Service (CoS) implementations - tc qdisc allows users to set up the queueing + tc qdisc allows users to set up the queuing discipline tc class allows users to set up classes based From ea48456403283120cd3c74357b46c6aae7bcdb2d Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 30 Nov 2024 09:49:34 -0600 Subject: [PATCH 036/151] Update to iana-etc-20241122. Update to file-5.46. Update to iproute2-6.12.0. Update to libtool-2.5.4. Update to linux-6.12.1. Update to setuptools-75.6.0 (Python Module). Update to wheel-0.45.1 (Python Module). --- chapter01/changelog.xml | 34 +++++++++++++++++++++++++++++++ chapter01/whatsnew.xml | 4 ++-- chapter08/iproute2.xml | 4 ++-- packages.ent | 44 ++++++++++++++++++++--------------------- 4 files changed, 60 insertions(+), 26 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 0beb04d7b..cdb245999 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,40 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2024-12-01 + + + [bdubbs] - Update to iana-etc-20241122. Addresses + #5006. + + + [bdubbs] - Update to file-5.46. Fixes + #5601. + + + [bdubbs] - Update to iproute2-6.12.0. Fixes + #5597. + + + [bdubbs] - Update to libtool-2.5.4. Fixes + #5598. + + + [bdubbs] - Update to linux-6.12.1. Fixes + #5586. + + + [bdubbs] - Update to setuptools-75.6.0 (Python Module). Fixes + #5599. + + + [bdubbs] - Update to wheel-0.45.1 (Python Module). Fixes + #5600. + + + + 2024-11-15 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index bf699eef3..65de020ec 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -77,9 +77,9 @@ - + diff --git a/chapter08/iproute2.xml b/chapter08/iproute2.xml index c010ee2ed..50fec36aa 100644 --- a/chapter08/iproute2.xml +++ b/chapter08/iproute2.xml @@ -274,11 +274,11 @@ cp -v COPYING README* /usr/share/doc/iproute2-&iproute2-version;Traffic control for Quality of Service (QoS) and Class of Service (CoS) implementations - tc qdisc allows users to set up the queuing + tc qdisc allows users to set up the queueing discipline tc class allows users to set up classes based - on the queuing discipline scheduling + on the queueing discipline scheduling tc filter allows users to set up the QoS/CoS packet filtering diff --git a/packages.ent b/packages.ent index d8aa85732..f90f8fae7 100644 --- a/packages.ent +++ b/packages.ent @@ -172,10 +172,10 @@ - - + + - + @@ -317,10 +317,10 @@ - - + + - + @@ -341,10 +341,10 @@ - - + + - + @@ -413,10 +413,10 @@ - - + + - + @@ -430,13 +430,13 @@ - - + + - + - + - + + + + 2024-12-15 + + + [bdubbs] - Update to vim-9.1.0927. Addresses + #4500. + + + [bdubbs] - Update to iana-etc-20241206. Addresses + #5006. + + + [bdubbs] - Update to systemd-257. Fixes + #5559. + + + [bdubbs] - Update to Python-3.13.1. Fixes + #5605. + + + [bdubbs] - Update to libcap-2.73. Fixes + #5604. + + + [bdubbs] - Update to linux-6.12.5. Fixes + #5607. + + + [bdubbs] - Update to kbd-2.7. Fixes + #5608. + + + [bdubbs] - Update to gettext-0.23. Fixes + #5603. + + + + 2024-12-01 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 65de020ec..aa8d41543 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -98,9 +98,9 @@ - + @@ -137,9 +137,9 @@ - + diff --git a/chapter08/gettext.xml b/chapter08/gettext.xml index f26d15536..3d5e3ade7 100644 --- a/chapter08/gettext.xml +++ b/chapter08/gettext.xml @@ -43,6 +43,12 @@ Installation of Gettext + First fix some compatibility issues with other programs: + +sed -e '/libxml\/xmlerror.h/i #include <libxml/xmlversion.h>' \ + -e 's/xmlError *err/const &/' \ + -i gettext-tools/src/its.c + Prepare Gettext for compilation: ./configure --prefix=/usr \ diff --git a/chapter08/udev.xml b/chapter08/udev.xml index b3c318a0b..8883b624b 100644 --- a/chapter08/udev.xml +++ b/chapter08/udev.xml @@ -48,17 +48,19 @@ sgx, from the default udev rules: - sed -i -e 's/GROUP="render"/GROUP="video"/' \ - -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in + sed -e 's/GROUP="render"/GROUP="video"/' \ + -e 's/GROUP="sgx", //' \ + -i rules.d/50-udev-default.rules.in Remove one udev rule requiring a full Systemd installation: - sed '/systemd-sysctl/s/^/#/' -i rules.d/99-systemd.rules.in + sed -i '/systemd-sysctl/s/^/#/' rules.d/99-systemd.rules.in Adjust the hardcoded paths to network configuration files for the standalone udev installation: - sed '/NETWORK_DIRS/s/systemd/udev/' -i src/basic/path-lookup.h + sed -e '/NETWORK_DIRS/s/systemd/udev/' + -i src/libsystemd/sd-network/network-util.h Prepare Udev for compilation: diff --git a/packages.ent b/packages.ent index f90f8fae7..6af66bcdf 100644 --- a/packages.ent +++ b/packages.ent @@ -245,10 +245,10 @@ - - + + - + @@ -317,10 +317,10 @@ - + - + @@ -357,10 +357,10 @@ - - + + - + @@ -389,10 +389,10 @@ - + - + @@ -431,12 +431,12 @@ - + - + - + - + - + - + - - + + @@ -661,15 +661,15 @@ - + - + - + @@ -745,7 +745,7 @@ - + From 1b69877bc4e55efa87fd1753cb891bcb0329bea3 Mon Sep 17 00:00:00 2001 From: Thomas Trepl Date: Mon, 16 Dec 2024 11:56:30 +0100 Subject: [PATCH 050/151] Fix chksum of vim tarball --- packages.ent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages.ent b/packages.ent index 6af66bcdf..4ced83917 100644 --- a/packages.ent +++ b/packages.ent @@ -762,7 +762,7 @@ example, https://github.com/vim/vim/tags?after=v8.1.1847 will show us v8.1.1846. --> - + From fba6f0643d6c5bd1bf2a264eead4e5fb42ba83e7 Mon Sep 17 00:00:00 2001 From: Thomas Trepl Date: Mon, 16 Dec 2024 16:50:42 +0100 Subject: [PATCH 051/151] Add missing backslash --- chapter08/udev.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/udev.xml b/chapter08/udev.xml index 8883b624b..1be726094 100644 --- a/chapter08/udev.xml +++ b/chapter08/udev.xml @@ -59,7 +59,7 @@ Adjust the hardcoded paths to network configuration files for the standalone udev installation: - sed -e '/NETWORK_DIRS/s/systemd/udev/' + sed -e '/NETWORK_DIRS/s/systemd/udev/' \ -i src/libsystemd/sd-network/network-util.h Prepare Udev for compilation: From 72fae0d02c402e2a35e5b078deeed65d8e4c42a2 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Mon, 16 Dec 2024 11:54:48 -0600 Subject: [PATCH 052/151] Fix vim size --- packages.ent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages.ent b/packages.ent index 4ced83917..1d41cb4c2 100644 --- a/packages.ent +++ b/packages.ent @@ -748,7 +748,7 @@ - + - One test named systemd:core / test-namespace - is known to fail in the LFS chroot environment. Some other tests may + after initializing the system with systemd. + This seems to pass now in chroot --> + + Three tests named systemd:test / test-fd-util, + systemd:test / test-mount-util, and + systemd:test / test-mountpoint-util, + are known to fail in the LFS chroot environment. Some other tests may fail because they depend on various kernel configuration options. Install the package: From 33b3a04e4e7c13112517e266a9367101f6823dab Mon Sep 17 00:00:00 2001 From: "Douglas R. Reno" Date: Thu, 19 Dec 2024 15:05:20 -0600 Subject: [PATCH 057/151] Revert "systemd: Update the test suite failures list for 257." This reverts commit 8f493a63774a200a9be7f1543f85b4fa155ed26f. When I was building LFS, I somehow forgot to mount /dev/sdb7 to /mnt/lfs on my system. I ended up chrooting into /mnt/lfs, and it was a directory, not a filesystem. This happens from time to time, not sure why I did it this time! The tests that I had marked as failed no longer fail, but at the same time, now test-namespace does. Let's undo this commit... --- chapter08/systemd.xml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml index acd90aef9..1e17c60ce 100644 --- a/chapter08/systemd.xml +++ b/chapter08/systemd.xml @@ -225,14 +225,9 @@ meson setup .. \ ninja test - - Three tests named systemd:test / test-fd-util, - systemd:test / test-mount-util, and - systemd:test / test-mountpoint-util, - are known to fail in the LFS chroot environment. Some other tests may + after initializing the system with systemd. --> + One test named systemd:core / test-namespace + is known to fail in the LFS chroot environment. Some other tests may fail because they depend on various kernel configuration options. Install the package: From 86a50f243aa3dcb79447431677a99baae91c1bc4 Mon Sep 17 00:00:00 2001 From: "Douglas R. Reno" Date: Fri, 20 Dec 2024 15:15:07 -0600 Subject: [PATCH 058/151] /etc/os-release: Add in the RELEASE_TYPE field. This field was introduced with systemd-257. For development books, we'll use "development" here, but when we do the next release we should change this to say "stable". --- chapter11/theend.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/chapter11/theend.xml b/chapter11/theend.xml index 2b5ef95f1..92e0aaad5 100644 --- a/chapter11/theend.xml +++ b/chapter11/theend.xml @@ -59,6 +59,7 @@ ID=lfs PRETTY_NAME="Linux From Scratch &version;" VERSION_CODENAME="<your name here>" HOME_URL="&lfs-root;lfs/" +RELEASE_TYPE="development" EOF Be sure to customize the fields 'DISTRIB_CODENAME' and From 6913a42bffc9be1495b1b24999fcccde7585123d Mon Sep 17 00:00:00 2001 From: "Douglas R. Reno" Date: Fri, 20 Dec 2024 15:17:54 -0600 Subject: [PATCH 059/151] Update the systemd man pages to 257. --- packages.ent | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages.ent b/packages.ent index 1d41cb4c2..7d5894a08 100644 --- a/packages.ent +++ b/packages.ent @@ -671,11 +671,11 @@ - - + + - + From bfb0cbae18b850f1c3e8f7a56d689e98e084b20b Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 21 Dec 2024 11:56:57 +0800 Subject: [PATCH 060/151] os-release: Automatically update RELEASE_TYPE --- chapter11/theend.xml | 2 +- general.ent | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/chapter11/theend.xml b/chapter11/theend.xml index 92e0aaad5..994cba8c3 100644 --- a/chapter11/theend.xml +++ b/chapter11/theend.xml @@ -59,7 +59,7 @@ ID=lfs PRETTY_NAME="Linux From Scratch &version;" VERSION_CODENAME="<your name here>" HOME_URL="&lfs-root;lfs/" -RELEASE_TYPE="development" +RELEASE_TYPE="&os-release-type;" EOF Be sure to customize the fields 'DISTRIB_CODENAME' and diff --git a/general.ent b/general.ent index d6bf13792..4e1480324 100644 --- a/general.ent +++ b/general.ent @@ -34,6 +34,7 @@ &patches-root;, &donwloads-root;, and &test-results; --> + ]]> + ]]> + ]]> Date: Tue, 31 Dec 2024 11:12:12 -0600 Subject: [PATCH 061/151] Package updates. Update to iana-etc-20241220. Update to texinfo-7.2. Update to sysvinit-3.12. Update to shadow-4.17.0. Update to procps-ng-4.0.5. Update to meson-1.6.1. Update to linux-6.12.7. Update to kbd-2.7.1. Update to jinja2-3.1.5. --- chapter01/changelog.xml | 42 +++++++++++++++++++++++++++++++++ chapter01/whatsnew.xml | 12 +++++----- packages.ent | 52 ++++++++++++++++++++--------------------- patches.ent | 2 +- 4 files changed, 75 insertions(+), 33 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 4764a728d..3258be6d9 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,48 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2025-01-01 + + + [bdubbs] - Update to iana-etc-20241220. Addresses + #5006. + + + [bdubbs] - Update to texinfo-7.2. Fixes + #5616. + + + [bdubbs] - Update to sysvinit-3.12. Fixes + #5615. + + + [bdubbs] - Update to shadow-4.17.0. Fixes + #5617. + + + [bdubbs] - Update to procps-ng-4.0.5. Fixes + #5611. + + + [bdubbs] - Update to meson-1.6.1. Fixes + #5610. + + + [bdubbs] - Update to linux-6.12.7. Fixes + #5613. + + + [bdubbs] - Update to kbd-2.7.1. Fixes + #5608. + + + [bdubbs] - Update to jinja2-3.1.5. Fixes + #5614. + + + + 2024-12-15 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index aa8d41543..9fc118bb5 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -134,9 +134,9 @@ IPRoute2-&iproute2-version; - + Kbd-&kbd-version; @@ -212,9 +212,9 @@ - + @@ -230,9 +230,9 @@ Setuptools-&setuptools-version; - + Sysklogd-&sysklogd-version; diff --git a/packages.ent b/packages.ent index 7d5894a08..5f76f4633 100644 --- a/packages.ent +++ b/packages.ent @@ -317,10 +317,10 @@ - + - + @@ -349,18 +349,18 @@ - - + + - + - - + + - + @@ -431,12 +431,12 @@ - + - + - + - + - + @@ -164,6 +164,9 @@ Libtool-&libtool-version; + + Libxcrypt-&libxcrypt-version; + Linux-&linux-version; diff --git a/chapter08/dbus.xml b/chapter08/dbus.xml index 36d5c55ca..02bc434cb 100644 --- a/chapter08/dbus.xml +++ b/chapter08/dbus.xml @@ -48,41 +48,22 @@ Prepare D-Bus for compilation: -./configure --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --runstatedir=/run \ - --enable-user-session \ - --disable-static \ - --disable-doxygen-docs \ - --disable-xml-docs \ - --docdir=/usr/share/doc/dbus-&dbus-version; \ - --with-system-socket=/run/dbus/system_bus_socket +mkdir build +cd build + +meson setup --prefix=/usr --buildtype=release --wrap-mode=nofallback .. +ninja - The meaning of the configure options: + The meaning of the meson options: - --runstatedir=/run and - --with-system-socket=/run/dbus/system_bus_socket + --wrap-mode=nofallback - These cause the PID file and the system bus socket - to be in /run, instead of - the deprecated /var/run. - - - - - - --enable-user-session - - - This ensures the D-Bus per-user service and socket unit - files are installed for Systemd. They are not useful (but - harmless) in a base LFS installation, however they can be used - once systemd is rebuilt with PAM support in BLFS. + This switch prevents meson from attempting to download a copy + of the Glib package for the tests. @@ -90,11 +71,11 @@ Compile the package: -make +ninja To test the results, issue: -make check +ninja test Many tests are disabled because they require additional packages that are not included in LFS. Instructions for running the @@ -103,7 +84,7 @@ Install the package: -make install +ninja install Create a symlink so that D-Bus and systemd can use the same machine-id file: @@ -149,7 +130,7 @@ dbus-daemon - Is the D-Bus message bus daemon + is the D-Bus message bus daemon dbus-daemon @@ -159,7 +140,7 @@ dbus-launch - Starts dbus-daemon from a shell + starts dbus-daemon from a shell script dbus-launch @@ -170,7 +151,7 @@ dbus-monitor - Monitors messages passing through a D-Bus message bus + monitors messages passing through a D-Bus message bus dbus-monitor @@ -180,7 +161,7 @@ dbus-run-session - Starts a session bus instance of dbus-daemon + starts a session bus instance of dbus-daemon from a shell script and starts a specified program in that session @@ -192,7 +173,7 @@ dbus-send - Sends a message to a D-Bus message bus + sends a message to a D-Bus message bus dbus-send @@ -202,7 +183,7 @@ dbus-test-tool - Is a tool to help packages test + is a tool to help packages test D-Bus dbus-test-tool @@ -214,7 +195,7 @@ dbus-update-activation-environment - Updates environment variables that will be set for + updates environment variables that will be set for D-Bus session services dbus-update-activation-environment diff --git a/packages.ent b/packages.ent index 5f76f4633..b88852d20 100644 --- a/packages.ent +++ b/packages.ent @@ -114,12 +114,12 @@ - - + + - + - + @@ -421,10 +421,10 @@ - - + + - + From 93d4efbcd69be53e49219f5b96bb1f572554acbe Mon Sep 17 00:00:00 2001 From: "Douglas R. Reno" Date: Tue, 31 Dec 2024 13:54:22 -0600 Subject: [PATCH 063/151] Changelog: mark Jinja2 as a security update --- chapter01/changelog.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index b5fb95d7e..c378309de 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -84,7 +84,7 @@ #5608. - [bdubbs] - Update to jinja2-3.1.5. Fixes + [bdubbs] - Update to jinja2-3.1.5 (Security Update). Fixes #5614. From 78226867526644f95be751bde15be2422ca453a0 Mon Sep 17 00:00:00 2001 From: "Douglas R. Reno" Date: Tue, 31 Dec 2024 14:56:53 -0600 Subject: [PATCH 064/151] dbus: remove a duplicate ninja command --- chapter08/dbus.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chapter08/dbus.xml b/chapter08/dbus.xml index 02bc434cb..086b30b93 100644 --- a/chapter08/dbus.xml +++ b/chapter08/dbus.xml @@ -51,8 +51,7 @@ mkdir build cd build -meson setup --prefix=/usr --buildtype=release --wrap-mode=nofallback .. -ninja +meson setup --prefix=/usr --buildtype=release --wrap-mode=nofallback .. The meaning of the meson options: From f1a5ce38602b29e28c8ff6e14b29e950021f41e1 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 31 Dec 2024 20:34:46 -0600 Subject: [PATCH 065/151] Update to shadow-4.17.1. --- chapter01/changelog.xml | 4 ++-- packages.ent | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index c378309de..8e43698fc 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -64,8 +64,8 @@ #5615. - [bdubbs] - Update to shadow-4.17.0. Fixes - #5617. + [bdubbs] - Update to shadow-4.17.1. Fixes + #5617. [bdubbs] - Update to procps-ng-4.0.5. Fixes diff --git a/packages.ent b/packages.ent index b88852d20..d5f69deab 100644 --- a/packages.ent +++ b/packages.ent @@ -645,10 +645,10 @@ - - + + - + From 8e8be5f129e67b01aff3c958aab56c48aa603101 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 26 Dec 2024 18:39:39 +0800 Subject: [PATCH 066/151] Use lfs-user entity in commands I still think it's cleaner for jhalfs to just use a different user name (for example "lfs1") if the user lfs already exists. This will allow jhalfs to easily use a different user name. --- chapter04/addinguser.xml | 12 ++++++------ chapter07/changingowner.xml | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml index e10a884b3..e33fbbf38 100644 --- a/chapter04/addinguser.xml +++ b/chapter04/addinguser.xml @@ -20,8 +20,8 @@ the installation process. As root, issue the following commands to add the new user: -groupadd lfs -useradd -s /bin/bash -g lfs -m -k /dev/null lfs +groupadd &lfs-user; +useradd -s /bin/bash -g &lfs-user; -m -k /dev/null &lfs-user; This is what the command line options mean: @@ -74,15 +74,15 @@ useradd -s /bin/bash -g lfs -m -k /dev/null lfs have a password), you need to set a password for &lfs-user;. Issue the following command as the &root; user to set the password: -passwd lfs +passwd &lfs-user; Grant lfs full access to all the directories under $LFS by making lfs the owner: -chown -v lfs $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} +chown -v &lfs-user; $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} case $(uname -m) in - x86_64) chown -v lfs $LFS/lib64 ;; + x86_64) chown -v &lfs-user; $LFS/lib64 ;; esac In some host systems, the following su command does not complete @@ -94,7 +94,7 @@ esac logging in as &lfs-user; on a virtual console, or with the following substitute/switch user command: -su - lfs +su - &lfs-user; The - instructs su to start a login shell as opposed to a non-login shell. diff --git a/chapter07/changingowner.xml b/chapter07/changingowner.xml index 16c052b39..b2e0ad9d5 100644 --- a/chapter07/changingowner.xml +++ b/chapter07/changingowner.xml @@ -33,9 +33,9 @@ user root by running the following command: -chown --from lfs -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} +chown --from &lfs-user; -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} case $(uname -m) in - x86_64) chown --from lfs -R root:root $LFS/lib64 ;; + x86_64) chown --from &lfs-user; -R root:root $LFS/lib64 ;; esac From 6528f7572074201a9cd3152b4e028fc117e138e5 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 29 Dec 2024 15:57:31 +0100 Subject: [PATCH 067/151] Use as elements for lfs user and group The preceding commit uses elements to mark the lfs user and group in commands. Unfortunately, this change the rendering in html, because now lfs appears in an italic font. Using or allows parsing the XML for jhalfs, but does not change the html rendering. --- chapter04/addinguser.xml | 12 ++++++------ chapter07/changingowner.xml | 4 ++-- general.ent | 2 ++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml index e33fbbf38..e1d130b95 100644 --- a/chapter04/addinguser.xml +++ b/chapter04/addinguser.xml @@ -20,8 +20,8 @@ the installation process. As root, issue the following commands to add the new user: -groupadd &lfs-user; -useradd -s /bin/bash -g &lfs-user; -m -k /dev/null &lfs-user; +groupadd &lfs-groupname; +useradd -s /bin/bash -g &lfs-groupname; -m -k /dev/null &lfs-username; This is what the command line options mean: @@ -74,15 +74,15 @@ useradd -s /bin/bash -g &lfs-user; -m -k /dev/null &lfs-user; -passwd &lfs-user; +passwd &lfs-username; Grant lfs full access to all the directories under $LFS by making lfs the owner: -chown -v &lfs-user; $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} +chown -v &lfs-username; $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} case $(uname -m) in - x86_64) chown -v &lfs-user; $LFS/lib64 ;; + x86_64) chown -v &lfs-username; $LFS/lib64 ;; esac In some host systems, the following su command does not complete @@ -94,7 +94,7 @@ esac logging in as &lfs-user; on a virtual console, or with the following substitute/switch user command: -su - &lfs-user; +su - &lfs-username; The - instructs su to start a login shell as opposed to a non-login shell. diff --git a/chapter07/changingowner.xml b/chapter07/changingowner.xml index b2e0ad9d5..178c7836e 100644 --- a/chapter07/changingowner.xml +++ b/chapter07/changingowner.xml @@ -33,9 +33,9 @@ user root by running the following command: -chown --from &lfs-user; -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} +chown --from &lfs-username; -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} case $(uname -m) in - x86_64) chown --from &lfs-user; -R root:root $LFS/lib64 ;; + x86_64) chown --from &lfs-username; -R root:root $LFS/lib64 ;; esac diff --git a/general.ent b/general.ent index 4e1480324..b3bce5ae8 100644 --- a/general.ent +++ b/general.ent @@ -134,6 +134,8 @@ root"> lfs"> +lfs"> +lfs"> devtmpfs"> /etc/fstab"> /boot"> From d11e5762bc544e1934ba1fc7b662deb8055419c4 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Fri, 3 Jan 2025 12:21:11 +0100 Subject: [PATCH 068/151] pip3 wheel should be remap="make" --- chapter08/flit-core.xml | 2 +- chapter08/jinja2.xml | 2 +- chapter08/setuptools.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chapter08/flit-core.xml b/chapter08/flit-core.xml index 419efc30f..29194aa63 100644 --- a/chapter08/flit-core.xml +++ b/chapter08/flit-core.xml @@ -42,7 +42,7 @@ Build the package: -pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD +pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD Install the package: diff --git a/chapter08/jinja2.xml b/chapter08/jinja2.xml index c06da9139..efa50a582 100644 --- a/chapter08/jinja2.xml +++ b/chapter08/jinja2.xml @@ -42,7 +42,7 @@ Build the package: -pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD +pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD Install the package: diff --git a/chapter08/setuptools.xml b/chapter08/setuptools.xml index dfb31c5b8..8a404be73 100644 --- a/chapter08/setuptools.xml +++ b/chapter08/setuptools.xml @@ -42,7 +42,7 @@ Build the package: -pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD +pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD Install the package: From 389d8f53dbf434b948726e03b3c93031775bab04 Mon Sep 17 00:00:00 2001 From: "Douglas R. Reno" Date: Fri, 3 Jan 2025 11:59:15 -0600 Subject: [PATCH 069/151] Changelog: mark Python 3.13.1 as a security update --- chapter01/changelog.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 8e43698fc..712ac923d 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -106,7 +106,7 @@ #5559. - [bdubbs] - Update to Python-3.13.1. Fixes + [bdubbs] - Update to Python-3.13.1 (Security Update). Fixes #5605. From cacb470c97dd29c34e70826c12326694cda6d900 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 11 Jan 2025 23:17:54 +0800 Subject: [PATCH 070/151] aboutlfs: Set umask to 022 I know some distros are using a different default and we are having reports of some mysterious permission issue via lfs-support those I highly suspect as some umask issue. Let's just explicitly set it (like setting $LFS) to protect us from such distros without changing every "mkdir -pv" to "install -vdm755". --- chapter02/aboutlfs.xml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/chapter02/aboutlfs.xml b/chapter02/aboutlfs.xml index 4f3f6ba46..64229f114 100644 --- a/chapter02/aboutlfs.xml +++ b/chapter02/aboutlfs.xml @@ -8,7 +8,7 @@ - Setting The $LFS Variable + Setting the $LFS Variable and the Umask Throughout this book, the environment variable LFS will be used several times. You should ensure that this variable is always defined @@ -28,8 +28,14 @@ /mnt/lfs (or whatever value the variable was set to) when it processes the command line. + Now setting the file mode creation mask (umask) to + 022 in case the host distro uses a different + default: + +umask 022 - Do not forget to check that LFS is set whenever + Do not forget to check that LFS is set and the + umask is set to 022 whenever you leave and reenter the current working environment (such as when doing a su to root or another user). Check that the LFS variable is set up @@ -39,10 +45,17 @@ Make sure the output shows the path to your LFS system's build location, which is /mnt/lfs if the - provided example was followed. If the output is incorrect, use the command - given earlier on this page to set $LFS to the correct - directory name. - + provided example was followed. + + Check that the umask is set up properly with: + + umask + + The output should be 022. + + If any output of these two commands is incorrect, use the command + given earlier on this page to set $LFS to the correct + directory name and set umask to 022. One way to ensure that the LFS variable is always set is to edit the .bash_profile file in both your From 68b56a3c3303ceff24ac3373d17ac5401354527b Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 11 Jan 2025 23:31:54 +0800 Subject: [PATCH 071/151] creatingminlayout: Set the owner and permission of $LFS The host distro may have an insane default for root_owner and/or root_perms in /etc/mke2fs.conf, so let's make it sane on our own. Note that MKE2FS_CONFIG=/dev/null makes mke2fs refuse to run so we cannot suppress the host mke2fs.conf. --- chapter04/creatingminlayout.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/chapter04/creatingminlayout.xml b/chapter04/creatingminlayout.xml index d4bfe9af1..96f0c591a 100644 --- a/chapter04/creatingminlayout.xml +++ b/chapter04/creatingminlayout.xml @@ -18,6 +18,15 @@ location. We do this so those temporary programs will be overwritten when the final versions are built in . + At first, set the owner and permission mode of the + $LFS directory (i.e. the root + directory in the newly created file system for the LFS system) to + &root; and 755 in case the host distro has been + configured to use a different default for mkfs: + +chown root:root $LFS +chmod 755 $LFS + Create the required directory layout by issuing the following commands as root: From 625969c2de5402dce45ff0ae93c1b17ffe050e41 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 12 Jan 2025 11:43:36 +0800 Subject: [PATCH 072/151] aboutlfs: Also mention umask in addition to export LFS= for bash profiles --- chapter02/aboutlfs.xml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/chapter02/aboutlfs.xml b/chapter02/aboutlfs.xml index 64229f114..158f8f3a5 100644 --- a/chapter02/aboutlfs.xml +++ b/chapter02/aboutlfs.xml @@ -57,24 +57,26 @@ given earlier on this page to set $LFS to the correct directory name and set umask to 022. - One way to ensure that the LFS variable is always - set is to edit the .bash_profile file in both your - personal home directory and in /root/.bash_profile and - enter the export command above. In addition, the shell specified in the + One way to ensure that the LFS variable and the + umask are always set properly is to edit the + .bash_profile file in both your personal home + directory and in /root/.bash_profile and + enter the export and umask commands + above. In addition, the shell specified in the /etc/passwd file for all users that need the LFS variable must be bash to ensure that the - /root/.bash_profile file is incorporated as a part of + .bash_profile file is incorporated as a part of the login process. Another consideration is the method that is used to log into the host system. If logging in through a graphical display manager, the user's .bash_profile is not normally used when - a virtual terminal is started. In this case, add the export command to + a virtual terminal is started. In this case, add the commands to the .bashrc file for the user and root. In addition, some distributions use an "if" test, and do not run the remaining .bashrc instructions for a non-interactive bash invocation. Be sure to place the - export command ahead of the test for non-interactive use. + commands ahead of the test for non-interactive use. From 39679232f7a6ebfcd5d9a410b26cf0e3c7cabe00 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 12 Jan 2025 11:55:59 +0800 Subject: [PATCH 073/151] Move the explanation of umask 022 from settingenviron to aboutlfs Explain it once we use it. Also fix an error in the text (we don't make files executable, we only make directories searchable). --- chapter02/aboutlfs.xml | 10 ++++++++++ chapter04/settingenviron.xml | 7 ++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/chapter02/aboutlfs.xml b/chapter02/aboutlfs.xml index 158f8f3a5..f46d4e3ba 100644 --- a/chapter02/aboutlfs.xml +++ b/chapter02/aboutlfs.xml @@ -33,6 +33,16 @@ default: umask 022 + + Setting the umask to 022 ensures that newly created files and + directories are only writable by their owner, but are readable and + searchable (only for directories) by anyone (assuming default modes are + used by the open(2) system + call, new files will end up with permission mode 644 and directories with + mode 755). An over-permissive default can leave security holes in the + LFS system, and an over-restrictive default can cause strange issues + building or using the LFS system. + Do not forget to check that LFS is set and the umask is set to 022 whenever diff --git a/chapter04/settingenviron.xml b/chapter04/settingenviron.xml index b179bb0b3..564e29d84 100644 --- a/chapter04/settingenviron.xml +++ b/chapter04/settingenviron.xml @@ -76,11 +76,8 @@ EOF umask 022 - Setting the user file-creation mask (umask) to 022 ensures that newly - created files and directories are only writable by their owner, but are - readable and executable by anyone (assuming default modes are used by the - open(2) system call, new files - will end up with permission mode 644 and directories with mode 755). + Setting the umask as we've already explained in + From 016ba17be9c30b1a39718da471619706888dbea7 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 12 Jan 2025 13:20:45 +0800 Subject: [PATCH 074/151] procps: Remove the systemd revision specific workaround The issue is fixed in procps-ng-4.0.5. --- chapter08/procps.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chapter08/procps.xml b/chapter08/procps.xml index 8a4716ade..399d0cec7 100644 --- a/chapter08/procps.xml +++ b/chapter08/procps.xml @@ -67,8 +67,7 @@ Compile the package: -make -make src_w_LDADD='$(LDADD) -lsystemd' +make + + 2025-01-15 + + + [bdubbs] - Update to vim-9.1.1016. Addresses + #4500. + + + [bdubbs] - Update to iana-etc-20250108. Addresses + #5006. + + + [bdubbs] - Update to util-linux-2.40.4. Fixes + #5624. + + + [bdubbs] - Update to sysvinit-3.13. Fixes + #5621. + + + [bdubbs] - Update to sysklogd-2.7.0. Fixes + #5623. + + + [bdubbs] - Update to shadow-4.17.2. Fixes + #5625. + + + [bdubbs] - Update to setuptools-75.8.0. Fixes + #5622. + + + [bdubbs] - Update to linux-6.12.9. Fixes + #5620. + + + [bdubbs] - Update to gettext-0.23.1. Fixes + #5619. + + + + 2025-01-01 @@ -59,7 +101,7 @@ [bdubbs] - Update to texinfo-7.2. Fixes #5616. - + [bdubbs] - Update to sysvinit-3.12. Fixes #5615. diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 90afb8d16..269fd8ab7 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -260,9 +260,9 @@ Udev from Systemd-&systemd-version; - + Vim-&vim-version; diff --git a/chapter08/gettext.xml b/chapter08/gettext.xml index d8fbc8f20..c0829253a 100644 --- a/chapter08/gettext.xml +++ b/chapter08/gettext.xml @@ -42,7 +42,7 @@ Installation of Gettext - + Prepare Gettext for compilation: ./configure --prefix=/usr \ diff --git a/packages.ent b/packages.ent index d5f69deab..6ee85b754 100644 --- a/packages.ent +++ b/packages.ent @@ -245,10 +245,10 @@ - - + + - + @@ -317,10 +317,10 @@ - + - + @@ -431,12 +431,12 @@ - + - + - + - + + - + - + - + - + From 59cc122efa76b6e1ef013b2e853ca95b1806c5fd Mon Sep 17 00:00:00 2001 From: Zeckmathederg Date: Wed, 15 Jan 2025 23:56:42 -0700 Subject: [PATCH 078/151] changelog: Change ticket link to point to the right ticket. --- chapter01/changelog.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 66742354c..13865692e 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -65,7 +65,7 @@ [bdubbs] - Update to shadow-4.17.2. Fixes - #5625. + #5625. [bdubbs] - Update to setuptools-75.8.0. Fixes From 2aaea1389b19c7a05c2443e4014d54ad88745d76 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 18 Jan 2025 21:09:08 -0600 Subject: [PATCH 079/151] Make pip3 commands consistent. --- chapter08/flit-core.xml | 2 +- chapter08/jinja2.xml | 2 +- chapter08/markupsafe.xml | 2 +- chapter08/wheel.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chapter08/flit-core.xml b/chapter08/flit-core.xml index 29194aa63..55be940d4 100644 --- a/chapter08/flit-core.xml +++ b/chapter08/flit-core.xml @@ -46,7 +46,7 @@ Install the package: -pip3 install --no-index --no-user --find-links dist flit_core +pip3 install --no-index --find-links dist flit_core The meaning of the pip3 configuration options and commands: diff --git a/chapter08/jinja2.xml b/chapter08/jinja2.xml index efa50a582..0ddbf5ef5 100644 --- a/chapter08/jinja2.xml +++ b/chapter08/jinja2.xml @@ -46,7 +46,7 @@ Install the package: -pip3 install --no-index --no-user --find-links dist Jinja2 +pip3 install --no-index --find-links dist Jinja2 diff --git a/chapter08/markupsafe.xml b/chapter08/markupsafe.xml index 685b7b520..232cb317b 100644 --- a/chapter08/markupsafe.xml +++ b/chapter08/markupsafe.xml @@ -48,7 +48,7 @@ Install the package: -pip3 install --no-index --no-user --find-links dist Markupsafe +pip3 install --no-index --find-links dist Markupsafe diff --git a/chapter08/wheel.xml b/chapter08/wheel.xml index 605cda1be..41798157b 100644 --- a/chapter08/wheel.xml +++ b/chapter08/wheel.xml @@ -46,7 +46,7 @@ Install Wheel with the following command: -pip3 install --no-index --find-links=dist wheel +pip3 install --no-index --find-links dist wheel From ff4a32ec01eafa53ef4d1f628787afc1b18563ba Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 25 Jan 2025 22:12:05 +0800 Subject: [PATCH 080/151] aboutlfs: Fix umask expect output On a latest LFS system the output is 0022. It seems depending on host shell version. --- chapter02/aboutlfs.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chapter02/aboutlfs.xml b/chapter02/aboutlfs.xml index a04b1c422..4eba82366 100644 --- a/chapter02/aboutlfs.xml +++ b/chapter02/aboutlfs.xml @@ -61,7 +61,9 @@ umask - The output should be 022. + The output may be 0022 or + 022 (the number of leading zeros depends + on the host distro). If any output of these two commands is incorrect, use the command given earlier on this page to set $LFS to the correct From 9eccb6170d9570473b796bb3017435b0fab10228 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 26 Jan 2025 00:55:43 +0800 Subject: [PATCH 081/151] glibc: Unset tz as well as ZONEINFO after installing tzdata --- chapter08/glibc.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 1f12e915a..959c21038 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -496,7 +496,7 @@ done cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO zic -d $ZONEINFO -p America/New_York -unset ZONEINFO +unset ZONEINFO tz The meaning of the zic commands: From b05b2270d3e48fd546eb321f78e3069b8cd64ea7 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 26 Jan 2025 12:13:11 +0800 Subject: [PATCH 082/151] libtool: Remove outdated known failures The test results seem clean in the LFS chroot now. --- chapter08/libtool.xml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/chapter08/libtool.xml b/chapter08/libtool.xml index cb550b5d6..be88fa169 100644 --- a/chapter08/libtool.xml +++ b/chapter08/libtool.xml @@ -52,13 +52,7 @@ To test the results, issue: -make -k check - - Five tests are known to fail in the LFS build environment due - to a circular dependency, but these tests pass if rechecked after - automake has been installed. Additionally, with grep-3.8 or newer, - two tests will trigger a warning for non-POSIX regular expressions and - fail. +make check Install the package: From 50a0916dea503c04dcdb3f7979e14afc568c4917 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 26 Jan 2025 17:30:01 +0800 Subject: [PATCH 083/151] vim: Remove tests requiring curl or vim Since vim-9.1.0859, some tests need curl or wget or they fail. --- chapter08/vim.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chapter08/vim.xml b/chapter08/vim.xml index 2ed5cf238..3da3bc4b6 100644 --- a/chapter08/vim.xml +++ b/chapter08/vim.xml @@ -64,9 +64,11 @@ To prepare the tests, ensure that user tester can write - to the source tree: + to the source tree and exclude one file containing tests requiring + curl or wget: -chown -R tester . +chown -R tester . +sed '/test_glvs/d' -i src/testdir/Make_all.mak Now run the tests as user tester: From ce203670071d5d4ee277f84eb8a4e1934f8def63 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 1 Feb 2025 20:12:49 +0800 Subject: [PATCH 084/151] stages: "Changing Ownership" shouldn't be executed resuming an interrupted build Before we added "--from lfs", it'll break a half-baken LFS system. After we added "--from lfs", it has no effect. --- chapter02/stages.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chapter02/stages.xml b/chapter02/stages.xml index 287aa43f4..f3215035d 100644 --- a/chapter02/stages.xml +++ b/chapter02/stages.xml @@ -68,7 +68,8 @@ - A few operations, from Changing Ownership to + A few operations, from Preparing Virtual Kernel File + Systems to Entering the Chroot Environment, must be done as the root user, with the LFS environment variable set for the &root; user. From aef7c6efd65de51752da917b697caa7ee4d5b825 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 1 Feb 2025 23:48:59 +0800 Subject: [PATCH 085/151] acl: Run the test suite There's only one test failure due to the temporary coreutils, thus I don't think it's a reason strong enough to skip the entire test suite. --- chapter08/acl.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/chapter08/acl.xml b/chapter08/acl.xml index adef493f1..63892d68e 100644 --- a/chapter08/acl.xml +++ b/chapter08/acl.xml @@ -53,10 +53,13 @@ make The Acl tests must be run on a filesystem that supports access - controls, but not until the Coreutils package has been built, - using the Acl libraries. If desired, return to this package - and run make check after the Coreutils - package has been built. + controls. To test the results, issue: + +make check + + One test named test/cp.test is known to + fail because Coreutils is not built with + the Acl support yet. Install the package: From 4f401fb372e0c3bc222e3e6165a5ecf5019c80f2 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 2 Feb 2025 20:02:39 -0600 Subject: [PATCH 086/151] Package updates. Update to vim-9.1.1071. Update to iana-etc-20250123. Update to binutils-2.44.0. Update to coreutils-9.6. Update to e2fsprogs-1.47.2. Update to glibc-2.41. Update to iproute2-6.13.0. Update to libxcrypt-4.4.38. Update to linux-6.13.1. Update to man-pages-6.10. Update to meson-1.7.0. Update to perl-5.40.1. Update to tcl8.6.16. Update to tzdata2025a. Update to xz-5.6.4. --- chapter01/changelog.xml | 66 ++++++++++++++++++++++++++ chapter01/whatsnew.xml | 24 +++++----- chapter03/patches.xml | 4 +- chapter06/binutils-pass2.xml | 2 +- chapter07/createfiles.xml | 4 +- chapter08/binutils.xml | 4 +- chapter08/coreutils.xml | 11 ++++- chapter08/perl.xml | 5 -- chapter08/tcl.xml | 4 +- packages.ent | 90 ++++++++++++++++++------------------ patches.ent | 7 +-- 11 files changed, 146 insertions(+), 75 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 13865692e..68977df08 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,72 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2025-02-02 + + + [bdubbs] - Update to vim-9.1.1071. Addresses + #4500. + + + [bdubbs] - Update to iana-etc-20250123. Addresses + #5006. + + + [bdubbs] - Update to binutils-2.44.0. Fixes + #5634. + + + [bdubbs] - Update to coreutils-9.6. Fixes + #5628. + + + [bdubbs] - Update to e2fsprogs-1.47.2. Fixes + #5637. + + + [bdubbs] - Update to glibc-2.41. Fixes + #5638. + + + [bdubbs] - Update to iproute2-6.13.0. Fixes + #5631. + + + [bdubbs] - Update to libxcrypt-4.4.38. Fixes + #5626. + + + [bdubbs] - Update to linux-6.13.1. Fixes + #5629. + + + [bdubbs] - Update to man-pages-6.10. Fixes + #5632. + + + [bdubbs] - Update to meson-1.7.0. Fixes + #5636. + + + [bdubbs] - Update to perl-5.40.1. Fixes + #5630. + + + [bdubbs] - Update to tcl8.6.16. Fixes + #5635. + + + [bdubbs] - Update to tzdata2025a. Fixes + #5627. + + + [bdubbs] - Update to xz-5.6.4. Fixes + #5633. + + + + 2025-01-15 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 269fd8ab7..0bdf95c70 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -44,9 +44,9 @@ Bc-&bc-version; - + @@ -56,9 +56,9 @@ - + @@ -68,9 +68,9 @@ - + Expat-&expat-version; @@ -101,9 +101,9 @@ Gettext-&gettext-version; - + @@ -182,9 +182,9 @@ Man-DB-&man-db-version; - + MarkupSafe-&markupsafe-version; @@ -209,9 +209,9 @@ - + diff --git a/chapter03/patches.xml b/chapter03/patches.xml index 1956d39f5..dd592f663 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -35,7 +35,7 @@ --> - + Bzip2 Documentation Patch - &bzip2-docs-patch-size;: diff --git a/chapter06/binutils-pass2.xml b/chapter06/binutils-pass2.xml index fb54becb0..a1892a1aa 100644 --- a/chapter06/binutils-pass2.xml +++ b/chapter06/binutils-pass2.xml @@ -55,7 +55,7 @@ produced binaries mistakenly linked against libraries from the host distro. Work around this issue: -sed '6009s/$add_dir//' -i ltmain.sh +sed '6031s/$add_dir//' -i ltmain.sh Create a separate build directory again: diff --git a/chapter07/createfiles.xml b/chapter07/createfiles.xml index 856ef0dbe..8f97c2d3e 100644 --- a/chapter07/createfiles.xml +++ b/chapter07/createfiles.xml @@ -180,11 +180,11 @@ EOF nogroup to avoid an unnamed ID. But other distros may treat this ID differently, so any portable program should not depend on this assignment. - + Some tests in need a regular user. We add this user here and delete this account at the end of that chapter. diff --git a/chapter08/binutils.xml b/chapter08/binutils.xml index 2c28df6f1..6717543da 100644 --- a/chapter08/binutils.xml +++ b/chapter08/binutils.xml @@ -40,13 +40,13 @@ Installation of Binutils - + The Binutils documentation recommends building Binutils in a dedicated build directory: diff --git a/chapter08/coreutils.xml b/chapter08/coreutils.xml index 181153d1d..70eb1e318 100644 --- a/chapter08/coreutils.xml +++ b/chapter08/coreutils.xml @@ -55,7 +55,8 @@ Now prepare Coreutils for compilation: -autoreconf -fiv +autoreconf -fv +automake -af FORCE_UNSAFE_CONFIGURE=1 ./configure \ --prefix=/usr \ --enable-no-install-program=kill,uptime @@ -72,6 +73,14 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \ + + automake + + Work around a problem with an older versions of autotools. + + + + FORCE_UNSAFE_CONFIGURE=1 diff --git a/chapter08/perl.xml b/chapter08/perl.xml index df9489d37..0d2937e05 100644 --- a/chapter08/perl.xml +++ b/chapter08/perl.xml @@ -40,12 +40,7 @@ Installation of Perl - 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/tcl.xml b/chapter08/tcl.xml index 28eac584b..0905af0d4 100644 --- a/chapter08/tcl.xml +++ b/chapter08/tcl.xml @@ -3,8 +3,8 @@ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ %general-entities; - - + + ]> diff --git a/packages.ent b/packages.ent index 6ee85b754..618fdbf01 100644 --- a/packages.ent +++ b/packages.ent @@ -65,10 +65,10 @@ - - + + - + @@ -104,10 +104,10 @@ - - + + - + @@ -140,10 +140,10 @@ - - + + - + @@ -255,10 +255,10 @@ - - + + - + @@ -317,10 +317,10 @@ - + - + @@ -341,10 +341,10 @@ - - + + - + @@ -421,22 +421,22 @@ - + - + - - + + - + - + - + - + @@ -783,10 +783,10 @@ - - + + - + diff --git a/patches.ent b/patches.ent index 0c1b18d0c..c90d38120 100644 --- a/patches.ent +++ b/patches.ent @@ -7,16 +7,17 @@ --> + - - + + From 5112b5ee91ab704f654aa7df923419b51cd54d26 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 4 Feb 2025 13:36:03 +0800 Subject: [PATCH 087/151] glibc: upgrade: Note that "fixed" headers may need to be removed --- chapter08/glibc.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 959c21038..14f0f5a66 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -317,6 +317,15 @@ install -vm755 dest/usr/lib/*.so.* /usr/lib the locales. Once they are finished, reboot the system immediately. + + + When the system has successfully rebooted, if you are running + a LFS system prior to 12.0 (exclusive) where GCC was not built + with the --disable-fixincludes option, + remove the stale fixed copies of the Glibc headers: + + + rm -rfv $(dirname $(gcc -print-libgcc-file-name))/include-fixed/* Install the package: From 40ca48d44fb8794633a466015ab5b34f978bf2c6 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 6 Feb 2025 10:44:28 +0800 Subject: [PATCH 088/151] binutils: Drop stale references to gold I'm surprised --enable-gold doesn't cause an error when the tarball does not contain gold. --- chapter08/binutils.xml | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/chapter08/binutils.xml b/chapter08/binutils.xml index 6717543da..70f6bd026 100644 --- a/chapter08/binutils.xml +++ b/chapter08/binutils.xml @@ -57,7 +57,6 @@ cd build ../configure --prefix=/usr \ --sysconfdir=/etc \ - --enable-gold \ --enable-ld=default \ --enable-plugins \ --enable-shared \ @@ -70,14 +69,6 @@ cd build The meaning of the new configure parameters: - - --enable-gold - - Build the gold linker and install it as ld.gold (alongside the - default linker). - - - --enable-ld=default @@ -142,12 +133,6 @@ cd build grep '^FAIL:' $(find -name '*.log') - Twelve tests fail in the gold test suite when the - and - options are passed to GCC. - - - Install the package: make tooldir=/usr install @@ -167,7 +152,7 @@ cd build Installed directory - addr2line, ar, as, c++filt, dwp, elfedit, gprof, gprofng, ld, ld.bfd, ld.gold, nm, + addr2line, ar, as, c++filt, dwp, elfedit, gprof, gprofng, ld, ld.bfd, nm, objcopy, objdump, ranlib, readelf, size, strings, and strip libbfd.so, libctf.so, libctf-nobfd.so, libgprofng.so, libopcodes.so, and libsframe.so @@ -277,17 +262,6 @@ cd build - - ld.gold - - A cut down version of ld that only supports the - elf object file format - - ld.gold - - - - ld.bfd From 94dc9c26d2ee84c7d81b785d2d9124d630e2ca17 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 8 Feb 2025 08:42:47 +0800 Subject: [PATCH 089/151] Revert "Fix cmds installing python docs (permissions)" This reverts commit dc8572f2413a4d25444bb1237ea2a01dfba60429. The permission issue seems fixed upstream: after I untar the tarball with --no-same-owner --no-same-permissions as root, all files are 644 and all directories are 755 (proven via find -type f -not -perm 644 and find -type d -not -perm 755). --- chapter08/python.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/chapter08/python.xml b/chapter08/python.xml index 75f18945f..ebda61181 100644 --- a/chapter08/python.xml +++ b/chapter08/python.xml @@ -162,21 +162,21 @@ EOF install -v -dm755 /usr/share/doc/python-&python-version;/html -tar --no-same-owner \ - -xvf ../python-&python-version;-docs-html.tar.bz2 -cp -R --no-preserve=mode python-&python-version;-docs-html/* \ - /usr/share/doc/python-&python-version;/html +tar --strip-components=1 \ + --no-same-owner \ + --no-same-permissions \ + -C /usr/share/doc/python-&python-version;/html \ + -xvf ../python-&python-version;-docs-html.tar.bz2 The meaning of the documentation install commands: - (tar) and (cp) + and Ensure the installed files have the correct ownership and permissions. Without these options, tar - will install the package files with the upstream creator's values - and files would have restrictive permissions. + will install the package files with the upstream creator's values. From 3f2235c907b373df5ae9512e1e9ada97443d9427 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 8 Feb 2025 09:17:21 +0800 Subject: [PATCH 090/151] coreutils: Better explain the autoreconf and automake commands --- chapter08/coreutils.xml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/chapter08/coreutils.xml b/chapter08/coreutils.xml index 70eb1e318..1acad31ca 100644 --- a/chapter08/coreutils.xml +++ b/chapter08/coreutils.xml @@ -62,22 +62,28 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \ --enable-no-install-program=kill,uptime - The meaning of the configure options: + The meaning of the commands and configure options: - autoreconf + autoreconf -fv The patch for internationalization has modified the build system, so the configuration files must - be regenerated. + be regenerated. Normally we would use the + -i option to update the standard + auxilary files, but for this package it does not work because + configure.ac specified an old gettext + version. - automake + automake -af - Work around a problem with an older versions of autotools. - + The automake auxilary files were not updated by + autoreconf due to the missing + -i option. This command updates them + to prevent a build failure. From cb1b56efce6ba83f916bcb5da854045f10054ad5 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 8 Feb 2025 09:50:39 +0800 Subject: [PATCH 091/151] coreutils: Remove outdated known failures They seem fixed with 9.6. --- chapter08/coreutils.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/chapter08/coreutils.xml b/chapter08/coreutils.xml index 1acad31ca..dfe6d0da5 100644 --- a/chapter08/coreutils.xml +++ b/chapter08/coreutils.xml @@ -149,12 +149,6 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \ groupdel dummy - - Two tests, tests/cp/preserve-mode.sh and - tests/mv/acl.sh, are known to - fail in the chroot environment, but pass in a complete system. - - Install the package: make install From 611c87328f72d70664664874cbc62b2ffecac8ce Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 10 Feb 2025 18:32:32 +0800 Subject: [PATCH 092/151] glibc: Update total test number for 2.41 release --- chapter08/glibc.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 14f0f5a66..79137416f 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -152,7 +152,7 @@ esac You may see some test failures. The Glibc test suite is somewhat dependent on the host system. A few failures out of - over 5000 tests can generally be ignored. This is a list of the + over 6000 tests can generally be ignored. This is a list of the most common issues seen for recent versions of LFS: From 581ee1a9e887d33fbb813fbb46d0ced30ffebcba Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 10 Feb 2025 21:29:48 +0800 Subject: [PATCH 093/151] ninja: Add --verbose Some user using a slow system complained (off-list) to me that the long no-output period seemed like a hang (esp. combined with the warning about missing re2c). Also explain the "basic functionality test" is already done, so no need to run "./ninja" again for testing. --- chapter08/ninja.xml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/chapter08/ninja.xml b/chapter08/ninja.xml index 5bccea1ea..6850d06a0 100644 --- a/chapter08/ninja.xml +++ b/chapter08/ninja.xml @@ -67,7 +67,7 @@ Build Ninja with: -python3 configure.py --bootstrap +python3 configure.py --bootstrap --verbose The meaning of the build option: @@ -80,10 +80,20 @@ + + --verbose + + This parameter makes configure.py show + the progress building Ninja. + + + The package tests cannot run in the chroot environment. They require - cmake. + cmake. But the basic + function of this package is already tested by rebuilding itself + (with the --bootstrap option) anyway. + + 2025-02-13 + + + [bdubbs] - Update to vim-9.1.1106. Addresses + #4500. + + + [bdubbs] - Update to diffutils-3.11. Fixes + #5639. + + + [bdubbs] - Update to libffi-3.4.7. Fixes + #5642. + + + [bdubbs] - Update to linux-6.13.2. Fixes + #5643. + + + [bdubbs] - Update to Python3-3.13.2. Fixes + #5640. + + + [bdubbs] - Update to sysvinit-3.14. Fixes + #5641. + + + + 2025-02-02 @@ -414,7 +444,7 @@ [bdubbs] - Update to tcl9.0.0. Fixes #5570. - + [bdubbs] - Update to linux-6.11.1. Fixes #5556. diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 0bdf95c70..481d326fd 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -65,9 +65,9 @@ D-Bus-&dbus-version; - + E2fsprogs-&e2fsprogs-version; @@ -155,9 +155,9 @@ Libelf from Elfutils-&elfutils-version; - + Libpipeline-&libpipeline-version; diff --git a/chapter08/binutils.xml b/chapter08/binutils.xml index 70f6bd026..5ea6c1b41 100644 --- a/chapter08/binutils.xml +++ b/chapter08/binutils.xml @@ -40,13 +40,7 @@ Installation of Binutils - The Binutils documentation recommends building Binutils in a dedicated build directory: @@ -137,9 +131,10 @@ cd build make tooldir=/usr install - Remove useless static libraries: + Remove useless static libraries and other files: -rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,gprofng,opcodes,sframe}.a +rm -rfv /usr/lib/lib{bfd,ctf,ctf-nobfd,gprofng,opcodes,sframe}.a \ + /usr/share/doc/gprofng/ diff --git a/chapter08/procps.xml b/chapter08/procps.xml index 8dccfd697..eb7d277dc 100644 --- a/chapter08/procps.xml +++ b/chapter08/procps.xml @@ -91,7 +91,8 @@ su tester -c "PATH=$PATH make check" One test named ps with output flag bsdtime,cputime,etime,etimes is known to fail if the host kernel is not built with - CONFIG_BSD_PROCESS_ACCT enabled. + CONFIG_BSD_PROCESS_ACCT enabled. In + addition, one pgrep test may fail in the chroot environment. Install the package: diff --git a/chapter08/util-linux.xml b/chapter08/util-linux.xml index 648b204b5..8ea9132b9 100644 --- a/chapter08/util-linux.xml +++ b/chapter08/util-linux.xml @@ -128,6 +128,11 @@ su tester -c "make -k check" enabled. + + Two other tests, lsfd: SOURCE column and utmp: last, are known to + fail in the chroot environment. + + Install the package: make install diff --git a/chapter08/vim.xml b/chapter08/vim.xml index 3da3bc4b6..6e018ac41 100644 --- a/chapter08/vim.xml +++ b/chapter08/vim.xml @@ -80,9 +80,11 @@ sed '/test_glvs/d' -i src/testdir/Make_all.mak cause issues with the settings of the current terminal (especially while we are overriding the TERM variable to satisfy some assumptions of the test suite). The problem can be - avoided by redirecting the output to a log file as shown above. A - successful test will result in the words ALL - DONE in the log file at completion. + avoided by redirecting the output to a log file as shown above. + + Four tests related to GetLatestVimScripts are known to fail in + the chroot environment because wget or curl are not available to + download the required test scripts. Install the package: diff --git a/packages.ent b/packages.ent index 618fdbf01..6966b1653 100644 --- a/packages.ent +++ b/packages.ent @@ -18,7 +18,7 @@ - + @@ -35,7 +35,7 @@ - + @@ -52,9 +52,9 @@ - + - + @@ -72,10 +72,10 @@ - + - - + + @@ -83,10 +83,10 @@ - + - + @@ -109,10 +109,10 @@ - + - - + + @@ -130,22 +130,22 @@ - - + + - + - + - - + + - + @@ -153,7 +153,7 @@ - + @@ -161,7 +161,7 @@ - + @@ -177,9 +177,9 @@ - + - + @@ -189,7 +189,7 @@ - + @@ -205,7 +205,7 @@ - + @@ -215,7 +215,7 @@ - + @@ -223,10 +223,10 @@ - + - + @@ -234,7 +234,7 @@ - + @@ -250,19 +250,19 @@ - - - - + + + + - - - + + + @@ -296,7 +296,7 @@ - + @@ -394,13 +394,13 @@ - + - - + + - + @@ -410,7 +410,7 @@ - + @@ -418,8 +418,8 @@ - - + + @@ -431,12 +431,12 @@ - + - + - + - + - + - + - - - - + + + + - - + + @@ -642,7 +642,7 @@ - + @@ -650,7 +650,7 @@ - + @@ -658,7 +658,7 @@ - + @@ -676,15 +676,15 @@ - - + + - + - + - + @@ -695,7 +695,7 @@ - + @@ -707,16 +707,16 @@ - + - + - + @@ -725,14 +725,13 @@ - - - + + @@ -740,15 +739,15 @@ - + - + - + - + - + - - + + - + @@ -788,7 +787,7 @@ - + @@ -810,6 +809,6 @@ - + From df98180f354cd47fe9f56224c1498b4b049fb870 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Wed, 12 Feb 2025 16:36:17 -0600 Subject: [PATCH 096/151] Remove binutils patch on whatsnew. --- chapter01/whatsnew.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 481d326fd..dc748661e 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -295,9 +295,11 @@ Added: + From 4bc4b26d5a6fcd053175d984415ec0cfe673ac72 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Wed, 12 Feb 2025 19:05:22 -0600 Subject: [PATCH 097/151] Restrict tcl currency to version 8 for now. --- 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 397f8732a..f189871eb 100644 --- a/lfs-latest-git.php +++ b/lfs-latest-git.php @@ -232,7 +232,7 @@ if ( $package == "zstd" ) $dirpath = github("facebook/zstd"); } if ( $package == "tcl" ) - return find_max( $lines, "/tcl\d/", "/^.*tcl(\d\.[\d\.]*\d)-src.*$/" ); + return find_max( $lines, "/tcl8/", "/^.*tcl(\d\.[\d\.]*\d)-src.*$/" ); if ( $package == "gmp" ) return find_max( $lines, "/$package/", "/^.*$package-([\d\._]*\d[a-z]?).tar.*$/" ); From dfd69d56e75e460713607ff87fed6764758931e6 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 13 Feb 2025 11:10:49 -0600 Subject: [PATCH 098/151] Speling --- chapter08/coreutils.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter08/coreutils.xml b/chapter08/coreutils.xml index dfe6d0da5..36d428981 100644 --- a/chapter08/coreutils.xml +++ b/chapter08/coreutils.xml @@ -71,7 +71,7 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \ build system, so the configuration files must be regenerated. Normally we would use the -i option to update the standard - auxilary files, but for this package it does not work because + auxiliary files, but for this package it does not work because configure.ac specified an old gettext version. @@ -80,7 +80,7 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \ automake -af - The automake auxilary files were not updated by + The automake auxiliary files were not updated by autoreconf due to the missing -i option. This command updates them to prevent a build failure. From 36f2a2dd532bff818cebfc1f1447a26a9ec95650 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 14 Feb 2025 04:11:11 +0800 Subject: [PATCH 099/151] kernel: Regenerate configuration with Linux 6.13.1 --- chapter10/kernel/kernel.version | 2 +- chapter10/kernel/systemd.xml | 3 ++- chapter10/kernel/sysv.xml | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/chapter10/kernel/kernel.version b/chapter10/kernel/kernel.version index ff61e1868..d7d9d3fbd 100644 --- a/chapter10/kernel/kernel.version +++ b/chapter10/kernel/kernel.version @@ -1 +1 @@ -6.12.1 +6.13.1 diff --git a/chapter10/kernel/systemd.xml b/chapter10/kernel/systemd.xml index 0525fbd0a..d143f0578 100644 --- a/chapter10/kernel/systemd.xml +++ b/chapter10/kernel/systemd.xml @@ -49,7 +49,8 @@ [*] Display a user-friendly message when a kernel panic occurs ... [DRM_PANIC] (kmsg) Panic screen formatter [DRM_PANIC_SCREEN] - [*] Enable legacy fbdev support for your modesetting driver + Supported DRM clients ---> + [*] Enable legacy fbdev support for your modesetting driver ... [DRM_FBDEV_EMULATION] <*> Simple framebuffer driver [DRM_SIMPLEDRM] Console display driver support ---> diff --git a/chapter10/kernel/sysv.xml b/chapter10/kernel/sysv.xml index f90164d65..759c3aa49 100644 --- a/chapter10/kernel/sysv.xml +++ b/chapter10/kernel/sysv.xml @@ -36,7 +36,8 @@ [*] Display a user-friendly message when a kernel panic occurs ... [DRM_PANIC] (kmsg) Panic screen formatter [DRM_PANIC_SCREEN] - [*] Enable legacy fbdev support for your modesetting driver + Supported DRM clients ---> + [*] Enable legacy fbdev support for your modesetting driver ... [DRM_FBDEV_EMULATION] <*> Simple framebuffer driver [DRM_SIMPLEDRM] Console display driver support ---> From 34202ef44adcd00278d7f0f1054573c02291e0f1 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 14 Feb 2025 04:13:13 +0800 Subject: [PATCH 100/151] vim: The tests requiring wget/curl have been removed with sed --- chapter08/vim.xml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/chapter08/vim.xml b/chapter08/vim.xml index 6e018ac41..3da3bc4b6 100644 --- a/chapter08/vim.xml +++ b/chapter08/vim.xml @@ -80,11 +80,9 @@ sed '/test_glvs/d' -i src/testdir/Make_all.mak cause issues with the settings of the current terminal (especially while we are overriding the TERM variable to satisfy some assumptions of the test suite). The problem can be - avoided by redirecting the output to a log file as shown above. - - Four tests related to GetLatestVimScripts are known to fail in - the chroot environment because wget or curl are not available to - download the required test scripts. + avoided by redirecting the output to a log file as shown above. A + successful test will result in the words ALL + DONE in the log file at completion. Install the package: From 5ba41a882b936b8858926cd3b29cb20be0bf1e43 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 14 Feb 2025 21:52:51 +0800 Subject: [PATCH 101/151] glibc: Fix another flaw in update process regarding "fixed" includes --- chapter08/glibc.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 79137416f..c803d0c07 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -322,10 +322,14 @@ install -vm755 dest/usr/lib/*.so.* /usr/lib When the system has successfully rebooted, if you are running a LFS system prior to 12.0 (exclusive) where GCC was not built with the --disable-fixincludes option, + move two GCC headers into a better location and remove the stale fixed copies of the Glibc headers: - rm -rfv $(dirname $(gcc -print-libgcc-file-name))/include-fixed/* + DIR=$(dirname $(gcc -print-libgcc-file-name)) +[ -e $DIR/include/limits.h ] || mv $DIR/include{-fixed,}/limits.h +[ -e $DIR/include/syslimits.h ] || mv $DIR/include{-fixed,}/syslimits.h +rm -rfv $(dirname $(gcc -print-libgcc-file-name))/include-fixed/* Install the package: From 613790d1fa4a7ffdc156b4a4b33288d669e5a7d5 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 16 Feb 2025 17:55:54 +0800 Subject: [PATCH 102/151] vim: Update curl/wget test removal They've renamed the test file at some time point between 9.1.1071 and 9.1.1106. --- chapter08/vim.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/vim.xml b/chapter08/vim.xml index 3da3bc4b6..90d07972a 100644 --- a/chapter08/vim.xml +++ b/chapter08/vim.xml @@ -68,7 +68,7 @@ curl or wget: chown -R tester . -sed '/test_glvs/d' -i src/testdir/Make_all.mak +sed '/test_plugin_glvs/d' -i src/testdir/Make_all.mak Now run the tests as user tester: From 79fccff18f1f24eb2d818edc602ace3e09866b41 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 19 Feb 2025 19:18:52 +0800 Subject: [PATCH 103/151] gen-changelog: Fix HTTP 403 accessing trac Use the new anonymous ticket list URL. --- gen-changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen-changelog.py b/gen-changelog.py index 3bf6bc064..473554045 100755 --- a/gen-changelog.py +++ b/gen-changelog.py @@ -62,7 +62,7 @@ rem = rem.symmetric_difference(upd) ticket = {} security = set() -url = 'https://wiki.linuxfromscratch.org/lfs/report/1?format=tab' +url = 'https://wiki.linuxfromscratch.org/lfs/query?status=!closed&order=priority&format=tab' tsv = urlopen(url) for i in tsv: fields = i.decode().split('\t') From 5616cb8ee9d787f5cbb1941c043f058af7a6d39e Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 19 Feb 2025 19:19:42 +0800 Subject: [PATCH 104/151] Package update - Update to man-pages-6.11 (#5646) - Update to vim-9.1.1122 (#4500) --- chapter01/changelog.xml | 14 ++++++++++++++ chapter08/man-pages.xml | 27 ++++++++++++++++++++++++++- packages.ent | 12 ++++++------ 3 files changed, 46 insertions(+), 7 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 45190d8c9..4d4d9bc0c 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,20 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2025-02-19 + + + [xry111] - Update to vim-9.1.1122 (Security Update). + Addresses #4500. + + + [xry111] - Update to man-pages-6.11. Fixes + #5646. + + + + 2025-02-13 diff --git a/chapter08/man-pages.xml b/chapter08/man-pages.xml index 54029fd2d..6c196c202 100644 --- a/chapter08/man-pages.xml +++ b/chapter08/man-pages.xml @@ -48,7 +48,32 @@ Install Man-pages by running: -make prefix=/usr install +make -R GIT=false prefix=/usr install + + + The meaning of the options: + + + + -R + + This prevents make from setting any + built-in variables. The building system of man-pages does not + work well with built-in variables, but currently there is no way + to disable them except passing -R + explicitly via the command line. + + + + + GIT=false + + This prevents the building system from emitting many + git: command not found + warnings lines. + + + diff --git a/packages.ent b/packages.ent index 6966b1653..4504a8922 100644 --- a/packages.ent +++ b/packages.ent @@ -487,10 +487,10 @@ - - + + - + @@ -744,10 +744,10 @@ - + - + - + From 6f76f192b9b3befed92d66784f78e22116c15fcf Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 19 Feb 2025 23:19:32 +0800 Subject: [PATCH 105/151] gcc: Document tsan failures with some host distros --- chapter08/gcc.xml | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index b3397d8be..f0616e2cd 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -173,26 +173,15 @@ su tester -c "PATH=$PATH make -k check" Results can be compared with those located at and . - + The tsan tests are known to fail on some host distros. - For g++, 21 tests (out of approximately 250,000): 14 - AddressSanitizer* - tests and 7 interception-malloc-test-1.C tests, are - known to fail. - - Additionally, several tests in the - vect directory are known to fail - if the hardware does not support AVX. ---> A few unexpected failures cannot always be avoided. In some cases test failures depend on the specific hardware of the system. From 28a01fdcab66597dd34ebcb2b72c69241e7b30ab Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 19 Feb 2025 23:29:44 +0800 Subject: [PATCH 106/151] systemd: Document test-copy failure (I/O congestion) --- chapter08/systemd.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml index 1e17c60ce..989082419 100644 --- a/chapter08/systemd.xml +++ b/chapter08/systemd.xml @@ -228,7 +228,11 @@ ninja test after initializing the system with systemd. --> One test named systemd:core / test-namespace is known to fail in the LFS chroot environment. Some other tests may - fail because they depend on various kernel configuration options. + fail because they depend on various kernel configuration options. + The test named systemd:test / test-copy may time out + due to an I/O congestion with a large parallel job number, but it + would pass if running alone with + meson test test-copy. Install the package: From 65f0a28feb4e52806551e4b00274300d4f2126ac Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 19 Feb 2025 23:31:55 +0800 Subject: [PATCH 107/151] e2fsprogs: Document test failure with non-ext fs Someone building LFS on btrfs reported this, and I can reproduce. --- chapter08/e2fsprogs.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/chapter08/e2fsprogs.xml b/chapter08/e2fsprogs.xml index d99922610..6f93dc99e 100644 --- a/chapter08/e2fsprogs.xml +++ b/chapter08/e2fsprogs.xml @@ -93,9 +93,12 @@ cd build make check - + One test named m_assume_storage_prezeroed - is known to fail. + is known to fail. Another test named m_rootdir_acl + is known to fail if the file system used for the LFS system is not + ext4. - To test the results (this takes a long time, around 3 SBUs), - issue: + To test the results, issue: make check diff --git a/chapter08/libtool.xml b/chapter08/libtool.xml index be88fa169..872495afd 100644 --- a/chapter08/libtool.xml +++ b/chapter08/libtool.xml @@ -50,7 +50,7 @@ make -To test the results, issue: +To test the results, issue: make check diff --git a/chapter08/perl.xml b/chapter08/perl.xml index 0d2937e05..b678f7f9d 100644 --- a/chapter08/perl.xml +++ b/chapter08/perl.xml @@ -104,7 +104,7 @@ export BUILD_BZIP2=0 make - To test the results (approximately 11 SBU), issue: + To test the results, issue: TEST_JOBS=$(nproc) make test_harness From 2b2e9cddbc2b6fc568f3a0510f0a7b0f01643367 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Mon, 24 Feb 2025 11:52:50 -0600 Subject: [PATCH 110/151] Update to man-pages-6.12. --- chapter01/changelog.xml | 10 ++++++++++ packages.ent | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 4d4d9bc0c..a26b7a679 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,16 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2025-02-24 + + + [bdubbs] - Update to man-pages-6.12. Fixes + #5658. + + + + 2025-02-19 diff --git a/packages.ent b/packages.ent index 4504a8922..74c89e39c 100644 --- a/packages.ent +++ b/packages.ent @@ -487,10 +487,10 @@ - - + + - + From 49b6a5ff00eea142f85d7dffddf3dadbfac4e424 Mon Sep 17 00:00:00 2001 From: Zeckmathederg Date: Mon, 24 Feb 2025 18:07:05 -0700 Subject: [PATCH 111/151] inetutils: Remove extra :. --- chapter08/inetutils.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/inetutils.xml b/chapter08/inetutils.xml index 693c08405..5b4f32b78 100644 --- a/chapter08/inetutils.xml +++ b/chapter08/inetutils.xml @@ -40,7 +40,7 @@ Installation of Inetutils - First, make the package build with gcc-14.1 or later:: + First, make the package build with gcc-14.1 or later: sed -i 's/def HAVE_TERMCAP_TGETENT/ 1/' telnet/telnet.c From d35857c7bb1eef4554bba06fcda5c8f673ec8e2b Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 27 Feb 2025 11:07:22 -0600 Subject: [PATCH 112/151] Package updates and mic fixes. Update to zstd-1.5.7. Update to systemd-257.3. Update to shadow-4.17.3. Update to setuptools-75.8.1. Update to linux-6.13.4. Update to kmod-34. Update to inetutils-2.6. Update to gettext-0.24. Update to flit_core-3.11.0. Remove $LFS/{bin,lib,sbin} from the chown commands This applies to 'Section 4.3. Adding the LFS User' Remove static library in sysklogd Accomplished with adding --disable-static to the configure options. --- chapter01/changelog.xml | 42 ++++++++++++++++++++++++++++ chapter01/whatsnew.xml | 12 ++++---- chapter04/addinguser.xml | 2 +- chapter08/chapter08.xml | 2 +- chapter08/kmod.xml | 53 ++++++++--------------------------- chapter08/sysklogd.xml | 1 + packages.ent | 60 ++++++++++++++++++++-------------------- 7 files changed, 92 insertions(+), 80 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index a26b7a679..f04c6ec74 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,48 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2025-02-27 + + + [bdubbs] - Update to zstd-1.5.7. Fixes + #5652. + + + [bdubbs] - Update to systemd-257.3. Fixes + #5612. + + + [bdubbs] - Update to shadow-4.17.3. Fixes + #5660. + + + [bdubbs] - Update to setuptools-75.8.1. Fixes + #5662. + + + [bdubbs] - Update to linux-6.13.4. Fixes + #5647. + + + [bdubbs] - Update to kmod-34. Fixes + #5657. + + + [bdubbs] - Update to inetutils-2.6. Fixes + #5656. + + + [bdubbs] - Update to gettext-0.24. Fixes + #5661. + + + [bdubbs] - Update to flit_core-3.11.0. Fixes + #5654. + + + + 2025-02-24 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index dc748661e..16f23520d 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -125,9 +125,9 @@ Iana-Etc-&iana-etc-version; - + @@ -140,9 +140,9 @@ Kbd-&kbd-version; - + Less-&less-version; @@ -278,9 +278,9 @@ - + - + - + - + - + - - + + - + @@ -804,10 +804,10 @@ - - + + - + From e9c3828c53b509aada4c61b92df6326a10a7e93f Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 2 Mar 2025 20:18:14 -0600 Subject: [PATCH 113/151] Update to vim-9.1.1166 (Security Update). --- chapter01/changelog.xml | 10 ++++++++++ packages.ent | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index f04c6ec74..d6544eaf8 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,16 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2025-03-02 + + + [bdubbs] - Update to vim-9.1.1166 (Security Update). Fixes + #56566. + + + + 2025-02-27 diff --git a/packages.ent b/packages.ent index eb4de2500..48fff096f 100644 --- a/packages.ent +++ b/packages.ent @@ -744,10 +744,10 @@ - + - + - + From 00d6cce3cd03cf8e836c882fe2a32892315ff049 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Tue, 4 Mar 2025 14:29:02 +0100 Subject: [PATCH 114/151] hangelog: fix ticket # for recent vim update --- chapter01/changelog.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index d6544eaf8..7780b3dc9 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -45,7 +45,7 @@ [bdubbs] - Update to vim-9.1.1166 (Security Update). Fixes - #56566. + #5666. From aa990ecf0a2d6dfc993a3ee9df9c3c6951d514f8 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 4 Mar 2025 12:01:48 -0600 Subject: [PATCH 115/151] Update for LFS-12.3. --- chapter01/changelog.xml | 593 +--------------------------------------- chapter01/whatsnew.xml | 200 +++++++------- 2 files changed, 101 insertions(+), 692 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 7780b3dc9..fe102da7f 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -41,598 +41,7 @@ --> - 2025-03-02 - - - [bdubbs] - Update to vim-9.1.1166 (Security Update). Fixes - #5666. - - - - - - 2025-02-27 - - - [bdubbs] - Update to zstd-1.5.7. Fixes - #5652. - - - [bdubbs] - Update to systemd-257.3. Fixes - #5612. - - - [bdubbs] - Update to shadow-4.17.3. Fixes - #5660. - - - [bdubbs] - Update to setuptools-75.8.1. Fixes - #5662. - - - [bdubbs] - Update to linux-6.13.4. Fixes - #5647. - - - [bdubbs] - Update to kmod-34. Fixes - #5657. - - - [bdubbs] - Update to inetutils-2.6. Fixes - #5656. - - - [bdubbs] - Update to gettext-0.24. Fixes - #5661. - - - [bdubbs] - Update to flit_core-3.11.0. Fixes - #5654. - - - - - - 2025-02-24 - - - [bdubbs] - Update to man-pages-6.12. Fixes - #5658. - - - - - - 2025-02-19 - - - [xry111] - Update to vim-9.1.1122 (Security Update). - Addresses #4500. - - - [xry111] - Update to man-pages-6.11. Fixes - #5646. - - - - - - 2025-02-13 - - - [bdubbs] - Update to vim-9.1.1106. Addresses - #4500. - - - [bdubbs] - Update to diffutils-3.11. Fixes - #5639. - - - [bdubbs] - Update to libffi-3.4.7. Fixes - #5642. - - - [bdubbs] - Update to linux-6.13.2. Fixes - #5643. - - - [bdubbs] - Update to Python3-3.13.2. Fixes - #5640. - - - [bdubbs] - Update to sysvinit-3.14. Fixes - #5641. - - - - - - 2025-02-02 - - - [bdubbs] - Update to vim-9.1.1071. Addresses - #4500. - - - [bdubbs] - Update to iana-etc-20250123. Addresses - #5006. - - - [bdubbs] - Update to binutils-2.44.0. Fixes - #5634. - - - [bdubbs] - Update to coreutils-9.6. Fixes - #5628. - - - [bdubbs] - Update to e2fsprogs-1.47.2. Fixes - #5637. - - - [bdubbs] - Update to glibc-2.41. Fixes - #5638. - - - [bdubbs] - Update to iproute2-6.13.0. Fixes - #5631. - - - [bdubbs] - Update to libxcrypt-4.4.38. Fixes - #5626. - - - [bdubbs] - Update to linux-6.13.1. Fixes - #5629. - - - [bdubbs] - Update to man-pages-6.10. Fixes - #5632. - - - [bdubbs] - Update to meson-1.7.0. Fixes - #5636. - - - [bdubbs] - Update to perl-5.40.1. Fixes - #5630. - - - [bdubbs] - Update to tcl8.6.16. Fixes - #5635. - - - [bdubbs] - Update to tzdata2025a. Fixes - #5627. - - - [bdubbs] - Update to xz-5.6.4. Fixes - #5633. - - - - - - 2025-01-15 - - - [bdubbs] - Update to vim-9.1.1016. Addresses - #4500. - - - [bdubbs] - Update to iana-etc-20250108. Addresses - #5006. - - - [bdubbs] - Update to util-linux-2.40.4. Fixes - #5624. - - - [bdubbs] - Update to sysvinit-3.13. Fixes - #5621. - - - [bdubbs] - Update to sysklogd-2.7.0. Fixes - #5623. - - - [bdubbs] - Update to shadow-4.17.2. Fixes - #5625. - - - [bdubbs] - Update to setuptools-75.8.0. Fixes - #5622. - - - [bdubbs] - Update to linux-6.12.9. Fixes - #5620. - - - [bdubbs] - Update to gettext-0.23.1. Fixes - #5619. - - - - - - 2025-01-01 - - - [renodr] - Update to libxcrypt-4.4.37. Fixes - #5618. - - - [renodr] - Update to dbus-1.16.0. Fixes - #5609. - - - [bdubbs] - Update to iana-etc-20241220. Addresses - #5006. - - - [bdubbs] - Update to texinfo-7.2. Fixes - #5616. - - - [bdubbs] - Update to sysvinit-3.12. Fixes - #5615. - - - [bdubbs] - Update to shadow-4.17.1. Fixes - #5617. - - - [bdubbs] - Update to procps-ng-4.0.5. Fixes - #5611. - - - [bdubbs] - Update to meson-1.6.1. Fixes - #5610. - - - [bdubbs] - Update to linux-6.12.7. Fixes - #5613. - - - [bdubbs] - Update to kbd-2.7.1. Fixes - #5608. - - - [bdubbs] - Update to jinja2-3.1.5 (Security Update). Fixes - #5614. - - - - - - 2024-12-15 - - - [bdubbs] - Update to vim-9.1.0927. Addresses - #4500. - - - [bdubbs] - Update to iana-etc-20241206. Addresses - #5006. - - - [bdubbs] - Update to systemd-257. Fixes - #5559. - - - [bdubbs] - Update to Python-3.13.1 (Security Update). Fixes - #5605. - - - [bdubbs] - Update to libcap-2.73. Fixes - #5604. - - - [bdubbs] - Update to linux-6.12.5. Fixes - #5607. - - - [bdubbs] - Update to kbd-2.7. Fixes - #5608. - - - [bdubbs] - Update to gettext-0.23. Fixes - #5603. - - - - - - 2024-12-01 - - - [bdubbs] - Update to iana-etc-20241122. Addresses - #5006. - - - [bdubbs] - Update to file-5.46. Fixes - #5601. - - - [bdubbs] - Update to iproute2-6.12.0. Fixes - #5597. - - - [bdubbs] - Update to libtool-2.5.4. Fixes - #5598. - - - [bdubbs] - Update to linux-6.12.1. Fixes - #5586. - - - [bdubbs] - Update to setuptools-75.6.0 (Python Module). Fixes - #5599. - - - [bdubbs] - Update to wheel-0.45.1 (Python Module). Fixes - #5600. - - - - - - 2024-11-15 - - - [bdubbs] - Update to vim-9.1.0866. Addresses - #4500. - - - [bdubbs] - Update to iana-etc-20241024. Addresses - #5006. - - - [bdubbs] - Update to wheel-0.45.0 (Python Module). Fixes - #5593. - - - [bdubbs] - Update to setuptools-75.5.0 (Python Module). Fixes - #5595. - - - [bdubbs] - Update to linux-6.11.8. Fixes - #5582. - - - [bdubbs] - Update to libcap-2.72. Fixes - #5594. - - - - - - 2024-11-08 - - - [bdubbs] - Added binutils-2.43.1-upstream_fix-1.patch. Fixes - #5591. - - - [bdubbs] - Update to flit_core-3.10.1. Fixes - #5589. - - - [bdubbs] - Update to expat-2.6.4. Fixes - #5590. - - - - - - 2024-10-25 - - - [bdubbs] - Update to linux-6.11.6. Fixes - #5588. - - - [bdubbs] - Update to libcap-2.71. Fixes - #5584. - - - [bdubbs] - Update to setuptools-75.3.0. Fixes - #5585. - - - [bdubbs] - Update to flit_core-3.10.0. Fixes - #5587. - - - - - - 2024-10-25 - - - [bdubbs] - Update to iana-etc-20241015. Addresses - #5006. - - - [bdubbs] - Update to vim-9.1.0813. Addresses - #4500. - - - [bdubbs] - Update to xz-5.6.3. Fixes - #5572. - - - [bdubbs] - Update to sysvinit-3.11. Fixes - #5581. - - - [bdubbs] - Update to setuptools-75.2.0. Fixes - #5577. - - - [bdubbs] - Update to Python3-3.13.0. Fixes - #5575. - - - [bdubbs] - Update to openssl-3.4.0. Fixes - #5582. - - - [bdubbs] - Update to meson-1.6.0. Fixes - #5580. - - - [bdubbs] - Update to markupsafe-3.0.2. Fixes - #5576. - - - [bdubbs] - Update to linux-6.11.5. Fixes - #5574. - - - [bdubbs] - Update to less-668. Fixes - #5578. - - - [bdubbs] - Update to elfutils-0.192. Fixes - #5579. - - - - - - 2024-10-03 - - - [bdubbs] - Revert back to tcl8.6.15. - - - - - - 2024-10-01 - - - [bdubbs] - Update to Python3-3.12.7. Fixes - #5571. - - - [bdubbs] - Update to tcl9.0.0. Fixes - #5570. - - - [bdubbs] - Update to linux-6.11.1. Fixes - #5556. - - - [bdubbs] - Update to libtool-2.5.3. Fixes - #5569. - - - [bdubbs] - Update to iproute2-6.11.0. Fixes - #5561. - - - [bdubbs] - Update to bash-5.2.37. Fixes - #5567. - - - [bdubbs] - Update to bc-7.0.3. Fixes - #5568. - - - - - - 2024-09-20 - - - [bdubbs] - Update to vim-9.1.0738. Addresses - #4500. - - - [bdubbs] - Update to texinfo-7.1.1. Fixes - #5558. - - - [bdubbs] - Update to tcl8.6.15. Fixes - #5562. - - - [bdubbs] - Update to sysklogd-2.6.2. Fixes - #5557. - - - [bdubbs] - Update to setuptools-75.1.0. Fixes - #5560. - - - [bdubbs] - Update to meson-1.5.2. Fixes - #5566. - - - [bdubbs] - Update to iana-etc-20240912. Addresses - #5006. - - - [bdubbs] - Update to gawk-5.3.1. Fixes - #5564. - - - [bdubbs] - Update to bc-7.0.2. Fixes - #5563. - - - - - - 2024-09-07 - - - [bdubbs] - Update to tzdata-2024b. Fixes - #5554. - - - [bdubbs] - Update to systemd-256.5. Fixes - #5551. - - - [bdubbs] - Update to setuptools-74.1.2. Fixes - #5546. - - - [bdubbs] - Update to python3-3.12.6. Fixes - #5555. - - - [bdubbs] - Update to openssl-3.3.2. Fixes - #5552. - - - [bdubbs] - Update to man-db-2.13.0. Fixes - #5550. - - - [bdubbs] - Update to linux-6.10.8. Fixes - #5545. - - - [bdubbs] - Update to libpipeline-1.5.8. Fixes - #5548. - - - [bdubbs] - Update to expat-2.6.3. Fixes - #5553. - - - [bdubbs] - Update to bc-7.0.1. Fixes - #5547. - - - - - - 2024-09-01 + 2025-03-05 [bdubbs] - LFS-12.2 released. diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 16f23520d..4eea31a74 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -23,9 +23,9 @@ Upgraded to: - + @@ -38,15 +38,15 @@ - + + + @@ -56,54 +56,54 @@ - + - + + + + - + - + + - + + @@ -122,54 +122,54 @@ - + + - + + + + + - + + + + + + + @@ -179,18 +179,18 @@ - + + + + @@ -203,84 +203,84 @@ - + - + - + - + - + + + + + - + + + + + + + - + - + - 2025-03-05 + 2025-03-02 + + + [bdubbs] - Update to vim-9.1.1166 (Security Update). Fixes + #5666. + + + + + + 2025-02-27 + + + [bdubbs] - Update to zstd-1.5.7. Fixes + #5652. + + + [bdubbs] - Update to systemd-257.3. Fixes + #5612. + + + [bdubbs] - Update to shadow-4.17.3. Fixes + #5660. + + + [bdubbs] - Update to setuptools-75.8.1. Fixes + #5662. + + + [bdubbs] - Update to linux-6.13.4. Fixes + #5647. + + + [bdubbs] - Update to kmod-34. Fixes + #5657. + + + [bdubbs] - Update to inetutils-2.6. Fixes + #5656. + + + [bdubbs] - Update to gettext-0.24. Fixes + #5661. + + + [bdubbs] - Update to flit_core-3.11.0. Fixes + #5654. + + + + + + 2025-02-24 + + + [bdubbs] - Update to man-pages-6.12. Fixes + #5658. + + + + + + 2025-02-19 + + + [xry111] - Update to vim-9.1.1122 (Security Update). + Addresses #4500. + + + [xry111] - Update to man-pages-6.11. Fixes + #5646. + + + + + + 2025-02-13 + + + [bdubbs] - Update to vim-9.1.1106. Addresses + #4500. + + + [bdubbs] - Update to diffutils-3.11. Fixes + #5639. + + + [bdubbs] - Update to libffi-3.4.7. Fixes + #5642. + + + [bdubbs] - Update to linux-6.13.2. Fixes + #5643. + + + [bdubbs] - Update to Python3-3.13.2. Fixes + #5640. + + + [bdubbs] - Update to sysvinit-3.14. Fixes + #5641. + + + + + + 2025-02-02 + + + [bdubbs] - Update to vim-9.1.1071. Addresses + #4500. + + + [bdubbs] - Update to iana-etc-20250123. Addresses + #5006. + + + [bdubbs] - Update to binutils-2.44.0. Fixes + #5634. + + + [bdubbs] - Update to coreutils-9.6. Fixes + #5628. + + + [bdubbs] - Update to e2fsprogs-1.47.2. Fixes + #5637. + + + [bdubbs] - Update to glibc-2.41. Fixes + #5638. + + + [bdubbs] - Update to iproute2-6.13.0. Fixes + #5631. + + + [bdubbs] - Update to libxcrypt-4.4.38. Fixes + #5626. + + + [bdubbs] - Update to linux-6.13.1. Fixes + #5629. + + + [bdubbs] - Update to man-pages-6.10. Fixes + #5632. + + + [bdubbs] - Update to meson-1.7.0. Fixes + #5636. + + + [bdubbs] - Update to perl-5.40.1. Fixes + #5630. + + + [bdubbs] - Update to tcl8.6.16. Fixes + #5635. + + + [bdubbs] - Update to tzdata2025a. Fixes + #5627. + + + [bdubbs] - Update to xz-5.6.4. Fixes + #5633. + + + + + + 2025-01-15 + + + [bdubbs] - Update to vim-9.1.1016. Addresses + #4500. + + + [bdubbs] - Update to iana-etc-20250108. Addresses + #5006. + + + [bdubbs] - Update to util-linux-2.40.4. Fixes + #5624. + + + [bdubbs] - Update to sysvinit-3.13. Fixes + #5621. + + + [bdubbs] - Update to sysklogd-2.7.0. Fixes + #5623. + + + [bdubbs] - Update to shadow-4.17.2. Fixes + #5625. + + + [bdubbs] - Update to setuptools-75.8.0. Fixes + #5622. + + + [bdubbs] - Update to linux-6.12.9. Fixes + #5620. + + + [bdubbs] - Update to gettext-0.23.1. Fixes + #5619. + + + + + + 2025-01-01 + + + [renodr] - Update to libxcrypt-4.4.37. Fixes + #5618. + + + [renodr] - Update to dbus-1.16.0. Fixes + #5609. + + + [bdubbs] - Update to iana-etc-20241220. Addresses + #5006. + + + [bdubbs] - Update to texinfo-7.2. Fixes + #5616. + + + [bdubbs] - Update to sysvinit-3.12. Fixes + #5615. + + + [bdubbs] - Update to shadow-4.17.1. Fixes + #5617. + + + [bdubbs] - Update to procps-ng-4.0.5. Fixes + #5611. + + + [bdubbs] - Update to meson-1.6.1. Fixes + #5610. + + + [bdubbs] - Update to linux-6.12.7. Fixes + #5613. + + + [bdubbs] - Update to kbd-2.7.1. Fixes + #5608. + + + [bdubbs] - Update to jinja2-3.1.5 (Security Update). Fixes + #5614. + + + + + + 2024-12-15 + + + [bdubbs] - Update to vim-9.1.0927. Addresses + #4500. + + + [bdubbs] - Update to iana-etc-20241206. Addresses + #5006. + + + [bdubbs] - Update to systemd-257. Fixes + #5559. + + + [bdubbs] - Update to Python-3.13.1 (Security Update). Fixes + #5605. + + + [bdubbs] - Update to libcap-2.73. Fixes + #5604. + + + [bdubbs] - Update to linux-6.12.5. Fixes + #5607. + + + [bdubbs] - Update to kbd-2.7. Fixes + #5608. + + + [bdubbs] - Update to gettext-0.23. Fixes + #5603. + + + + + + 2024-12-01 + + + [bdubbs] - Update to iana-etc-20241122. Addresses + #5006. + + + [bdubbs] - Update to file-5.46. Fixes + #5601. + + + [bdubbs] - Update to iproute2-6.12.0. Fixes + #5597. + + + [bdubbs] - Update to libtool-2.5.4. Fixes + #5598. + + + [bdubbs] - Update to linux-6.12.1. Fixes + #5586. + + + [bdubbs] - Update to setuptools-75.6.0 (Python Module). Fixes + #5599. + + + [bdubbs] - Update to wheel-0.45.1 (Python Module). Fixes + #5600. + + + + + + 2024-11-15 + + + [bdubbs] - Update to vim-9.1.0866. Addresses + #4500. + + + [bdubbs] - Update to iana-etc-20241024. Addresses + #5006. + + + [bdubbs] - Update to wheel-0.45.0 (Python Module). Fixes + #5593. + + + [bdubbs] - Update to setuptools-75.5.0 (Python Module). Fixes + #5595. + + + [bdubbs] - Update to linux-6.11.8. Fixes + #5582. + + + [bdubbs] - Update to libcap-2.72. Fixes + #5594. + + + + + + 2024-11-08 + + + [bdubbs] - Added binutils-2.43.1-upstream_fix-1.patch. Fixes + #5591. + + + [bdubbs] - Update to flit_core-3.10.1. Fixes + #5589. + + + [bdubbs] - Update to expat-2.6.4. Fixes + #5590. + + + + + + 2024-10-25 + + + [bdubbs] - Update to linux-6.11.6. Fixes + #5588. + + + [bdubbs] - Update to libcap-2.71. Fixes + #5584. + + + [bdubbs] - Update to setuptools-75.3.0. Fixes + #5585. + + + [bdubbs] - Update to flit_core-3.10.0. Fixes + #5587. + + + + + + 2024-10-25 + + + [bdubbs] - Update to iana-etc-20241015. Addresses + #5006. + + + [bdubbs] - Update to vim-9.1.0813. Addresses + #4500. + + + [bdubbs] - Update to xz-5.6.3. Fixes + #5572. + + + [bdubbs] - Update to sysvinit-3.11. Fixes + #5581. + + + [bdubbs] - Update to setuptools-75.2.0. Fixes + #5577. + + + [bdubbs] - Update to Python3-3.13.0. Fixes + #5575. + + + [bdubbs] - Update to openssl-3.4.0. Fixes + #5582. + + + [bdubbs] - Update to meson-1.6.0. Fixes + #5580. + + + [bdubbs] - Update to markupsafe-3.0.2. Fixes + #5576. + + + [bdubbs] - Update to linux-6.11.5. Fixes + #5574. + + + [bdubbs] - Update to less-668. Fixes + #5578. + + + [bdubbs] - Update to elfutils-0.192. Fixes + #5579. + + + + + + 2024-10-03 + + + [bdubbs] - Revert back to tcl8.6.15. + + + + + + 2024-10-01 + + + [bdubbs] - Update to Python3-3.12.7. Fixes + #5571. + + + [bdubbs] - Update to tcl9.0.0. Fixes + #5570. + + + [bdubbs] - Update to linux-6.11.1. Fixes + #5556. + + + [bdubbs] - Update to libtool-2.5.3. Fixes + #5569. + + + [bdubbs] - Update to iproute2-6.11.0. Fixes + #5561. + + + [bdubbs] - Update to bash-5.2.37. Fixes + #5567. + + + [bdubbs] - Update to bc-7.0.3. Fixes + #5568. + + + + + + 2024-09-20 + + + [bdubbs] - Update to vim-9.1.0738. Addresses + #4500. + + + [bdubbs] - Update to texinfo-7.1.1. Fixes + #5558. + + + [bdubbs] - Update to tcl8.6.15. Fixes + #5562. + + + [bdubbs] - Update to sysklogd-2.6.2. Fixes + #5557. + + + [bdubbs] - Update to setuptools-75.1.0. Fixes + #5560. + + + [bdubbs] - Update to meson-1.5.2. Fixes + #5566. + + + [bdubbs] - Update to iana-etc-20240912. Addresses + #5006. + + + [bdubbs] - Update to gawk-5.3.1. Fixes + #5564. + + + [bdubbs] - Update to bc-7.0.2. Fixes + #5563. + + + + + + 2024-09-07 + + + [bdubbs] - Update to tzdata-2024b. Fixes + #5554. + + + [bdubbs] - Update to systemd-256.5. Fixes + #5551. + + + [bdubbs] - Update to setuptools-74.1.2. Fixes + #5546. + + + [bdubbs] - Update to python3-3.12.6. Fixes + #5555. + + + [bdubbs] - Update to openssl-3.3.2. Fixes + #5552. + + + [bdubbs] - Update to man-db-2.13.0. Fixes + #5550. + + + [bdubbs] - Update to linux-6.10.8. Fixes + #5545. + + + [bdubbs] - Update to libpipeline-1.5.8. Fixes + #5548. + + + [bdubbs] - Update to expat-2.6.3. Fixes + #5553. + + + [bdubbs] - Update to bc-7.0.1. Fixes + #5547. + + + + + + 2024-09-01 [bdubbs] - LFS-12.2 released. diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 4eea31a74..16f23520d 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -23,9 +23,9 @@ Upgraded to: - + @@ -38,15 +38,15 @@ - - - + @@ -56,54 +56,54 @@ - + - - - - + - + - - + - - + @@ -122,54 +122,54 @@ - - + - - - - - + - - - - - - - + @@ -179,18 +179,18 @@ - - - - + @@ -203,84 +203,84 @@ - + - + - + - + - - - - - + - - - - - - - + - + - + - + @@ -38,15 +38,15 @@ - + + + @@ -56,54 +56,54 @@ - + - + + + + - + - + + - + + @@ -122,54 +122,54 @@ - + + - + + + + + - + + + + + + + @@ -179,18 +179,18 @@ - + + + + @@ -203,84 +203,84 @@ - + - + - + - + - + + + + + - + + + + + + + - + - + - 2025-03-02 + 2025-03-05 - [bdubbs] - Update to vim-9.1.1166 (Security Update). Fixes - #5666. + [bdubbs] - LFS-12.3 released. diff --git a/chapter10/fstab.xml b/chapter10/fstab.xml index ad835be30..8eb314b87 100644 --- a/chapter10/fstab.xml +++ b/chapter10/fstab.xml @@ -108,6 +108,8 @@ EOF Default iocharset for FAT (). There is no way to specify these settings for the ntfs filesystem at kernel compilation time. + diff --git a/general.ent b/general.ent index b3bce5ae8..09c98f613 100644 --- a/general.ent +++ b/general.ent @@ -7,9 +7,9 @@ - - - + + + From ed2611fa6fec142b9c4a87dd7b21b8a3b28a877b Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 6 Mar 2025 12:55:07 +0800 Subject: [PATCH 119/151] glibc: Remove ja_JP.SJIS (#5669) --- chapter08/glibc.xml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index c803d0c07..a04bc8ac3 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -393,7 +393,6 @@ localedef -i it_IT -f ISO-8859-1 it_IT localedef -i it_IT -f ISO-8859-15 it_IT@euro localedef -i it_IT -f UTF-8 it_IT.UTF-8 localedef -i ja_JP -f EUC-JP ja_JP -localedef -i ja_JP -f SHIFT_JIS ja_JP.SJIS 2> /dev/null || true localedef -i ja_JP -f UTF-8 ja_JP.UTF-8 localedef -i nl_NL@euro -f ISO-8859-15 nl_NL@euro localedef -i ru_RU -f KOI8-R ru_RU.KOI8-R @@ -415,15 +414,6 @@ localedef -i zh_TW -f UTF-8 zh_TW.UTF-8 make localedata/install-locales - Then use the localedef command to create and - install locales not listed in the - glibc-&glibc-version;/localedata/SUPPORTED file - when you need them. For instance, the following two locales are - needed for some tests later in this chapter: - -localedef -i C -f UTF-8 C.UTF-8 -localedef -i ja_JP -f SHIFT_JIS ja_JP.SJIS 2> /dev/null || true - Glibc now uses libidn2 when resolving internationalized domain names. This is a run time dependency. If this capability is needed, the instructions for installing libidn2 are in the From a2bf74a9b5ec941a61974490ae40e247f2db2e58 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 9 Mar 2025 13:08:32 +0800 Subject: [PATCH 120/151] More info about "deploying LFS" --- chapter08/libffi.xml | 7 +++++-- chapter08/pkgmgt.xml | 12 +++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/chapter08/libffi.xml b/chapter08/libffi.xml index 40af81288..f15d08b07 100644 --- a/chapter08/libffi.xml +++ b/chapter08/libffi.xml @@ -51,11 +51,14 @@ Like GMP, Libffi builds with optimizations specific to the processor in use. If building for another system, change the value of the --with-gcc-arch= parameter in the - following command to an architecture name fully implemented by the + following command to an architecture name fully implemented by + both the host CPU and the CPU on that system. If this is not done, all applications that link to libffi will trigger - Illegal Operation Errors. + Illegal Operation Errors. If you cannot figure out a value + safe for both the CPUs, replace the parameter with + to produce a generic library. Prepare Libffi for compilation: diff --git a/chapter08/pkgmgt.xml b/chapter08/pkgmgt.xml index 10ec5d199..7cda95755 100644 --- a/chapter08/pkgmgt.xml +++ b/chapter08/pkgmgt.xml @@ -370,11 +370,13 @@ make DESTDIR=/usr/pkg/libfoo/1.1 install differences in system hardware and the original kernel configuration. - There have been some reports of issues when copying between - similar but not identical architectures. For instance, the instruction set - for an Intel system is not identical with the AMD processor's instructions, and later - versions of some processors may provide instructions that are unavailable with - earlier versions. + If you want to deploy the LFS system onto a system + with a different CPU, when you build and + you must follow the notes about + overriding the architecture-specific optimization to produce libraries + suitable for both the host system and the system(s) where you'll deploy + the LFS system. Otherwise you'll get Illegal + Instruction errors running LFS. Finally, the new system has to be made bootable via . From e2789b4c66f9e762fb826e6abc24d68e6c2086bb Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Tue, 11 Mar 2025 15:45:14 +0100 Subject: [PATCH 121/151] stylesheets: fix generation of footnotes There was two problems: - the sect1 template did not process the footnote - footnote processing needed to use a template matching footnote/para[1], but we had a template matching para at a higher precendence level. So: - call process.footnotes at the end of the sect1 template - Add a templates matching footnote/para[1] at the same import level as the template matching para (this just call the original template) We also add a priority 1 to the sect1 template in chunk-code.xsl, although it is not strictly necessary. This is what upstream recommends... --- stylesheets/lfs-xsl/chunk-master.xsl | 8 ++++++-- stylesheets/lfs-xsl/xhtml/lfs-mixed.xsl | 10 ++++++++++ stylesheets/lfs-xsl/xhtml/lfs-sections.xsl | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/stylesheets/lfs-xsl/chunk-master.xsl b/stylesheets/lfs-xsl/chunk-master.xsl index 029332162..b353e75ca 100644 --- a/stylesheets/lfs-xsl/chunk-master.xsl +++ b/stylesheets/lfs-xsl/chunk-master.xsl @@ -27,8 +27,12 @@ Prevent creation of dummy sect1 files used to emulate sub-chapters. The original template is in {docbook-xsl}/xhtml/chunk-code.xsl It also matches other sect* tags. The code for those tags are - unchanged. --> - + unchanged. Note that the priority attribute is not strictly + required, because the original template is less restrictive in + matching, so has less precedence. But in case the docbook dev + add a match="sect1" template in their chunk-code.xsl, then it will + be necessary!--> + diff --git a/stylesheets/lfs-xsl/xhtml/lfs-mixed.xsl b/stylesheets/lfs-xsl/xhtml/lfs-mixed.xsl index 59859c12e..d33cd4f12 100644 --- a/stylesheets/lfs-xsl/xhtml/lfs-mixed.xsl +++ b/stylesheets/lfs-xsl/xhtml/lfs-mixed.xsl @@ -43,6 +43,16 @@ + + + + + + diff --git a/stylesheets/lfs-xsl/xhtml/lfs-sections.xsl b/stylesheets/lfs-xsl/xhtml/lfs-sections.xsl index b13e5e11b..0ecfaa4f6 100644 --- a/stylesheets/lfs-xsl/xhtml/lfs-sections.xsl +++ b/stylesheets/lfs-xsl/xhtml/lfs-sections.xsl @@ -166,7 +166,7 @@ - + From 42eaacedbc6ab598b0e4b1a86650f630e64195a7 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 12 Mar 2025 20:55:50 +0800 Subject: [PATCH 122/151] pkgmgmt: Add the definition of "library name" as a footnote --- chapter08/pkgmgt.xml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/chapter08/pkgmgt.xml b/chapter08/pkgmgt.xml index 7cda95755..3640b519d 100644 --- a/chapter08/pkgmgt.xml +++ b/chapter08/pkgmgt.xml @@ -69,10 +69,25 @@ If a package containing a shared library is updated, and - if the name of the library changes, then any packages dynamically + if the name of the libraryThe name of a shared library is + the string coded in the DT_SONAME entry of its + ELF dynamic section. You can get it with the + readelf -d <library file> + | grep SONAME command. In most cases it's suffixed with + .so.<a version + number>, but there are some cases where + it contains multiple numbers for versioning (like + libbz2.so.1.0), contains the version number + before the .so suffix (like + libbfd-&binutils-version;), or does not contain + any version number at all (for example + libmemusage.so). + Generally there is no correlation between the package version and the + version number(s) in the library name. + changes, then any packages dynamically linked to the library must be recompiled, to link against the - newer library. (Note that there is no correlation between the package - version and the name of the library.) For example, consider a package + newer library. + For example, consider a package foo-1.2.3 that installs a shared library with the name libfoo.so.1. Suppose you upgrade the package to a newer version foo-1.2.4 that installs a shared library with the name From 461741b243906ffc0140fe07971cc9345c87337b Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 14 Mar 2025 15:53:55 -0500 Subject: [PATCH 123/151] Update packages for mid-March 2025. Update to vim-9.1.1202. Update to iana-etc-20250304. Update to sysklogd-2.7.1. Update to setuptools-76.0.0. Update to pkgconf-2.4.3. Update to man-pages-6.13. Update to linux-6.13.7. Update to libcap-2.75. Update to kmod-34.1. Update to jinja2-3.1.6. Update to expat-2.7.0. Update to dbus-1.16.2. --- chapter01/changelog.xml | 54 ++++++++++++++++++++++++++++++++ chapter01/whatsnew.xml | 48 ++++++++++++++--------------- packages.ent | 68 ++++++++++++++++++++--------------------- 3 files changed, 112 insertions(+), 58 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index a9b74d0dc..ebd5fb27e 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,60 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2025-03-15 + + + [bdubbs] - Update to vim-9.1.1202. Addresses + #4500. + + + [bdubbs] - Update to iana-etc-20250304. Addresses + #5006. + + + [bdubbs] - Update to sysklogd-2.7.1. Fixes + #5668. + + + [bdubbs] - Update to setuptools-76.0.0. Fixes + #5665. + + + [bdubbs] - Update to pkgconf-2.4.3. Fixes + #5672. + + + [bdubbs] - Update to man-pages-6.13. Fixes + #5673. + + + [bdubbs] - Update to linux-6.13.7. Fixes + #5664. + + + [bdubbs] - Update to libcap-2.75. Fixes + #5667. + + + [bdubbs] - Update to kmod-34.1. Fixes + #5671. + + + [bdubbs] - Update to jinja2-3.1.6. Fixes + #5670. + + + [bdubbs] - Update to expat-2.7.0. Fixes + #5675. + + + [bdubbs] - Update to dbus-1.16.2. Fixes + #5663. + + + + 2025-03-05 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 5e2092d84..ef204b334 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -62,18 +62,18 @@ - + - + @@ -122,9 +122,9 @@ - + @@ -134,24 +134,24 @@ - + - + - + @@ -167,9 +167,9 @@ - + @@ -182,9 +182,9 @@ - + @@ -212,9 +212,9 @@ - + @@ -230,15 +230,15 @@ - + - + @@ -263,9 +263,9 @@ - + diff --git a/packages.ent b/packages.ent index 48fff096f..97867ab5d 100644 --- a/packages.ent +++ b/packages.ent @@ -114,10 +114,10 @@ - - + + - + @@ -156,10 +156,10 @@ - - + + - + @@ -317,10 +317,10 @@ - + - + @@ -349,10 +349,10 @@ - - + + - + @@ -365,10 +365,10 @@ - + - + @@ -389,10 +389,10 @@ - - + + - + @@ -431,12 +431,12 @@ - + - + - + - + - + From a4b4001f03dfa961ac882d399ed44bd603e40ea6 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 15 Mar 2025 21:50:05 +0800 Subject: [PATCH 124/151] changelog: Add revision attributes for sysklogd and dbus --- chapter01/changelog.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index ebd5fb27e..8e1f81ddf 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -51,7 +51,7 @@ [bdubbs] - Update to iana-etc-20250304. Addresses #5006. - + [bdubbs] - Update to sysklogd-2.7.1. Fixes #5668. @@ -87,7 +87,7 @@ [bdubbs] - Update to expat-2.7.0. Fixes #5675. - + [bdubbs] - Update to dbus-1.16.2. Fixes #5663. From 7cd3a3fec1d45a46bd92f3485d23d1b777f0887a Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 15 Mar 2025 08:19:35 +0100 Subject: [PATCH 125/151] Fix displaying note numbers also in pdf --- stylesheets/lfs-xsl/pdf/lfs-mixed.xsl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/stylesheets/lfs-xsl/pdf/lfs-mixed.xsl b/stylesheets/lfs-xsl/pdf/lfs-mixed.xsl index 834b7057c..8f5576d9f 100644 --- a/stylesheets/lfs-xsl/pdf/lfs-mixed.xsl +++ b/stylesheets/lfs-xsl/pdf/lfs-mixed.xsl @@ -80,6 +80,16 @@ + + + + + + + 2025-04-01 + + + [bdubbs] - Update to vim-9.1.1263. Addresses + #4500. + + + [bdubbs] - Update to iana-etc-20250328. Addresses + #5006. + + + [bdubbs] - Update to xz-5.8.0. Fixes + #5684. + + + [bdubbs] - Update to util-linux-2.41. Fixes + #5648. + + + [bdubbs] - Update to tzdata-2025b. Fixes + #5681. + + + [bdubbs] - Update to shadow-4.17.4. Fixes + #5678. + + + [bdubbs] - Update to setuptools-78.1.0. Fixes + #5676. + + + [bdubbs] - Update to patch-2.8. Fixes + #5689. + + + [bdubbs] - Update to mpfr-4.2.2. Fixes + #5677. + + + [bdubbs] - Update to kmod-34.2. Fixes + #5688. + + + [bdubbs] - Update to gdbm-1.25. Fixes + #5679. + + + [bdubbs] - Update to flit_core-3.12.0. Fixes + #5683. + + + [bdubbs] - Update to expat-2.7.1. Fixes + #5685. + + + 2025-03-15 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index ef204b334..3e3591edb 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -86,18 +86,18 @@ - + - + @@ -194,9 +194,9 @@ - + @@ -206,9 +206,9 @@ - + @@ -233,9 +233,9 @@ Setuptools-&setuptools-version; - + Sysklogd-&sysklogd-version; @@ -254,15 +254,15 @@ - + - + Vim-&vim-version; @@ -272,9 +272,9 @@ - + diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index 763f55ced..1cc918234 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -223,7 +223,7 @@ su tester -c "PATH=$PATH make -k check" that compiling and linking will work as expected. We do this by performing some sanity checks: -echo 'int main(){}' | cc dummy.c -x c - -v -Wl,--verbose &> dummy.log +echo 'int main(){}' | cc -x c - -v -Wl,--verbose &> dummy.log readelf -l a.out | grep ': /lib' There should be no errors, diff --git a/packages.ent b/packages.ent index 97867ab5d..cd692a8c8 100644 --- a/packages.ent +++ b/packages.ent @@ -61,7 +61,7 @@ - + @@ -156,10 +156,10 @@ - - + + - + @@ -200,10 +200,10 @@ - - + + - + @@ -237,10 +237,10 @@ - - + + - + @@ -317,10 +317,10 @@ - - + + - + @@ -365,10 +365,10 @@ - - + + - + @@ -519,10 +519,10 @@ - - + + - + @@ -553,10 +553,10 @@ - - + + - + @@ -637,18 +637,18 @@ - - + + - + - - + + - + @@ -719,10 +719,10 @@ - - + + - + @@ -733,21 +733,21 @@ - - - + + + - + - + - + - + @@ -782,10 +782,10 @@ - - + + - + From d116c1bdb0c8e2fa18245dbe1adc8df2e0d1b27a Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 2 Apr 2025 17:55:34 +0800 Subject: [PATCH 134/151] whatsnew: Align flit-core entry with the package page title --- chapter01/whatsnew.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 3e3591edb..7610363a6 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -87,7 +87,7 @@ Flex-&flex-version; --> - Flit-core-&flit-core-version; + Flit-Core-&flit-core-version; - + From 7ea7a3b3d32750e8beb52d6fa7cc36d6cd7457f6 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 8 Apr 2025 12:50:25 -0500 Subject: [PATCH 137/151] Change expat url and fix a grammar issue. --- packages.ent | 2 +- part3intro/toolchaintechnotes.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages.ent b/packages.ent index cd692a8c8..5dbbfed1a 100644 --- a/packages.ent +++ b/packages.ent @@ -158,7 +158,7 @@ - + diff --git a/part3intro/toolchaintechnotes.xml b/part3intro/toolchaintechnotes.xml index 0d3c66b55..2239b2c7a 100644 --- a/part3intro/toolchaintechnotes.xml +++ b/part3intro/toolchaintechnotes.xml @@ -242,7 +242,7 @@ The build system should not attempt to run any generated machine code supposed to be executed on the host. For - example, when building an utility natively, its man page can be + example, when building a utility natively, its man page can be generated by running the utility with the --help switch and processing the output, but generally it's not possible to do so for a cross-compilation From 32a9d4b35bc4486cfc970301a24af64f2476cdc4 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 3 Apr 2025 11:33:20 +0800 Subject: [PATCH 138/151] Remove check (#5650) --- appendices/dependencies.xml | 43 -------------- chapter01/whatsnew.xml | 9 +-- chapter03/packages.xml | 9 --- chapter08/chapter08.xml | 1 - chapter08/check.xml | 109 ------------------------------------ lfs-latest-git.php | 1 - packages.ent | 8 --- 7 files changed, 3 insertions(+), 177 deletions(-) delete mode 100644 chapter08/check.xml diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml index 84dc75acd..4ba8d13c4 100644 --- a/appendices/dependencies.xml +++ b/appendices/dependencies.xml @@ -399,49 +399,6 @@ - - Check - - - &dependencies; - - Gawk, GCC, Grep, Make, Sed, and Texinfo - - - - - &runtime; - - Bash and Gawk - - - - - &testsuites; - - None - - - - - &before; - - None - - - - - &external; - - - libsubunit - and - - patchutils - - - - Coreutils diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index b8ff551d3..8e1bec99c 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -305,12 +305,9 @@ Removed: - - + + Check-0.15.2 + diff --git a/chapter03/packages.xml b/chapter03/packages.xml index d58002ad2..2b3dbd9e7 100644 --- a/chapter03/packages.xml +++ b/chapter03/packages.xml @@ -110,15 +110,6 @@ - - Check (&check-version;) - &check-size;: - - Home page: - Download: - MD5 sum: &check-md5; - - - Coreutils (&coreutils-version;) - &coreutils-size;: diff --git a/chapter08/chapter08.xml b/chapter08/chapter08.xml index 85589c3be..cb13689e7 100644 --- a/chapter08/chapter08.xml +++ b/chapter08/chapter08.xml @@ -70,7 +70,6 @@ - diff --git a/chapter08/check.xml b/chapter08/check.xml deleted file mode 100644 index 1000aaa68..000000000 --- a/chapter08/check.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - %general-entities; -]> - - - - - - check - &check-version; -
&check-url;
-
- - Check-&check-version; - - - Check - - - - - - <para>Check is a unit testing framework for C.</para> - - <segmentedlist> - <segtitle>&buildtime;</segtitle> - <segtitle>&diskspace;</segtitle> - - <seglistitem> - <seg>&check-fin-sbu;</seg> - <seg>&check-fin-du;</seg> - </seglistitem> - </segmentedlist> - - </sect2> - - <sect2 role="installation"> - <title>Installation of Check - - Prepare Check for compilation: - -./configure --prefix=/usr --disable-static - - Build the package: - -make - - Compilation is now complete. To run the Check test suite, issue the - following command: - -make check - - - Install the package: - - make docdir=/usr/share/doc/check-&check-version; install - - - - - Contents of Check - - - Installed program - Installed library - - - checkmk - libcheck.so - - - - - Short Descriptions - - - - - checkmk - - Awk script for generating C unit tests for use with the Check - unit testing framework - - checkmk - - - - - - libcheck.so - - Contains functions that allow Check to be called from a test - program - - libcheck - - - - - - - - -
diff --git a/lfs-latest-git.php b/lfs-latest-git.php index f189871eb..d8da03ef5 100644 --- a/lfs-latest-git.php +++ b/lfs-latest-git.php @@ -118,7 +118,6 @@ function get_packages( $package, $dirpath ) //if ( $package != "wheel" ) return 0; // debug if ( $package == "bc" ) $dirpath = github("gavinhoward/bc"); -if ( $package == "check" ) $dirpath = github("libcheck/check"); if ( $package == "e2fsprogs" ) $dirpath = "https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs"; if ( $package == "expat" ) $dirpath = "https://sourceforge.net/projects/expat/files"; if ( $package == "elfutils" ) $dirpath = "https://sourceware.org/ftp/elfutils"; diff --git a/packages.ent b/packages.ent index 5dbbfed1a..c5d645e4c 100644 --- a/packages.ent +++ b/packages.ent @@ -96,14 +96,6 @@ - - - - - - - - From f3e6b8964f8b83146b57083a7d70a1e274f9f10d Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 4 Apr 2025 15:44:07 +0800 Subject: [PATCH 139/151] make: Remove --without-guile from chapter 6 This seems just a remnant from the pre-cross-chap5 era. Now with the cross- toolchain the build system cannot find guile headers and libraries, thus guile should be disabled by default. I've also tried this on a host distro with guile installed. --- chapter06/make.xml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/chapter06/make.xml b/chapter06/make.xml index eaf0db48f..3d3ca9b38 100644 --- a/chapter06/make.xml +++ b/chapter06/make.xml @@ -45,23 +45,9 @@ Prepare Make for compilation: ./configure --prefix=/usr \ - --without-guile \ --host=$LFS_TGT \ --build=$(build-aux/config.guess) - - The meaning of the new configure option: - - - --without-guile - - Although we are cross-compiling, configure tries to use - guile from the build host if it finds it. This makes compilation - fail, so this switch prevents using it. - - - - Compile the package: make From d470cdb21ca21afb19ec38fa587ef9da90daa99b Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Mon, 14 Apr 2025 13:10:11 -0500 Subject: [PATCH 140/151] Package updates. Update to libcap-2.76. Update to perl-5.40.2 (Security update). Add packaging-24.2 (Python module). Needed for wheel. Update to xz-5.8.1. Update to wheel-0.46.1 (Python Module). Update to sysklogd-2.7.2. Update to Python3-3.13.3. Update to openssl-3.5.0. Update to meson-1.7.2. Update to linux-6.14.2. Update to libffi-3.4.8. Update to iproute2-6.14.0. Update to gzip-1.14. Update to grep-3.12. Update to gperf-3.2.1. Update to gawk-5.3.2. Update to diffutils-3.12. Update to coreutils-9.7. --- appendices/dependencies.xml | 42 ++++++++++++- chapter01/changelog.xml | 78 ++++++++++++++++++++++++ chapter01/whatsnew.xml | 61 +++++++++---------- chapter03/packages.xml | 9 +++ chapter06/diffutils.xml | 6 ++ chapter08/chapter08.xml | 1 + chapter08/packaging.xml | 76 +++++++++++++++++++++++ packages.ent | 116 +++++++++++++++++++----------------- patches.ent | 4 +- 9 files changed, 304 insertions(+), 89 deletions(-) create mode 100644 chapter08/packaging.xml diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml index 4ba8d13c4..a8675a805 100644 --- a/appendices/dependencies.xml +++ b/appendices/dependencies.xml @@ -2416,6 +2416,46 @@ + + Packaging + + + &dependencies; + + Python + + + + + &runtime; + + Python + + + + + &testsuites; + + No test suite available + + + + + &before; + + Wheel + + + + + &external; + + + pytest + + + + Patch @@ -3269,7 +3309,7 @@ &dependencies; - Python and Flit-core + Python, Flit-core, and packaging diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 91d4de3e3..1ac0d51b7 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,84 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2025-04-15 + + + [bdubbs] - Update to libcap-2.76. Fixes + #5704. + + + [bdubbs] - Update to perl-5.40.2 (Security update). Fixes + #5703. + + + [bdubbs] - Add packaging-24.2 (Python module). Needed for wheel. + + + + [bdubbs] - Update to xz-5.8.1. Fixes + #5694. + + + [bdubbs] - Update to wheel-0.46.1 (Python Module). Fixes + #5693. + + + [bdubbs] - Update to sysklogd-2.7.2. Fixes + #5690. + + + [bdubbs] - Update to Python3-3.13.3. Fixes + #5697. + + + [bdubbs] - Update to openssl-3.5.0. Fixes + #5701. + + + [bdubbs] - Update to meson-1.7.2. Fixes + #5691. + + + [bdubbs] - Update to linux-6.14.2. Fixes + #5680. + + + [bdubbs] - Update to libffi-3.4.8. Fixes + #5700. + + + [bdubbs] - Update to iproute2-6.14.0. Fixes + #5682. + + + [bdubbs] - Update to gzip-1.14. Fixes + #5699. + + + [bdubbs] - Update to grep-3.12. Fixes + #5702. + + + [bdubbs] - Update to gperf-3.2.1. Fixes + #5695. + + + [bdubbs] - Update to gawk-5.3.2. Fixes + #5692. + + + [bdubbs] - Update to diffutils-3.12. Fixes + #5696. + + + [bdubbs] - Update to coreutils-9.7. Fixes + #5698. + + + + 2025-04-01 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 8e1bec99c..4ab0abff3 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -53,21 +53,18 @@ - - + D-Bus-&dbus-version; - + @@ -89,9 +86,9 @@ Flit-Core-&flit-core-version; - + @@ -107,21 +104,21 @@ - - +
- + Iana-Etc-&iana-etc-version; @@ -131,9 +128,9 @@ - + Jinja2-&jinja2-version; @@ -155,9 +152,9 @@ - + @@ -188,9 +185,9 @@ - + @@ -203,15 +200,15 @@ - + Patch-&patch-version; - + Pkgconf-&pkgconf-version; @@ -221,9 +218,9 @@ - + @@ -266,9 +263,9 @@ Vim-&vim-version; - + @@ -295,11 +292,11 @@ Added: - + diff --git a/chapter03/packages.xml b/chapter03/packages.xml index 2b3dbd9e7..6cdb5e224 100644 --- a/chapter03/packages.xml +++ b/chapter03/packages.xml @@ -588,6 +588,15 @@
+ + Packaging (&packaging-version;) - &packaging-size;: + + Home page: + Download: + MD5 sum: &packaging-md5; + + + Patch (&patch-version;) - &patch-size;: diff --git a/chapter06/diffutils.xml b/chapter06/diffutils.xml index 92951604d..c56b01c5a 100644 --- a/chapter06/diffutils.xml +++ b/chapter06/diffutils.xml @@ -43,6 +43,12 @@ Installation of Diffutils + First, fix a problem in the current version of diffutils: + + sed -e '46252,+3 s/^/#/' \ + -e '46596,+3 s/^/#/' \ + -i configure + Prepare Diffutils for compilation: ./configure --prefix=/usr \ diff --git a/chapter08/chapter08.xml b/chapter08/chapter08.xml index cb13689e7..bd8571903 100644 --- a/chapter08/chapter08.xml +++ b/chapter08/chapter08.xml @@ -64,6 +64,7 @@ + diff --git a/chapter08/packaging.xml b/chapter08/packaging.xml new file mode 100644 index 000000000..b3e9e439d --- /dev/null +++ b/chapter08/packaging.xml @@ -0,0 +1,76 @@ + + + %general-entities; +]> + + + + + + packaging + &packaging-version; +
&packaging-url;
+
+ + Packaging-&packaging-version; + + + packaging + + + + + + <para> + The packaging module is a Python library that provides utilities that + implement the interoperability specifications which have clearly one + correct behaviour (PEP440) or benefit greatly from having a single shared + implementation (PEP425). This includes utilities for version handling, + specifiers, markers, tags, and requirements. + </para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + <seglistitem> + <seg>&packaging-fin-sbu;</seg> + <seg>&packaging-fin-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>Installation of packaging + + Compile packaging with the following command: + +pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD + + Install packaging with the following command: + +pip3 install --no-index --find-links dist packaging + + + + + Contents of Packaging + + + Installed directories + + + packaging + + /usr/lib/python&python-minor;/site-packages/packaging and + /usr/lib/python&python-minor;/site-packages/packaging-&packaging-version;.dist-info + + + + + + +
+ diff --git a/packages.ent b/packages.ent index c5d645e4c..38982675a 100644 --- a/packages.ent +++ b/packages.ent @@ -96,10 +96,10 @@ - - + + - + @@ -122,10 +122,10 @@ - - + + - + @@ -200,10 +200,10 @@ - - + + - + @@ -265,18 +265,18 @@ - - + + - + - - + + - + @@ -299,10 +299,10 @@ - - + + - + @@ -333,10 +333,10 @@ - - + + - + @@ -381,18 +381,18 @@ - - + + - + - - + + - + @@ -422,13 +422,13 @@ - - + + - + - + - + - + - + - - + + @@ -645,10 +653,10 @@ - - + + - + @@ -758,10 +766,10 @@ - - + + - + @@ -774,10 +782,10 @@ - - + + - + diff --git a/patches.ent b/patches.ent index c90d38120..c7b2ab19b 100644 --- a/patches.ent +++ b/patches.ent @@ -17,8 +17,8 @@ - - + + From 9103be90053dff74a1bd88571a54093db9f3a65a Mon Sep 17 00:00:00 2001 From: Zeckmathederg Date: Mon, 14 Apr 2025 18:02:27 -0600 Subject: [PATCH 141/151] chapter06/Diffutils: Elaborate what the sed does. --- chapter06/diffutils.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chapter06/diffutils.xml b/chapter06/diffutils.xml index c56b01c5a..8738e32b0 100644 --- a/chapter06/diffutils.xml +++ b/chapter06/diffutils.xml @@ -43,7 +43,10 @@ Installation of Diffutils - First, fix a problem in the current version of diffutils: + When Diffutils is being configured, it checks to see if it is + being cross compiled. If it is, configuration fails. Since we are + cross compiling, comment out the specific lines that perform that + test now: sed -e '46252,+3 s/^/#/' \ -e '46596,+3 s/^/#/' \ From cb6741b0fa2fc32d6e6683166f786d8a8e0cffc1 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 14 Apr 2025 22:10:25 +0800 Subject: [PATCH 142/151] general: Use "x.y-systemd" instead of "stable-systemd" in BLFS URL for release "stable-systemd" is the latest release, but we want to use the same version as the LFS book here. --- general.ent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/general.ent b/general.ent index 09c98f613..27b62c37f 100644 --- a/general.ent +++ b/general.ent @@ -44,7 +44,7 @@ ]]> - + ]]> + gl_cv_func_strcasecmp_works=y + + This option specify the result of a check for the + strcasecmp. The check requires running a + compiled C program, and this is impossible during + cross-compilation because in general a cross-compiled program + cannot run on the host distro. Normally for such a check the + configure script would use a fall-back value + for cross-compilation, but the fall-back value for this check is + absent and the configure script would have no + value to use and error out. The upstream has already fixed the + issue, but to apply the fix we'd need to run + autoconf that the host distro may lack. So + we just specify the check result (y as we know + the strcasecmp function in + Glibc-&glibc-version; works fine) instead, then + configure will just use the specified value and + skip the check. + +
+ + Compile the package: make From fb602744bbcddcb8dbe579960cf86a7bcdf667dd Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 15 Apr 2025 19:47:48 +0800 Subject: [PATCH 144/151] Revert "Note that gperf tests only work with -j1." This reverts commit eb43115dec1f6057a4aaf1f161b0869ec8c4f7fa. Per https://savannah.gnu.org/bugs/?53208 the issue is fixed. I tried -j18 multiple times and observed no issues. --- chapter08/gperf.xml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chapter08/gperf.xml b/chapter08/gperf.xml index bbfbbe735..25939135a 100644 --- a/chapter08/gperf.xml +++ b/chapter08/gperf.xml @@ -48,11 +48,9 @@ make - The tests are known to fail if running multiple - simultaneous tests (-j option greater than 1). To test - the results, issue: + To test the results, issue: -make -j1 check +make check Install the package: From 1a2d3f558830712ef22731798b6bb265684ed847 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 15 Apr 2025 20:42:11 +0800 Subject: [PATCH 145/151] whatsnew: Don't hard code version of packaging --- chapter01/whatsnew.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 4ab0abff3..d6d646f7b 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -294,7 +294,7 @@ - Packaging-24.2 + Packaging-&packaging-version; From c63e26b2968806cdfb74328eef4327e654b9248e Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 15 Apr 2025 20:44:14 +0800 Subject: [PATCH 146/151] packaging: Captialize the title --- chapter08/packaging.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/packaging.xml b/chapter08/packaging.xml index b3e9e439d..f1a6def9c 100644 --- a/chapter08/packaging.xml +++ b/chapter08/packaging.xml @@ -43,7 +43,7 @@ - Installation of packaging + Installation of Packaging Compile packaging with the following command: From 97aaa219af80ba0f9b8646c2366fed34b59248fd Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 15 Apr 2025 10:11:29 -0500 Subject: [PATCH 147/151] Update currency adding 'packaging.' --- lfs-latest-git.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lfs-latest-git.php b/lfs-latest-git.php index d8da03ef5..a6723e909 100644 --- a/lfs-latest-git.php +++ b/lfs-latest-git.php @@ -139,6 +139,7 @@ if ( $package == "mpfr" ) $dirpath = "https://mpfr.loria.fr/mpfr-current"; if ( $package == "ncurses" ) $dirpath = "https://invisible-mirror.net/archives/ncurses"; if ( $package == "ninja" ) $dirpath = github("ninja-build/ninja"); if ( $package == "openssl" ) $dirpath = github("openssl/openssl"); +if ( $package == "packaging" ) $dirpath = "https://pypi.org/rss/project/packaging/releases.xml"; if ( $package == "procps-ng" ) $dirpath = "https://gitlab.com/procps-ng/procps/-/tags"; if ( $package == "psmisc" ) $dirpath = "https://gitlab.com/psmisc/psmisc/-/tags"; if ( $package == "Python" ) $dirpath = "https://www.python.org/downloads/source/"; @@ -262,6 +263,9 @@ if ( $package == "zstd" ) $dirpath = github("facebook/zstd"); return find_max( $lines, "/wheel\/\d/", "/^.*wheel\/([\d\.]+).*$/" ); # End Python modules + if ( $package == "packaging" ) + return find_max( $lines, "/packaging/", "/^.*^.*packaging.([\d\.]+\d)\/.*$/" ); + if ( $package == "procps-ng" ) return find_max( $lines, "/v\d/", "/^.*v([\d\.]+)$/" ); From 3d1e81b5a8397464f2ef0f54fb22b810c03c24c2 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 15 Apr 2025 22:53:28 -0500 Subject: [PATCH 148/151] Change stripping to use --strip-debug When we use -strip-unneeded it removes some symbols that are needed in static libraries that may be needed in addition to debugging symbols. Changing the stripping to the more conservative --strip-debug retains thise symbols. In the case of libc.a the unstripped file size is 22.4 MB. Using --strip-debug reduces the file size by 74 percent to 5.9 MB. Using --strip-unneeded only reduces the file further by 89 KB, so any gain is relatively trivial. --- chapter08/stripping.xml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/chapter08/stripping.xml b/chapter08/stripping.xml index 5ce0235d3..2839cfda7 100644 --- a/chapter08/stripping.xml +++ b/chapter08/stripping.xml @@ -24,10 +24,15 @@ backup of the LFS system in its current state. A strip command with the - --strip-unneeded option removes all debug symbols - from a binary or library. It also removes all symbol table entries not + --strip-unneeded option removes all debug symbols from + a binary or library. It also removes all symbol table entries not normally needed by the linker (for static libraries) or dynamic linker (for - dynamically linked binaries and shared libraries). + 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.