Index: chapter01/changelog.xml
===================================================================
--- chapter01/changelog.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter01/changelog.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -61,5 +61,6 @@
           <para>[pierre] - Replace the relinked libctf (which may incorrectly
           link against libz from the host distribution) with the one that
-          was linked during "make" in binutils-pass2.</para>
+          was linked during "make" in binutils-pass2. Thanks to Xi Ruoyao
+          for the fix.</para>
         </listitem>
         <listitem>
Index: chapter06/file.xml
===================================================================
--- chapter06/file.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter06/file.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -52,7 +52,25 @@
 <screen><userinput remap="pre">mkdir build
 pushd build
-  ../configure
+  ../configure --disable-bzlib      \
+               --disable-libseccomp \
+               --disable-xzlib      \
+               --disable-zlib
   make
 popd</userinput></screen>
+
+    <variablelist>
+      <title>The meaning of the new configure option:</title>
+
+      <varlistentry>
+        <term><parameter>--disable-*</parameter></term>
+        <listitem>
+          <para>The configuration script attempts to use some packages from
+          the host distribution if the corresponding library files exist.
+          It may cause compilation failure if a library file exists, but
+          the corresponding header files do not.  These options prevent
+          using these unneeded capabilities from the host.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
 
     <para>Prepare File for compilation:</para>
Index: chapter07/util-linux.xml
===================================================================
--- chapter07/util-linux.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter07/util-linux.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -42,6 +42,9 @@
     <title>Installation of Util-linux</title>
 
-    <para>First create a directory
-    to enable storage for the <command>hwclock</command> program:</para>
+    <para>The FHS recommends using the <filename
+    class="directory">/var/lib/hwclock</filename> directory instead of the
+    usual <filename class="directory">/etc</filename> directory as the
+    location for the <filename>adjtime</filename> file. Create this directory
+    with:</para>
 
 <screen><userinput remap="pre">mkdir -pv /var/lib/hwclock</userinput></screen>
Index: chapter08/binutils.xml
===================================================================
--- chapter08/binutils.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/binutils.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -181,4 +181,8 @@
 <screen><userinput remap="install">make tooldir=/usr install</userinput></screen>
 
+    <para>Remove useless static libraries:</para>
+
+<screen><userinput remap="install">rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.a</userinput></screen>
+
   </sect2>
 
@@ -194,5 +198,5 @@
         <seg>addr2line, ar, as, c++filt, dwp, elfedit, gprof, ld, ld.bfd, ld.gold, nm,
         objcopy, objdump, ranlib, readelf, size, strings, and strip</seg>
-        <seg>libbfd.{a,so}, libctf.{a,so}, libctf-nobfd.{a,so}, and libopcodes.{a,so}</seg>
+        <seg>libbfd.so, libctf.so, libctf-nobfd.so, and libopcodes.so</seg>
         <seg>/usr/lib/ldscripts</seg>
       </seglistitem>
Index: chapter08/bzip2.xml
===================================================================
--- chapter08/bzip2.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/bzip2.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -96,4 +96,8 @@
 ln -sv bzip2 /bin/bzcat</userinput></screen>
 
+    <para>Remove an useless static library:</para>
+
+<screen><userinput remap="install">rm -fv /usr/lib/libbz2.a</userinput></screen>
+
   </sect2>
 
@@ -164,5 +168,5 @@
         bzdiff), bzdiff, bzegrep (link to bzgrep), bzfgrep (link to bzgrep),
         bzgrep, bzip2, bzip2recover, bzless (link to bzmore), and bzmore</seg>
-        <seg>libbz2.{a,so}</seg>
+        <seg>libbz2.so</seg>
         <seg>/usr/share/doc/bzip2-&bzip2-version;</seg>
       </seglistitem>
Index: chapter08/coreutils.xml
===================================================================
--- chapter08/coreutils.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/coreutils.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -78,7 +78,7 @@
         <term><command>autoreconf</command></term>
         <listitem>
-          <para>This command updates generated configuration files 
-          consistent with the latest version of automake.
-          </para>
+          <para>The patch for internationalization has modified the
+          building system of the package, so the configuration files have
+          to be regenerated.</para>
         </listitem>
       </varlistentry>
Index: chapter08/dbus.xml
===================================================================
--- chapter08/dbus.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/dbus.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -49,12 +49,14 @@
     <para>Prepare D-Bus for compilation:</para>
 
