From b8f84fba42c4cfc4225ebf21783dca5aec328b86 Mon Sep 17 00:00:00 2001 From: matsuand Date: Tue, 2 Sep 2014 11:51:56 +0000 Subject: [PATCH] =?utf8?q?[LFS-SVN]=20SVN-20140831,=20Changeset=2010733=20?= =?utf8?q?=E5=AF=BE=E5=BF=9C=E3=80=82=E8=A8=B3=E6=9C=AA=E5=AE=8C=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@913 d6661c75-0afd-443a-aae1-cb31083e41e8 --- lfsbook/configure | 2 +- lfsbook/src/appendices/dependencies.ch | 40 +++- lfsbook/src/chapter01/changelog.ch | 241 ++++++++++++++++++++++- lfsbook/src/chapter02/aboutlfs.ch | 95 +++++++++ lfsbook/src/chapter03/packages.ch | 16 +- lfsbook/src/chapter03/patches.ch | 8 + lfsbook/src/chapter04/aboutsbus.ch | 54 +++--- lfsbook/src/chapter04/introduction.ch | 38 ++++ lfsbook/src/chapter05/gcc-pass1.ch | 14 +- lfsbook/src/chapter05/gcc-pass2.ch | 71 ++----- lfsbook/src/chapter05/util-linux.ch | 11 ++ lfsbook/src/chapter06/acl.ch | 13 +- lfsbook/src/chapter06/adjusting.ch | 39 ++-- lfsbook/src/chapter06/attr.ch | 8 +- lfsbook/src/chapter06/binutils.ch | 17 +- lfsbook/src/chapter06/createfiles.ch | 96 +++++++++ lfsbook/src/chapter06/e2fsprogs.ch | 10 +- lfsbook/src/chapter06/eudev.ch | 4 +- lfsbook/src/chapter06/gcc.ch | 17 ++ lfsbook/src/chapter06/gdbm.ch | 26 ++- lfsbook/src/chapter06/gmp.ch | 11 +- lfsbook/src/chapter06/inetutils.ch | 4 +- lfsbook/src/chapter06/libcap.ch | 17 ++ lfsbook/src/chapter06/ncurses.ch | 2 +- lfsbook/src/chapter06/procps.ch | 6 +- lfsbook/src/chapter06/shadow.ch | 24 +++ lfsbook/src/chapter06/sysklogd.ch | 9 + lfsbook/src/chapter06/util-linux.ch | 24 ++- lfsbook/src/chapter06/vim.ch | 20 -- lfsbook/src/chapter07/network.ch | 345 +++++++++++++-------------------- lfsbook/src/chapter07/symlinks.ch | 219 +++++++++++++++++++++ lfsbook/src/general.ch | 10 +- lfsbook/src/packages.ch | 10 +- lfsbook/version.ac | 2 +- 34 files changed, 1121 insertions(+), 402 deletions(-) diff --git a/lfsbook/configure b/lfsbook/configure index 01f5f779..2efd5508 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-20140805 +TARGETVER=svn-20140831 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/appendices/dependencies.ch b/lfsbook/src/appendices/dependencies.ch index 9affc2f1..86fab5c0 100644 --- a/lfsbook/src/appendices/dependencies.ch +++ b/lfsbook/src/appendices/dependencies.ch @@ -230,10 +230,10 @@ %---------------------------------------------------------------------- @x bison Bash, Binutils, Coreutils, GCC, Gettext, Glibc, - Grep, M4, Make, and Sed + Grep, M4, Make, Perl, and Sed @y Bash, Binutils, Coreutils, GCC, Gettext, Glibc, - Grep, M4, Make, Sed + Grep, M4, Make, Perl, Sed @z @x Diffutils, Findutils, and Flex @@ -368,6 +368,30 @@ @z %---------------------------------------------------------------------- +@x Eudev + Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, + Make, and Sed +@y + Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, + Make, Sed +@z +@x + None +@y + なし +@z +@x + None +@y + なし +@z +@x + None +@y + なし +@z + +%---------------------------------------------------------------------- @x Expat Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, and Sed @@ -1445,10 +1469,10 @@ Typo ですが日本語訳には影響ありません。 %---------------------------------------------------------------------- @x Tar - Bash, Binutils, Bison, Coreutils, GCC, Gettext, Glibc, + Acl, Attr, Bash, Binutils, Bison, Coreutils, GCC, Gettext, Glibc, Grep, Inetutils, Make, Sed, and Texinfo @y - Bash, Binutils, Bison, Coreutils, GCC, Gettext, Glibc, + Acl, Attr, Bash, Binutils, Bison, Coreutils, GCC, Gettext, Glibc, Grep, Inetutils, Make, Sed, Texinfo @z @x @@ -1565,11 +1589,11 @@ Typo ですが日本語訳には影響ありません。 %---------------------------------------------------------------------- @x Vim - Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, - Ncurses, and Sed + Acl, Attr, Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, + Grep, Make, Ncurses, and Sed @y - Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, - Ncurses, Sed + Acl, Attr, Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, + Grep, Make, Ncurses, Sed @z @x None diff --git a/lfsbook/src/chapter01/changelog.ch b/lfsbook/src/chapter01/changelog.ch index d552c0d5..f4bf019b 100644 --- a/lfsbook/src/chapter01/changelog.ch +++ b/lfsbook/src/chapter01/changelog.ch @@ -48,6 +48,243 @@ @z @x + 2014-08-31 + + + [bdubbs] - Update to e2fsprogs-1.42.12. Fixes + #3663. + + + [bdubbs] - Update to tzdata2014g. + + +@y + 2014-08-31 + + + [bdubbs] - e2fsprogs-1.42.12 へのアップデート。 + #3663 を Fix に。 + + + [bdubbs] - tzdata2014g へのアップデート。 + + +@z + +@x + 2014-08-24 + + + [bdubbs] - Update to eudev-1.10. Fixes + #3661. + + +@y + 2014-08-24 + + + [bdubbs] - eudev-1.10 へのアップデート。 + #3661 を Fix に。 + + +@z + +@x + 2014-08-21 + + + [bdubbs] - Update bash patches. + + + [bdubbs] - Update to man-pages-3.71. Fixes + #3660. + + +@y + 2014-08-21 + + + [bdubbs] - bash のパッチをアップデート。 + + + [bdubbs] - man-pages-3.71 へのアップデート。 + #3660 を Fix に。 + + +@z + +@x + 2014-08-19 + + + [bdubbs] - Remove redundant options in gcc instructions. + Fixes + #3655. + + +@y + 2014-08-19 + + + [bdubbs] - gcc のビルド作業にて不要なオプションを削除。 + #3655 を Fix に。 + + +@z + +@x + 2014-08-15 + + + [bdubbs] - Remove redundant wording in checking + toolchain values. Fixes + #3654. + + + [bdubbs] - Reword bootscripts README file. + + +@y + 2014-08-15 + + + [bdubbs] - ツールチェーンのチェック時における不要な説明を削除。 + #3654 を Fix に。 + + + [bdubbs] - bootscripts の README ファイルを削除。 + + +@z + +@x + 2014-08-14 + + + [bdubbs] - Update to tzdata2014f. Fixes + #3653. + + + [bdubbs] - Update to linux-3.16.1. Fixes + #3643. + + + [bdubbs] - Update to iproute2-3.16.0. Fixes + #3651. + + + [bdubbs] - Update bison dependencies. Fixes + #3652. + + +@y + 2014-08-14 + + + [bdubbs] - tzdata2014f へのアップデート。 + #3653 を Fix に。 + + + [bdubbs] - linux-3.16.1 へのアップデート。 + #3643 を Fix に。 + + + [bdubbs] - iproute2-3.16.0 へのアップデート。 + #3651 を Fix に。 + + + [bdubbs] - bison の依存関係をアップデート。 + #3652 を Fix に。 + + +@z + +@x + 2014-08-12 + + + [bdubbs] - Update patches for bash, readline, and mpfr. Fixes + #3648, + #3649, and + #3650. + + +@y + 2014-08-12 + + + [bdubbs] - bash,、readline、mpfr のパッチをアップデート。 + #3648, + #3649, + #3650 を Fix に。 + + +@z + +@x + 2014-08-10 + + + [ken] - Remove --enable-multibyte from vim, it is the + default. Addresses part of + #3647. + + + [ken] - Util-Linux-2.25 needs a filename in ADJTIME_PATH, + fixes #3656. + + +@y + 2014-08-10 + + + [ken] - vim にてデフォルトである --enable-multibyte を削除。 + #3647 内にて言及。 + + + [ken] - Util-Linux-2.25 にて ADJTIME_PATH にはファイル名指定が必要。 + fixes #3656 を Fix に。 + + +@z + +@x + 2014-08-08 + + + [Chris] - Install Util-linux documentation in a versioned + directory. + + +@y + 2014-08-08 + + + [Chris] - Util-linux のドキュメントをバージョン付きディレクトリへインストールすることに。 + + + +@z + +@x + 2014-08-05 + + + [Chris] - Reversed change to Vim's docs location, so that + Vim can find its help files. + + +@y + 2014-08-05 + + + [Chris] - Reversed change to Vim's docs location, so that + Vim can find its help files. + + +@z + +@x 2014-04-28 @@ -59,8 +296,8 @@ 2014-04-28 - [bdubbs] - Update to linux-3.14.2. Fixes - #3559. + [bdubbs] - linux-3.14.2 へのアップデート。 + #3559 を Fix に。 @z diff --git a/lfsbook/src/chapter02/aboutlfs.ch b/lfsbook/src/chapter02/aboutlfs.ch index e69de29b..18bafe44 100644 --- a/lfsbook/src/chapter02/aboutlfs.ch +++ b/lfsbook/src/chapter02/aboutlfs.ch @@ -0,0 +1,95 @@ +% +% This is part of LFSbookja package. +% +% This is a CTIE change file for the LFS hint text files. +% +% $Author$ +% $Rev$ +% $Date:: $ +% +@x + +@y + +@z + +@x + Setting The $LFS Variable +@y + 変数 $LFS の設定 +@z + +@x + Throughout this book, the environment variable LFS will + be used several times. You should ensure that this variable is always defined + throughout the LFS build process. It should be set to the name of the + directory where you will be building your LFS system - we will use + /mnt/lfs as an example, but the + directory choice is up to you. If you are building LFS on a separate + partition, this directory will be the mount point for the partition. + Choose a directory location and set the variable with the + following command: +@y + + 本書の中では環境変数 LFS を何度も用います。 + LFS システムのビルド作業時には常に定義しておくことを忘れないでください。 + この変数は LFS パーティションとして選んだマウントポイントを定義します。 + 例えば /mnt/lfs というものです。 + 他のものとしても構いません。 + LFS を別のパーティションにビルドする場合、このマウントポイントはそのパーティションを示すようにしてください。 + ディレクトリを取り決めたら、変数を以下のコマンドにより設定します。 + +@z + +@x + Having this variable set is beneficial in that commands such as + mkdir -v $LFS/tools can be typed literally. The shell + will automatically replace $LFS with + /mnt/lfs (or whatever the variable was set to) when it + processes the command line. +@y + + 上のように変数を定義しておくと、例えば mkdir $LFS/tools といったコマンドを、この通りに入力することで実行できるので便利です。 + これが実行されると、シェルが$LFSを/mnt/lfsに (あるいは変数にセットされている別のディレクトリに) 置換して処理してくれます。 + +@z + +@x + Do not forget to check that LFS is set whenever + you leave and reenter the current working environment (such as when doing a + su to root or + another user). Check that the LFS variable is set up + properly with: +@y + + $LFS が常にセットされていることを忘れずに確認してください。 + 特に、別ユーザーでログインし直した場合 (su コマンドによって root ユーザーや別のユーザーでログインした場合) には、忘れずに確認してください。 + +@z + +@x + Make sure the output shows the path to your LFS system's build + location, which is /mnt/lfs if the + provided example was followed. If the output is incorrect, use the command + given earlier on this page to set $LFS to the correct + directory name. +@y + + 上の出力結果が LFS システムのビルドディレクトリであることを確認してください。 + 本書に示す例に従っている場合は /mnt/lfs が表示されるはずです。 + 出力が正しくない場合は、冒頭に示したコマンド実行により $LFS 変数に正しいディレクトリを設定してください。 + +@z + +@x + One way to ensure that the LFS variable is always + set is to edit the .bash_profile file in both your + personal home directory and in /root/.bash_profile and + enter the export command above. +@y + + LFS 変数を確実に設定しておくために、ローカルな .bash_profile + および /root/.bash_profile に上記変数を export するコマンドを記述しておく方法もあります。 + +@z diff --git a/lfsbook/src/chapter03/packages.ch b/lfsbook/src/chapter03/packages.ch index 9d7a5a30..bcd9ac31 100644 --- a/lfsbook/src/chapter03/packages.ch +++ b/lfsbook/src/chapter03/packages.ch @@ -586,14 +586,6 @@ &Download;: @z -@x tzdata - Home page: - Download: -@y - &Homepage;: - &Download;: -@z - @x texinfo Home page: Download: @@ -602,6 +594,14 @@ &Download;: @z +@x tzdata + Home page: + Download: +@y + &Homepage;: + &Download;: +@z + @x Udev-lfs Tarball Download: @y diff --git a/lfsbook/src/chapter03/patches.ch b/lfsbook/src/chapter03/patches.ch index 3817a5ad..b9398c34 100644 --- a/lfsbook/src/chapter03/patches.ch +++ b/lfsbook/src/chapter03/patches.ch @@ -59,6 +59,14 @@ &Download;: @z +@x Binutils LTO Testsuite Patch + Download: + MD5 sum: &binutils-lto-testsuite-patch-md5; +@y + &Download;: + MD5 sum: &binutils-lto-testsuite-patch-md5; +@z + @x Bzip2 Documentation Patch Download: @y diff --git a/lfsbook/src/chapter04/aboutsbus.ch b/lfsbook/src/chapter04/aboutsbus.ch index 7f62679f..52f25382 100644 --- a/lfsbook/src/chapter04/aboutsbus.ch +++ b/lfsbook/src/chapter04/aboutsbus.ch @@ -78,40 +78,40 @@ @z @x - For many modern systems with multiple processors (or cores) the - compilation time for a package can be reduced by performing a "parallel make" - by either setting an environment variable or telling the - make program how many processors are available. For - instance, a Core2Duo can support two simultaneous processes with: + For many modern systems with multiple processors (or cores) the + compilation time for a package can be reduced by performing a "parallel + make" by either setting an environment variable or telling the + make program how many processors are available. For + instance, a Core2Duo can support two simultaneous processes with: @y - - - 最新のシステムは複数プロセッサー (デュアルコアとも言います) であることが多く、パッケージのビルドにあたっては「同時並行のビルド」によりビルド時間を削減できます。 - その場合プロセッサー数がいくつなのかを環境変数に指定するか、あるいは make プログラムの実行時に指定する方法があります。 - 例えばコア2デュオであれば、以下のようにして同時並行の二つのプロセスを実行することができます。 - + + 最新のシステムは複数プロセッサー (デュアルコアとも言います) であることが多く、パッケージのビルドにあたっては「同時並行のビルド」によりビルド時間を削減できます。 + その場合プロセッサー数がいくつなのかを環境変数に指定するか、あるいは make プログラムの実行時に指定する方法があります。 + 例えばコア2デュオであれば、以下のようにして同時並行の二つのプロセスを実行することができます。 + @z @x - or just building with: + or just building with: @y - - あるいはビルド時の指定として以下のようにすることもできます。 - + + あるいはビルド時の指定として以下のようにすることもできます。 + @z @x - When multiple processors are used in this way, the SBU units in the - book will vary even more than they normally would. Analyzing the output of - the build process will also be more difficult because the lines of different - processes will be interleaved. If you run into a problem with a build step, - revert back to a single processor build to properly analyze the error - messages. + When multiple processors are used in this way, the SBU units in the + book will vary even more than they normally would. In some cases, the make + step will simply fail. Analyzing the output of the build process will also + be more difficult because the lines of different processes will be + interleaved. If you run into a problem with a build step, revert back to a + single processor build to properly analyze the error messages. @y - - 上のようにして複数プロセッサーが利用されると、本書に示している SBU 単位は、通常の場合に比べて大きく変化します。 - したがってビルド結果を検証するにしても話が複雑になります。 - 複数のプロセスラインがインターリーブにより多重化されるためです。 - ビルド時に何らかの問題が発生したら、単一プロセッサー処理を行ってエラーメッセージを分析してください。 - + + 上のようにして複数プロセッサーが利用されると、本書に示している SBU 単位は、通常の場合に比べて大きく変化します。 + そればかりか場合により make 処理に失敗することもあります。 + したがってビルド結果を検証するにしても話が複雑になります。 + 複数のプロセスラインがインターリーブにより多重化されるためです。 + ビルド時に何らかの問題が発生したら、単一プロセッサー処理を行ってエラーメッセージを分析してください。 + @z diff --git a/lfsbook/src/chapter04/introduction.ch b/lfsbook/src/chapter04/introduction.ch index e69de29b..739bfd80 100644 --- a/lfsbook/src/chapter04/introduction.ch +++ b/lfsbook/src/chapter04/introduction.ch @@ -0,0 +1,38 @@ +% +% This is part of LFSbookja package. +% +% This is a CTIE change file for the LFS hint text files. +% +% $Author$ +% $Rev$ +% $Date:: $ +% +@x + +@y + +@z + +@x + Introduction +@y + はじめに +@z + +@x + In this chapter, we will perform a few additional tasks to prepare + for building the temporary system. We will create a directory in + $LFS for the installation of the + temporary tools, add an unprivileged user to reduce risk, + and create an appropriate build environment for that user. We will also + explain the unit of time we use to measure how long LFS packages take to + build, or SBUs, and give some information about package + test suites. +@y + + 本章では一時システムをビルドするために、あともう少し作業を行います。 + $LFS ディレクトリ内にインストールディレクトリを作ります。 + リスク軽減のために一般ユーザーを生成し、このユーザーにおいてのビルド環境を作ります。 + また LFS パッケージ類の構築時間を測る手段として標準時間SBUsについて説明し、各パッケージのテストスイートについて触れます。 + +@z diff --git a/lfsbook/src/chapter05/gcc-pass1.ch b/lfsbook/src/chapter05/gcc-pass1.ch index a924772c..198d0f41 100644 --- a/lfsbook/src/chapter05/gcc-pass1.ch +++ b/lfsbook/src/chapter05/gcc-pass1.ch @@ -126,6 +126,14 @@ @z @x + Also fix a problem identified upstream: +@y + + アップストリームが認識している問題を修正します。 + +@z + +@x The GCC documentation recommends building GCC outside of the source directory in a dedicated build directory: @y @@ -212,16 +220,16 @@ @z -@x --disable-decimal-float, --disable-threads, --disable-libmudflap, --disable-libssp, --disable-libgomp, --disable-libquadmath +@x --disable-decimal-float, --disable-threads, --disable-libssp, --disable-libgomp, --disable-libquadmath These switches disable support for the decimal floating point - extension, threading, libatomic, libgomp, libitm, libmudflap, + extension, threading, libatomic, libgomp, libitm, libquadmath, libsanitizer, libssp, libvtv, libcilkrts and the C++ standard library respectively. These features will fail to compile when building a cross-compiler and are not necessary for the task of cross-compiling the temporary libc. @y - これらのオプションは順に、十進浮動小数点制御、スレッド処理、libatomic, libgomp, libitm, libmudflap, libquadmath, libsanitizer, libssp, libvtv, libcilkrts, C++ 標準ライブラリのサポートをいずれも無効にすることを指示します。 + これらのオプションは順に、十進浮動小数点制御、スレッド処理、libatomic, libgomp, libitm, libquadmath, libsanitizer, libssp, libvtv, libcilkrts, C++ 標準ライブラリのサポートをいずれも無効にすることを指示します。 これらの機能を含めていると、クロスコンパイラーをビルドする際にはコンパイルに失敗します。 またクロスコンパイルによって一時的な libc ライブラリを構築する際には不要なものです。 diff --git a/lfsbook/src/chapter05/gcc-pass2.ch b/lfsbook/src/chapter05/gcc-pass2.ch index 71e8a3e6..18dde406 100644 --- a/lfsbook/src/chapter05/gcc-pass2.ch +++ b/lfsbook/src/chapter05/gcc-pass2.ch @@ -61,22 +61,6 @@ @z -% @x -% For x86 machines, a bootstrap build of GCC uses the -% compiler flag. Non-bootstrap builds -% omit this flag by default, and the goal should be to produce a compiler -% that is exactly the same as if it were bootstrapped. Apply the following -% sed command to force the build to use the flag: -% @y -% -% x86 マシンにおいてブートストラップビルドを行うと、コンパイラーフラグ -% が設定されます。 -% しかしブートストラップではないビルドの場合はデフォルトではこのフラグが無効化されてしまいます。 -% ここで実現したいのは、ブートストラップビルドを行った場合とまったく同じコンパイラーをビルドすることです。 -% そこで以下の sed コマンドにより、強制的に上のフラグを利用するようにします。 -% -% @z - @x Once again, change the location of GCC's default dynamic linker to use the one installed in As in the first build of GCC, fix a problem identified upstream: +@y + + 1回目と同様、アップストリームが認識している問題を修正します。 + +@z + +@x Create a separate build directory again: @y @@ -128,48 +120,7 @@ &MeaningOfOption1;configure&MeaningOfOption2;: @z -@x - This option ensures the correct locale model is selected - for the C++ libraries under all circumstances. If the configure - script finds the de_DE locale installed, - it will select the correct gnu locale model. However, if the - de_DE locale is not installed, there is the - risk of building Application Binary Interface (ABI)-incompatible - C++ libraries because the incorrect generic locale model may be - selected. -@y - - このオプションはあらゆる状況において C++ ライブラリに対するロケールモデルが正しく設定されるようにします。 - configure スクリプト実行時に de_DE ロケールがインストール済みであることが分かれば、正しい GNU ロケールモデルが設定されます。 - しかし de_DE ロケールがインストールされていなかったら、誤った汎用ロケールモデルが設定されてしまうため、アプリケーションバイナリインターフェース (Application Binary Interface; ABI) とは非互換の C++ ライブラリが生成されてしまう可能性があります。 - -@z - -@x - This enables C++ exception handling for multi-threaded code. -@y - - マルチスレッドコードを扱う C++ の例外処理を有効にします。 - -@z - -@x - This option allows use of __cxa_atexit, - rather than atexit, to register C++ destructors - for local statics and global objects. This option is essential for - fully standards-compliant handling of destructors. It also affects - the C++ ABI, and therefore results in C++ shared libraries and C++ - programs that are interoperable with other Linux distributions. -@y - - このオプションは atexit を使用せず __cxa_atexit の使用を有効にします。 - これによりローカルなスタティックオブジェクトおよびグローバルオブジェクトに対する C++ デストラクターを登録します。 - このオプションは、標準に完全準拠したデストラクタ実装のために必要です。 - またこれは C++ ABI に影響するものであり C++ 共有ライブラリ、C++ プログラムを作り出し、他の Linux ディストリビューションとの互換性を実現します。 - -@z - -@x +@x --enable-languages=c,c++ This option ensures that both the C and C++ compilers are built. @y @@ -178,7 +129,7 @@ @z -@x +@x --disable-libstdcxx-pch Do not build the pre-compiled header (PCH) for libstdc++. It takes up a lot of space, and we have no use for it. @@ -189,7 +140,7 @@ @z -@x +@x --disable-bootstrap For native builds of GCC, the default is to do a "bootstrap" build. This does not just compile GCC, but compiles it several times. It uses the programs compiled in a first round to compile itself a diff --git a/lfsbook/src/chapter05/util-linux.ch b/lfsbook/src/chapter05/util-linux.ch index 324b160a..68e99b24 100644 --- a/lfsbook/src/chapter05/util-linux.ch +++ b/lfsbook/src/chapter05/util-linux.ch @@ -39,6 +39,17 @@ &MeaningOfOption1;configure&MeaningOfOption2;: @z +@x --without-python + This switch disables using Python + if it is installed on the host system. It avoids trying to build + unneeded bindings. +@y + + 本スイッチはホストシステムに Python がインストールされていても、これを用いないようにします。 + ビルドの際に不要なバインディングを作らないようにするためです。 + +@z + @x --disable-makeinstall-chown This switch disables using the chown command during installation. This is not needed when installing into the diff --git a/lfsbook/src/chapter06/acl.ch b/lfsbook/src/chapter06/acl.ch index 9d786a23..fa07a508 100644 --- a/lfsbook/src/chapter06/acl.ch +++ b/lfsbook/src/chapter06/acl.ch @@ -48,6 +48,15 @@ @z @x + Additionally, fix a bug that causes getfacl -e + to segfault on overly long group name: +@y + + 長いグループ名に対して getfacl -e が segfault を起こすため、これを修正します。 + +@z + +@x Prepare Acl for compilation: @y &PreparePackage1;Acl&PreparePackage2; @@ -62,13 +71,13 @@ @x The Acl tests need to be run on a filesystem that supports access controls after Coreutils has been built with the - Acl libraries. If desired, return to this package and run make + Acl libraries. If desired, return to this package and run make -j1 tests after Coreutils has been built later in this chapter. @y Acl のテストは、Acl のライブラリによって Coreutils をビルドした後に、アクセス制御がサポートされたファイルシステム上にて実施する必要があります。 - テスト実施が必要である場合は、後に生成する Coreutils のビルドが終わってから、再び本パッケージに戻って make + テスト実施が必要である場合は、後に生成する Coreutils のビルドが終わってから、再び本パッケージに戻って make -j1 tests を実行してください。 @z diff --git a/lfsbook/src/chapter06/adjusting.ch b/lfsbook/src/chapter06/adjusting.ch index a63b39e3..3cf05255 100644 --- a/lfsbook/src/chapter06/adjusting.ch +++ b/lfsbook/src/chapter06/adjusting.ch @@ -79,12 +79,12 @@ @z @x - If everything is working correctly, there should be no errors, + There should be no errors, and the output of the last command will be (allowing for platform-specific differences in dynamic linker name): @y - 問題なく動作した場合はエラーがなかったということで、最後のコマンドから出力される結果は以下のようになるはずです。 + 問題なく動作するはずで、最後のコマンドから出力される結果は以下のようになるはずです。 (ダイナミックリンカーの名前はプラットフォームによって違っているかもしれません。) @z @@ -107,11 +107,10 @@ @z @x - If everything is working correctly, there should be no errors, - and the output of the last command will be: + The output of the last command should be: @y - 問題なく動作した場合はエラーがなかったということで、上のコマンドの出力は以下のようになるはずです。 + 上のコマンドの出力は以下のようになるはずです。 @z @@ -125,10 +124,10 @@ @z @x - This command should return successfully with the following output: + This command should return the following output: @y - 上のコマンドは正常に終了すると、以下の出力を返します。 + 上のコマンドは以下の出力を返します。 @z @@ -141,12 +140,10 @@ @z @x - If everything is working correctly, there should be no errors, - and the output of the last command - will be: + The output of the last command should be: @y - 問題なく動作した場合はエラーがなかったということで、最後のコマンドの出力は以下のようになるはずです。 + 最後のコマンドの出力は以下のようになるはずです。 @z @@ -159,13 +156,12 @@ @z @x - If everything is working correctly, there should be no errors, - and the output of the last command (allowing for a lib64 directory on 64-bit hosts) - will be: + The output of the last command (allowing for a lib64 directory + on 64-bit hosts) should be: @y - 問題なく動作した場合はエラーがなかったということで、最後のコマンドの出力は以下のようになるはずです。 - (64 ビットマシンであれば lib64 ディレクトリとなるはずです。) + 最後のコマンドの出力は以下のようになるはずです。 + (64 ビットマシンであれば lib64 ディレクトリになります。) @z @@ -178,15 +174,14 @@ @z @x - If everything is working correctly, there should be no errors, - and the output of the last command will be (allowing for - platform-specific differences in dynamic linker name and a lib64 directory - on 64-bit hosts): + The output of the last command should be (allowing for + platform-specific differences in dynamic linker name and a lib64 directory on + 64-bit hosts): @y - 問題なく動作した場合はエラーがなかったということで、上のコマンドの出力は以下のようになるはずです。 + 上のコマンドの出力は以下のようになるはずです。 (ダイナミックリンカーの名前はプラットフォームによって違っているかもしれません。 - また 64 ビットマシンであれば lib64 ディレクトリとなるはずです。) + また 64 ビットマシンであれば lib64 ディレクトリとなります。) @z diff --git a/lfsbook/src/chapter06/attr.ch b/lfsbook/src/chapter06/attr.ch index bb81d9b0..82e16087 100644 --- a/lfsbook/src/chapter06/attr.ch +++ b/lfsbook/src/chapter06/attr.ch @@ -51,12 +51,14 @@ @x The tests need to be run on a filesystem that supports extended - attributes such as the ext2, ext3, or ext4 filesystems. To test the - results, issue: + attributes such as the ext2, ext3, or ext4 filesystems. The tests are also + known to fail if running multiple simultaneous tests (-j option greater than + 1). To test the results, issue: @y テストは、ext2, ext3, ext4 のような拡張属性をサポートしているファイルシステム上にて実施する必要があります。 - テストする場合は以下を実行します。 + また同時並行のテスト (-j オプションに 1以上を指定した場合) では失敗します。 + テストを実施するには以下を実行します。 @z diff --git a/lfsbook/src/chapter06/binutils.ch b/lfsbook/src/chapter06/binutils.ch index 5151a2ee..f51a9c46 100644 --- a/lfsbook/src/chapter06/binutils.ch +++ b/lfsbook/src/chapter06/binutils.ch @@ -78,6 +78,14 @@ @z @x + Fix some LTO tests in the test suite: +@y + + テストスイート内の LTO に関するテストをいくつか修正します。 + +@zx + +@x The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build directory: @y @@ -146,15 +154,6 @@ @z @x - Six tests in the lto.exp testsuite are known to fail due - to changes in the most recent version of gcc. -@y - - テストスイート lto.exp においては、最新の gcc の更新内容が影響し、6つのテストが失敗します。 - -@z - -@x Install the package: @y &InstallThePackage; diff --git a/lfsbook/src/chapter06/createfiles.ch b/lfsbook/src/chapter06/createfiles.ch index 681c6347..9343f676 100644 --- a/lfsbook/src/chapter06/createfiles.ch +++ b/lfsbook/src/chapter06/createfiles.ch @@ -34,6 +34,102 @@ @z @x + The purpose of each link: +@y + 各リンクの目的 +@z + +@x /bin/bash + Many bash scripts specify + /bin/bash. +@y + + bash スクリプトはたいてい /bin/bash として記述されます。 + +@z + +@x /bin/cat + This pathname is hard-coded into Glibc's configure script. +@y + + このパス名は Glibc の configure スクリプトにてハードコーディングされています。 + +@z + +@x /bin/echo + This is to satisfy one of the tests in Glibc's test suite, which + expects /bin/echo. +@y + + Glibc のテストスイートの中に /bin/echo を用いているものがあり、これを成功させるためです。 + +@z + +@x /bin/pwd + Some configure scripts, particularly Glibc's, + have this pathname hard-coded. +@y + + 特に Glibc などの configure スクリプトにて、このパス名がハードコーディングされています。 + +@z + +@x /bin/stty + This pathname is hard-coded into Expect, therefore it is needed + for Binutils and GCC test suites to pass. +@y + + このパス名は Expect にてハードコーディングされています。 + したがって Binutils と GCC のテストスイートを成功させるために必要となります。 + +@z + +@x /usr/bin/perl + Many Perl scripts hard-code this path to the + perl program. +@y + + perl コマンドに対して Perl スクリプトはたいていこのパス名を用いています。 + +@z + +@x /usr/lib/libgcc_s.so{,.1} + Glibc needs this for the pthreads library to work. +@y + + pthreads ライブラリが正常動作するように Glibc にとって必要となります。 + +@z + +@x /usr/lib/libstdc++{,.6} + This is needed by several tests in Glibc's test suite, as well as + for C++ support in GMP. +@y + + Glibc のテストスイート、例えば GMP における C++ サポートなどにおいて、これを必要とするものがあります。 + +@z + +@x /usr/lib/libstdc++.la + This prevents a /tools + reference that would otherwise be in + /usr/lib/libstdc++.la after GCC is installed. +@y + + GCC がインストールされた後には /tools への参照ではなく、/usr/lib/libstdc++.la を必要とします。 + +@z + +@x /bin/sh + Many shell scripts hard-code /bin/sh. +@y + + シェルスクリプトはたいてい /bin/sh がハードコーディングされています。 + +@z + +@x Historically, Linux maintains a list of the mounted file systems in the file /etc/mtab. Modern kernels maintain this list internally and exposes it to the user via the @z -@x +@x --enable-elf-shlibs This creates the shared libraries which some programs in this package use. @y @@ -93,19 +93,19 @@ @z -@x +@x --disable-* This prevents E2fsprogs from building and installing the libuuid and libblkid libraries, the uuidd daemon, and the - fsck wrapper, as Util-Linux installed all of - them earlier. + fsck wrapper, as Util-Linux installs more + recent versions. @y このオプションは libuuid ライブラリ、libblkid ライブラリ、uuidd デーモン、fsck ラッパーをいずれもビルドせずインストールしないようにします。 - これらは Util-Linux パッケージによって既にインストールされています。 + これらは Util-Linux パッケージによって、より最新のものがインストールされています。 @z diff --git a/lfsbook/src/chapter06/eudev.ch b/lfsbook/src/chapter06/eudev.ch index 42e6df24..788c5e2d 100644 --- a/lfsbook/src/chapter06/eudev.ch +++ b/lfsbook/src/chapter06/eudev.ch @@ -29,10 +29,10 @@ @z @x - First, clean up a few warnings and fix a test script: + First, fix a test script: @y - はじめに警告エラーやテストスクリプトを修正します。 + はじめにテストスクリプトを修正します。 @z diff --git a/lfsbook/src/chapter06/gcc.ch b/lfsbook/src/chapter06/gcc.ch index 1bbda56e..0db75085 100644 --- a/lfsbook/src/chapter06/gcc.ch +++ b/lfsbook/src/chapter06/gcc.ch @@ -29,6 +29,14 @@ @z @x + As in Chapter 5, fix a problem identified upstream: +@y + + 第5章と同じように、アップストリームが認識している問題を修正します。 + +@z + +@x As in , apply the following sed to force the build to use the compiler flag in order to ensure @@ -199,6 +207,15 @@ @z @x + Add a compatibility symlink to enable building programs with + Link Time Optimization (LTO): +@y + + リンク時の最適化 (Link Time Optimization; LTO) によりプログラム構築できるように、シンボリックリンクを作ります。 + +@z + +@x Now that our final toolchain is in place, it is important to again ensure that compiling and linking will work as expected. We do this by performing the same sanity checks as we did earlier in the chapter: diff --git a/lfsbook/src/chapter06/gdbm.ch b/lfsbook/src/chapter06/gdbm.ch index b2fd3f7b..b03d7124 100644 --- a/lfsbook/src/chapter06/gdbm.ch +++ b/lfsbook/src/chapter06/gdbm.ch @@ -102,7 +102,23 @@ &ShortDescriptions; @z -@x testgdbm +@x gdbm_dump + Dumps a GDBM database to a file. +@y + + GDBM データベースをファイルにダンプします。 + +@z + +@x gdbm_load + Recreates a GDBM database from a dump file. +@y + + GDBM のダンプファイルからデータベースを再生成します。 + +@z + +@x gdbmtool Tests and modifies a GDBM database @y @@ -117,3 +133,11 @@ ハッシュデータベースを取り扱う関数を提供します。 @z + +@x libgdbm_compat + Compatibility library containing older DBM functions +@y + + 古い DBM 関数を含んだ互換ライブラリ。 + +@z diff --git a/lfsbook/src/chapter06/gmp.ch b/lfsbook/src/chapter06/gmp.ch index 781c2daa..a61b5905 100644 --- a/lfsbook/src/chapter06/gmp.ch +++ b/lfsbook/src/chapter06/gmp.ch @@ -53,12 +53,21 @@ &MeaningOfOption1;configure&MeaningOfOption2;: @z -@x +@x --enable-cxx This parameter enables C++ support @y C++ サポートを有効にします。 @z +@x --docdir=/usr/share/doc-gmp&gmp-version; + This variable specifies the correct place for the + documentation. +@y + + ドキュメントのインストール先を適切に設定します。 + +@z + @x Compile the package and generate the HTML documentation: @y diff --git a/lfsbook/src/chapter06/inetutils.ch b/lfsbook/src/chapter06/inetutils.ch index 5cc83bb4..2dbd545b 100644 --- a/lfsbook/src/chapter06/inetutils.ch +++ b/lfsbook/src/chapter06/inetutils.ch @@ -52,12 +52,12 @@ This option prevents Inetutils from installing the logger program, which is used by scripts to pass messages to the System Log Daemon. Do not install it because - Util-linux installed a version earlier. + Util-linux installs a more recent version. @y このオプションは logger プログラムをインストールしないようにします。 このプログラムはシステムログデーモンに対してメッセージ出力を行うスクリプトにて利用されます。 - ここでこれをインストールしないのは、後に Util-linux パッケージにおいて、以前のバージョンをインストールするためです。 + ここでこれをインストールしないのは、後に Util-linux パッケージにおいて、より最新のバージョンをインストールするためです。 @z diff --git a/lfsbook/src/chapter06/libcap.ch b/lfsbook/src/chapter06/libcap.ch index 07bbca3a..96f153ff 100644 --- a/lfsbook/src/chapter06/libcap.ch +++ b/lfsbook/src/chapter06/libcap.ch @@ -50,6 +50,23 @@ @z @x + The meaning of the make option: +@y + &MeaningOfOption1;make&MeaningOfOption2; +@z + +@x RAISE_SETFCAP=no + This parameter skips trying to use setcap + on itself. This avoids an installation error if the kernel or file + system does not support extended capabilities. +@y + + このパラメーターは setcap が自分を利用しないようにします。 + このことにより、カーネルやファイルシステムが拡張属性をサポートしていなくても、インストールエラーが発生しないようにします。 + +@z + +@x The shared library needs to be moved to /lib, and as a result the .so file in diff --git a/lfsbook/src/chapter06/ncurses.ch b/lfsbook/src/chapter06/ncurses.ch index 682e532d..8d74725d 100644 --- a/lfsbook/src/chapter06/ncurses.ch +++ b/lfsbook/src/chapter06/ncurses.ch @@ -35,7 +35,7 @@ @z @x - The meaning of the configure option: + The meaning of the new configure options: @y &MeaningOfOption1;configure&MeaningOfOption2;: @z diff --git a/lfsbook/src/chapter06/procps.ch b/lfsbook/src/chapter06/procps.ch index 26c1408b..a88a60ea 100644 --- a/lfsbook/src/chapter06/procps.ch +++ b/lfsbook/src/chapter06/procps.ch @@ -40,11 +40,11 @@ @z @x --disable-kill - This switch disables building the kill command that - was installed in the util-linux package. + This switch disables building the kill + command that will be installed by the Util-linux package. @y - 本スイッチは kill コマンドをビルドしないようにします。 + 本スイッチは kill コマンドをビルドしないようにします。 このコマンドは util-linux パッケージにてインストールされます。 @z diff --git a/lfsbook/src/chapter06/shadow.ch b/lfsbook/src/chapter06/shadow.ch index 4a652518..c87f2663 100644 --- a/lfsbook/src/chapter06/shadow.ch +++ b/lfsbook/src/chapter06/shadow.ch @@ -80,12 +80,36 @@ @z @x + Make a minor change to make the default useradd consistent with the LFS + groups file: +@y + + LFS のグループファイルと整合が取れるように、デフォルトの useradd を修正します。 + +@z + +@x Prepare Shadow for compilation: @y &PreparePackage1;Shadow&PreparePackage2; @z @x + The meaning of the configure option: +@y + &MeaningOfOption1;configure&MeaningOfOption2; +@z + +@x --with-group-name-max-length=32 + The maximum user name is 32 characters. Make the maximum + group name the same. +@y + + ユーザー名とグループ名の最大文字数を 32 とします。 + +@z + +@x Compile the package: @y &CompileThePackage; diff --git a/lfsbook/src/chapter06/sysklogd.ch b/lfsbook/src/chapter06/sysklogd.ch index 3a80d769..2a3b4810 100644 --- a/lfsbook/src/chapter06/sysklogd.ch +++ b/lfsbook/src/chapter06/sysklogd.ch @@ -29,6 +29,15 @@ @z @x + First, fix a problem that causes a segmentation fault under + some conditions in klogd: +@y + + 特定の条件において klogd がセグメンテーションフォールトを起こすため、この問題を修正します。 + +@z + +@x Compile the package: @y &CompileThePackage; diff --git a/lfsbook/src/chapter06/util-linux.ch b/lfsbook/src/chapter06/util-linux.ch index 418ef48f..2049140b 100644 --- a/lfsbook/src/chapter06/util-linux.ch +++ b/lfsbook/src/chapter06/util-linux.ch @@ -89,6 +89,16 @@ @z @x + One test above, tests/ts/ipcs/limits2, will fail when the host + is using a recent kernel. The failure can safely be ignored. +@y + + 上において tests/ts/ipcs/limits2 というテストは、ホストが最新のカーネルを用いている場合に失敗します。 + この失敗は無視して構いません。 + +@z + +@x Install the package: @y &InstallThePackage; @@ -128,7 +138,7 @@ libblkid.{a,so}, libmount.{a,so}, libuuid.{a,so} /etc/terminal-colors.d, /usr/include/blkid, /usr/include/libmount, - /usr/include/uuid, /usr/share/doc/util-linux/getopt, /var/lib/hwclock + /usr/include/uuid, /usr/share/doc/util-linux-&util-linux-version;/getopt, /var/lib/hwclock @y addpart, agetty, blkdiscard, blkid, blockdev, cal, cfdisk, chcpu, chrt, col, colcrt, colrm, column, ctrlaltdel, delpart, dmesg, @@ -147,7 +157,7 @@ libblkid.{a,so}, libmount.{a,so}, libuuid.{a,so} /etc/terminal-colors.d, /usr/include/blkid, /usr/include/libmount, - /usr/include/uuid, /usr/share/doc/util-linux/getopt, /var/lib/hwclock + /usr/include/uuid, /usr/share/doc/util-linux-&util-linux-version;/getopt, /var/lib/hwclock @z @x @@ -568,7 +578,7 @@ @z -@x +@x lslocks Lists local system locks @y @@ -576,6 +586,14 @@ @z +@x lslogins + Lists information about users, groups and system accounts +@y + + ユーザー、グループ、システムアカウントの情報を一覧表示します。 + +@z + @x mcookie Generates magic cookies (128-bit random hexadecimal numbers) for xauth diff --git a/lfsbook/src/chapter06/vim.ch b/lfsbook/src/chapter06/vim.ch index 757b891b..660f8e2a 100644 --- a/lfsbook/src/chapter06/vim.ch +++ b/lfsbook/src/chapter06/vim.ch @@ -62,26 +62,6 @@ @z @x - The meaning of the configure options: -@y - &MeaningOfOption1;configure&MeaningOfOption2;: -@z - -@x - This switch enables support for editing files in multibyte - character encodings. This is needed if using a locale with a - multibyte character set. This switch is also helpful to be able - to edit text files initially created in Linux distributions like - Fedora that use UTF-8 as a default character set. -@y - - このスイッチは、マルチバイトエンコーディングによるファイルの編集をサポートする指示を行います。 - マルチバイト文字を用いるロケールにとってはこれが必要です。 - 例えば Fedora Core のようにデフォルトで UTF-8 を採用している Linux ディストリビューションにおいては、新規に生成するテキストファイルを編集できるようにするために、このオプションを指定することが有用です。 - -@z - -@x Compile the package: @y &CompileThePackage; diff --git a/lfsbook/src/chapter07/network.ch b/lfsbook/src/chapter07/network.ch index 6e87dd10..00dbff13 100644 --- a/lfsbook/src/chapter07/network.ch +++ b/lfsbook/src/chapter07/network.ch @@ -54,214 +54,6 @@ @z -% @x -% Creating Network Interface Configuration Files -% @y -% -% ネットワークインターフェースに対する設定ファイルの作成 -% -% @z -% -% @x -% If there is only one network interface in the system to be -% configured, this section is optional, although it will never be wrong to do -% it. In many cases (e.g. a laptop with a wireless and a wired interface), -% accomplishing the configuration in this section is necessary. -% @y -% -% 設定を行うべきネットワークインターフェースが、システム内にただ一つであるなら、本節に示す内容は任意となります。 -% 設定を行ったとしても間違いにはなりません。 -% ラップトップPCでのワイヤレスネットワークやケーブル接続のネットワークにおいては、たいていは本節における設定が必要となるでしょう。 -% -% @z -% -% @x -% With Udev and modular network drivers, the network interface numbering -% is not persistent across reboots by default, because the drivers are loaded -% in parallel and, thus, in random order. For example, on a computer having -% two network cards made by Intel and Realtek, the network card manufactured -% by Intel may become eth0 and the -% Realtek card becomes eth1. In some -% cases, after a reboot the cards get renumbered the other way around. To -% avoid this, Udev comes with a script and some rules to assign stable names -% to network cards based on their MAC address. -% @y -% -% Udev やモジュラー化されたネットワークドライバーにおいて、ネットワークインターフェースの番号の割振りは再起動により変更されます。 -% ドライバーモジュールの読み込みが並列で行われるためランダムになるからです。 -% 例えば Intel 製と Realtek 製の二つのネットワークカードを持つコンピューターにおいて、 -% Intel 製が eth0、Realtek 製が eth1 となったとします。 -% しかし時にはシステムの再起動によって番号割り振りが逆転することもあります。 -% これを避けるには Udev ルールを生成して、ネットワークカードの MAC アドレスに基づいて固定的に名称を定める方法があります。 -% -% @z -% -% @x -% If using the traditional network interface names such as eth0 is desired, -% generate a custom Udev rule: -% @y -% -% ネットワークインターフェース名として従来の eth0 といった名前を用いる場合は、以下の Udev ルールを生成します。 -% -% @z -% -% @x -% Now, inspect the -% /etc/udev/rules.d/70-persistent-net.rules file, to -% find out which name was assigned to which network device: -% @y -% -% そして /etc/udev/rules.d/70-persistent-net.rules ファイルを参照し、どういった名前によりネットワークデバイスが定められているかを確認します。 -% -% @z -% -% @x -% In some cases such as when MAC addresess have been assigned to -% a network card manually or in a virtual environment such as Xen, -% the network rules file may not have been generated because addresses -% are not consistently assigned. In these cases, just continue to -% the next section. -% @y -% -% ネットワークカードに対して手動で MAC アドレスを割り当てた場合や Xen のような仮想環境における場合などにおいて、ネットワークルールファイルが生成されないことがあります。 -% これはアドレスの割り当てが確定されないためです。 -% こういった場合は次節に進んでください。 -% -% @z -% -% @x -% The file begins with a comment block followed by two lines for each -% NIC. The first line for each NIC is a commented description showing its -% hardware IDs (e.g. its PCI vendor and device IDs, if it's a PCI card), -% along with its driver in parentheses, if the driver can be found. Neither -% the hardware ID nor the driver is used to determine which name to give an -% interface; this information is only for reference. The second line is the -% Udev rule that matches this NIC and actually assigns it a name. -% @y -% -% このファイルの先頭にはコメントが数行あり、続いてそれぞれの NIC に対する行があります。 -% NIC ごとの記述では一行めがコメントで、そのハードウェア ID が記されています。 -% (PCI カードである場合、PCI ベンダとデバイス ID が記述されます。) -% またドライバーが検出できている場合には、カッコ書きでドライバー名も示されます。 -% ハードウェア ID もドライバー名も、インターフェースに対して与えられる名称とは無関係で、単に分かりやすくするために記されているにすぎません。 -% 二行めは Udev ルールであり、その NIC を定め、名称を割り当てている記述です。 -% -% @z -% -% @x -% All Udev rules are made up of several keys, separated by commas and -% optional whitespace. This rule's keys and an explanation of each of them -% are as follows: -% @y -% -% Udev ルールはいくつかのキー項目で構成され、それぞれがカンマで区切られるか、場合によっては空白文字で区切られています。 -% このキー項目とその内容は以下のようになります。 -% -% @z -% -% @x -% SUBSYSTEM=="net" - This tells Udev to ignore -% devices that are not network cards. -% @y -% -% SUBSYSTEM=="net" - -% ネットワークカードではないデバイスは無視することを指示します。 -% -% @z -% -% @x -% ACTION=="add" - This tells Udev to ignore this -% rule for a uevent that isn't an add ("remove" and "change" uevents also -% happen, but don't need to rename network interfaces). -% @y -% -% ACTION=="add" - -% uevent の add イベントではないものは無視することを指示します。 -% (uevent の "remove" イベントや "change" イベントも発生しますが、これらはネットワークインターフェースの名前を変更するものではありません。) -% -% @z -% -% @x -% DRIVERS=="?*" - This exists so that Udev will -% ignore VLAN or bridge sub-interfaces (because these sub-interfaces do -% not have drivers). These sub-interfaces are skipped because the name -% that would be assigned would collide with their parent devices. -% @y -% -% DRIVERS=="?*" - -% Udev に対して VLAN やブリッジサブインターフェース (bridge sub-interfaces) を無視することを指示します。 -% (サブインターフェースにはドライバーがないためです。) -% サブインターフェースに名前が割り当てられたとすると、親デバイスの名前と衝突してしまうため、サブインターフェースの名前割り当てはスキップされます。 -% -% @z -% -% @x -% ATTR{address} - The value of this key is the -% NIC's MAC address. -% @y -% -% ATTR{address} - -% このキーの値は NIC の MAC アドレスを表します。 -% -% @z -% -% @x -% ATTR{type}=="1" - This ensures the rule only -% matches the primary interface in the case of certain wireless drivers, -% which create multiple virtual interfaces. The secondary interfaces are -% skipped for the same reason that VLAN and bridge sub-interfaces are -% skipped: there would be a name collision otherwise. -% @y -% -% ATTR{type}=="1" - -% 特定のワイヤレスドライバーでは複数の仮想インターフェースが生成されますが、そのうちの主となるインターフェースにのみルールが合致するようにします。 -% 二つめ以降のインターフェースに対する処理は、VLAN やブリッジサブインターフェースがスキップされるのと同じくスキップされます。 -% 名前割り当てが行われてしまうと名前衝突を起こすためです。 -% -% @z -% -% @x -% KERNEL=="eth*" - This key was added to the -% Udev rule generator to handle machines that have multiple network -% interfaces, all with the same MAC address (the PS3 is one such -% machine). If the independent interfaces have different basenames, -% this key will allow Udev to tell them apart. This is generally not -% necessary for most Linux From Scratch users, but does not hurt. -% @y -% -% KERNEL=="eth*" - -% 複数のネットワークインターフェースを有するマシンを取り扱うためのルールを加えます。 -% このルールでは全インターフェースに同一の MAC アドレスが用いられます。 -% (PS3 などがそういったマシンになります。) -% 各インターフェースに対して個別の命名が行われたとすると Udev はそれぞれを別のものとして取り扱います。 -% これはたいていの Linux From Scratch ユーザーにとって必要ありません。 -% ただそうなったとしても問題はありません。 -% -% @z -% -% @x -% NAME - The value of this key is the name that -% Udev will assign to this interface. -% @y -% -% NAME - -% Udev がインターフェースに対して割り当てる名前をキーの値として指定します。 -% -% @z -% -% @x -% The value of NAME is the important part. Make sure -% you know which name has been assigned to each of your network cards before -% proceeding, and be sure to use that NAME value when -% creating your configuration files below. -% @y -% -% NAME に定義される値が重要です。 -% どのネットワークカードにどんな名前が割り当てられているかをよく確認してください。 -% そして以下において設定ファイルを生成する際には NAME に定義されている名称を利用してください。 -% -% @z - @x Creating Network Interface Configuration Files @y @@ -525,3 +317,140 @@ @y Google Public IPv4 DNS アドレスは 8.8.8.8 と 8.8.4.4 です。 @z + +@x + Configuring the system hostname +@y + ホスト名の設定 +@z + +@x + hostname + configuring +@y + hostname + 設定 +@z + +@x + During the boot process, the file /etc/hostname + is used for establishing the system's hostname. +@y + + システム起動時には /etc/hostname が参照されてシステムのホスト名が決定されます。 + +@z + +@x + Create the /etc/hostname file and enter a + hostname by running: +@y + + 以下のコマンドを実行することで /etc/hostname ファイルを生成するとともに、ホスト名を設定します。 + +@z + +@x + <lfs> needs to be replaced with the + name given to the computer. Do not enter the Fully Qualified Domain Name + (FQDN) here. That information is put in the + /etc/hosts file. +@y + + <lfs> の部分は、各システムにおいて定めたい名称に置き換えてください。 + ここでは完全修飾ドメイン名 (Fully Qualified Domain Name; FQDN) は指定しないでください。 + その情報は /etc/hosts ファイルにて行います。 + +@z + +@x + Customizing the /etc/hosts File +@y + /etc/hosts ファイルの設定 +@z + +@x + Decide on the IP address, fully-qualified domain name (FQDN), and + possible aliases for use in the /etc/hosts file. The + syntax is: +@y + + IPアドレス、完全修飾ドメイン名 (Fully Qualified Domain Name; FQDN)、エイリアスの各設定を /etc/hosts ファイルにて行います。 + その文法は以下のようになります。 + +@z + +@x + Unless the computer is to be visible to the Internet (i.e., there is + a registered domain and a valid block of assigned IP addresses—most + users do not have this), make sure that the IP address is in the private + network IP address range. Valid ranges are: +@y + + インターネットに公開されていないコンピューターである場合 + (つまり登録ドメインであったり、あらかじめ IP アドレスが割り当てられていたりする場合。 普通のユーザーはこれを持ちません。) + IP アドレスはプライベートネットワーク IP アドレスの範囲で指定します。 + 以下がそのアドレス範囲です。 + +@z + +@x + x can be any number in the range 16-31. y can be any number in the + range 0-255. +@y + + x は 16 から 31、y は 0 から 255 の範囲の数値です。 + +@z + +@x + A valid private IP address could be 192.168.1.1. A valid FQDN for + this IP could be lfs.example.org. +@y + + IP アドレスの例は 192.168.1.1 となります。 + また FQDN の例としては lfs.example.org となります。 + +@z + +@x + Even if not using a network card, a valid FQDN is still required. + This is necessary for certain programs to operate correctly. +@y + + ネットワークカードを用いない場合でも FQDN の記述は行ってください。 + 特定のプログラムが動作する際に必要となることがあるからです。 + +@z + +@x + Create the /etc/hosts file by running: +@y + + 以下のようにして /etc/hosts ファイルを生成します。 + +@z + +@x + The <192.168.1.1> and + <HOSTNAME.example.org> values need to be + changed for specific uses or requirements (if assigned an IP address by a + network/system administrator and the machine will be connected to an + existing network). The optional alias name(s) can be omitted. +@y + + <192.168.1.1> や + <HOSTNAME.example.org> の部分は利用状況に応じて書き換えてください。 + (ネットワーク管理者から IP アドレスを指定されている場合や、既存のネットワーク環境に接続する場合など。). + エイリアスの記述は省略しても構いません。 + +@z + +@x + If a network card is not going to be configured, create the + /etc/hosts file by running: +@y + + ネットワークカードを設定しない場合は、以下のようにして /etc/hosts ファイルを生成します。 + +@z diff --git a/lfsbook/src/chapter07/symlinks.ch b/lfsbook/src/chapter07/symlinks.ch index b0caec08..6a988edb 100644 --- a/lfsbook/src/chapter07/symlinks.ch +++ b/lfsbook/src/chapter07/symlinks.ch @@ -20,6 +20,225 @@ @z @x + Network Devices +@y + ネットワークデバイス +@z + +@x + Udev, by default, names network devices according to Firmware/BIOS + data or physical characteristics like the bus, slot, or MAC address. The + purpose of this naming convention is to ensure that network devices are + named consistently and not based on the time the network card was + discovered. For example, on a computer having two network cards made by + Intel and Realtek, the network card manufactured by Intel may become eth0 + and the Realtek card becomes eth1. In some cases, after a reboot the cards + get renumbered the other way around. +@y + + Udev はデフォルトにおいて、ネットワークデバイスの名前づけを、ファームウェア/BIOS データや物理的特性、つまりバス、スロット、MACアドレスに基づいて取り決めます。 + このような命名規則とする目的は、複数のネットワークデバイスの命名を正確に行うためであり、検出した順番に命名することがないようにするためです。 + 例えば Intel 製と Realtek 製の二つのネットワークカードを持つコンピューターにおいて、 Intel 製が eth0、Realtek 製が eth1 となったとします。 + システムを再起動した際には、番号割り振りが逆転することもあります。 + +@z + +@x + In the new naming scheme, typical network device names would then + be something like enp5s0 or wlp3s0. If this naming convention is not + desired, the traditional naming scheme or a custom scheme can be + implemented. +@y + + 新たな命名スキーマでは、ネットワークデバイス名が例えば enp5s0 や wlp3s0 といったものになります。 + もしこの命名規則を望まない場合は、従来の命名規則とすることもできます。 + またはカスタムスキーマを定義することもできます。 + +@z + +@x + Disabling Persistent Naming on the Kernel Command Line +@y + カーネルコマンドラインによる持続的命名の回避 +@z + +@x + The traditional naming scheme using eth0, eth1, etc can be + restored by adding net.ifnames=0 on the + kernel command line. This is most appropriate for those systems + that have only one ethernet device of the same type. Laptops + often have multiple ethernet connections that are named eth0 and + wlan0 and are also candidates for this method. The command line + is passed in the GRUB configuration file. + See . +@y + + + 従来の命名スキーマ、例えば eth0、eth1 といったものは、カーネルコマンドラインに net.ifnames=0 を加えることで利用できます。 + この設定は、イーサネットデバイスをただ一つしか持たないシステムでは適正なものとなります。 + 一方ラップトップでは、eth0 と wlan0 といった複数のイーサネット接続が利用されることが多いものです。 + カーネルコマンドラインは GRUB の設定ファイルにて設定できます。 + 詳しくはを参照してください。 + +@z + +@x + Creating Custom Udev Rules +@y + Udev カスタムルールの生成 +@z + +@x + The naming scheme can be customized by creating custom Udev + rules. A script has been included that generates the initial rules. + Generate these rules by running: +@y + + 命名スキーマは Udev カスタムルールを生成することによってカスタマイズが可能です。 + Udev には初期ルールを生成するスクリプトが含まれています。 + このルールを生成するには以下を実行します。 + +@z + +@x + Now, inspect the + /etc/udev/rules.d/70-persistent-net.rules file, to + find out which name was assigned to which network device: +@y + + そして /etc/udev/rules.d/70-persistent-net.rules ファイルを参照し、どういった名前によりネットワークデバイスが定められているかを確認します。 + +@z + +@x + In some cases such as when MAC addresess have been assigned to + a network card manually or in a virtual environment such as Qemu or Xen, + the network rules file may not have been generated because addresses + are not consistently assigned. In these cases, this method cannot + be used. +@y + + ネットワークカードに対して手動で MAC アドレスを割り当てた場合、あるいは Qemu や Xen のような仮想環境における場合においては、ネットワークルールファイルが生成されないことがあります。 + これはアドレスの割り当てが確定されないためです。 + こういった場合は本方法を利用することはできません。 + +@z + +@x + The file begins with a comment block followed by two lines for each + NIC. The first line for each NIC is a commented description showing its + hardware IDs (e.g. its PCI vendor and device IDs, if it's a PCI card), + along with its driver in parentheses, if the driver can be found. Neither + the hardware ID nor the driver is used to determine which name to give an + interface; this information is only for reference. The second line is the + Udev rule that matches this NIC and actually assigns it a name. +@y + + このファイルの先頭にはコメントが数行あり、続いてそれぞれの NIC に対する行があります。 + NIC ごとの記述では一行めがコメントで、そのハードウェア ID が記されています。 + (PCI カードである場合、PCI ベンダとデバイス ID が記述されます。) + またドライバーが検出できている場合には、カッコ書きでドライバー名も示されます。 + ハードウェア ID もドライバー名も、インターフェースに対して与えられる名称とは無関係で、単に分かりやすくするために記されているにすぎません。 + 二行めは Udev ルールであり、その NIC を定め、名称を割り当てている記述です。 + +@z + +@x + All Udev rules are made up of several keys, separated by commas and + optional whitespace. This rule's keys and an explanation of each of them + are as follows: +@y + + Udev ルールはいくつかのキー項目で構成され、それぞれがカンマで区切られるか、場合によっては空白文字で区切られています。 + このキー項目とその内容は以下のようになります。 + +@z + +@x + SUBSYSTEM=="net" - This tells Udev to ignore + devices that are not network cards. +@y + + SUBSYSTEM=="net" - + ネットワークカードではないデバイスは無視することを指示します。 + +@z + +@x + ACTION=="add" - This tells Udev to ignore this + rule for a uevent that isn't an add ("remove" and "change" uevents also + happen, but don't need to rename network interfaces). +@y + + ACTION=="add" - + uevent の add イベントではないものは無視することを指示します。 + (uevent の "remove" イベントや "change" イベントも発生しますが、これらはネットワークインターフェースの名前を変更するものではありません。) + +@z + +@x + DRIVERS=="?*" - This exists so that Udev will + ignore VLAN or bridge sub-interfaces (because these sub-interfaces do + not have drivers). These sub-interfaces are skipped because the name + that would be assigned would collide with their parent devices. +@y + + DRIVERS=="?*" - + Udev に対して VLAN やブリッジサブインターフェース (bridge sub-interfaces) を無視することを指示します。 + (サブインターフェースにはドライバーがないためです。) + サブインターフェースに名前が割り当てられたとすると、親デバイスの名前と衝突してしまうため、サブインターフェースの名前割り当てはスキップされます。 + +@z + +@x + ATTR{address} - The value of this key is the + NIC's MAC address. +@y + + ATTR{address} - + このキーの値は NIC の MAC アドレスを表します。 + +@z + +@x + ATTR{type}=="1" - This ensures the rule only + matches the primary interface in the case of certain wireless drivers, + which create multiple virtual interfaces. The secondary interfaces are + skipped for the same reason that VLAN and bridge sub-interfaces are + skipped: there would be a name collision otherwise. +@y + + ATTR{type}=="1" - + 特定のワイヤレスドライバーでは複数の仮想インターフェースが生成されますが、そのうちの主となるインターフェースにのみルールが合致するようにします。 + 二つめ以降のインターフェースに対する処理は、VLAN やブリッジサブインターフェースがスキップされるのと同じくスキップされます。 + 名前割り当てが行われてしまうと名前衝突を起こすためです。 + +@z + +@x + NAME - The value of this key is the name that + Udev will assign to this interface. +@y + + NAME - + Udev がインターフェースに対して割り当てる名前をキーの値として指定します。 + +@z + +@x + The value of NAME is the important part. Make sure + you know which name has been assigned to each of your network cards before + proceeding, and be sure to use that NAME value when + creating your configuration files below. +@y + + NAME に定義される値が重要です。 + どのネットワークカードにどんな名前が割り当てられているかをよく確認してください。 + そして以下において設定ファイルを生成する際には NAME に定義されている名称を利用してください。 + +@z + +@x CD-ROM symlinks @y CD-ROM のシンボリックリンク diff --git a/lfsbook/src/general.ch b/lfsbook/src/general.ch index 6296f5ae..83ba94dc 100644 --- a/lfsbook/src/general.ch +++ b/lfsbook/src/general.ch @@ -8,15 +8,15 @@ % $Date:: $ % @x - + - + @y - + - - + + @z @x diff --git a/lfsbook/src/packages.ch b/lfsbook/src/packages.ch index a5ece20d..55bad12d 100644 --- a/lfsbook/src/packages.ch +++ b/lfsbook/src/packages.ch @@ -35,11 +35,11 @@ @z -@x - -@y - -@z +% @x +% +% @y +% +% @z @x diff --git a/lfsbook/version.ac b/lfsbook/version.ac index 2d1f49dc..129ff658 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-20140805]) +m4_define([lfs_version], [svn-20140831]) -- 2.11.0