From 727490c99298336c793e78e08698b7310a24ba02 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 2 Feb 2023 15:27:17 +0800 Subject: [PATCH 01/11] Package updates: * Update to Glibc-2.37 (#5203) * Update to bc-6.2.3 (#5204) - Update bc homepage as upstream requested * Update to linux-6.1.9 (#5205) * Update to vim-9.0.1273 (#4500) --- packages.ent | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/packages.ent b/packages.ent index 0f3dc019a..05ec1341a 100644 --- a/packages.ent +++ b/packages.ent @@ -58,11 +58,11 @@ - - + + - - + + @@ -255,10 +255,10 @@ - - + + - + @@ -424,12 +424,12 @@ - + - + - + - + - - + + From c6c1a068b90b2f0bca53f48ef264c0e30e418e4f Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 2 Feb 2023 15:47:05 +0800 Subject: [PATCH 02/11] glibc: Remove a sed useless for 2.37 --- chapter05/glibc.xml | 5 ----- chapter08/glibc.xml | 5 ----- 2 files changed, 10 deletions(-) diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index a8834cc19..6b78031bc 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -64,11 +64,6 @@ esac - Fix an issue building Glibc with parallel jobs and make-4.4 - or later: - -sed '/MAKEFLAGS :=/s/)r/) -r/' -i Makerules - Some of the Glibc programs use the non-FHS-compliant /var/db directory to store their runtime data. Apply the following patch to make such programs store their diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 340eb0861..538c827ab 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -43,11 +43,6 @@ Installation of Glibc - First, fix an issue building Glibc with parallel jobs and Make-4.4 - or later: - -sed '/MAKEFLAGS :=/s/)r/) -r/' -i Makerules - Some of the Glibc programs use the non-FHS compliant /var/db directory to store their runtime data. Apply the following patch to make such programs From 59a0a3c1af3706744ba3b6b516e4e7520787bf57 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 2 Feb 2023 17:29:38 +0800 Subject: [PATCH 03/11] glibc: remove nss/tst-nss-files-hosts-long failure It's UNSUPPORTED in chroot now, so we cannot see it in LFS build. --- chapter08/glibc.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 538c827ab..a0d64ee75 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -160,12 +160,6 @@ esac is known to fail in the LFS chroot environment. - - The nss/tst-nss-files-hosts-long - test is known to fail if the system has no non-loopback IP - addresses. - - The stdlib/tst-arc4random-thread From 8ac376e63474e407ed977a249a15db4835203742 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 2 Feb 2023 18:31:20 +0800 Subject: [PATCH 04/11] binutils: remove more empty man pages --- chapter08/binutils.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/binutils.xml b/chapter08/binutils.xml index 02e2e8f6f..863fe041e 100644 --- a/chapter08/binutils.xml +++ b/chapter08/binutils.xml @@ -190,7 +190,7 @@ cd build Remove useless static libraries and an empty man page: rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,sframe,opcodes}.a -rm -fv /usr/share/man/man1/gprofng.1 +rm -fv /usr/share/man/man1/{gprofng,gp-*}.1 From 2d215b5fc8df4b7e90671f142dc93b16ad50dfb1 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 2 Feb 2023 18:32:18 +0800 Subject: [PATCH 05/11] binutils: remove test failures resolved by upstream --- chapter08/binutils.xml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/chapter08/binutils.xml b/chapter08/binutils.xml index 863fe041e..eb83563bb 100644 --- a/chapter08/binutils.xml +++ b/chapter08/binutils.xml @@ -166,22 +166,7 @@ cd build Twelve tests fail in the gold test suite when the and - options are passed to GCC. - - The test named ar with versioned solib is also - known to fail. - - Because of a race between the gas test suite and the gprofng test suite, - some gas tests may fail if parallel jobs are used. If you are not - assured of the correctness of gas, invoke - make check-gas to run the gas test suite separately and - all tests should pass. + options are passed to GCC. Install the package: From 833f3efc0116e61cfb3e59bd7b875e8c83ee13af Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 2 Feb 2023 20:42:20 +0800 Subject: [PATCH 06/11] glibc: Fix an issue identified upstream --- chapter08/glibc.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index a0d64ee75..ec81b2da7 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -50,6 +50,12 @@ patch -Np1 -i ../&glibc-fhs-patch; + + Fix an issue identified upstream: + +sed '/width -=/s/workend - string/number_length/' \ + -i stdio-common/vfprintf-process-arg.c + The Glibc documentation recommends building Glibc in a dedicated build directory: From 19f4e4d6ea6b907d625fb0da4a59e3f40750b5ce Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 2 Feb 2023 21:04:40 +0800 Subject: [PATCH 07/11] mpfr: Fix a test case Normally we don't fix test, but see the comment added into the XML file for the rationale. Update the number of tests by the way. --- chapter08/mpfr.xml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/chapter08/mpfr.xml b/chapter08/mpfr.xml index 7237b1ecb..2d16053de 100644 --- a/chapter08/mpfr.xml +++ b/chapter08/mpfr.xml @@ -41,6 +41,20 @@ Installation of MPFR + + Fix a test case based on a bug of old Glibc releases: + +sed -e 's/+01,234,567/+1,234,567 /' \ + -e 's/13.10Pd/13Pd/' \ + -i tests/tsprintf.c + Prepare MPFR for compilation: ./configure --prefix=/usr \ @@ -58,7 +72,7 @@ make html Do not skip it under any circumstances. - Test the results and ensure that all 183 tests passed: + Test the results and ensure that all 197 tests passed: make check From 5f8b7fe1ab81a53c79c936dee9d4713455c7b1e3 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 3 Feb 2023 01:27:40 +0800 Subject: [PATCH 08/11] bash: Add the explanation of test output, and document a known failure --- chapter08/bash.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/chapter08/bash.xml b/chapter08/bash.xml index 5eb49505a..a8bf2b871 100644 --- a/chapter08/bash.xml +++ b/chapter08/bash.xml @@ -87,6 +87,19 @@ lassign [wait] _ _ _ value exit $value EOF + The test suite uses diff to detect the + difference between test script output and the expected output. Any + output from diff (prefixed with + < and + >) indicates a test failure, unless + there is a message saying the difference can be ignored. + + One test named run-builtins is known to fail on + some host distros with a difference on the first line of the + output. + Install the package: make install From f7b295dee87f47e02fdc48484efd4de6bf9c8265 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 3 Feb 2023 05:44:28 +0800 Subject: [PATCH 09/11] libelf: Update test status While the previously documented test failure is resolved by binutils-2.40, a new test failure has shown up. --- chapter08/libelf.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chapter08/libelf.xml b/chapter08/libelf.xml index 9fac415e1..739dffb46 100644 --- a/chapter08/libelf.xml +++ b/chapter08/libelf.xml @@ -58,8 +58,9 @@ make check - One test named run-low_high_pc.sh is known to - fail on 32-bit x86 systems. + + The test named run-native-test.sh is known to + fail. Install only Libelf: From 0f4ec3428c113cb50448108a3d28fd9d135b61e6 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 3 Feb 2023 05:46:54 +0800 Subject: [PATCH 10/11] libffi: Remove --disable-exec-static-tramp It's not needed now since gjs-1.74 supports static trampoline. --- chapter08/libffi.xml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/chapter08/libffi.xml b/chapter08/libffi.xml index 579bb6315..4c6d2830f 100644 --- a/chapter08/libffi.xml +++ b/chapter08/libffi.xml @@ -62,8 +62,7 @@ ./configure --prefix=/usr \ --disable-static \ - --with-gcc-arch=native \ - --disable-exec-static-tramp + --with-gcc-arch=native The meaning of the configure option: @@ -81,17 +80,6 @@ the x86 options in the GCC manual. - - - - --disable-exec-static-tramp - - Disable static trampoline support, a new security - feature in Libffi. Some BLFS packages (notably - GJS) have not been adapted for it. - - - Compile the package: From fcadbf41daceb4f09f26034754bedb5287abfef9 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 3 Feb 2023 15:44:13 +0800 Subject: [PATCH 11/11] changelog: Add entries for recent changes --- chapter01/changelog.xml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 0be2d0a7e..dc103e85a 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,32 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2023-02-02 + + + [xry111] - Update to glibc-2.37. Fixes + #5203. + + + [xry111] - Update to bc-6.2.3. Fixes + #5204. + + + [xry111] - Update to linux-6.1.9. Fixes + #5205. + + + [xry111] - Update to vim-9.0.1273. Addresses + #4500. + + + [xry111] - Remove + for libffi. + + + + 2023-02-01