-<screen><userinput remap="configure">./configure --prefix=/usr                       \
-            --sysconfdir=/etc                   \
-            --localstatedir=/var                \
-            --disable-static                    \
-            --disable-doxygen-docs              \
-            --disable-xml-docs                  \
+<screen><userinput remap="configure">./configure --prefix=/usr                        \
+            --sysconfdir=/etc                    \
+            --localstatedir=/var                 \
+            --disable-static                     \
+            --disable-doxygen-docs               \
+            --disable-xml-docs                   \
             --docdir=/usr/share/doc/dbus-&dbus-version; \
-            --with-console-auth-dir=/run/console</userinput></screen>
+            --with-console-auth-dir=/run/console \
+            --with-system-pid-file=/run/dbus/pid \
+            --with-system-socket=/run/dbus/system_bus_socket</userinput></screen>
 
     <variablelist>
@@ -66,4 +68,16 @@
           <para>This specifies the location of the ConsoleKit authorization
           directory.</para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term>
+          <parameter>--with-system-pid-file=/run/dbus/pid</parameter> and
+          <parameter>--with-system-socket=/run/dbus/system_bus_socket</parameter>
+        </term>
+        <listitem>
+          <para>These set the location of the PID file and the system bus socket
+          to be in <filename class="directory">/run</filename>, instead of
+          deprecated <filename class="directory">/var/run</filename>.</para>
         </listitem>
       </varlistentry>
@@ -96,9 +110,4 @@
 
 <screen><userinput remap="install">ln -sfv /etc/machine-id /var/lib/dbus</userinput></screen>
-
-    <para>Move the socket file to /run instead of the deprecated
-    /var/run:</para>
-
- <screen><userinput remap="install">sed -i 's:/var/run:/run:' /lib/systemd/system/dbus.socket</userinput></screen>
 
   </sect2>
Index: chapter08/e2fsprogs.xml
===================================================================
--- chapter08/e2fsprogs.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/e2fsprogs.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -123,8 +123,7 @@
 <screen><userinput remap="install">make install</userinput></screen>
 
-    <para>Make the installed static libraries writable so debugging symbols can
-    be removed later:</para>
-
-<screen><userinput remap="install">chmod -v u+w /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a</userinput></screen>
+    <para>Remove useless static libraries:</para>
+
+<screen><userinput remap="install">rm -fv /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a</userinput></screen>
 
     <para>This package installs a gzipped
Index: chapter08/flex.xml
===================================================================
--- chapter08/flex.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/flex.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -54,6 +54,7 @@
     <para>Prepare Flex for compilation:</para>
 
-<!-- <screen><userinput remap="configure">HELP2MAN=/tools/bin/true \ -->
-<screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr \
+            --docdir=/usr/share/doc/flex-&flex-version; \
+            --disable-static</userinput></screen>
 
     <para>Compile the package:</para>
Index: chapter08/libtool.xml
===================================================================
--- chapter08/libtool.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/libtool.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -68,4 +68,11 @@
 
 <screen><userinput remap="install">make install</userinput></screen>
+
+    <!-- dev: - -disable-static works but causes additional test failures
+              so we manually remove the static library -->
+
+    <para>Remove an useless static library:</para>
+
+<screen><userinput remap="install">rm -fv /usr/lib/libltdl.a</userinput></screen>
 
   </sect2>
Index: chapter08/ncurses.xml
===================================================================
--- chapter08/ncurses.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/ncurses.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -41,8 +41,4 @@
   <sect2 role="installation">
     <title>Installation of Ncurses</title>
-
-    <para>Don't install a static library that is not handled by configure:</para>
-
-<screen><userinput remap="pre">sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in</userinput></screen>
 
     <para>Prepare Ncurses for compilation:</para>
@@ -133,4 +129,8 @@
 echo "INPUT(-lncursesw)" &gt; /usr/lib/libcursesw.so
 ln -sfv libncurses.so      /usr/lib/libcurses.so</userinput></screen>
+
+    <para>Remove a static library that is not handled by configure:</para>
+
+<screen><userinput remap="install">rm -fv /usr/lib/libncurses++w.a</userinput></screen>
 
     <para>If desired, install the Ncurses documentation:</para>
@@ -279,5 +279,4 @@
            libmenuw.so, 
            libncursesw.so,
-           libncurses++w.a,
            libpanelw.so, and their non-wide-character counterparts without "w"
               in the library names.</seg>
Index: chapter08/python.xml
===================================================================
--- chapter08/python.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/python.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -95,21 +95,5 @@
     <para>Install the package:</para>
 
-<screen><userinput remap="install">make install
-chmod -v 755 /usr/lib/libpython&python-minor;.so
-chmod -v 755 /usr/lib/libpython3.so
-ln -sfv pip&python-minor; /usr/bin/pip3</userinput></screen>
-
-    <variablelist>
-      <title>The meaning of the install commands:</title>
-<!-- ======  Change 8m if Python minor version changes ======= -->
-    <varlistentry>
-      <term><command>chmod -v 755 /usr/lib/libpython{&python-minor;,3}.so</command></term>
-      <listitem>
-        <para>Fix permissions for libraries to be consistent with other
-        libraries.</para>
-      </listitem>
-    </varlistentry>
-
-    </variablelist>
+<screen><userinput remap="install">make install</userinput></screen>
 
     <para>If desired, install the preformatted documentation:</para>
Index: chapter08/revisedchroot.xml
===================================================================
--- chapter08/revisedchroot.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/revisedchroot.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -37,23 +37,4 @@
   linkend="ch-tools-kernfsmount"/>.</para>
 
-  <para>There were several static libraries that were not suppressed 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:</para>
-
-<screen><userinput>rm -f /usr/lib/lib{bfd,opcodes}.a
-rm -f /usr/lib/libctf{,-nobfd}.a
-rm -f /usr/lib/libbz2.a
-rm -f /usr/lib/lib{com_err,e2p,ext2fs,ss}.a
-rm -f /usr/lib/libltdl.a
-rm -f /usr/lib/libfl.a
-rm -f /usr/lib/libz.a</userinput><userinput arch="ml_32,ml_all">
-rm -f &usr-lib-m32;/libbz2.a
-rm -f &usr-lib-m32;/libltdl.a
-rm -f &usr-lib-m32;/libz.a</userinput><userinput arch="ml_x32,ml_all">
-rm -f &usr-lib-mx32;/libbz2.a
-rm -f &usr-lib-mx32;/libltdl.a
-rm -f &usr-lib-mx32;/libz.a</userinput></screen>
-
   <para>There are also several files installed in the /usr/lib and /usr/libexec
   directories with a file name extension of .la. These are "libtool archive"
Index: chapter08/systemd.xml
===================================================================
--- chapter08/systemd.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/systemd.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -213,4 +213,8 @@
 <screen><userinput remap="install">rm -f /usr/bin/xsltproc</userinput></screen>
 
+    <para>Remove an useless directory:</para>
+
+<screen><userinput remap="install">rm -rf /usr/lib/pam.d</userinput></screen>
+
     <para>Create the <filename>/etc/machine-id</filename> file needed by
     <command>systemd-journald</command>:</para>
@@ -229,8 +233,12 @@
 <screen><userinput remap="adjust">systemctl disable systemd-time-wait-sync.service</userinput></screen>
 
+<!-- dev: 50-pid-max.conf is not removed in BLFS, so I commented the following out.
+          If it causes any trouble, we can add this back and also copy it into BLFS -->
+<!--
     <para>Prevent systemd from resetting the maximum PID value which causes
     some problems with packages and units in BLFS:</para>
     
 <screen><userinput remap="adjust">rm -f /usr/lib/sysctl.d/50-pid-max.conf</userinput></screen>
+-->
 
   </sect2>
Index: chapter08/util-linux.xml
===================================================================
--- chapter08/util-linux.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/util-linux.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -42,12 +42,4 @@
   <sect2 role="installation">
     <title>Installation of Util-linux</title>
-
-    <para>The FHS recommends using the <filename
-    class="directory">/var/lib/hwclock</filename> directory instead of the
-    usual <filename class="directory">/etc</filename> directory as the
-    location for the <filename>adjtime</filename> file. Create this directory
-    with:</para>
-
-<screen><userinput remap="pre">mkdir -pv /var/lib/hwclock</userinput></screen>
 
     <para>Prepare Util-linux for compilation:</para>
Index: chapter08/zlib.xml
===================================================================
--- chapter08/zlib.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/zlib.xml	(revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -66,4 +66,8 @@
 ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so</userinput></screen>
 
+    <para>Remove an useless static library:</para>
+
+<screen><userinput remap="install">rm -fv /usr/lib/libz.a</userinput></screen>
+
   </sect2>
 
@@ -131,5 +135,5 @@
 
       <seglistitem>
-        <seg>libz.{a,so}</seg>
+        <seg>libz.so</seg>
       </seglistitem>
     </segmentedlist>
