From 6a271f4d867c434fb2859be826311906c1ac85d9 Mon Sep 17 00:00:00 2001 From: matsuand Date: Mon, 16 Mar 2015 02:44:15 +0000 Subject: [PATCH] =?utf8?q?[LFS-SVN]=20SVN-20150315,=20Changeset=2010880=20?= =?utf8?q?=E5=AF=BE=E5=BF=9C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://svn.osdn.net/svnroot/lfsbookja/trunk@969 d6661c75-0afd-443a-aae1-cb31083e41e8 --- lfsbook/configure | 2 +- lfsbook/src/chapter01/changelog.ch | 24 ++++++++++ lfsbook/src/chapter01/jchangelog.ch | 14 ++++++ lfsbook/src/chapter06/bison.ch | 16 +++---- lfsbook/src/chapter06/introduction.ch | 51 +++++++++++++++++++++ lfsbook/src/chapter06/libcap.ch | 8 ++++ lfsbook/src/chapter06/ncurses.ch | 83 +++++++++++++++++++++++++++------- lfsbook/src/chapter06/revisedchroot.ch | 13 ++++++ lfsbook/src/chapter06/xz.ch | 82 +++++++++++++++++++++++++-------- lfsbook/src/general.ch | 10 ++-- lfsbook/src/prologue/bookinfo.ch | 8 ++-- lfsbook/version.ac | 2 +- 12 files changed, 257 insertions(+), 56 deletions(-) diff --git a/lfsbook/configure b/lfsbook/configure index e87f360f..970763f7 100755 --- a/lfsbook/configure +++ b/lfsbook/configure @@ -3879,7 +3879,7 @@ if test "$TIDY" = no; then as_fn_error $? "tidy not found in $PATH" "$LINENO" 5 fi; -TARGETVER=svn-20150311 +TARGETVER=svn-20150315 SVNVER=`grep 'ENTITY version' ${bookdir}/general.ent | sed -e 's/^$//' | tr 'A-Z' 'a-z'` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the original XML version" >&5 diff --git a/lfsbook/src/chapter01/changelog.ch b/lfsbook/src/chapter01/changelog.ch index 17f4c7c9..65414933 100644 --- a/lfsbook/src/chapter01/changelog.ch +++ b/lfsbook/src/chapter01/changelog.ch @@ -48,6 +48,30 @@ @z @x + 2015-03-15 + + + [bdubbs] - Remove non-essential static libraries + from the installation. Added a new section in Chapter 6 + Introduction, suppressed many static libraries in different + packages, and removed the remaining in the Cleaning Up section. + Fixes + #3751. + + +@y + 2015-03-15 + + + [bdubbs] - スタティックライブラリのインストールが不要なものは削除。 + 第6章のはじめに (Introduction) にて新たな節を追加。 + 多くのパッケージにてスタティックライブラリをインストールしないようにし、仕切り直し (Cleaning Up) にて残りのスタティックライブラリの削除手順を追加。 + #3751 を Fix に。 + + +@z + +@x 2015-03-11 diff --git a/lfsbook/src/chapter01/jchangelog.ch b/lfsbook/src/chapter01/jchangelog.ch index 8e8e7575..a6ebdb50 100644 --- a/lfsbook/src/chapter01/jchangelog.ch +++ b/lfsbook/src/chapter01/jchangelog.ch @@ -54,6 +54,20 @@ --> + 2015-03-16 + + + [matsuand] - + SVN-20150315, + Changeset + 10880 + 対応。 + + + + + + 2015-03-12 diff --git a/lfsbook/src/chapter06/bison.ch b/lfsbook/src/chapter06/bison.ch index dcc5b1a4..ad957062 100644 --- a/lfsbook/src/chapter06/bison.ch +++ b/lfsbook/src/chapter06/bison.ch @@ -26,21 +26,17 @@ @z @x - Prepare Bison for compilation: + Inhibit static library installation: @y - &PreparePackage1;Bison&PreparePackage2; + + スタティックライブラリをインストールしないようにします。 + @z @x - The configure system causes Bison to be built without support for - internationalization of error messages if a bison - program is not already in $PATH. The following addition will correct - this: + Prepare Bison for compilation: @y - - bison プログラムが $PATH 上にない場合に、この Bison の configure を行ってビルドすると、国際化されたエラーメッセージのサポートがないままビルドされてしまいます。 - これを正すために以下の設定を追加します。 - + &PreparePackage1;Bison&PreparePackage2; @z @x diff --git a/lfsbook/src/chapter06/introduction.ch b/lfsbook/src/chapter06/introduction.ch index 0a3145a6..f7bde10e 100644 --- a/lfsbook/src/chapter06/introduction.ch +++ b/lfsbook/src/chapter06/introduction.ch @@ -116,3 +116,54 @@ 本章にて導入するパッケージにおいて SBU 値と必要ディスク容量には、テストスイート実施による時間や容量をすべて含んでいます。 @z + +@x + About libraries +@y + ライブラリについて +@z + +@x + In general, the LFS editors discourage building and installing static + libraries. The original purpose for most static libraries has been made + obsolete in a modern Linux system. In addition linking a static library + 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 + do the linking) may not even be known. +@y + + LFS 編集者は全般にスタティックライブラリは作らないものとしています。 + スタティックライブラリが作られたそもそもの目的は、現在の Linux システムにとってはもはや古いものです。 + スタティックライブラリをリンクすると障害となることすらあります。 + 例えばセキュリティ問題を解決するためにライブラリリンクを更新しなければならなくなったら、スタティックライブラリにリンクしていたプログラムはすべて再構築しなければなりません。 + したがってスタティックライブラリを使うべきかどうかは、いつも迷うところであり、よく分からないプログラム (あるいはリンクされるプロシージャ) であってもどちらかに定めなければなりません。 + +@z + +@x + In the prcedures 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 + option to configure. + In other cases, alternate means are needed. +@y + + 第6章の手順では、スタティックライブラリのインストールはたいてい行わないようにしています。 + ただし glibc や gcc においては、一般的なパッケージビルドに必要であるため、スタティックライブラリを利用します。 + 多くのケースでは configure に対して を与えることで実現しますが、これができない場合には他の方法を取ります。 + +@z + +@x + For a more complete discussion of libraries, see the discussion + + Libraries: Static or shared? in the BLFS book. +@y + + ライブラリに関してのより詳細な議論については BLFS ブックの + Libraries: Static or shared? を参照してください。 + +@z diff --git a/lfsbook/src/chapter06/libcap.ch b/lfsbook/src/chapter06/libcap.ch index 1662f2bc..f4945c0b 100644 --- a/lfsbook/src/chapter06/libcap.ch +++ b/lfsbook/src/chapter06/libcap.ch @@ -32,6 +32,14 @@ @z @x + Prevent a static library from being installed: +@y + + スタティックライブラリをインストールしないようにします。 + +@z + +@x Compile the package: @y &CompileThePackage; diff --git a/lfsbook/src/chapter06/ncurses.ch b/lfsbook/src/chapter06/ncurses.ch index 1660668e..26679dd7 100644 --- a/lfsbook/src/chapter06/ncurses.ch +++ b/lfsbook/src/chapter06/ncurses.ch @@ -29,6 +29,14 @@ @z @x + Don't install a static library that is not handled by configure: +@y + + configure では制御できないため、以下によりスタティックライブラリをインストールしないようにします。 + +@z + +@x Prepare Ncurses for compilation: @y &PreparePackage1;Ncurses&PreparePackage2; @@ -69,6 +77,15 @@ @z +@x --without-normal + This switch disables building and installing most static libraries. + +@y + + 本スイッチはたいていのスタティックライブラリをビルド、インストールしないようにします。 + +@z + @x Compile the package: @y @@ -178,22 +195,56 @@ @z @x - captoinfo (link to tic), clear, infocmp, infotocap (link to tic), - ncursesw5-config, reset (link to tset), tabs, tic, toe, tput, and tset - libcursesw.{a,so} (symlink and linker script to libncursesw.{a,so}), - libformw.{a,so}, libmenuw.{a,so}, libncurses++w.a, libncursesw.{a,so}, - libpanelw.{a,so}, and their non-wide-character counterparts without "w" - in the library names. - /usr/share/tabset, /usr/share/terminfo, and - /usr/share/doc/ncurses-&ncurses-version; -@y - captoinfo (tic へのリンク), clear, infocmp, infotocap (tic へのリンク), - ncursesw5-config, reset (tset へのリンク), tabs, tic, toe, tput, tset - libcursesw.{a,so} (libncursesw.{a,so} へのシンボリックリンクおよびリンカースクリプト), - libformw.{a,so}, libmenuw.{a,so}, libncurses++w.a, libncursesw.{a,so}, - libpanelw.{a,so} これらに加えてワイド文字対応ではない通常のライブラリで、その名称から "w" を取り除いたもの。 - /usr/share/tabset, /usr/share/terminfo, - /usr/share/doc/ncurses-&ncurses-version; + + captoinfo (link to tic), + clear, + infocmp, + infotocap (link to tic), + ncursesw5-config, + reset (link to tset), + tabs, + tic, + toe, + tput, and + tset + + + libcursesw.so (symlink and linker script to libncursesw.so), + libformw.so, + libmenuw.so, + libncursesw.so, + libpanelw.so, and their non-wide-character counterparts without "w" + in the library names. + + /usr/share/tabset, + /usr/share/terminfo, and + /usr/share/doc/ncurses-&ncurses-version; + +@y + + captoinfo (tic へのリンク), + clear, + infocmp, + infotocap (tic へのリンク), + ncursesw5-config, + reset (tset へのリンク), + tabs, + tic, + toe, + tput, + tset + + + libcursesw.so (libncursesw.so へのシンボリックリンクおよびリンカースクリプト), + libformw.so, + libmenuw.so, + libncursesw.so, + libpanelw.so, これらに加えてワイド文字対応ではない通常のライブラリで、その名称から "w" を取り除いたもの。 + + /usr/share/tabset, + /usr/share/terminfo, + /usr/share/doc/ncurses-&ncurses-version; + @z @x diff --git a/lfsbook/src/chapter06/revisedchroot.ch b/lfsbook/src/chapter06/revisedchroot.ch index d7ff9102..f7e0c4e8 100644 --- a/lfsbook/src/chapter06/revisedchroot.ch +++ b/lfsbook/src/chapter06/revisedchroot.ch @@ -74,3 +74,16 @@ その作業手順はとで説明しています。 @z + +@x + Finally, thre were several static libraries that were not supressed earlier + in the chapter in order to satisfy the regression tests in several packages. These + libraries are from binutils, bzip2, e2fsprogs, flex, libtool, and zlib. If desired, + remove them now: +@y + + これまでのパッケージビルドにて、縮退テスト (regressoin tests) を実現するために生成していたスタティックライブラリがいくらか残っています。 + これは binutils, bzip2, e2fsprogs, flex, libtool, zlib から作られたものです。 + もし不要なら以下により削除します。 + +@z diff --git a/lfsbook/src/chapter06/xz.ch b/lfsbook/src/chapter06/xz.ch index e66308d8..50088afe 100644 --- a/lfsbook/src/chapter06/xz.ch +++ b/lfsbook/src/chapter06/xz.ch @@ -78,25 +78,69 @@ @z @x - lzcat (link to xz), lzcmp (link to xzdiff), lzdiff (link to - xzdiff), lzegrep (link to xzgrep), lzfgrep (link to xzgrep), - lzgrep (link to xzgrep), lzless (link to xzless), lzma (link to xz), - lzmadec, lzmainfo, lzmore (link to xzmore), - unlzma (link to xz), unxz, (link to xz), xz, xzcat (link to xz), - xzcmp (link to xzdiff), xzdec, xzdiff, xzegrep (link to xzgrep), - xzfgrep (link to xzgrep), xzgrep, xzless, and xzmore - liblzma.{a,so} - /usr/include/lzma and /usr/share/doc/xz-&xz-version; -@y - lzcat (xz へのリンク), lzcmp (xzdiff へのリンク), lzdiff (xzdiff へのリンク), - lzegrep (xzgrep へのリンク), lzfgrep (xzgrep へのリンク), - lzgrep (xzgrep へのリンク), lzless (xzless へのリンク), lzma (xz へのリンク), - lzmadec, lzmainfo, lzmore (xzmore へのリンク), - unlzma (xz へのリンク), unxz, (xz へのリンク), xz, xzcat (xz へのリンク), - xzcmp (xzdiff へのリンク), xzdec, xzdiff, xzegrep (xzgrep へのリンク), - xzfgrep (xzgrep へのリンク), xzgrep, xzless, xzmore - liblzma.{a,so} - /usr/include/lzma, /usr/share/doc/xz-&xz-version; + + lzcat (link to xz), + lzcmp (link to xzdiff), + lzdiff (link to xzdiff), + lzegrep (link to xzgrep), + lzfgrep (link to xzgrep), + lzgrep (link to xzgrep), + lzless (link to xzless), + lzma (link to xz), + lzmadec, + lzmainfo, + lzmore (link to xzmore), + unlzma (link to xz), + unxz (link to xz), + xz, + xzcat (link to xz), + xzcmp (link to xzdiff), + xzdec, + xzdiff, + xzegrep (link to xzgrep), + xzfgrep (link to xzgrep), + xzgrep, + xzless, and + xzmore + + liblzma.so + + + /usr/include/lzma and + /usr/share/doc/xz-&xz-version; + +@y + + lzcat (xz へのリンク), + lzcmp (xzdiff へのリンク), + lzdiff (xzdiff へのリンク), + lzegrep (xzgrep へのリンク), + lzfgrep (xzgrep へのリンク), + lzgrep (xzgrep へのリンク), + lzless (xzless へのリンク), + lzma (xz へのリンク), + lzmadec, + lzmainfo, + lzmore (xzmore へのリンク), + unlzma (xz へのリンク), + unxz (xz へのリンク), + xz, + xzcat (xz へのリンク), + xzcmp (xzdiff へのリンク), + xzdec, + xzdiff, + xzegrep (xzgrep へのリンク), + xzfgrep (xzgrep へのリンク), + xzgrep, + xzless, + xzmore + + liblzma.so + + + /usr/include/lzma, + /usr/share/doc/xz-&xz-version; + @z @x diff --git a/lfsbook/src/general.ch b/lfsbook/src/general.ch index edf90f23..4adde5ef 100644 --- a/lfsbook/src/general.ch +++ b/lfsbook/src/general.ch @@ -8,17 +8,17 @@ % $Date:: $ % @x - + - + @y - + - - + + @z @x diff --git a/lfsbook/src/prologue/bookinfo.ch b/lfsbook/src/prologue/bookinfo.ch index 4b1bfda8..278b28a7 100644 --- a/lfsbook/src/prologue/bookinfo.ch +++ b/lfsbook/src/prologue/bookinfo.ch @@ -20,8 +20,8 @@ Beekmans - Edited by Matthew Burgess - and Bruce Dubbs + Managing Editor is Bruce + Dubbs @y @@ -31,8 +31,8 @@ Beekmans - 編集: Matthew Burgess - 、Bruce Dubbs + 編集総括: Bruce + Dubbs 日本語訳: 松山 道夫 (&jversion; 版) diff --git a/lfsbook/version.ac b/lfsbook/version.ac index 062e28b5..4041fbb5 100644 --- a/lfsbook/version.ac +++ b/lfsbook/version.ac @@ -7,4 +7,4 @@ dnl $Date:: $ dnl dnl dnl m4-include this file to define the current LFS version -m4_define([lfs_version], [svn-20150311]) +m4_define([lfs_version], [svn-20150315]) -- 2.11.0