From bf6f9e75ee62ff6f73805d27285800b816444fbf Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 26 Aug 2022 19:35:47 +0800 Subject: [PATCH 1/6] python: supress "failed to check new pip version" or "a new pip version is available" warnings The non-text change during freeze is approved by bdubbs. --- chapter08/python.xml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/chapter08/python.xml b/chapter08/python.xml index da1f75cdc..0f50bf6ef 100644 --- a/chapter08/python.xml +++ b/chapter08/python.xml @@ -102,12 +102,24 @@ root user. The main reason of this recommendation is for avoiding a conflict with the system package manager (dpkg for example), but LFS does not - have a system-wide package manager so this is not a problem. If desired, - suppress this warning by running the following commands: + have a system-wide package manager so this is not a problem. And, + pip3 will attempt to check for a new version of + itself whenever it's run. As domain name resolving is not configured + yet in LFS chroot environment, it will fail to check for a new version + and produce a warning. Once we boot the LFS system and set up network + connection, it will then produce a warning telling the user to update it + from a pre-built wheel on PyPI if any new version is available. But LFS + consider pip3 a part of Python 3 so it should not be + updated separately, and an update from a pre-built wheel will deviate + from our purpose to build a Linux system from source code. So the + warning for a new pip3 version should be ignored as + well. If desired, suppress these warnings by running the following + commands: cat > /etc/pip.conf << EOF [global] root-user-action = ignore +disable-pip-version-check = true EOF - 2022-08-20 + 2022-09-01 - [bdubbs] - Update to vim-9.0.0228. Addresses - #4500. - - - [bdubbs] - Update to iana-etc-20220812. Addresses - #5006. - - - [bdubbs] - Update to gcc-12.2.0. Fixes - #5098. - - - [bdubbs] - Update to linux-5.19.2 (security fixes). Fixes - #5097. - - - [bdubbs] - Update to tzdata-2022c. Fixes - #5096. - - - [bdubbs] - Update to shadow-4.12.2 (security fix). Fixes - #5095. - - - [bdubbs] - Update to meson-0.63.1. Fixes - #5094. - - - [bdubbs] - Update to xz-5.2.6. Fixes - #5093. - - - - - - 2022-08-18 - - - [xry111] - Remove libtool archive (.la) files in Chapter 5 - and 6 because those files are harmful for cross compilation. - - - - - - 2022-08-11 - - - [bdubbs] - Update to vim-9.0.0192. Addresses - #4500. - - - [bdubbs] - Update to iana-etc-20220803. Addresses - #5006. - - - [bdubbs] - Update to tzdata-2022b. Fixes - #5092. - - - [bdubbs] - Update to iproute2-5.19.0. Fixes - #5086. - - - [bdubbs] - Update to linux-5.19.1. Fixes - #5085. - - - [bdubbs] - Update to bc-6.0.1. Fixes - #5090. - - - - - - 2022-08-06 - - - [bdubbs] - Update to binutils-2.39. Fixes - #5089. - - - [bdubbs] - Update to util-linux-2.38.1. Fixes - #5088. - - - [bdubbs] - Update to Python3-3.10.6. Fixes - #5087. - - - [bdubbs] - Update to glibc-2.36. Fixes - #5084. - - - - - - 2022-07-24 - - - [bdubbs] - Update to linux-5.18.14. (Security fixes - for machines affected by the RETBleed vulnerability). Fixes - #5082. - - - [bdubbs] - Update to libcap-2.65. Fixes - #5083. - - - - - - 2022-07-15 - - - [bdubbs] - Update to meson-0.63.0. Fixes - #5079. - - - [bdubbs] - Update to kmod-30. Fixes - #5077. - - - [bdubbs] - Update to inetutils-2.3. Fixes - #5081. - - - [bdubbs] - Update to linux-5.18.11. Fixes - #5078. - - - [bdubbs] - Update to OpenSSL-3.0.5. Fixes - #5080. - - - - - - 2022-07-01 - - - [bdubbs] - Update to vim-9.0.0006. Addresses - #4500. - - - [bdubbs] - Update to iana-etc-20220610. Addresses - #5006. - - - [bdubbs] - Update to OpenSSL-3.0.4. Fixes - #5076. - - - [bdubbs] - Update to kbd-2.5.1. Fixes - #5075. - - - [bdubbs] - Update to linux-5.18.8. Fixes - #5074. - - - [bdubbs] - Update to bc-5.3.3. Fixes - #5073. - - - - - - 2022-06-29 - - - [pierre] - Generate shared C++ bindings for ncurses, instead - of generating and then removing the static ones. - - - - - - 2022-06-14 - - - [bdubbs] - Update to python3-3.10.5. Fixes - #5070. - - - [bdubbs] - Update to meson-0.62.2. Fixes - #5068. - - - [bdubbs] - Update to kbd-2.5.0. Fixes - #5067. - - - [bdubbs] - Update to file-5.42. Fixes - #5072. - - - [bdubbs] - Update to linux-5.18.3. Fixes - #5069. - - - [bdubbs] - Update to bc-5.3.1. Fixes - #5071. - - - - - - 2022-05-29 - - - [bdubbs] - Update to iana-etc-20220524. - Addresses #5006. - - - [bdubbs] - Update to iproute2-5.18.0. Fixes - #5065. - - - [bdubbs] - Update to linux-5.18.1. Fixes - #5061. - - - [bdubbs] - Update to perl-5.36.0. Fixes - #5066. - - - - - - 2022-05-29 - - - [xry111] - Update to vim-8.2.5014 (security fixes). - Addresses #4500. - - - [xry111] - Update to ninja-1.11.0. Fixes - #5062. - - - [xry111] - Update to systemd-251. Fixes - #5064. - - - - - - 2022-05-16 - - - [bdubbs] - Update to linux-5.17.7. Fixes - #5059. - - - [bdubbs] - Update to psmisc-23.5. Fixes - #5060. - - - - - - 2022-05-01 - - - [bdubbs] - Update to openssl-3.0.3. Fixes - #5057. - - - - - - 2022-05-01 - - - [bdubbs] - Change nobody/nogroup uid/gid to 65534. - - - [bdubbs] - Update to meson-0.62.1. Fixes - #5052. - - - [bdubbs] - Update to libpipeline-1.5.6. Fixes - #5053. - - - [bdubbs] - Update to elfutils-0.187. Fixes - #5054. - - - [bdubbs] - Update to Jinja2-3.1.2. Fixes - #5055. - - - [bdubbs] - Update to vim-8.2.4814. Addresses - #4500. - - - [bdubbs] - Update to sysvinit-3.03. Fixes - #5046. - - - [bdubbs] - Update to linux-5.17.5. Fixes - #5050. - - - [bdubbs] - Update to gcc-11.3.0. Fixes - #5051. - - - [bdubbs] - Update to coreutils-9.1. Fixes - #5048. - - - [bdubbs] - Update to bc-5.2.4. Fixes - #5049. - - - - - - 2022-04-15 - - - [bdubbs] - Add wheel-0.37.1 (Python module). - - - - - - 2022-04-15 - - - [ken] - Patch Xz for a security fix. Fixes - #5047. - - - [bdubbs] - Update to libcap-2.64. Fixes - #5044. - - - [bdubbs] - Update to linux-5.17.3. Fixes - #5043. - - - [bdubbs] - Update to gzip-1.12. Fixes - #5042. - - - - - - 2022-03-31 - - - [bdubbs] - Update to sysvinit-3.02. Fixes - #5041. - - - [bdubbs] - Update to zlib-1.2.12 (Security Update). Fixes - #5040. - - - [bdubbs] - Update to expat-2.4.8. Fixes - #5039. - - - [bdubbs] - Update to Jinja2-3.1.1. Fixes - #5038. - - - [bdubbs] - Update to Python-3.10.4. Fixes - #5037. - - - [bdubbs] - Update to procps-ng-4.0.0. Fixes - #5036. - - - [bdubbs] - Update to iproute2-5.17.0. Fixes - #5035. - - - [bdubbs] - Update to meson-0.62.0. Fixes - #5034. - - - [bdubbs] - Update to linux-5.17.1 (Security Update). Fixes - #5033. - - - [bdubbs] - Update to util-linux-2.38. Fixes - #4997. - - - - - - 2022-03-25 - - - [pierre] - Update bootscripts to 20220324. Fixes - #5027. - - - - - - 2022-03-20 - - - [xry111] - Update to Python-3.10.3. Fixes - #5028. - - - [xry111] - Update to libtool-2.4.7. Fixes - #5029. - - - [xry111] - Update to linux-5.16.16. Fixes - #5030. - - - [xry111] - Update to tzdata-2022a. Fixes - #5031. - - - [xry111] - Update to man-db-2.10.2. Fixes - #5032. - - - - - - 2022-03-16 - - - [xry111] - Update to MarkupSafe-2.1.1. Fixes - #5025. - - - - - - 2022-03-15 - - - [bdubbs] - Update to openssl-3.0.2. Fixes - #5024. - - - [bdubbs] - Update to meson-0.61.3. Fixes - #5023. - - - [xry111] - Update to expat-2.4.7. Fixes - #5019. - - - [xry111] - Update to bc-5.2.3. Fixes - #5020. - - - [xry111] - Update to linux-5.16.14 (security fix). Fixes - #5021. - - - [xry111] - Update to perl-5.34.1. Fixes - #5022. - - - [xry111] - Update to vim-8.2.4567 (security fix). - Addresses #4500. - - - - - - 2022-03-05 - - - [xry111] - Stop changing the owner of - $LFS/source to - lfs. Fixes - #5018. - - - [xry111] - Add zstd-1.5.2 upstream fixes patch. - - - - - - 2022-03-02 - - - [xry111] - Update to meson-0.61.2. Fixes - #5013. - - - [xry111] - Update to linux-5.16.12. Fixes - #5014. - - - [xry111] - Update to MarkupSafe-2.1.0. Fixes - #5015. - - - [xry111] - Update to dbus-1.14.0. Fixes - #5017. - - - [xry111] - Update to vim-8.2.4489 (security fixes). - Addresses #4500. - - - [xry111] - Build libstdc++ in GCC pass 2, and remove the - separate libstdc++ pass 2. - - - [xry111] - Remove unneeded - --enable-64bit for tcl. - - - - - - 2022-03-01 - - - [bdubbs] - LFS-11.1 released. + [bdubbs] - LFS-11.2 released. From 51b7349a9765ac443408e9ac263984d3a6e1e369 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Wed, 31 Aug 2022 21:32:18 +0200 Subject: [PATCH 4/6] Remove all non header files in linux headers Report by Joe Locash that a perl script was left in /usr/include with our current instructions --- chapter05/linux-headers.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chapter05/linux-headers.xml b/chapter05/linux-headers.xml index 24415bf55..09fedf835 100644 --- a/chapter05/linux-headers.xml +++ b/chapter05/linux-headers.xml @@ -59,8 +59,7 @@ location. make headers -find usr/include -name '.*' -delete -rm usr/include/Makefile +find usr/include -type f ! -name '*.h' -delete cp -rv usr/include $LFS/usr From 7b3f5a4f8d5e20da0563150222052065daa838df Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 26 Aug 2022 19:21:15 +0800 Subject: [PATCH 5/6] groff: remove -j1 --- chapter08/groff.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chapter08/groff.xml b/chapter08/groff.xml index 032130217..4929ff71e 100644 --- a/chapter08/groff.xml +++ b/chapter08/groff.xml @@ -53,9 +53,7 @@ PAGE=<paper_size> ./configure --prefix=/usr - This package does not support parallel build. Compile the package: - -make -j1 +make This package does not come with a test suite. From baecd49c4865de67ddddab00469a093bec18c904 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 26 Aug 2022 19:22:15 +0800 Subject: [PATCH 6/6] gcc-pass2: remove unnecessary --enable-initfini-array option Forgot to remove this one when I removed it in pass 1... Reference: https://gcc.gnu.org/r12-1328 --- chapter06/gcc-pass2.xml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml index 70295bdaa..aab95d58f 100644 --- a/chapter06/gcc-pass2.xml +++ b/chapter06/gcc-pass2.xml @@ -90,7 +90,6 @@ cd build LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc \ --prefix=/usr \ --with-build-sysroot=$LFS \ - --enable-initfini-array \ --disable-nls \ --disable-multilib \ --disable-decimal-float \ @@ -144,15 +143,6 @@ cd build - - --enable-initfini-array - - This option is automatically enabled when building a native - compiler with a native compiler on x86. But here, we build with - a cross compiler, so we need to explicitly set this option. - - - Compile the package: