Index: chapter01/changelog.xml
===================================================================
--- chapter01/changelog.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter01/changelog.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -61,5 +61,6 @@
[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.
+ was linked during "make" in binutils-pass2. Thanks to Xi Ruoyao
+ for the fix.
Index: chapter06/file.xml
===================================================================
--- chapter06/file.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter06/file.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -52,7 +52,25 @@
mkdir build
pushd build
- ../configure
+ ../configure --disable-bzlib \
+ --disable-libseccomp \
+ --disable-xzlib \
+ --disable-zlib
make
popd
+
+
+ The meaning of the new configure option:
+
+
+ --disable-*
+
+ 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.
+
+
+
Prepare File for compilation:
Index: chapter07/util-linux.xml
===================================================================
--- chapter07/util-linux.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter07/util-linux.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -42,6 +42,9 @@
Installation of Util-linux
- First create a directory
- to enable storage for the hwclock program:
+ The FHS recommends using the /var/lib/hwclock directory instead of the
+ usual /etc directory as the
+ location for the adjtime file. Create this directory
+ with:
mkdir -pv /var/lib/hwclock
Index: chapter08/binutils.xml
===================================================================
--- chapter08/binutils.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/binutils.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -181,4 +181,8 @@
make tooldir=/usr install
+ Remove useless static libraries:
+
+rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.a
+
@@ -194,5 +198,5 @@
addr2line, ar, as, c++filt, dwp, elfedit, gprof, ld, ld.bfd, ld.gold, nm,
objcopy, objdump, ranlib, readelf, size, strings, and strip
- libbfd.{a,so}, libctf.{a,so}, libctf-nobfd.{a,so}, and libopcodes.{a,so}
+ libbfd.so, libctf.so, libctf-nobfd.so, and libopcodes.so
/usr/lib/ldscripts
Index: chapter08/bzip2.xml
===================================================================
--- chapter08/bzip2.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/bzip2.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -96,4 +96,8 @@
ln -sv bzip2 /bin/bzcat
+ Remove an useless static library:
+
+rm -fv /usr/lib/libbz2.a
+
@@ -164,5 +168,5 @@
bzdiff), bzdiff, bzegrep (link to bzgrep), bzfgrep (link to bzgrep),
bzgrep, bzip2, bzip2recover, bzless (link to bzmore), and bzmore
- libbz2.{a,so}
+ libbz2.so
/usr/share/doc/bzip2-&bzip2-version;
Index: chapter08/coreutils.xml
===================================================================
--- chapter08/coreutils.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/coreutils.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -78,7 +78,7 @@
autoreconf
- This command updates generated configuration files
- consistent with the latest version of automake.
-
+ The patch for internationalization has modified the
+ building system of the package, so the configuration files have
+ to be regenerated.
Index: chapter08/dbus.xml
===================================================================
--- chapter08/dbus.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/dbus.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -49,12 +49,14 @@
Prepare D-Bus for compilation:
-./configure --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --disable-static \
- --disable-doxygen-docs \
- --disable-xml-docs \
+./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
+ --with-console-auth-dir=/run/console \
+ --with-system-pid-file=/run/dbus/pid \
+ --with-system-socket=/run/dbus/system_bus_socket
@@ -66,4 +68,16 @@
This specifies the location of the ConsoleKit authorization
directory.
+
+
+
+
+
+ --with-system-pid-file=/run/dbus/pid and
+ --with-system-socket=/run/dbus/system_bus_socket
+
+
+ These set the location of the PID file and the system bus socket
+ to be in /run, instead of
+ deprecated /var/run.
@@ -96,9 +110,4 @@
ln -sfv /etc/machine-id /var/lib/dbus
-
- Move the socket file to /run instead of the deprecated
- /var/run:
-
- sed -i 's:/var/run:/run:' /lib/systemd/system/dbus.socket
Index: chapter08/e2fsprogs.xml
===================================================================
--- chapter08/e2fsprogs.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/e2fsprogs.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -123,8 +123,7 @@
make install
- Make the installed static libraries writable so debugging symbols can
- be removed later:
-
-chmod -v u+w /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a
+ Remove useless static libraries:
+
+rm -fv /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a
This package installs a gzipped
Index: chapter08/flex.xml
===================================================================
--- chapter08/flex.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/flex.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -54,6 +54,7 @@
Prepare Flex for compilation:
-
-./configure --prefix=/usr --docdir=/usr/share/doc/flex-&flex-version;
+./configure --prefix=/usr \
+ --docdir=/usr/share/doc/flex-&flex-version; \
+ --disable-static
Compile the package:
Index: chapter08/libtool.xml
===================================================================
--- chapter08/libtool.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/libtool.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -68,4 +68,11 @@
make install
+
+
+
+ Remove an useless static library:
+
+rm -fv /usr/lib/libltdl.a
Index: chapter08/ncurses.xml
===================================================================
--- chapter08/ncurses.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/ncurses.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -41,8 +41,4 @@
Installation of Ncurses
-
- Don't install a static library that is not handled by configure:
-
-sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in
Prepare Ncurses for compilation:
@@ -133,4 +129,8 @@
echo "INPUT(-lncursesw)" > /usr/lib/libcursesw.so
ln -sfv libncurses.so /usr/lib/libcurses.so
+
+ Remove a static library that is not handled by configure:
+
+rm -fv /usr/lib/libncurses++w.a
If desired, install the Ncurses documentation:
@@ -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.
Index: chapter08/python.xml
===================================================================
--- chapter08/python.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/python.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -95,21 +95,5 @@
Install the package:
-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
-
-
- The meaning of the install commands:
-
-
- chmod -v 755 /usr/lib/libpython{&python-minor;,3}.so
-
- Fix permissions for libraries to be consistent with other
- libraries.
-
-
-
-
+make install
If desired, install the preformatted documentation:
Index: chapter08/revisedchroot.xml
===================================================================
--- chapter08/revisedchroot.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/revisedchroot.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -37,23 +37,4 @@
linkend="ch-tools-kernfsmount"/>.
- 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:
-
-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
-rm -f &usr-lib-m32;/libbz2.a
-rm -f &usr-lib-m32;/libltdl.a
-rm -f &usr-lib-m32;/libz.a
-rm -f &usr-lib-mx32;/libbz2.a
-rm -f &usr-lib-mx32;/libltdl.a
-rm -f &usr-lib-mx32;/libz.a
-
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 @@
rm -f /usr/bin/xsltproc
+ Remove an useless directory:
+
+rm -rf /usr/lib/pam.d
+
Create the /etc/machine-id file needed by
systemd-journald:
@@ -229,8 +233,12 @@
systemctl disable systemd-time-wait-sync.service
+
+
Index: chapter08/util-linux.xml
===================================================================
--- chapter08/util-linux.xml (revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
+++ chapter08/util-linux.xml (revision 4bda6985f7fe9bc7b65cefdc0b9fd196720d44ad)
@@ -42,12 +42,4 @@
Installation of Util-linux
-
- The FHS recommends using the /var/lib/hwclock directory instead of the
- usual /etc directory as the
- location for the adjtime file. Create this directory
- with:
-
-mkdir -pv /var/lib/hwclock
Prepare Util-linux for compilation:
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
+ Remove an useless static library:
+
+rm -fv /usr/lib/libz.a
+
@@ -131,5 +135,5 @@
- libz.{a,so}
+ libz.so