diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 099b5927e..935b7487a 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,7 +39,41 @@ or as appropriate for the entry or if needed the entire day's listitem. --> - + + 2022-11-22 + + + [xry111] - Update to linux-6.0.9. Fixes + #5162. + + + [xry111] - Update to libpipeline-1.5.7. Fixes + #5163. + + + [xry111] - Update to xz-5.2.8. Fixes + #5164. + + + [xry111] - Update to man-db-2.11.1. Fixes + #5166. + + + [xry111] - Update to mpfr-4.1.1. Fixes + #5167. + + + [xry111] - Stop disabling decimal float for temporary GCC, + so mpfr will be built with decimal float support. + + + [xry111] - Update instruction for wheel to avoid relying on + deprecated Python features. + + + + + 2022-11-10 diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml index b6245fce2..a1cc87e4f 100644 --- a/chapter05/gcc-pass1.xml +++ b/chapter05/gcc-pass1.xml @@ -100,7 +100,6 @@ cd build --disable-nls \ --disable-shared \ --disable-multilib \ - --disable-decimal-float \ --disable-threads \ --disable-libatomic \ --disable-libgomp \ @@ -208,15 +207,15 @@ cd build - --disable-decimal-float, --disable-threads, - --disable-libatomic, --disable-libgomp, + --disable-threads, + --disable-libatomic, --disable-libgomp, --disable-libquadmath, --disable-libssp, --disable-libvtv, --disable-libstdcxx - These switches disable support for the decimal floating point - extension, threading, libatomic, libgomp, libquadmath, libssp, + These switches disable support for + threading, libatomic, libgomp, libquadmath, libssp, libvtv, and the C++ standard library respectively. These features - will fail to compile when building a cross-compiler and are not + may fail to compile when building a cross-compiler and are not necessary for the task of cross-compiling the temporary libc. diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml index 2242bbc94..ba1a4b7a2 100644 --- a/chapter06/gcc-pass2.xml +++ b/chapter06/gcc-pass2.xml @@ -101,7 +101,6 @@ cd build --enable-default-ssp \ --disable-nls \ --disable-multilib \ - --disable-decimal-float \ --disable-libatomic \ --disable-libgomp \ --disable-libquadmath \ diff --git a/chapter08/coreutils.xml b/chapter08/coreutils.xml index eb3cbcd06..3d2138026 100644 --- a/chapter08/coreutils.xml +++ b/chapter08/coreutils.xml @@ -128,11 +128,10 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \ su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check" - - - The sort-NaN-infloop test is known to fail with GCC-12. + + The test-getlogin test may fail in the LFS chroot environment. Remove the temporary group: diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index e9805ebd0..292600bb8 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -100,8 +100,8 @@ cd build --disable-bootstrap \ --with-system-zlib - Note that for other programming languages there are some prerequisites that - are not yet available. See the + GCC supports seven different computer languages, but the + prerequisites for most of them have not yet been installed. See the BLFS Book GCC page for instructions on how to build all of GCC's supported languages. @@ -111,8 +111,8 @@ cd build LD=ld - This parameter makes the configure script use the ld installed - by the binutils built earlier in this chapter, rather than + This parameter makes the configure script use the ld program installed + by the Binutils package built earlier in this chapter, rather than the cross-built version which would otherwise be used. @@ -121,7 +121,7 @@ cd build --with-system-zlib This switch tells GCC to link to the system installed copy of - the zlib library, rather than its own internal copy. + the Zlib library, rather than its own internal copy. @@ -129,21 +129,21 @@ cd build - PIE (position-independent executable) is a technique to produce + PIE (position-independent executables) are binary programs that can be loaded anywhere in memory. Without PIE, the security feature named ASLR (Address Space Layout Randomization) - can be applied for the shared libraries, but not the executable - itself. Enabling PIE allows ASLR for the executables in addition to + can be applied for the shared libraries, but not for the executables + themselves. Enabling PIE allows ASLR for the executables in addition to the shared libraries, and mitigates some attacks based on fixed addresses of sensitive code or data in the executables. SSP (Stack Smashing Protection) is a technique to ensure - that the parameter stack is not corrupted. Stack corruption can - for example alter the return address of a subroutine, - which would allow transferring control to some dangerous code + that the parameter stack is not corrupted. Stack corruption can, + for example, alter the return address of a subroutine, + thus transferring control to some dangerous code (existing in the program or shared libraries, or injected by the - attacker somehow) instead of the original one. + attacker somehow). @@ -153,10 +153,10 @@ cd build In this section, the test suite for GCC is considered - important, but it takes a long time. First time builders are - encouraged to not skip it. The time to run the tests can be - reduced significantly by adding -jx to the make command below - where x is the number of cores on your system. + important, but it takes a long time. First-time builders are + encouraged to run the test suite. The time to run the tests can be + reduced significantly by adding -jx to the make -k check command below, + where x is the number of CPU cores on your system. One set of tests in the GCC test suite is known to exhaust the default @@ -169,23 +169,23 @@ cd build chown -Rv tester . su tester -c "PATH=$PATH make -k check" - To receive a summary of the test suite results, run: + To extract a summary of the test suite results, run: ../contrib/test_summary - For only the summaries, pipe the output through + To filter out only the summaries, pipe the output through grep -A7 Summ. Results can be compared with those located at and . - In gcc, eleven tests, in the i386 test suite are known to FAIL. + Eleven tests in the i386 test suite for the gcc compiler are known to FAIL. It's because the test files do not account for the --enable-default-pie option. - In g++, four tests related to PR100400 are known to be reported - as both XPASS and FAIL. It's because the test file for this known issue + Four tests related to PR100400 may be reported + as both XPASS and FAIL when testing the g++ compiler; the test file is not well written. A few unexpected failures cannot always be avoided. The GCC developers @@ -207,8 +207,8 @@ su tester -c "PATH=$PATH make -k check" make install The GCC build directory is owned by - tester now and the ownership of the installed header - directory (and its content) will be incorrect. Change the ownership to + tester now, and the ownership of the installed header + directory (and its content) is incorrect. Change the ownership to the root user and group: chown -v -R root:root \ @@ -245,7 +245,7 @@ readelf -l a.out | grep ': /lib' [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] - Now make sure that we're setup to use the correct start files: + Now make sure that we're set up to use the correct start files: grep -E -o '/usr/lib.*/S?crt[1in].*succeeded' dummy.log @@ -294,7 +294,7 @@ SEARCH_DIR("/usr/local/lib") SEARCH_DIR("/lib") SEARCH_DIR("/usr/lib"); - A 32-bit system may see a few different directories. For example, here + A 32-bit system may use a few other directories. For example, here is the output from an i686 machine: @@ -328,7 +328,7 @@ SEARCH_DIR("/usr/lib"); at all, then something is seriously wrong. Investigate and retrace the steps to find out where the problem is and correct it. Any - issues will need to be resolved before continuing with the process. + issues should be resolved before continuing with the process. Once everything is working correctly, clean up the test files: @@ -395,7 +395,7 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib cpp The C preprocessor; it is used by the compiler to expand the - #include, #define, and similar statements in the source files + #include, #define, and similar directives in the source files cpp @@ -428,7 +428,7 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib A wrapper around ar that adds a plugin to the command line. This program is only used to add "link time optimization" and is not useful with the - default build options + default build options. gc-ar @@ -441,7 +441,7 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib A wrapper around nm that adds a plugin to the command line. This program is only used to add "link time optimization" and is not useful with the - default build options + default build options. gc-nm @@ -454,7 +454,7 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib A wrapper around ranlib that adds a plugin to the command line. This program is only used to add "link time optimization" and is not useful with the - default build options + default build options. gc-ranlib @@ -465,7 +465,7 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib gcov A coverage testing tool; it is used to analyze programs to - determine where optimizations will have the most effect + determine where optimizations will have the greatest effect gcov @@ -546,7 +546,7 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib libgcov - This library is linked in to a program when GCC is instructed + This library is linked into a program when GCC is instructed to enable profiling libgcov @@ -588,7 +588,7 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib liblto_plugin - GCC's LTO plugin allows binutils to process object files + GCC's LTO plugin allows Binutils to process object files produced by GCC with LTO enabled liblto_plugin @@ -610,8 +610,8 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib libssp Contains routines supporting GCC's stack-smashing protection - functionality. Normally it's unused because glibc also provides - those routines + functionality. Normally it is not used, because Glibc also provides + those routines. libssp diff --git a/chapter08/shadow.xml b/chapter08/shadow.xml index 68cc130c9..83c8f6ec9 100644 --- a/chapter08/shadow.xml +++ b/chapter08/shadow.xml @@ -639,7 +639,7 @@ useradd -D --gid 999 libsubid - library for processing subordinate id ranges for users + library to handle subordinate id ranges for users and groups libsubid diff --git a/chapter08/wheel.xml b/chapter08/wheel.xml index f49ada356..5b09fc65b 100644 --- a/chapter08/wheel.xml +++ b/chapter08/wheel.xml @@ -40,12 +40,39 @@ Installation of Wheel + Compile wheel with the following command: + +PYTHONPATH=src pip3 wheel -w dist --no-build-isolation --no-deps $PWD + Install wheel with the following command: -pip3 install --no-index $PWD +pip3 install --no-index --find-links=dist wheel - The meaning of the pip3 options: + The meaning of the pip3 commands: + + + PYTHONPATH=src + + Allow using this package (not installed yet) to build a + wheel archive for itself, to avoid a chicken-or-egg problem. + + + + + wheel + + Build wheel archive for this package. + + + + + -w dist + + Put the created wheels into the + dist directory. + + install @@ -55,24 +82,25 @@ - --no-index + --no-build-isolation, + --no-deps, and + --no-index Prevent pip from fetching files from the online package repository (PyPI). If packages are installed in the correct order, - then it won't need to fetch any files in the first place, but this - option adds some safety in case of user error. + then it won't need to fetch any files in the first place, but these + options add some safety in case of user error. - $PWD + --find-links dist - Look for files to install in the current working directory. + Search wheel archives from the + dist directory. - - @@ -86,7 +114,7 @@ wheel /usr/lib/python&python-minor;/site-packages/wheel and - /usr/lib/python&python-minor;/site-packages/wheel-&wheel-version;-py&python-minor;.egg-info + /usr/lib/python&python-minor;/site-packages/wheel-&wheel-version;.dist-info diff --git a/packages.ent b/packages.ent index 2152a65bd..67f50eab9 100644 --- a/packages.ent +++ b/packages.ent @@ -415,10 +415,10 @@ - - + + - + @@ -433,12 +433,12 @@ - + - + - +