Index: chapter08/binutils.xml
===================================================================
--- chapter08/binutils.xml (revision 1f460e53b4186579f9ec20622356910580663ab3)
+++ chapter08/binutils.xml (revision cd152f22770796527d3203b4b0b85abef43e018f)
@@ -164,4 +164,8 @@
make tooldir=/usr install
+ Remove useless static libraries:
+
+rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.a
+
@@ -177,5 +181,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 1f460e53b4186579f9ec20622356910580663ab3)
+++ chapter08/bzip2.xml (revision cd152f22770796527d3203b4b0b85abef43e018f)
@@ -96,4 +96,8 @@
ln -sv bzip2 /bin/bzcat
+ Remove an useless static library:
+
+rm -fv /usr/lib/libz.a
+
@@ -110,5 +114,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/e2fsprogs.xml
===================================================================
--- chapter08/e2fsprogs.xml (revision 1f460e53b4186579f9ec20622356910580663ab3)
+++ chapter08/e2fsprogs.xml (revision cd152f22770796527d3203b4b0b85abef43e018f)
@@ -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 1f460e53b4186579f9ec20622356910580663ab3)
+++ chapter08/flex.xml (revision cd152f22770796527d3203b4b0b85abef43e018f)
@@ -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 1f460e53b4186579f9ec20622356910580663ab3)
+++ chapter08/libtool.xml (revision cd152f22770796527d3203b4b0b85abef43e018f)
@@ -69,4 +69,11 @@
make install
+
+
+ Remove an useless static library:
+
+rm -fv /usr/lib/libltdl.a
+
Index: chapter08/ncurses.xml
===================================================================
--- chapter08/ncurses.xml (revision 1f460e53b4186579f9ec20622356910580663ab3)
+++ chapter08/ncurses.xml (revision cd152f22770796527d3203b4b0b85abef43e018f)
@@ -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:
@@ -189,5 +189,4 @@
libmenuw.so,
libncursesw.so,
- libncurses++w.a,
libpanelw.so, and their non-wide-character counterparts without "w"
in the library names.
Index: chapter08/revisedchroot.xml
===================================================================
--- chapter08/revisedchroot.xml (revision 1f460e53b4186579f9ec20622356910580663ab3)
+++ chapter08/revisedchroot.xml (revision cd152f22770796527d3203b4b0b85abef43e018f)
@@ -37,17 +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
-
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/zlib.xml
===================================================================
--- chapter08/zlib.xml (revision 1f460e53b4186579f9ec20622356910580663ab3)
+++ chapter08/zlib.xml (revision cd152f22770796527d3203b4b0b85abef43e018f)
@@ -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
+
@@ -75,5 +79,5 @@
- libz.{a,so}
+ libz.so