From 161691d721f1fb721d1a9849f715a46ed997749e Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 4 Jan 2020 09:00:15 +0000 Subject: Fix various issues in libcap-2.29 git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11719 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- appendices/dependencies.xml | 4 ++-- chapter01/changelog.xml | 10 ++++++++++ chapter06/libcap.xml | 35 +++++++++++------------------------ chapter06/systemd.xml | 2 +- general.ent | 6 +++--- 5 files changed, 27 insertions(+), 30 deletions(-) diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml index 486df8e83..d3f99a9e7 100644 --- a/appendices/dependencies.xml +++ b/appendices/dependencies.xml @@ -403,8 +403,8 @@ &dependencies; - Bash, Binutils, Coreutils, GCC, Gettext, Glibc, GMP, Grep, Make, - Patch, Perl, Sed, and Texinfo + Bash, Binutils, Coreutils, GCC, Gettext, Glibc, GMP, Grep, Libcap, + Make, Patch, Perl, Sed, and Texinfo diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index b94913ba3..1c72d069e 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,16 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2020-01-04 + + + [pierre] - Fix various issues in libcap-2.29, and + update dependencies. + + + + 2020-01-01 diff --git a/chapter06/libcap.xml b/chapter06/libcap.xml index 7b6bcabdc..0b8e45aa3 100644 --- a/chapter06/libcap.xml +++ b/chapter06/libcap.xml @@ -43,53 +43,40 @@ Installation of Libcap - Prevent a static library from being installed: + Prevent two static libraries from being installed: -sed -i '/install.*STALIBNAME/d' libcap/Makefile +sed -i '/install.*STA...LIBNAME/d' libcap/Makefile + + Fix a file with wrong syntax: + +sed -i '/libpsx/,$d' libcap/libcap.pc.in Compile the package: -make +make lib=lib This package does not come with a test suite. Install the package: -make RAISE_SETFCAP=no lib=lib prefix=/usr install -chmod -v 755 /usr/lib/libcap.so.&libcap-version; +make lib=lib install +chmod -v 755 /lib/libcap.so.&libcap-version; The meaning of the make option: - - RAISE_SETFCAP=no - - This parameter skips trying to use setcap - on itself. This avoids an installation error if the kernel or file - system does not support extended capabilities. - - - lib=lib This parameter installs the library in - $prefix/lib rather than - $prefix/lib64 on x86_64. It has no effect on + /lib rather than + /lib64 on x86_64. It has no effect on x86. - 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/$(readlink /usr/lib/libcap.so) /usr/lib/libcap.so - diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml index 7c484d867..0554072d2 100644 --- a/chapter06/systemd.xml +++ b/chapter06/systemd.xml @@ -51,7 +51,7 @@ ln -sf /tools/bin/true /usr/bin/xsltproc Because we have not yet installed the final version of Util-Linux, - create links to the libraries in the approprite location: + create links to the libraries in the appropriate location: for file in /tools/lib/lib{blkid,mount,uuid}.so*; do ln -sf $file /usr/lib/ diff --git a/general.ent b/general.ent index 6360c8453..998a6e5ca 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ - + - + - + -- cgit v1.2.3-54-g00ecf