From f7ca699b41537d9250167d4c90d8c4cc4a98ec39 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 9 May 2020 10:49:56 +0000 Subject: merge trunk and add patch to gcc pass2 git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11842 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'chapter01/changelog.xml') diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 5dcdccc4a..7cb1f46bc 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,42 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2020-05-09 + + + [pierre] - Patch GCC pass 2 to allow cross-compile + (specific to new cross method). + + + + + + 2020-05-08 + + + [bdubbs] - Update to bison-3.6. Fixes + #4652. + + + [bdubbs] - Update to gcc-10.1.0. Fixes + #4651. + + + [bdubbs] - Update to libcap-2.34. Fixes + #4650. + + + [bdubbs] - Update to bc-2.7.2. Fixes + #4648. + + + [bdubbs] - Update to linux-5.6.11. Fixes + #4649. + + + + 2020-05-01 -- cgit v1.2.3-54-g00ecf From 0f70354165958e8ab775ee96657156c81a787340 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 9 May 2020 20:54:03 +0000 Subject: merge trunk r11843 git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11844 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 10 +++++++++ chapter06/systemd.xml | 57 +++++++++++++++++++++++++++++-------------------- general.ent | 4 ++-- 3 files changed, 46 insertions(+), 25 deletions(-) (limited to 'chapter01/changelog.xml') diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 7cb1f46bc..b6dd76745 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,16 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2020-05-09 + + + [pierre] - Pass -Wno-format-overflow to systemd to + prevent an error with GCC 10. + + + + 2020-05-09 diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml index 2870c3846..cbba14a69 100644 --- a/chapter06/systemd.xml +++ b/chapter06/systemd.xml @@ -69,34 +69,45 @@ mkdir -p build cd build -LANG=en_US.UTF-8 \ -meson --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - -Dblkid=true \ - -Dbuildtype=release \ - -Ddefault-dnssec=no \ - -Dfirstboot=false \ - -Dinstall-tests=false \ - -Dkmod-path=/bin/kmod \ - -Dldconfig=false \ - -Dmount-path=/bin/mount \ - -Drootprefix= \ - -Drootlibdir=/lib \ - -Dsplit-usr=true \ - -Dsulogin-path=/sbin/sulogin \ - -Dsysusers=false \ - -Dumount-path=/bin/umount \ - -Db_lto=false \ - -Drpmmacrosdir=no \ - -Dhomed=false \ - -Duserdb=false \ - -Dman=true \ +LANG=en_US.UTF-8 \ +meson --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + -Dc_args=-Wno-format-overflow \ + -Dblkid=true \ + -Dbuildtype=release \ + -Ddefault-dnssec=no \ + -Dfirstboot=false \ + -Dinstall-tests=false \ + -Dkmod-path=/bin/kmod \ + -Dldconfig=false \ + -Dmount-path=/bin/mount \ + -Drootprefix= \ + -Drootlibdir=/lib \ + -Dsplit-usr=true \ + -Dsulogin-path=/sbin/sulogin \ + -Dsysusers=false \ + -Dumount-path=/bin/umount \ + -Db_lto=false \ + -Drpmmacrosdir=no \ + -Dhomed=false \ + -Duserdb=false \ + -Dman=true \ .. The meaning of the meson options: + + -Dc_args=-Wno-format-overflow + + The defaults flags passed to gcc contain + -Werror=format-overflow, which generates + an error with GCC 10. Passing this parameter prevents the error + from occuring. + + + -D*-path=* diff --git a/general.ent b/general.ent index dd42dc5e9..0193899ed 100644 --- a/general.ent +++ b/general.ent @@ -3,11 +3,11 @@ Change to x.y for release but not -rc releases --> - + - + -- cgit v1.2.3-54-g00ecf From e14f0cbf8831bb81c237a5ee38bd82482183ef73 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 17 May 2020 14:18:04 +0000 Subject: Update to upstream r11850 git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11851 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 22 ++++++++++++++++++++++ general.ent | 6 +++--- packages.ent | 28 ++++++++++++++-------------- 3 files changed, 39 insertions(+), 17 deletions(-) (limited to 'chapter01/changelog.xml') diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index b6dd76745..80a6f0fb7 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,28 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2020-05-16 + + + [bdubbs] - Update to meson-0.54.2. Fixes + #4656. + + + [bdubbs] - Update to Python-3.8.3. Fixes + #4655. + + + [bdubbs] - Update to bison-3.6.1. Fixes + #4654. + + + [bdubbs] - Update to linux-5.6.13. Fixes + #4653. + + + + 2020-05-09 diff --git a/general.ent b/general.ent index 0193899ed..37dfee90c 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ - + - + - + diff --git a/packages.ent b/packages.ent index 71dcb861d..b7bb7f9ff 100644 --- a/packages.ent +++ b/packages.ent @@ -70,10 +70,10 @@ - - + + - + @@ -425,12 +425,12 @@ - + - + - + - + - + - + - - + + -- cgit v1.2.3-54-g00ecf From 999631e8cf5f3916d0cb2e0d36905cc7dbef8a63 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Thu, 21 May 2020 10:02:22 +0000 Subject: Merge trunk r11852 git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11853 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 10 ++++++++++ chapter08/kernel.xml | 10 ++++++++++ general.ent | 6 +++--- 3 files changed, 23 insertions(+), 3 deletions(-) (limited to 'chapter01/changelog.xml') diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 80a6f0fb7..f5a0f964a 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,16 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2020-05-21 + + + [pierre] - Fix a crash at early boot when using + CONFIG_STACK_PROTECTOR_STRONG=y in kernel configuration. + + + + 2020-05-16 diff --git a/chapter08/kernel.xml b/chapter08/kernel.xml index 0033028cf..5bacd11a1 100644 --- a/chapter08/kernel.xml +++ b/chapter08/kernel.xml @@ -54,6 +54,16 @@ kernel compilation. Do not rely on the source tree being clean after un-tarring. + + When using CONFIG_STACKPROTECTOR_STRONG=y, and + compiling with GCC 10 and later, the default optimization is too + aggressive, and generates a kernel panic when booting. This can be + fixed with: + +sed -e '/cpu_startup/a asm("");' \ + -i arch/x86/{kernel/smpboot.c,xen/smp_pv.c} + Configure the kernel via a menu-driven interface. For general diff --git a/general.ent b/general.ent index 37dfee90c..604b3139b 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ - + - + - + -- cgit v1.2.3-54-g00ecf From f4bb2af2e4b9c007a6e660409e9fd5670c3469df Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 23 May 2020 11:35:18 +0000 Subject: merge trunk up to r11856 git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11857 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- appendices/dependencies.xml | 2 +- chapter01/changelog.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'chapter01/changelog.xml') diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml index d46acf603..55bcd3800 100644 --- a/appendices/dependencies.xml +++ b/appendices/dependencies.xml @@ -285,7 +285,7 @@ &external; - None + Debuginfod diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index f5a0f964a..649067ea9 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -97,6 +97,9 @@ 2020-05-08 + + [bdubbs] - Update to vim-8.2.0716. + [bdubbs] - Update to bison-3.6. Fixes #4652. -- cgit v1.2.3-54-g00ecf From ae7f075dd6185f9ec93d5aedbb46e98511f25235 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 30 May 2020 18:22:47 +0000 Subject: Update to trunk r11877 git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11878 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- appendices/dependencies.xml | 8 ++--- chapter01/changelog.xml | 78 +++++++++++++++++++++++++++++++++++++++++++++ chapter01/whatsnew.xml | 8 ++--- chapter03/patches.xml | 10 +++--- chapter05/chapter05.xml | 1 - chapter05/createfiles.xml | 8 +++++ chapter05/kernfs.xml | 2 +- chapter06/automake.xml | 4 +++ chapter06/bash.xml | 15 ++++++--- chapter06/binutils.xml | 8 +++-- chapter06/chapter06.xml | 4 +-- chapter06/coreutils.xml | 17 +++++----- chapter06/findutils.xml | 6 ++-- chapter06/gcc.xml | 6 ++-- chapter06/make.xml | 2 +- chapter06/revisedchroot.xml | 6 ++++ chapter06/sed.xml | 7 ++-- chapter06/util-linux.xml | 15 +++------ chapter06/vim.xml | 8 ++--- chapter08/kernel.xml | 10 ------ general.ent | 6 ++-- packages.ent | 28 ++++++++-------- patches.ent | 4 +++ 23 files changed, 174 insertions(+), 87 deletions(-) (limited to 'chapter01/changelog.xml') diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml index 55bcd3800..ddda9377c 100644 --- a/appendices/dependencies.xml +++ b/appendices/dependencies.xml @@ -780,7 +780,7 @@ &before; - None + Binutils, IProute2, Kbd, Kmod, and Man-DB @@ -837,7 +837,7 @@ Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, GMP, Grep, M4, Make, MPC, MPFR, Patch, Perl, Sed, Tar, - and Texinfo + Texinfo, and Zstd @@ -911,7 +911,7 @@ Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, - Sed, and Texinfo + Ncurses, Sed, and Texinfo @@ -2786,7 +2786,7 @@ &before; - None + GCC diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 649067ea9..f0f45fc81 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,84 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2020-05-29 + + + [bdubbs] - Run sed and findutils tests as an + unprivileged user. Fixes + #4661. + + + + + + 2020-05-28 + + + [bdubbs] - Add an unprivileged user, tester, at the + beginning of Chapter 6 for running some tests. This + user is then removed at the end of the chapter. + + + [bdubbs] - Update to zstd-1.4.5. Fixes + #4660. + + + [bdubbs] - Update to util-linux-2.35.2. Fixes + #4659. + + + [bdubbs] - Update to bison-3.6.2. Fixes + #4657. + + + [pierre] - Update to linux-5.6.15. Fixes + #4658. + + + + + + 2020-05-27 + + + [pierre] - Bash: document test results. + + + + + + 2020-05-26 + + + [pierre] - Bash: do not use "su -c command" to change user + to nobody: it removes the controlling terminal and makes some + tests fail. Use "su << EOF" instead. + + + [pierre] - Mount /dev/pts with "--bind", so that "tty" + knows there is a terminal. Fixes a test in coreutils. + + + [pierre] - Add a patch to fix a failure in gold test suite, + which really needs -fcommon in some tests. + + + [pierre] - Fix a failure in automake test suite. + + + [pierre] - Update to vim-8.2.0814. + + + [pierre] - Add a symlink from /tools/lib/locale + to /usr/lib/locale/locale-archive, to allow some programs + to find the installed locales. Fixes test failures in bison + and man-db. + + + + 2020-05-21 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 1076ba6a1..7b009d1e3 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -242,9 +242,9 @@ Tzdata-&tzdata-version; - + Vim-&vim-version; @@ -257,9 +257,9 @@ - + + Bzip2 Documentation Patch - &bzip2-docs-patch-size;: diff --git a/chapter05/chapter05.xml b/chapter05/chapter05.xml index e12bba837..5d8ada259 100644 --- a/chapter05/chapter05.xml +++ b/chapter05/chapter05.xml @@ -22,7 +22,6 @@ - diff --git a/chapter05/createfiles.xml b/chapter05/createfiles.xml index c762c50b9..ce1f67ba7 100644 --- a/chapter05/createfiles.xml +++ b/chapter05/createfiles.xml @@ -156,6 +156,14 @@ EOF administrator since well-written programs do not depend on GID numbers, but rather use the group's name. + Some tests in need a regular + user. We add this user here and delete this account at the end of that + chapter. + +echo "tester:x:101:101::/home/tester:/bin/bash" >> /etc/passwd +echo "tester:x:101:" >> /etc/group +install -o tester -d /home/tester + To remove the I have no name! prompt, start a new shell. Since the /etc/passwd and /etc/group diff --git a/chapter05/kernfs.xml b/chapter05/kernfs.xml index b82ac4e7b..dd6b8991c 100644 --- a/chapter05/kernfs.xml +++ b/chapter05/kernfs.xml @@ -68,7 +68,7 @@ mknod -m 666 $LFS/dev/null c 1 3 Now mount the remaining virtual kernel filesystems: -mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620 +mount -v --bind /dev/pts $LFS/dev/pts mount -vt proc proc $LFS/proc mount -vt sysfs sysfs $LFS/sys mount -vt tmpfs tmpfs $LFS/run diff --git a/chapter06/automake.xml b/chapter06/automake.xml index 411f096c4..11dccfad3 100644 --- a/chapter06/automake.xml +++ b/chapter06/automake.xml @@ -41,6 +41,10 @@ Installation of Automake + Fix a failing test: + +sed -i "s/''/etags/" t/tags-lisp-space.sh + Prepare Automake for compilation: ./configure --prefix=/usr --docdir=/usr/share/doc/automake-&automake-version; diff --git a/chapter06/bash.xml b/chapter06/bash.xml index adeec10a4..ae42cf4cb 100644 --- a/chapter06/bash.xml +++ b/chapter06/bash.xml @@ -73,14 +73,21 @@ Skip down to Install the package if not running the test suite. - To prepare the tests, ensure that the nobody user can write to the sources tree: + To prepare the tests, ensure that the tester user can write to the sources tree: -chown -Rv nobody . +chown -Rv tester . Now, run the tests as the nobody user: + class="username">tester user: -su nobody -s /bin/bash -c "PATH=$PATH HOME=/home make tests" +su tester -c "PATH=$PATH make tests" + + The tester + user does not have enough permissions for all the tests to pass. This shows + up in some diff output in four test results. Portions of the + run-execscript, run-lastpipe, run-read, and run-test programs + are known to fail in the LFS chroot environment, but pass if the tests + are run in a full system. Install the package and move the main executable to /bin: diff --git a/chapter06/binutils.xml b/chapter06/binutils.xml index d2d9c055d..04dbd199c 100644 --- a/chapter06/binutils.xml +++ b/chapter06/binutils.xml @@ -58,9 +58,11 @@ Ask your system administrator to create more. Now remove one test that prevents the tests from running - to completion: + to completion, and fix other tests in the gold test suite, which + need to be adjusted for GCC 10: -sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in +sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in +patch -Np1 -i ../binutils-&binutils-version;-gcc10_gold_test_fix-1.patch The Binutils documentation recommends building Binutils in a dedicated build directory: @@ -157,7 +159,7 @@ cd build make -k check - The ver_test_pr16504.sh test is known to fail. + Install the package: diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index 9a5ca1fc5..7fc83b374 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -20,10 +20,12 @@ + + @@ -40,7 +42,6 @@ - @@ -69,7 +70,6 @@ - diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml index f383623a2..6a12d4e80 100644 --- a/chapter06/coreutils.xml +++ b/chapter06/coreutils.xml @@ -108,35 +108,34 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \ Now the test suite is ready to be run. First, run the tests that are meant to be run as user root: -make NON_ROOT_USERNAME=nobody check-root +make NON_ROOT_USERNAME=tester check-root We're going to run the remainder of the tests as the - nobody user. Certain tests, + tester user. Certain tests, however, require that the user be a member of more than one group. So that these tests are not skipped we'll add a temporary group and make the - user nobody a part of it: + user tester a part of it: -echo "dummy:x:1000:nobody" >> /etc/group +echo "dummy:x:1000:tester" >> /etc/group Fix some of the permissions so that the non-root user can compile and run the tests: -chown -Rv nobody . +chown -Rv tester . Now run the tests: -su nobody -s /bin/bash \ - -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check" - +su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check" + Remove the temporary group: sed -i '/dummy/d' /etc/group - Install the package: make install diff --git a/chapter06/findutils.xml b/chapter06/findutils.xml index 15b6d70fb..37393f0de 100644 --- a/chapter06/findutils.xml +++ b/chapter06/findutils.xml @@ -67,10 +67,8 @@ To test the results, issue: -make check - - Two tests are known to fail in the chroot environment: - sv-bug-54171.old-O3 and sv-bug-54171.new-O3. +chown -Rv tester . +su tester -c "PATH=$PATH make check" Install the package: diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml index c6d47d970..9e4c53ec5 100644 --- a/chapter06/gcc.xml +++ b/chapter06/gcc.xml @@ -98,8 +98,8 @@ cd build Test the results as a non-privileged user, but do not stop at errors: -chown -Rv nobody . -su nobody -s /bin/bash -c "PATH=$PATH make -k check" +chown -Rv tester . +su tester -c "PATH=$PATH make -k check" To receive a summary of the test suite results, run: @@ -139,7 +139,7 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check" rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include-fixed/bits/ The GCC build directory is owned by - nobody now and the ownership of the installed header + tester now and the ownership of the installed header directory (and its content) will be incorrect. Change the ownership to root user and group: diff --git a/chapter06/make.xml b/chapter06/make.xml index 585f8eea3..9c649cdc5 100644 --- a/chapter06/make.xml +++ b/chapter06/make.xml @@ -56,7 +56,7 @@ We use an environment variable to accomplish this. To test the results, issue: -make PERL5LIB=$PWD/tests/ check +make check Install the package: diff --git a/chapter06/revisedchroot.xml b/chapter06/revisedchroot.xml index 882fbd3d5..0e836d661 100644 --- a/chapter06/revisedchroot.xml +++ b/chapter06/revisedchroot.xml @@ -42,6 +42,7 @@ chroot "$LFS" /usr/bin/env -i \ remove them now: rm -f /usr/lib/lib{bfd,opcodes}.a +rm -f /usr/lib/libctf{,-nobfd}.a rm -f /usr/lib/libbz2.a rm -f /usr/lib/lib{com_err,e2p,ext2fs,ss}.a rm -f /usr/lib/libltdl.a @@ -61,4 +62,9 @@ rm -f /usr/lib/libz.a url="&blfs-book;/introduction/la-files.html">BLFS section "About Libtool Archive (.la) files". + Finally, remove the temporary 'tester' usr account created at the + beginning of this chapter. + +sed -i '/tester/d' /etc/passwd /etc/group +rm -rf /home/tester diff --git a/chapter06/sed.xml b/chapter06/sed.xml index bebd49d14..030e77a0b 100644 --- a/chapter06/sed.xml +++ b/chapter06/sed.xml @@ -40,10 +40,6 @@ Installation of Sed - First fix an issue in the LFS environment and remove a failing test: - -sed -i 's/testsuite.panic-tests.sh//' Makefile.in - Prepare Sed for compilation: ./configure --prefix=/usr --bindir=/bin @@ -55,7 +51,8 @@ make html To test the results, issue: -make check +chown -Rv tester . +su tester -c "PATH=$PATH make check" Install the package and its documentation: diff --git a/chapter06/util-linux.xml b/chapter06/util-linux.xml index bc328e8bb..519c3b171 100644 --- a/chapter06/util-linux.xml +++ b/chapter06/util-linux.xml @@ -40,21 +40,16 @@ - FHS compliance notes + Installation of Util-linux The FHS recommends using the /var/lib/hwclock directory instead of the usual /etc directory as the - location for the adjtime file. First create a directory - to enable storage for the hwclock program: + location for the adjtime file. Create this directory + with: mkdir -pv /var/lib/hwclock - - - - Installation of Util-linux - Prepare Util-linux for compilation: ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ @@ -103,8 +98,8 @@ bash tests/run.sh --srcdir=$PWD --builddir=$PWD -chown -Rv nobody . -su nobody -s /bin/bash -c "PATH=$PATH make -k check" +chown -Rv tester . +su tester -c "make -k check" Install the package: diff --git a/chapter06/vim.xml b/chapter06/vim.xml index 2f91d5c33..263122bd7 100644 --- a/chapter06/vim.xml +++ b/chapter06/vim.xml @@ -67,15 +67,15 @@ make To prepare the tests, ensure that the - nobody user can write + tester user can write to the sources tree: -chown -Rv nobody . +chown -Rv tester . Now run the tests as the nobody user: + class="username">tester user: -su nobody -s /bin/bash -c "LANG=en_US.UTF-8 make -j1 test" &> vim-test.log +su tester -c "LANG=en_US.UTF-8 make -j1 test" &> vim-test.log diff --git a/chapter08/kernel.xml b/chapter08/kernel.xml index 5bacd11a1..0033028cf 100644 --- a/chapter08/kernel.xml +++ b/chapter08/kernel.xml @@ -54,16 +54,6 @@ kernel compilation. Do not rely on the source tree being clean after un-tarring. - - When using CONFIG_STACKPROTECTOR_STRONG=y, and - compiling with GCC 10 and later, the default optimization is too - aggressive, and generates a kernel panic when booting. This can be - fixed with: - -sed -e '/cpu_startup/a asm("");' \ - -i arch/x86/{kernel/smpboot.c,xen/smp_pv.c} - Configure the kernel via a menu-driven interface. For general diff --git a/general.ent b/general.ent index 604b3139b..d6ec5a6b5 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ - + - + - + diff --git a/packages.ent b/packages.ent index b7bb7f9ff..1bdc09625 100644 --- a/packages.ent +++ b/packages.ent @@ -70,10 +70,10 @@ - - + + - + @@ -425,12 +425,12 @@ - + - + - + - + + - + - + - + @@ -737,10 +737,10 @@ - - + + - + diff --git a/patches.ent b/patches.ent index 44e551485..5f3cf0743 100644 --- a/patches.ent +++ b/patches.ent @@ -6,6 +6,10 @@ + + + + -- cgit v1.2.3-54-g00ecf From 264dfd9e05b9595d78642119c9cf43eee5558084 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 31 May 2020 20:01:42 +0000 Subject: Update to upstream r11882 git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11883 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 12 ++++++++++++ chapter05/createfiles.xml | 2 +- chapter06/bash.xml | 4 +++- chapter06/coreutils.xml | 2 +- general.ent | 6 +++--- 5 files changed, 20 insertions(+), 6 deletions(-) (limited to 'chapter01/changelog.xml') diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index f0f45fc81..b577d0b47 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,18 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2020-05-31 + + + [pierre] - Fix bash tests: add a couple of symlinks + from /bin to /tools, create the tester user with the uid of + the tty owner, run the bash tests with su << EOF, and + explicitely defining stdin (with help from thomas and bdubbs). + + + + 2020-05-29 diff --git a/chapter05/createfiles.xml b/chapter05/createfiles.xml index ce1f67ba7..aed8d79da 100644 --- a/chapter05/createfiles.xml +++ b/chapter05/createfiles.xml @@ -160,7 +160,7 @@ EOF user. We add this user here and delete this account at the end of that chapter. -echo "tester:x:101:101::/home/tester:/bin/bash" >> /etc/passwd +echo "tester:x:$(ls -n $(tty) | cut -d" " -f3):101::/home/tester:/bin/bash" >> /etc/passwd echo "tester:x:101:" >> /etc/group install -o tester -d /home/tester diff --git a/chapter06/bash.xml b/chapter06/bash.xml index ae42cf4cb..4d06fc2a3 100644 --- a/chapter06/bash.xml +++ b/chapter06/bash.xml @@ -80,7 +80,9 @@ Now, run the tests as the tester user: -su tester -c "PATH=$PATH make tests" +su tester << EOF +PATH=$PATH make tests < $(tty) +EOF The tester user does not have enough permissions for all the tests to pass. This shows diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml index 6a12d4e80..5a4079d78 100644 --- a/chapter06/coreutils.xml +++ b/chapter06/coreutils.xml @@ -116,7 +116,7 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \ these tests are not skipped we'll add a temporary group and make the user tester a part of it: -echo "dummy:x:1000:tester" >> /etc/group +echo "dummy:x:102:tester" >> /etc/group Fix some of the permissions so that the non-root user can compile and run the tests: diff --git a/general.ent b/general.ent index d6ec5a6b5..2e518c356 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ - + - + - + -- cgit v1.2.3-54-g00ecf From aa990c980fbcbb265a3da648f35cf8bd72ba0ae2 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Mon, 1 Jun 2020 14:38:33 +0000 Subject: Update to upstream r11887 git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11889 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 11 +++++++++++ chapter06/bash.xml | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'chapter01/changelog.xml') diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index b577d0b47..13bced719 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -57,6 +57,17 @@ 2020-05-29 + + [xry111] - Move flex earlier in chapter 6, so that binutils + can use it. + + + [xry111] - Remove bzip2 and flex from chapter 5. + + + [xry111] - Move zstd earlier in chapter 6, so that file and + GCC can use it. + [bdubbs] - Run sed and findutils tests as an unprivileged user. Fixes diff --git a/chapter06/bash.xml b/chapter06/bash.xml index 4d06fc2a3..650c33ade 100644 --- a/chapter06/bash.xml +++ b/chapter06/bash.xml @@ -83,14 +83,14 @@ su tester << EOF PATH=$PATH make tests < $(tty) EOF - + Install the package and move the main executable to /bin: -- cgit v1.2.3-54-g00ecf From d53fefab5a6772fef606392a61608fc290e6a7ae Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Thu, 4 Jun 2020 06:51:00 +0000 Subject: Update to upstream r11895 git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11896 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- appendices/dependencies.xml | 10 +++++----- chapter01/changelog.xml | 31 +++++++++++++++++++++++++++++++ chapter03/patches.xml | 9 +++++++++ chapter06/libelf.xml | 2 +- chapter06/systemd.xml | 12 ++++++------ general.ent | 6 +++--- packages.ent | 28 ++++++++++++++-------------- patches.ent | 4 ++++ 8 files changed, 73 insertions(+), 29 deletions(-) (limited to 'chapter01/changelog.xml') diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml index ddda9377c..6db31fe4e 100644 --- a/appendices/dependencies.xml +++ b/appendices/dependencies.xml @@ -1303,8 +1303,8 @@ &dependencies; - Bash, Bison, Coreutils, Flex, GCC, Glibc, Make, - and Linux API Headers + Bash, Bison, Coreutils, Flex, GCC, Glibc, Make, Libcap, + Libelf, and Linux API Headers @@ -1328,7 +1328,7 @@ &external; - None + Berkeley DB and Iptables @@ -1464,7 +1464,7 @@ &before; - Shadow + IProute2 and Shadow @@ -1499,7 +1499,7 @@ &before; - Linux Kernel + IProute2 and Linux Kernel diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 13bced719..b69298da6 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,37 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + + 2020-06-03 + + + [renodr] - Fix systemd's build with GCC-10 with a patch instead + of CFLAGS. + + + [renodr] - Update to perl-5.30.3 (security update). Fixes + #4664. + + + [renodr] - Update to dbus-1.12.18 (security update). Fixes + #4665. + + + [renodr] - Update to man-db-2.9.2. Fixes + #4663. + + + [renodr] - Update to libcap-2.36. Fixes + #4666. + + + [renodr] - Update to bison-3.6.3. Fixes + #4667. + + + + 2020-05-31 diff --git a/chapter03/patches.xml b/chapter03/patches.xml index bc2418bba..15222e030 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -133,6 +133,15 @@ --> + + + Systemd GCC-10 Patch - &systemd-gcc10-patch-size;: + + Download: + MD5 sum: &systemd-gcc10-patch-md5; + + + Total size of these patches: about diff --git a/chapter06/libelf.xml b/chapter06/libelf.xml index 4af178726..b559e6aa2 100644 --- a/chapter06/libelf.xml +++ b/chapter06/libelf.xml @@ -56,7 +56,7 @@ make check - One test, run-elfclassify.sh, is known to fail. + Install only Libelf: diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml index cbba14a69..2cf2d1d1b 100644 --- a/chapter06/systemd.xml +++ b/chapter06/systemd.xml @@ -39,12 +39,11 @@ Installation of systemd - + First, apply a patch to fix the build with GCC-10: + +patch -Np1 -i ../systemd-&systemd-version;-gcc_10-fixes-1.patch + Create a symlink to work around missing xsltproc: @@ -73,7 +72,6 @@ LANG=en_US.UTF-8 \ meson --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - -Dc_args=-Wno-format-overflow \ -Dblkid=true \ -Dbuildtype=release \ -Ddefault-dnssec=no \ @@ -98,6 +96,7 @@ meson --prefix=/usr \ The meaning of the meson options: + -D*-path=* diff --git a/general.ent b/general.ent index 2e518c356..0ce471efc 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ - + - + - + diff --git a/packages.ent b/packages.ent index 1bdc09625..8948195ab 100644 --- a/packages.ent +++ b/packages.ent @@ -70,10 +70,10 @@ - - + + - + @@ -118,10 +118,10 @@ - + - + @@ -391,10 +391,10 @@ - - + + - + @@ -463,10 +463,10 @@ - - + + - + @@ -539,10 +539,10 @@ - - + + - + diff --git a/patches.ent b/patches.ent index 5f3cf0743..ec1261278 100644 --- a/patches.ent +++ b/patches.ent @@ -56,3 +56,7 @@ --> + + + + -- cgit v1.2.3-54-g00ecf