From 3f56392254317d628560c919fee028edd9179482 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 27 Aug 2023 02:17:17 -0500 Subject: [PATCH 1/4] Fix zlib currency --- lfs-latest-git.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lfs-latest-git.php b/lfs-latest-git.php index f9239e27b..c0c7aaea3 100644 --- a/lfs-latest-git.php +++ b/lfs-latest-git.php @@ -150,6 +150,7 @@ if ( $package == "tcl" ) $dirpath = "https://www.tcl.tk/software/tcltk/do if ( $package == "util-linux" ) $dirpath = max_parent( $dirpath, "v." ); if ( $package == "vim" ) $dirpath = "https://github.com/vim/vim/tags"; if ( $package == "wheel" ) $dirpath = "https://pypi.org/project/wheel/#files"; +if ( $package == "zlib" ) $dirpath = "https://www.zlib.net"; if ( $package == "zstd" ) $dirpath = github("facebook/zstd"); // Check for ftp From d78b550655e3426de645121c079cd4c2a1118f55 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 27 Aug 2023 20:15:58 +0800 Subject: [PATCH 2/4] gmp: On some CPUs more than 199 test can pass --- chapter08/gmp.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chapter08/gmp.xml b/chapter08/gmp.xml index 05e16722a..de3f0ee8b 100644 --- a/chapter08/gmp.xml +++ b/chapter08/gmp.xml @@ -110,7 +110,9 @@ make html instruction". In this case, gmp should be reconfigured with the option and rebuilt. - Ensure that all 199 tests in the test suite passed. + + Ensure that at least 199 tests in the test suite passed. Check the results by issuing the following command: awk '/# PASS:/{total+=$3} ; END{print total}' gmp-check-log From e5455293e338907c4a3cf9a461a7544083d7c762 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 28 Aug 2023 16:57:45 +0800 Subject: [PATCH 3/4] tar: Mention TESTSUITEFLAGS for testing --- chapter08/tar.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chapter08/tar.xml b/chapter08/tar.xml index bfb1cf469..e55ad664d 100644 --- a/chapter08/tar.xml +++ b/chapter08/tar.xml @@ -72,6 +72,13 @@ make check + + The test time for Tar can be reduced significantly on a + system with multiple cores. To do this, append + TESTSUITEFLAGS=-j<N> to the line above. For + instance, using -j4 can reduce the test time by over 70 + percent. + One test, capabilities: binary store/restore, is known to fail if it is run because LFS lacks selinux, but will be skipped if the host kernel does not support extended attributes on the filesystem used for building LFS. From 22c36bb8e41ebe08d9ac022d68d619583e556f21 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 28 Aug 2023 16:59:00 +0800 Subject: [PATCH 4/4] tar: The problematic test can also be skipped if security labels disabled For example, if CONFIG_EXT4_FS_SECURITY (Ext4 Security Labels) not set and we are building on an ext4 file system, the test will be skipeed. --- chapter08/tar.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chapter08/tar.xml b/chapter08/tar.xml index e55ad664d..ea5f44ebb 100644 --- a/chapter08/tar.xml +++ b/chapter08/tar.xml @@ -81,7 +81,8 @@ One test, capabilities: binary store/restore, is known to fail if it is run because LFS lacks selinux, but will be skipped if the host kernel does - not support extended attributes on the filesystem used for building LFS. + not support extended attributes or security labels on the filesystem + used for building LFS. Install the package: