From dbc347c53c0d60fb5a6f0b9a8bf5ccf88159a7b3 Mon Sep 17 00:00:00 2001 From: "Douglas R. Reno" Date: Tue, 29 Sep 2015 21:27:18 +0000 Subject: [PATCH] Update to util-linux-2.27 Update to linux-4.2 Update to iproute2-4.2.0 Refresh SBU values and build sizes Remove unnecessary sed in e2fsprogs Provide ncurses non-wide-character libraries for version 5 Add additional discussion about copying systems Fix a warning in the GCC compiler tests Several typo fixes and additional clarification. git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd@10956 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 32 +++++ chapter05/adjusting.xml | 2 +- chapter05/gcc-pass2.xml | 2 +- chapter05/glibc.xml | 7 +- chapter06/adjusting.xml | 2 +- chapter06/diffutils.xml | 2 + chapter06/e2fsprogs.xml | 4 +- chapter06/glibc.xml | 2 +- chapter06/grep.xml | 2 + chapter06/introduction.xml | 4 +- chapter06/m4.xml | 2 + chapter06/ncurses.xml | 9 +- chapter06/pkgmgt.xml | 8 +- chapter06/xz.xml | 2 +- general.ent | 4 +- packages.ent | 288 ++++++++++++++++++------------------- prologue/hostreqs.xml | 4 +- 17 files changed, 211 insertions(+), 165 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index d838bb3fb..d1ea0c7dc 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -36,6 +36,38 @@ --> + + 2015-09-28 + + + [renodr] - Fix a warning when doing the GCC compile tests. + + + [renodr] - Add additional discussion about copying LFS systems + from one machine to another machine. + + + [renodr] - Provide ncurses non-wide-character libraries that + are compliant with version 5 of ncurses. + + + [renodr] - Remove unnecessary sed in e2fsprogs. + + + [renodr] - Update to util-linux-2.27. + + + [renodr] - Update to linux-4.2. + + + [renodr] - Update to iproute2-4.2.0. + + + [renodr] - Refresh build sizes and SBU values. + + + + 2015-08-25 diff --git a/chapter05/adjusting.xml b/chapter05/adjusting.xml index 7179233d2..e567da5a5 100644 --- a/chapter05/adjusting.xml +++ b/chapter05/adjusting.xml @@ -45,7 +45,7 @@ unset SPECS functions (compiling and linking) of the new toolchain are working as expected. To perform a sanity check, run the following commands: -echo 'main(){}' > dummy.c +echo 'int main(){}' > dummy.c $LFS_TGT-gcc -B/tools/lib dummy.c readelf -l a.out | grep ': /tools' diff --git a/chapter05/gcc-pass2.xml b/chapter05/gcc-pass2.xml index e2df1764d..ec460e482 100644 --- a/chapter05/gcc-pass2.xml +++ b/chapter05/gcc-pass2.xml @@ -181,7 +181,7 @@ RANLIB=$LFS_TGT-ranlib \ functions (compiling and linking) of the new toolchain are working as expected. To perform a sanity check, run the following commands: -echo 'main(){}' > dummy.c +echo 'int main(){}' > dummy.c cc dummy.c readelf -l a.out | grep ': /tools' diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index 34a372434..111ba63ec 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -191,7 +191,7 @@ cd ../glibc-build functions (compiling and linking) of the new toolchain are working as expected. To perform a sanity check, run the following commands: -echo 'main(){}' > dummy.c +echo 'int main(){}' > dummy.c $LFS_TGT-gcc dummy.c readelf -l a.out | grep ': /tools' @@ -200,9 +200,8 @@ readelf -l a.out | grep ': /tools' [Requesting program interpreter: /tools/lib/ld-linux.so.2] - Note that /tools/lib, or - /tools/lib64 for 64-bit machines - appears as the prefix of the dynamic linker. + Note that for 64-bit machines, the interpreter name will be + /tools/lib64/ld-linux-x86-64.so.2. If the output is not shown as above or there was no output at all, then something is wrong. Investigate and retrace the steps to find out diff --git a/chapter06/adjusting.xml b/chapter06/adjusting.xml index df01e9b68..bc9e236a6 100644 --- a/chapter06/adjusting.xml +++ b/chapter06/adjusting.xml @@ -42,7 +42,7 @@ ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld functions (compiling and linking) of the adjusted toolchain are working as expected. To do this, perform the following sanity checks: -echo 'main(){}' > dummy.c +echo 'int main(){}' > dummy.c cc dummy.c -v -Wl,--verbose &> dummy.log readelf -l a.out | grep ': /lib' diff --git a/chapter06/diffutils.xml b/chapter06/diffutils.xml index d98bc500d..89bd81be7 100644 --- a/chapter06/diffutils.xml +++ b/chapter06/diffutils.xml @@ -57,6 +57,8 @@ make check + The test-update-copyright.sh failure can be safely ignored. + Install the package: make install diff --git a/chapter06/e2fsprogs.xml b/chapter06/e2fsprogs.xml index 071fb147e..2ea667a3b 100644 --- a/chapter06/e2fsprogs.xml +++ b/chapter06/e2fsprogs.xml @@ -44,11 +44,11 @@ Installation of E2fsprogs - First, fix a potential security issue identified upstream: + The E2fsprogs documentation recommends that the package be built in a subdirectory of the source tree: diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index d313c39e4..a55ef9722 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -139,7 +139,7 @@ cd ../glibc-build --> The elf/tst-protected1a and - elf/tst-protected1a tests are known to + elf/tst-protected1b tests are known to fail with the current stable version of binutils. diff --git a/chapter06/grep.xml b/chapter06/grep.xml index 126b65182..deeb99791 100644 --- a/chapter06/grep.xml +++ b/chapter06/grep.xml @@ -56,6 +56,8 @@ make check + The test-update-copyright.sh failure can be safely ignored. + Install the package: make install diff --git a/chapter06/introduction.xml b/chapter06/introduction.xml index ae0e54c58..4671662c6 100644 --- a/chapter06/introduction.xml +++ b/chapter06/introduction.xml @@ -64,10 +64,10 @@ into a program can be detrimental. If an update to the library is needed to remove a security problem, all programs that use the static library will need to be relinked to the new library. Since the use of static libraries - is not always obvious, deciding which programs (and the procedures needed to + is not always obvious, the relevant programs (and the procedures needed to do the linking) may not even be known. - In the prcedures in Chapter 6, we remove or disable installation of + In the procedures in Chapter 6, we remove or disable installation of most static libraries. In a few cases, especially glibc and gcc, the use of static libraries remains essential to the general package building process. Usually this is done by passing a diff --git a/chapter06/m4.xml b/chapter06/m4.xml index ca2f5b582..804173a8f 100644 --- a/chapter06/m4.xml +++ b/chapter06/m4.xml @@ -52,6 +52,8 @@ make check + The test-update-copyright.sh failure can safely be ignored. + Install the package: make install diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml index f84948146..e037f6a04 100644 --- a/chapter06/ncurses.xml +++ b/chapter06/ncurses.xml @@ -141,7 +141,9 @@ cp -v -R doc/* /usr/share/doc/ncurses-&ncurses-version; The instructions above don't create non-wide-character Ncurses libraries since no package installed by compiling from sources would - link against them at runtime. If you must have such libraries because + link against them at runtime. However, the only known binary-only + applications that link against non-wide-character Ncurses libraries + require version 5. If you must have such libraries because of some binary-only application or to be compliant with LSB, build the package again with the following commands: @@ -150,9 +152,10 @@ cp -v -R doc/* /usr/share/doc/ncurses-&ncurses-version; --with-shared \ --without-normal \ --without-debug \ - --without-cxx-binding + --without-cxx-binding \ + --with-abi-version=5 make sources libs -cp -av lib/lib*.so.6* /usr/lib +cp -av lib/lib*.so.5* /usr/lib diff --git a/chapter06/pkgmgt.xml b/chapter06/pkgmgt.xml index 4810bab78..64387f5b4 100644 --- a/chapter06/pkgmgt.xml +++ b/chapter06/pkgmgt.xml @@ -250,7 +250,7 @@ make DESTDIR=/usr/pkg/libfoo/1.1 install One of the advantages of an LFS system is that there are no files that depend on the position of files on a disk system. Cloning an LFS build to - another computer with an architecture similar to the base system is as + another computer with the same architecture as the base system is as simple as using tar on the LFS partition that contains the root directory (about 250MB uncompressed for a base LFS build), copying that file via network transfer or CD-ROM to the new system and expanding @@ -268,6 +268,12 @@ make DESTDIR=/usr/pkg/libfoo/1.1 install differences in system hardware and the original kernel configuration. + There have been some reports of issues when copying between + similar but not identical architectures. For instance, the instruction set + for an Intel architecture is not identical with an AMD processor and later + versions of some processors may have instructions that are unavailable in + earlier versions. + Finally the new system has to be made bootable via . diff --git a/chapter06/xz.xml b/chapter06/xz.xml index 6a94393ce..8d29b578a 100644 --- a/chapter06/xz.xml +++ b/chapter06/xz.xml @@ -149,7 +149,7 @@ ln -svf ../../lib/$(readlink /usr/lib/liblzma.so) /usr/lib/liblzma.so lzegrep - Runs egrep on LZMA compressed files files + Runs egrep on LZMA compressed files lzegrep diff --git a/general.ent b/general.ent index c7a28f304..438184662 100644 --- a/general.ent +++ b/general.ent @@ -1,6 +1,6 @@ - + - + diff --git a/packages.ent b/packages.ent index 346471e6d..dd2a76169 100644 --- a/packages.ent +++ b/packages.ent @@ -11,7 +11,7 @@ - + @@ -19,7 +19,7 @@ - + @@ -27,8 +27,8 @@ - - + + @@ -36,55 +36,55 @@ - - + + - + - - + + - - + + - + - - - - + + + + - - + + - + - + @@ -92,7 +92,7 @@ - + @@ -100,10 +100,10 @@ - - - - + + + + @@ -111,14 +111,14 @@ - + - + @@ -126,10 +126,10 @@ - + - - + + + + + + - +