diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml
index 6f91d13be..b17f7e5b5 100644
--- a/chapter01/whatsnew.xml
+++ b/chapter01/whatsnew.xml
@@ -269,7 +269,7 @@
- Libcap2-&libcap-version;
+ Libcap-&libcap-version;
diff --git a/chapter03/packages.xml b/chapter03/packages.xml
index f0a987f29..00df38b34 100644
--- a/chapter03/packages.xml
+++ b/chapter03/packages.xml
@@ -357,7 +357,7 @@
- Libcap2 (&libcap-version;) - &libcap-size;:
+ Libcap (&libcap-version;) - &libcap-size;:
Home page:
Download:
diff --git a/chapter06/attr.xml b/chapter06/attr.xml
index cb873a89a..597ac4a06 100644
--- a/chapter06/attr.xml
+++ b/chapter06/attr.xml
@@ -57,11 +57,25 @@
The attr tests need to be run on a filesystem that supports extended
attributes. To test the results, issue:
-make tests root-tests ext-tests
+
+make tests root-tests
Install the package:
-make install install-dev install-lib
+make install install-dev install-lib &&
+chmod -v 0755 /lib/libattr.so.1.1.0
+
+ Remove static library and libtool archive from
+ /lib, they exist in
+ /usr/lib:
+
+rm -v /lib/libattr.{a,la,so}
+
+ Change default location for the libtool archive and recreate
+ symlink to shared library since it points to removed file:
+
+sed -i 's@/lib@/usr/lib@' /usr/lib/libattr.la &&
+ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so
@@ -76,7 +90,7 @@
attr, getfattr, and setattr
libattr.{so,a}
- /usr/{include/attr,share/doc/attr-&attr-version;}
+ /usr/include/attr and /usr/share/doc/attr-&attr-version;
diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml
index 374df8171..e276f9544 100644
--- a/chapter06/coreutils.xml
+++ b/chapter06/coreutils.xml
@@ -120,19 +120,11 @@
mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin
-mv -v /usr/bin/{rmdir,stty,sync,true,uname,test,[} /bin
+mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
mv -v /usr/bin/chroot /usr/sbin
mv -v /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8
sed -i s/\"1\"/\"8\"/1 /usr/share/man/man8/chroot.8
- Some of the scripts in the LFS-Bootscripts package depend on
- head, sleep, and
- nice. As /usr
- may not be available during the early stages of booting, those binaries
- need to be on the root partition:
-
-mv -v /usr/bin/{head,sleep,nice} /bin
-
diff --git a/chapter06/libcap.xml b/chapter06/libcap.xml
index 4e3b9ab38..f1fec6f3a 100644
--- a/chapter06/libcap.xml
+++ b/chapter06/libcap.xml
@@ -14,7 +14,7 @@
&libcap-url;
- Libcap2-&libcap-version;
+ Libcap-&libcap-version;
Libcap
@@ -51,7 +51,16 @@
Install the package:
-make RAISE_SETFCAP=no install
+make RAISE_SETFCAP=no prefix=/usr install &&
+chmod -v 0755 /usr/lib/libcap.so.2.22
+
+ The shared library needs to be moved to
+ /lib, and as a result the
+ .so file in
+ /usr/lib will need to be recreated:
+
+mv -v /usr/lib/libcap.so.* /lib &&
+ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so
diff --git a/prologue/why.xml b/prologue/why.xml
index c61fbfd89..02aaad93f 100644
--- a/prologue/why.xml
+++ b/prologue/why.xml
@@ -294,7 +294,7 @@
- Libcap2
+ Libcap
This package contains functions that enable root privileges to be
partitioned into a set of distinct privileges. It is required by