From 7a01f6150f0be3c2c6d7d279c66d6669db726696 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 31 Dec 2024 11:12:12 -0600 Subject: [PATCH 01/23] 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 03/23] 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 04/23] 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 05/23] 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 06/23] 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 07/23] 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 08/23] 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 09/23] 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 10/23] 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 11/23] 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 12/23] 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 13/23] 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 14/23] 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 18/23] 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 19/23] 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 20/23] 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 21/23] 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 22/23] 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 23/23] 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: