diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index ceeae7902..ac6a2eb73 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,792 +42,24 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + - 2021-08-20 + 2021-09-06 - [bdubbs] - Add a sed to glibc in Chapter 8 to fix a - critical security issue. + [bdubbs] - Text clarifications in the backup/restore section + of Chapter 7. Thanks to Kevin Buckley for the patch. - 2021-08-18 + 2021-09-01 - [bdubbs] - Eliminate an instruction to remove a test - in bunutils that no longer fails. + [bdubbs] - LFS-11.0 released. - - - 2021-08-16 - - - [dj] - add p11-kit to dependencies list for systemd. - - - - - - 2021-08-15 - - - [renodr] - LFS-11.0-rc1 released. - - - - - - 2021-08-14 - - - [bdubbs] - Update to grep-3.7. Fixes - #4901. - - - - - - 2021-08-13 - - - [bdubbs] - Update to linux-5.13.10. Fixes - #4904. - - - [bdubbs] - Update to bc-5.0.0. Fixes - #4903. - - - [bdubbs] - Update to vim-8.2.3337. Addresses - #4521. - - - [bdubbs] - Add binutils-2.37 upstream patch. - - - - - - 2021-08-08 - - - [bdubbs] - Update to linux-5.13.9. Fixes - #4900. - - - [bdubbs] - Update to libffi-3.4.2. Fixes - #4902. - - - - - - 2021-08-06 - - - [xry111] - Fix - libasan.a building - GCC with Glibc-2.34. Addresses - - BLFS #15350. - - - - - - 2021-08-02 - - - [bdubbs] - Update to glibc-2.34. Fixes - #4897. - - - [bdubbs] - Update to diffutils-3.8. Fixes - #4898. - - - [bdubbs] - Update to libcap-2.52. Fixes - #4899. - - - - - - 2021-08-01 - - - [bdubbs] - Remove unneeded sed commands from automake and - coreutils. Fixes - #4895. - - - [bdubbs] - Update to linux-5.13.7. Fixes - #4893. - - - [bdubbs] - Update to e2fsprogs-1.46.3. Fixes - #4896. - - - - - - 2021-07-27 - - - [xry111] - Update to GCC-11.2.0. Fixes - #4883. - - - [xry111] - Update to inetutils-2.1. Fixes - #4892. - - - [xry111] - Update to automake-1.16.4. Fixes - #4894. - - - [xry111] - Always use --strip-unneeded for stripping. - - - - - - 2021-07-27 - - - [xry111] - Use workaround for Glibc NSS modules during - stripping, to prevent bash from crash. - - - - - - 2021-07-26 - - - [thomas] - Fix a programming error in shadow-4.9 - - - - - - 2021-07-25 - - - [xry111] - (Hopefully) complete stripping workaround. - - - - - - 2021-07-25 - - - [bdubbs] - Add workaround to strip libraries - correctly. - - - [xry111] - Add workaround to install Binutils-2.37 man pages - correctly. - - - [bdubbs] - Update to shadow-4.9. Fixes - #4891. - - - [bdubbs] - Update to util-linux 2.37.1. Fixes - #4890. - - - - - - 2021-07-23 - - - [renodr] - Guard systemd against CVE-2021-33910. Fixes - #4889. - - - [renodr] - Update to meson-0.59.0. Fixes - #4888. - - - [renodr] - Update to binutils-2.37. Fixes - #4887. - - - [renodr] - Update to less-590. Fixes - #4884. - - - - - - 2021-07-22 - - - [dj] - Correct page IDs in Chapter 08 dejagnu, expect, and - tcl. - - - [dj] - Ensure that glibc installs ldconfig and sln to - /usr/sbin. - - - - - - 2021-07-20 - - - [ken] - Update to linux-5.13.4 (security fix). Fixes - #4886. - - - [xry111] - Use a fixed, non-zero UID for - tester user, and spawn a - new pseudoterminal to satisfy bash testsuite. - - - - - - 2021-07-19 - - - [renodr] - Add text about security advisories to the - Errata page. - - - - - - 2021-07-17 - - - [ken] - Fix test failures in perl-5.34.0 by building less before - perl and by patching perl for a problem highlighted by gdbm-1.20. Fixes - #4885. - - - - - - 2021-07-15 - - - [bdubbs] - Remove modifications to m4 that are no longer needed. - - - - - - 2021-07-08 - - - [renodr] - Added Jinja2-3.0.1. - - - [renodr] - Added MarkupSafe-2.0.1. - - - [renodr] - Update to texinfo-6.8. Fixes - #4880. - - - [renodr] - Update to iproute2-5.13.0. Fixes - #4879. - - - [renodr] - Update to Python-3.9.6 (Security Update). Fixes - #4878. - - - [renodr] - Update to systemd-249 (Security Update). Fixes - #4882. - - - [renodr] - Update to Linux-5.13.1. Fixes - #4873. - - - - - - 2021-07-01 - - - [ken] - Patch gcc to fix some regressions (will be - needed to build firefox-91ESR in BLFS) and to allow it to - build against linux-5.13.0 kernel headers. Fixes - #4875. - - - - - - 2021-06-28 - - - [ken] - If installing individual locales, add 9 more - used by libstdc++-v3 tests. Fixes - #4877. - - - - - - 2021-06-27 - - - [bdubbs] - Update to bash-5.1.8. Fixes - #4869. - - - [bdubbs] - Update to dejagnu-1.6.3. Fixes - #4871. - - - [bdubbs] - Update to gdbm-1.20. Fixes - #4872. - - - [bdubbs] - Update to libcap-2.51. Fixes - #4874. - - - [bdubbs] - Update to man-pages-5.1. Fixes - #4876. - - - - - - 2021-06-18 - - - [bdubbs] - Ensure libcap installs capsh. - - - - - - 2021-06-15 - - - [bdubbs] - Update to iana-etc-20210611. Addresses - #4722. - - - [bdubbs] - Update to vim-8.2.3001. Addresses - #4500. - - - [bdubbs] - Update to util-linux-2.37. Fixes - #4865. - - - [bdubbs] - Update to meson-0.58.1. Fixes - #4867. - - - [bdubbs] - Update to linux-5.12.10. Fixes - #4866. - - - [bdubbs] - Update to m4-1.4.19. Fixes - #4864. - - - [bdubbs] - Update to grub-2.06. Fixes - #4868. - - - - - - 2021-06-09 - - - [ken] - For consistency, make the cpp link in /usr/lib. - - - - [ken] - Install iproute2 programs in /usr/sbin for - consistency. - - - - - - 2021-06-08 - - - [bdubbs] - Make shutting down the netwrok more robust. - - - - - - 2021-06-02 - - - [thomas] - Tweak sendsignal bootscript to avoid - killing mdmod (if active). - - - - - - 2021-05-31 - - - [ken] - Update to linux-5.12.8 (security fix). Fixes - #4863. - - - - - - 2021-05-28 - - - [bdubbs] - Update to iana-etc-20210526. Addresses - #4722. - - - [bdubbs] - Update to vim-8.2.2890. Addresses - #4500. - - - [bdubbs] - Update to zstd-1.5.0. Fixes - #4858. - - - [bdubbs] - Update to perl-5.34.0. Fixes - #4860. - - - [bdubbs] - Update to linux-5.12.7. Fixes - #4857. - - - [bdubbs] - Update to libcap-2.50. Fixes - #4862. - - - [bdubbs] - Update to kmod-29. Fixes - #4859. - - - [bdubbs] - Update to expat-2.4.1. Fixes - #4861. - - - [bdubbs] - Update to elfutils-0.185. Fixes - #4855. - - - [bdubbs] - Update to bc-4.0.2. Fixes - #4855. - - - - - - 2021-05-26 - - - [thomas] - Remove obsolete DOCDIR option from iproute2 install command. - - - - - - 2021-05-17 - - - [bdubbs] - Tweak install directories for eudev and e2fsprogs. - Thanks to Ryan Marsaw for the report. - - - - - - 2021-05-14 - - - [ken] - Add a Note about upgrading in OpenSSL. - - - - - - 2021-05-12 - - - [bdubbs] - Removed instructions for running tests - in Python due to an indefinite hang in the partial - LFS envrionment. - - - [renodr] - Moved LFS to a merged-/usr configuration. Thanks - goes to Xi Ruoyao for doing almost all of the work. Fixes - #4848. - - - [renodr] - Update to gcc-11.1.0. Fixes - #4847. - - - [renodr] - Fix a FTBFS when building glibc-2.33 with - gcc-11.1.0. - - - [renodr] - Update to systemd-248. Fixes - #4841. - - - [renodr] - Update to iproute2-5.12.0. Fixes - #4852. - - - [renodr] - Update to Python-3.9.5. Fixes - #4854. - - - [renodr] - Update to meson-0.58.0. Fixes - #4853. - - - [renodr] - Update to linux-5.12.2. Fixes - #4840. - - - - - - 2021-04-28 - - - [renodr] - Fix building systemd with Linux-API-Headers 5.11.14 - and higher, as well as with meson-0.57.2. Fixes - #4851. - - - [bdubbs] - Add manual locales needed for tests - if using alternate locale installation instructions. Fixes - #4844. - - - [bdubbs] - Minor changes to boot scripts. Fixes - #4842. - Thanks to Scott Andrews for the report. - - - - - - 2021-04-26 - - - [bdubbs] - Update to vim-8.2.2812. Addresses - #4500. - - - [bdubbs] - Update to iana-etc-20210407. Addresses - #4722. - - - [bdubbs] - Update to Python3-3.9.4. Fixes - #4843. - - - [bdubbs] - Update to meson-0.57.2. Fixes - #4846. - - - [bdubbs] - Update to linux-5.11.16. Addresses - #4840. - - - [bdubbs] - Update to less-581. Fixes - #4849. - - - [bdubbs] - Update to file-5.40. Fixes - #4839. - - - [bdubbs] - Update to bc-4.0.1. Fixes - #4845. - - - - - - 2021-04-22 - - - [xry111] - Revert 2772bb9c, as the proposed fix in it is - rejected by Python maintainers explicitly. - - - - - - 2021-04-06 - - - The XML source code of this book is migrated from SVN - to Git. - - - - - - 2021-03-26 - - - [renodr] - Update to openssl-1.1.1k (Security Update). Fixes - #4838. - - - [renodr] - Update to attr-2.5.1. Fixes - #4833. - - - [renodr] - Update to linux-5.11.10. Fixes - #4834. - - - [renodr] - Update to bc-3.3.4. Fixes - #4835. - - - [renodr] - Update to man-pages-5.11. Fixes - #4836. - - - [renodr] - Update to expat-2.3.0. Fixes - #4837. - - - [renodr] - Update to acl-2.3.1. Fixes - #4832. - - - - - - 2021-03-17 - - - [xry111] - Use for Binutils - installation. Thanks report from Hans Meier. - - - - - - 2021-03-15 - - - [bdubbs] - Update to vim-8.2.2604. Addreses - #4500. - - - [bdubbs] - Update to iana-etc-20210304. Addreses - #4722. - - - [bdubbs] - Update to zstd-1.4.9. Fixes - #4827. - - - [bdubbs] - Update to sysvinit-2.99. Fixes - #4822. - - - [bdubbs] - Update to linux-5.11.6. Fixes - #4824. - - - [bdubbs] - Update to libcap-2.49. Fixes - #4831. - - - [bdubbs] - Update to iproute2-5.11.0. Fixes - #4823. - - - [bdubbs] - Update to e2fsprogs-1.46.2. Fixes - #4826. - - - [bdubbs] - Update to bison-3.7.6. Fixes - #4828. - - - [bdubbs] - Update to bc-3.3.3. Fixes - #4825. - - - [bdubbs] - Update to attr-2.5.0. Fixes - #4830. - - - [bdubbs] - Update to acl-2.3.0. Fixes - #4829. - - - - - - 2021-03-05 - - - [xry111] - Simplify the installation of systemd man pages. - - - - - - - 2021-03-04 - - - [renodr] - Patch systemd-247 so that it will function with - Linux-5.11 API headers. - - - - - - 2021-03-02 - - - [pierre] - Fix a header file for python, so that - #include <python&python-minor;/Python.h> - works. - - - - - - 2021-03-01 - - - [bdubbs] - LFS-10.1 released. - - - - diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index a8584a71f..f4f4be90c 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -30,30 +30,30 @@ - + + - + + + + + @@ -63,30 +63,30 @@ - + - + + - + - + @@ -96,99 +96,99 @@ - + + - + - + - + - + - + - + + - + + + - + + - + - + @@ -201,15 +201,15 @@ - + - + @@ -219,45 +219,45 @@ - + - + + + + - + - + + @@ -267,9 +267,9 @@ - + + diff --git a/chapter05/binutils-pass1.xml b/chapter05/binutils-pass1.xml index 807080812..e17c2fc92 100644 --- a/chapter05/binutils-pass1.xml +++ b/chapter05/binutils-pass1.xml @@ -70,10 +70,10 @@ cd build Now prepare Binutils for compilation: -../configure --prefix=$LFS/tools \ - --with-sysroot=$LFS \ - --target=$LFS_TGT \ - --disable-nls \ + ../configure --prefix=$LFS/tools \ + --with-sysroot=$LFS \ + --target=$LFS_TGT \ + --disable-nls \ --disable-werror diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml index af75e60cf..27ae2a04d 100644 --- a/chapter06/coreutils.xml +++ b/chapter06/coreutils.xml @@ -83,10 +83,10 @@ not necessary in this temporary environment, we must do so because some programs harcode executable locations: -mv -v $LFS/usr/bin/chroot $LFS/usr/sbin +mv -v $LFS/usr/bin/chroot $LFS/usr/sbin mkdir -pv $LFS/usr/share/man/man8 -mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8 -sed -i 's/"1"/"8"/' $LFS/usr/share/man/man8/chroot.8 +mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8 +sed -i 's/"1"/"8"/' $LFS/usr/share/man/man8/chroot.8 diff --git a/chapter07/cleanup.xml b/chapter07/cleanup.xml index bc8f240b8..101105d99 100644 --- a/chapter07/cleanup.xml +++ b/chapter07/cleanup.xml @@ -20,7 +20,7 @@ Second, the libtool .la files are only useful when linking with static libraries. They are unneeded and potentially harmful when using dynamic - shared libraries, specially when using non-autotools build systems. + shared libraries, especially when using non-autotools build systems. While still in chroot, remove those files now: find /usr/{lib,libexec} -name \*.la -delete @@ -37,6 +37,17 @@ Backup + + At this point the essential programs and libraries have been created + and your current LFS system is in a good state. Your system can now be + backed up for later reuse. In case of fatal failures in the subsequent + chapters, it often turns out that removing everything and starting over + (more carefully) is the best option to recover. Unfortunately, all the + temporary files will be removed, too. To avoid spending extra time to + redo something which has been built successfully, creating a backup of + the current LFS system may prove useful. + + All the remaining steps in this section are optional. Nevertheless, as soon as you begin installing packages in - - All of the following instructions are executed by - root. Take extra - care about the commands you're going to run as mistakes - here can modify your host system. Be aware that the - environment variable LFS - is set for user lfs by default - but may not be set for - root. Whenever - commands are to be executed by root, - make sure you have set LFS. - This has been discussed in . - - - - Now, if you are making a backup, leave the chroot environment: + If you have decided to make a backup, leave the chroot environment: exit - - At this point the essential programs and libraries have been created - and your current system is in a good state. Your system can now be - backed up for later reuse. In case of fatal failures in the subsequent - chapters, it often turns out that removing everything and starting over - (more carefully) is the best option to recover. Unfortunately, all the - temporary files will be removed, too. To avoid spending extra time to - redo something which has been built successfully, prepare a backup. - + + + All of the following instructions are executed by + root on your host system. + Take extra care about the commands you're going to run as mistakes + here can modify your host system. Be aware that the + environment variable LFS + is set for user lfs by default + but may not be set for + root. + + + Whenever commands are to be executed by root, + make sure you have set LFS. + + + This has been discussed in . + + + + Before making a backup, unmount the virtual file systems: + +umount $LFS/dev/pts +umount $LFS/{sys,proc,run,dev} Make sure you have at least 1 GB free disk space (the source tarballs - will be included in the backup archive) in the home directory of user - root. + will be included in the backup archive) on the filesystem containing + directory where you create the backup archive. - Before we make a backup, unmount the virtual file systems: + +<<<<<<< HEAD + Make sure you have at least 1 GB free disk space (the source tarballs + will be included in the backup archive) in the home directory of user + root. +======= + Note that the instructions below specify the home directory of the host + system's root user, which is + typically found on the root filesystem. +>>>>>>> 8e6babecd0d75542a01eedfde32556879733f842 + -umount $LFS/dev{/pts,} -umount $LFS/{sys,proc,run} + + Replace $HOME by a directory of your choice if you + do not want to have the backup stored in root's home directory. + Create the backup archive by running the following command: @@ -107,11 +131,14 @@ umount $LFS/{sys,proc,run} Because the backup archive is compressed, it takes a relatively long time (over 10 minutes) even on a resonably fast system. +<<<<<<< HEAD Also, ensure the LFS environment variable is set for the root user. +======= +>>>>>>> 8e6babecd0d75542a01eedfde32556879733f842 cd $LFS @@ -120,11 +147,14 @@ tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz . cd $LFS tar -cJpf $HOME/lfs-temp-tools-&versiond;.tar.xz . +<<<<<<< HEAD Replace $HOME by a directory of your choice if you do not want to have the backup stored in root's home directory. +======= +>>>>>>> 8e6babecd0d75542a01eedfde32556879733f842 diff --git a/chapter07/introduction.xml b/chapter07/introduction.xml index 1d53f6987..2b0030d7b 100644 --- a/chapter07/introduction.xml +++ b/chapter07/introduction.xml @@ -11,11 +11,10 @@ Introduction This chapter shows how to build the last missing bits of the temporary - system: first, the tools needed by the build machinery of various packages, - then three packages needed to run tests. Now that all circular dependencies - have been resolved, we can use a chroot environment, - completely isolated the host operating system used for the build, except - for the running kernel. + system: the tools needed by the build machinery of various packages. Now + that all circular dependencies have been resolved, a chroot + environment, completely isolated from the host operating system (except for + the running kernel), can be used for the build. For proper operation of the isolated environment, some communication with the running kernel must be established. This is done through the diff --git a/chapter07/texinfo.xml b/chapter07/texinfo.xml index b67d0ab46..8f769c064 100644 --- a/chapter07/texinfo.xml +++ b/chapter07/texinfo.xml @@ -52,12 +52,6 @@ ./configure --prefix=/usr - - As part of the configure process, a test is made that indicates an - error for TestXS_la-TestXS.lo. This is not relevant for LFS and should be - ignored. - - Compile the package: make diff --git a/chapter08/e2fsprogs.xml b/chapter08/e2fsprogs.xml index 4144cd205..79fdc5f1f 100644 --- a/chapter08/e2fsprogs.xml +++ b/chapter08/e2fsprogs.xml @@ -93,6 +93,8 @@ cd build make check + One test, u_direct_io, is known to fail on some systems. + + Install the package: make install diff --git a/chapter08/grub.xml b/chapter08/grub.xml index 7ad5a3272..e9008c31a 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -53,7 +53,6 @@ Prepare GRUB for compilation: ./configure --prefix=/usr \ - --sbindir=/sbin \ --sysconfdir=/etc \ --disable-efiemu \ --disable-werror diff --git a/chapter08/openssl.xml b/chapter08/openssl.xml index d1690efc6..cece1904f 100644 --- a/chapter08/openssl.xml +++ b/chapter08/openssl.xml @@ -59,9 +59,10 @@ make test - One test 30-test_afalg.t is known to fail on some kernel - configurations (it apparently assumes certain unspecified crypto - options have been selected). + One test, 30-test_afalg.t, is known to fail on some kernel + configurations (depending on inconsistent values of + CONFIG_CRYPTO_USER_API* settings.) If it fails, it can safely be + ignored. Install the package: diff --git a/chapter11/reboot.xml b/chapter11/reboot.xml index 5b7f8b034..e2f0e0c59 100644 --- a/chapter11/reboot.xml +++ b/chapter11/reboot.xml @@ -20,19 +20,22 @@ - A text mode browser such as Lynx + A text mode browser such as LynxLynx will allow you to easily view the BLFS book in one virtual terminal, while building packages in another. - The - make-ca package + The make-camake-ca package will allow you to set up local trusted anchor certificates, allowing the system to verify SSL certificates provided by remote servers (for example, a website using HTTPS). - The GPM package will allow + The GPMGPM package will allow you to perform copy/paste actions in your virtual terminals. @@ -44,27 +47,33 @@ url='&blfs-book;basicnet/dhcp.html'>dhcp may be useful. - Installing sudo may be useful for + Installing sudosudo may be useful for building packages as a non-root user and easily installing the resulting - packages in your new system. + packages in your new system. If you want to access your new system from a remote system - within a comfortable GUI environment, install openssh. + within a comfortable GUI environment, install opensshopenssh. To make fetching files over the internet easier, install - wget. + wgetwget. To connect to a wireless access point for networking, - install - wpa_supplicant. + install wpa_supplicantwpa_supplicant. Finally, a review of the following configuration files - is also appropriate at this point. + is also appropriate at this point. /etc/bashrc diff --git a/chapter11/whatnow.xml b/chapter11/whatnow.xml index 9e6062cf7..e72f4ca5e 100644 --- a/chapter11/whatnow.xml +++ b/chapter11/whatnow.xml @@ -57,7 +57,9 @@ The Beyond Linux From Scratch book covers installation procedures for a wide range of software beyond the scope of the LFS - Book. The BLFS project is located at . + Book. The BLFS project is located at . + diff --git a/general.ent b/general.ent index 9431cf046..4c7e25795 100644 --- a/general.ent +++ b/general.ent @@ -17,12 +17,13 @@ Change to x.y for release but not -rc releases --> - + + diff --git a/packages.ent b/packages.ent index fd4385650..7d08cf9b1 100644 --- a/packages.ent +++ b/packages.ent @@ -140,10 +140,10 @@ - - + + - + @@ -394,10 +394,10 @@ - - + + - + @@ -428,12 +428,12 @@ - + - + - + - + + - + diff --git a/prologue/why.xml b/prologue/why.xml index 24b792e45..2d469d212 100644 --- a/prologue/why.xml +++ b/prologue/why.xml @@ -626,7 +626,7 @@ Zstd This package contains compression and decompression routines - used by some programs. It provide high compression ratios and a very + used by some programs. It provides high compression ratios and a very wide range of compression / speed trade-offs.