From 0c82dc9a20c5c1e7850b02870fe80f7474c32830 Mon Sep 17 00:00:00 2001 From: matsuand <30614168+matsuand@users.noreply.github.com> Date: Fri, 22 Apr 2022 19:39:42 +0900 Subject: [PATCH] =?utf8?q?[lfsja-git]=20r11.1-92=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/jchangelog.ch | 11 ++++++++++ src/chapter02/stages.ch | 5 ++--- src/chapter03/packages.ch | 47 +++++++++++++++++++++++++++++-------------- src/chapter04/addinguser.ch | 6 +++--- src/chapter07/cleanup.ch | 6 +++--- src/chapter07/introduction.ch | 4 ++-- src/chapter08/bash.ch | 4 ++-- src/chapter08/coreutils.ch | 6 +++--- src/chapter08/python.ch | 28 ++++++++++++++++++++++++++ src/chapter08/util-linux.ch | 4 ++-- src/chapter10/kernel.ch | 6 +++--- src/chapter11/reboot.ch | 6 +++--- version.ac | 2 +- 14 files changed, 96 insertions(+), 41 deletions(-) diff --git a/configure b/configure index c7926053..6af959db 100755 --- a/configure +++ b/configure @@ -4737,7 +4737,7 @@ fi -TARGETVER=r11.1-84 +TARGETVER=r11.1-92 if test "x$revspec" = "xsystemd"; then TARGETVER="$TARGETVER-systemd" fi diff --git a/src/chapter01/jchangelog.ch b/src/chapter01/jchangelog.ch index e37c408a..0c830eb3 100644 --- a/src/chapter01/jchangelog.ch +++ b/src/chapter01/jchangelog.ch @@ -50,6 +50,17 @@ --> + 2022-04-22 + + + [matsuand] - + r11.1-92 (93db1e614) までの対応。 + + + + + + 2022-04-19 diff --git a/src/chapter02/stages.ch b/src/chapter02/stages.ch index 72a62b65..6ee0b809 100644 --- a/src/chapter02/stages.ch +++ b/src/chapter02/stages.ch @@ -118,12 +118,11 @@ A few operations, from Changing Ownership to Entering the Chroot Environment must be done as the root user, with the LFS - environment variable set for the - rootuser. + environment variable set for the &root; user. @y 所有者の変更からChroot 環境への移行までの操作は、root ユーザーで行います。 - LFS 環境変数が root ユーザーにおいて設定されている必要があります。 + LFS 環境変数が &root; ユーザーにおいて設定されている必要があります。 @z diff --git a/src/chapter03/packages.ch b/src/chapter03/packages.ch index 67393bf8..1e58d2f8 100644 --- a/src/chapter03/packages.ch +++ b/src/chapter03/packages.ch @@ -16,6 +16,38 @@ @z @x + Read the security advisories + before downloading packages to figure out if a newer version of any + package should be used to avoid security vulnerabilities. +@y + + パッケージをダウンロードする前には セキュリティアドバイス(security advisories)を読んでください。 + セキュリティぜい弱性を回避するためにパッケージの最新バージョンがないかどうかを確認してください。 + +@z + +@x + The upstreams may remove old releases, especially when these + releases contain a security vulnerability. If one URL below is not + reachable, you should read the security advisories first to figure out + if a newer version (with the vulnerability fixed) should be used. If + not, try to download the removed package from a mirror. Although it's + possible to download an old release from a mirror even if this release + has been removed because of a vulnerability, it's not recommended to + use a release known to be vulnerable for building your system. +@y + + アップストリームでは、古いリリースを削除していることがあります。 + 特にそのリリースにセキュリティぜい弱性を含んでいた場合です。 + 以下に示す URL が無効になっていたら、まず初めにセキュリティアドバイスを読んでください。 + そして新たなバージョンが(ぜい弱性を解消して)入手できるかどうかを確認してください。 + それでもパッケージが削除されてしまっている場合は、ミラーサイトからのダウンロードを試してみてください。 + ぜい弱性が原因で削除されていた古いバージョンのパッケージがダウンロードできたとしても、ぜい弱性に問題があるのであれば、システムビルドに用いることはお勧めしません。 + +@z + +@x Download or otherwise obtain the following packages: @y @@ -164,21 +196,6 @@ &Homepage;: &Download;: @z -@x - The upstream may remove tarballs of the specific releases of - Expat when these releases contain a - security vulnerability. You should refer to - LFS security advisories - to figure out which version (with the vulnerability fixed) should - be used. You may download the vulnerable version from a mirror, - but it's not recommended. -@y - - Expat のアップストリームでは、リリースにあたってセキュリティぜい弱性が含まれていた場合には、そのリリース tarball を削除することがあります。 - したがって LFS セキュリティアドバイザリー を参照して、どのバージョンが(ぜい弱性を修正して)利用できるかを確認してください。 - ぜい弱性を含むものであってもミラーサイトから入手できるかもしれませんが、これはあまりお勧めしません。 - -@z @x expect Home page: diff --git a/src/chapter04/addinguser.ch b/src/chapter04/addinguser.ch index 555ef653..027590a1 100644 --- a/src/chapter04/addinguser.ch +++ b/src/chapter04/addinguser.ch @@ -118,12 +118,12 @@ @x In some host systems, the following command does not complete - properly and suspends the login to the lfs user to the background. If the - prompt "lfs:~$" does not appear immediately, entering the + properly and suspends the login to the &lfs-user; user to the background. + If the prompt "lfs:~$" does not appear immediately, entering the fg command will fix the issue. @y - ホストシステムによっては、以下のコマンドを実行しても正常に処理されず、lfs ユーザーへのログインがバックグラウンドで処理中のままとなってしまうことがあります。 + ホストシステムによっては、以下のコマンドを実行しても正常に処理されず、&lfs-user; ユーザーへのログインがバックグラウンドで処理中のままとなってしまうことがあります。 プロンプトに "lfs:~$" という表示がすぐに現れなかった場合は、fg コマンドを入力することで解決するかもしれません。 @z diff --git a/src/chapter07/cleanup.ch b/src/chapter07/cleanup.ch index 3ab19582..9755305e 100644 --- a/src/chapter07/cleanup.ch +++ b/src/chapter07/cleanup.ch @@ -224,14 +224,14 @@ @x The following commands are extremely dangerous. If - you run rm -rf ./* as the root user and you + you run rm -rf ./* as the &root; user and you do not change to the $LFS directory or the LFS - environment variable is not set for the root user, it will destroy + environment variable is not set for the &root; user, it will destroy your entire host system. YOU ARE WARNED. @y 以下に示すコマンドは相当に危険です。 - root ユーザーになって rm -rf ./* を実行する際に、$LFS ディレクトリに移動していない、あるいは環境変数 LFS を設定していないとしたら、システム全体を破壊することになります。 + &root; ユーザーになって rm -rf ./* を実行する際に、$LFS ディレクトリに移動していない、あるいは環境変数 LFS を設定していないとしたら、システム全体を破壊することになります。 厳に警告しておきます。 @z diff --git a/src/chapter07/introduction.ch b/src/chapter07/introduction.ch index aca58507..d71a22a1 100644 --- a/src/chapter07/introduction.ch +++ b/src/chapter07/introduction.ch @@ -48,14 +48,14 @@ Until , the commands must be run as root, with the LFS variable set. After entering chroot, all commands - are run as root, fortunately without access to the OS of the computer + are run as &root;, fortunately without access to the OS of the computer you built LFS on. Be careful anyway, as it is easy to destroy the whole LFS system with badly formed commands. @y まで、コマンドの実行は LFS を設定した上で、root ユーザーにより行う必要があります。 - chroot 環境に入っても、コマンドはすべて root 実行ですが、もう安心です。 + chroot 環境に入っても、コマンドはすべて &root; 実行ですが、もう安心です。 LFS を構築しているコンピューター上の OS にはもうアクセスしないからです。 かと言ってコマンド実行を誤れば、簡単に LFS システムを壊してしまうことになりますから、十分に注意してください。 diff --git a/src/chapter08/bash.ch b/src/chapter08/bash.ch index d7a33ae0..05c64083 100644 --- a/src/chapter08/bash.ch +++ b/src/chapter08/bash.ch @@ -71,14 +71,14 @@ @z @x - The testsuite of the package is designed to be run as a non-root + The testsuite of the package is designed to be run as a non-&root; user that owns the terminal connected to standard input. To satisfy the requirement, spawn a new pseudo terminal using Expect and run the tests as the tester user: @y - 本パッケージのテストスイートは、非ルートユーザーが実行するものとされていて、利用する端末が標準入力に接続できているものとしています。 + 本パッケージのテストスイートは、非 &root; ユーザーが実行するものとされていて、利用する端末が標準入力に接続できているものとしています。 この仕様を満たすためには、Expect を使って新たな疑似端末を起動します。 そして tester ユーザーとしてテストを実行します。 diff --git a/src/chapter08/coreutils.ch b/src/chapter08/coreutils.ch index ffbe529a..d4aa96ab 100644 --- a/src/chapter08/coreutils.ch +++ b/src/chapter08/coreutils.ch @@ -145,11 +145,11 @@ autoconf-2.70 に含まれている gnulib .m4 ファイルの問題を修正し @z @x - Fix some of the permissions so that the non-root user can compile and - run the tests: + Fix some of the permissions so that the non-&root; user can + compile and run the tests: @y - 特定のファイルのパーミッションを変更して root ユーザー以外でもコンパイルとテストができるようにします。 + 特定のファイルのパーミッションを変更して &root; ユーザー以外でもコンパイルとテストができるようにします。 @z diff --git a/src/chapter08/python.ch b/src/chapter08/python.ch index 3778eeb7..fce6af3e 100644 --- a/src/chapter08/python.ch +++ b/src/chapter08/python.ch @@ -118,6 +118,34 @@ @z @x + In LFS and BLFS we normally build and install Python modules with the + pip3 command. Please take care that the + pip3 install commands in both the books should be + run as the &root; user unless it's for a Python virtual environment. + Running a pip3 install as a non-&root; user may seem + to work fine, but it will cause the installed module to be inaccessible + by other users. +@y + LFS や BLFS においては通常、Python モジュールのビルドとインストールには pip3 コマンドを用いています。 + この両ブックにおいて実行する pip3 install コマンドは、Python 仮想環境内でない場合には &root; ユーザーで実行するようにしてください。 + &root; ユーザー以外によって pip3 install を実行しても問題なく動作するように見えるかもしれませんが、インストールしたモジュールが別のユーザーからはアクセスできない事態を作り出してしまいます。 +@z + +@x + pip3 install will not reinstall an already installed + module by default. For using the pip3 install + command to upgrade a module (for example, from meson-0.61.3 to + meson-0.62.0), insert the option --upgrade into + the command line. If it's really necessary to downgrade a module or + reinstall the same version for some reason, insert + --force-reinstall into the command line. +@y + pip3 install はデフォルトでは、すでにインストールされているモジュールを再インストールすることは行いません。 + pip3 install コマンドを使ってモジュールのアップグレードを行う(たとえば meson-0.61.3 から meson-0.62.0 にするような場合)には、コマンドラインに --upgrade オプションを含めてください。 + またモジュールのダウングレードや再インストールが必要となる理由が確実にあるのであれば、コマンドラインに --force-reinstall を含めて実行してください。 +@z + +@x If desired, install the preformatted documentation: @y diff --git a/src/chapter08/util-linux.ch b/src/chapter08/util-linux.ch index 9d92b672..0018d60d 100644 --- a/src/chapter08/util-linux.ch +++ b/src/chapter08/util-linux.ch @@ -49,10 +49,10 @@ @z @x - If desired, run the test suite as a non-root user: + If desired, run the test suite as a non-&root; user: @y - 必要なら root ユーザー以外にて、以下のようにテストスイートを実行します。 + 必要なら &root; ユーザー以外にて、以下のようにテストスイートを実行します。 @z diff --git a/src/chapter10/kernel.ch b/src/chapter10/kernel.ch index 4112423a..589dd969 100644 --- a/src/chapter10/kernel.ch +++ b/src/chapter10/kernel.ch @@ -305,13 +305,13 @@ @x If the host system has a separate /boot partition, the files copied below should go there. The easiest way to do that is to bind /boot on the - host (outside chroot) to /mnt/lfs/boot before proceeding. As the root - user in the host system: + host (outside chroot) to /mnt/lfs/boot before proceeding. As the + &root; user in the host system: @y ホストシステムが独立した /boot パーティションを用いている場合はファイルをそこにコピーします。 これを簡単に行うために、作業前に(chroot 前の)/boot をホストの /mnt/lfs/boot にバインドしておく方法があります。 - ホストシステム の root ユーザーとなって以下を実行します。 + ホストシステム の &root; ユーザーとなって以下を実行します。 @z diff --git a/src/chapter11/reboot.ch b/src/chapter11/reboot.ch index d2f67aa3..3738d5b9 100644 --- a/src/chapter11/reboot.ch +++ b/src/chapter11/reboot.ch @@ -92,11 +92,11 @@ @x Installing sudo may be useful for - building packages as a non-root user and easily installing the resulting - packages in your new system. + building packages as a non-&root; user and easily installing the + resulting packages in your new system. @y sudo をインストールすれば、ルートユーザー以外であっても、パッケージビルドとインストールを容易に行うことができます。 + url='&blfs-book;postlfs/sudo.html'>sudo をインストールすれば、&root; ユーザー以外であっても、パッケージビルドとインストールを容易に行うことができます。 @z diff --git a/version.ac b/version.ac index 8ede22c5..498bd52a 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.1-84]) +m4_define([lfs_version], [r11.1-92]) -- 2.11.0