From 367341b41e53e292a45042b0b7c43696733acc0a Mon Sep 17 00:00:00 2001 From: matsuand <30614168+matsuand@users.noreply.github.com> Date: Wed, 16 Feb 2022 10:11:07 +0900 Subject: [PATCH] =?utf8?q?[lfsja-git]=20r11.0-172=20=E5=AF=BE=E5=BF=9C?= =?utf8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- configure | 2 +- src/chapter01/changelog.ch | 58 ++++++++++++++++++++++++++++++++++++ src/chapter01/jchangelog.ch | 11 +++++++ src/chapter03/patches.ch | 6 ++-- src/chapter05/libstdc++.ch | 35 +++++++++++++--------- src/chapter08/binutils.ch | 6 ++-- src/chapter08/glibc.ch | 41 +++++++++---------------- src/general.ch | 6 ++-- src/packages.ch | 16 +++++----- src/part3intro/toolchaintechnotes.ch | 2 +- version.ac | 2 +- 11 files changed, 124 insertions(+), 61 deletions(-) diff --git a/configure b/configure index 98f971c9..7877bbf0 100755 --- a/configure +++ b/configure @@ -4737,7 +4737,7 @@ fi -TARGETVER=r11.0-163 +TARGETVER=r11.0-172 if test "x$revspec" = "xsystemd"; then TARGETVER="$TARGETVER-systemd" fi diff --git a/src/chapter01/changelog.ch b/src/chapter01/changelog.ch index 4f2d0602..3a5a9995 100644 --- a/src/chapter01/changelog.ch +++ b/src/chapter01/changelog.ch @@ -44,6 +44,64 @@ @z @x + 2022-02-15 + + + [bdubbs] - Add binutils-2.38 LTO patch. Fixes + #5011. + + + [bdubbs] - Update to util-linux-2.37.4. Fixes + #5010. + + + [bdubbs] - Update to man-db-2.10.1. Fixes + #5009. + + + [bdubbs] - Update to linux-5.16.9. Fixes + #5008. + + + [bdubbs] - Update to vim-8.2.4383. Addresses + #4500. + + + [bdubbs] - Update to iana-etc-20220207. Addresses + #5006. + + +@y + 2022-02-15 + + + [bdubbs] - binutils-2.38 LTO パッチを追加。 + #5011 を Fix に。 + + + [bdubbs] - util-linux-2.37.4 へのアップデート。 + #5010 を Fix に。 + + + [bdubbs] - man-db-2.10.1 へのアップデート。 + #5009 を Fix に。 + + + [bdubbs] - linux-5.16.9 へのアップデート。 + #5008 を Fix に。 + + + [bdubbs] - vim-8.2.4383 へのアップデート。 + #4500 において言及。 + + + [bdubbs] - iana-etc-20220207 へのアップデート。 + #5006 において言及。 + + +@z + +@x 2022-02-10 diff --git a/src/chapter01/jchangelog.ch b/src/chapter01/jchangelog.ch index 3e37f4d5..f98aba5d 100644 --- a/src/chapter01/jchangelog.ch +++ b/src/chapter01/jchangelog.ch @@ -50,6 +50,17 @@ --> + 2022-02-16 + + + [matsuand] - + r11.0-172 (8dd179b04) までの対応。 + + + + + + 2022-02-11 diff --git a/src/chapter03/patches.ch b/src/chapter03/patches.ch index 8c128e48..c72769eb 100644 --- a/src/chapter03/patches.ch +++ b/src/chapter03/patches.ch @@ -49,10 +49,10 @@ &Download;: @z -@x Binutils Upstream Fix Patch - Download: +@x Binutils LTO Fix Patch + Download: @y - &Download;: + &Download;: @z @x Bzip2 Documentation Patch diff --git a/src/chapter05/libstdc++.ch b/src/chapter05/libstdc++.ch index 764604c7..f86b23cd 100644 --- a/src/chapter05/libstdc++.ch +++ b/src/chapter05/libstdc++.ch @@ -88,16 +88,6 @@ @z -%@x --disable-libstdcxx-threads -% Since gcc-pass1 is built without thread support, the C++ -% thread library cannot be built either. -%@y -% -% gcc 1 回めはスレッドサポートなしにビルドされます。 -% したがって C++ スレッドライブラリも生成できません。 -% -%@z - @x --disable-libstdcxx-pch This switch prevents the installation of precompiled include files, which are not needed at this stage. @@ -109,16 +99,33 @@ @z @x --with-gxx-include-dir=/tools/include/c++/&gcc-version; - This is the location where the C++ compiler should search for the - standard include files. In a normal build, this information + This specifies the installation directory for include files. + Because libstdc++ is the standard C++ library for LFS, this + directory should match the location where the C++ compiler + ($LFS_TGT-g++) would search for the + standard C++ include files. In a normal build, this information is automatically passed to the libstdc++ configure options from the top level directory. In our case, this information - must be explicitly given. + must be explicitly given. + The C++ compiler will prepend the sysroot path + $LFS (specified building + GCC pass 1) to the include file search path, so it will actually + search in + $LFS/tools/$LFS_TGT/include/c++/&gcc-version;. + The combination of the DESTDIR + variable (in the make install command below) + and this switch ensures to install the headers there. @y - C++ コンパイラーが標準インクルードファイルを探すディレクトリを指定します。 + インクルードファイルをインストールするディレクトリを指定します。 + libstdc++ は LFS における標準 C++ ライブラリであるため、そのディレクトリは C++ コンパイラー ($LFS_TGT-g++) が標準 C++ インクルードファイルを探し出すディレクトリでなければなりません。 通常のビルドにおいてそのディレクトリ情報は、最上位ディレクトリの configure のオプションにて指定します。 ここでの作業では、上のようにして明示的に指定します。 + C++ コンパイラーは sysroot パスに $LFS(GCC 1 回めのビルド時に指定)をインクルードファイルの検索パスに加えます。 + したがって実際には $LFS/tools/$LFS_TGT/include/c++/&gcc-version; となります。 + DESTDIR 変数(以下の make install にて指定)とこのスイッチを組み合わせることで、ヘッダーファイルをそのディレクトリにインストールするようにします。 @z diff --git a/src/chapter08/binutils.ch b/src/chapter08/binutils.ch index a6f24124..c90e5af7 100644 --- a/src/chapter08/binutils.ch +++ b/src/chapter08/binutils.ch @@ -53,11 +53,11 @@ @z @x - Upstream has made a patch to fix a problem building some - packages. Apply that now: + Upstream has made a patch to fix a problem when building with + Link Time Optimization (LTO). Apply that now: @y - 他パッケージのビルド時に問題が発生するため、アップストリームではその修正パッチを生成しています。 + アップストリームでは、 リンク時の最適化(Link Time Optimization; LTO)を使ったビルド時の問題を回避するパッチを提供しています。 ここでこれを適用します。 @z diff --git a/src/chapter08/glibc.ch b/src/chapter08/glibc.ch index f4452a11..ae66f037 100644 --- a/src/chapter08/glibc.ch +++ b/src/chapter08/glibc.ch @@ -610,12 +610,14 @@ @z @x - catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig, - ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd, + gencat, getconf, getent, iconv, iconvconfig, ldconfig, + ldd, lddlibc4, + ld.so (symlink to ld-linux-x86-64.so.2 or ld-linux.so.2), + locale, localedef, makedb, mtrace, nscd, pcprofiledump, pldd, sln, sotruss, sprof, tzselect, xtrace, zdump, and zic ld-linux-x86-64.so.2, ld-linux.so.2, - libBrokenLocale.{a,so}, libSegFault.so, libanl.{a,so}, + libBrokenLocale.{a,so}, libanl.{a,so}, libc.{a,so}, libc_nonshared.a, libcrypt.{a,so}, libdl.{a,so.2}, libg.a, libm.{a,so}, libmcheck.a, libmemusage.so, libmvec.{a,so}, libnsl.so.1, @@ -633,12 +635,14 @@ /usr/libexec/getconf, /usr/share/i18n, /usr/share/zoneinfo, /var/cache/nscd, and /var/lib/nss_db @y - catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig, - ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd, + gencat, getconf, getent, iconv, iconvconfig, ldconfig, + ldd, lddlibc4, + ld.so (ld-linux-x86-64.so.2 または ld-linux.so.2 へのリンク), + locale, localedef, makedb, mtrace, nscd, pcprofiledump, pldd, sln, sotruss, sprof, tzselect, xtrace, zdump, zic ld-linux-x86-64.so.2, ld-linux.so.2, - libBrokenLocale.{a,so}, libSegFault.so, libanl.{a,so}, + libBrokenLocale.{a,so}, libanl.{a,so}, libc.{a,so}, libc_nonshared.a, libcrypt.{a,so}, libdl.{a,so.2}, libg.a, libm.{a,so}, libmcheck.a, libmemusage.so, libmvec.{a,so}, libnsl.so.1, @@ -663,15 +667,6 @@ &ShortDescriptions; @z -@x catchsegv - Can be used to create a stack trace when a program - terminates with a segmentation fault -@y - - プログラムがセグメンテーションフォールトにより停止した時に、スタックトレースを生成するために利用します。 - -@z - @x gencat Generates message catalogues @y @@ -732,10 +727,12 @@ @z @x lddlibc4 - Assists ldd with object files + Assists ldd with object files. + It does not exist on newer architectures like x86_64 @y - オブジェクトファイルを使って ldd コマンドを補助します。[訳註:意味不明] + オブジェクトファイルを使って ldd コマンドを補助します。 + これは x86_64 のような最新アーキテクチャーには存在しません。 @z @@ -879,16 +876,6 @@ @z -@x libSegFault - The segmentation fault signal handler, used by - catchsegv -@y - - セグメンテーションフォールトのシグナルハンドラー。 - catchsegv が利用します。 - -@z - @x libanl An asynchronous name lookup library @y diff --git a/src/general.ch b/src/general.ch index 5181799b..ea036d0f 100644 --- a/src/general.ch +++ b/src/general.ch @@ -47,9 +47,9 @@ ]]> - - - + + + @z diff --git a/src/packages.ch b/src/packages.ch index 376a99de..0200774d 100644 --- a/src/packages.ch +++ b/src/packages.ch @@ -22,9 +22,9 @@ @z @x - + @y - + @z @x @@ -34,9 +34,9 @@ @z @x - + @y - + @z @x @@ -46,15 +46,15 @@ @z @x - + @y - + @z @x - + @y - + @z @x diff --git a/src/part3intro/toolchaintechnotes.ch b/src/part3intro/toolchaintechnotes.ch index d88d000b..52b97657 100644 --- a/src/part3intro/toolchaintechnotes.ch +++ b/src/part3intro/toolchaintechnotes.ch @@ -290,7 +290,7 @@ provided by Glibc finds and loads the shared libraries needed by a program, prepares the program to run, and then runs it. The name of the dynamic linker for a 32-bit Intel machine is ld-linux.so.2 and isld-linux.so.2 and is ld-linux-x86-64.so.2 for 64-bit systems. A sure-fire way to determine the name of the dynamic linker is to inspect a random binary from the host system by running: readelf -l diff --git a/version.ac b/version.ac index a5f28d08..42519376 100644 --- a/version.ac +++ b/version.ac @@ -2,4 +2,4 @@ dnl dnl This is part of LFSbookja package. dnl dnl m4-include this file to define the current LFS version -m4_define([lfs_version], [r11.0-163]) +m4_define([lfs_version], [r11.0-172]) -- 2.11.0