Ignore:
Timestamp:
01/04/2020 09:00:15 AM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
7e42b39
Parents:
96ef299
Message:

Fix various issues in libcap-2.29

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11719 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/libcap.xml

    r96ef299 r161691d  
    4444    <title>Installation of Libcap</title>
    4545
    46     <para>Prevent a static library from being installed:</para>
     46    <para>Prevent two static libraries from being installed:</para>
    4747
    48 <screen><userinput remap="pre">sed -i '/install.*STALIBNAME/d' libcap/Makefile</userinput></screen>
     48<screen><userinput remap="pre">sed -i '/install.*STA...LIBNAME/d' libcap/Makefile</userinput></screen>
     49
     50    <para>Fix a file with wrong syntax:</para>
     51
     52<screen><userinput remap="pre">sed -i '/libpsx/,$d' libcap/libcap.pc.in</userinput></screen>
    4953
    5054    <para>Compile the package:</para>
    5155
    52 <screen><userinput remap="make">make</userinput></screen>
     56<screen><userinput remap="make">make lib=lib</userinput></screen>
    5357
    5458    <para>This package does not come with a test suite.</para>
     
    5660    <para>Install the package:</para>
    5761
    58 <screen><userinput remap="install">make RAISE_SETFCAP=no lib=lib prefix=/usr install
    59 chmod -v 755 /usr/lib/libcap.so.&libcap-version;</userinput></screen>
     62<screen><userinput remap="install">make lib=lib install
     63chmod -v 755 /lib/libcap.so.&libcap-version;</userinput></screen>
    6064
    6165    <variablelist>
     
    6367
    6468      <varlistentry>
    65         <term><parameter>RAISE_SETFCAP=no</parameter></term>
    66         <listitem>
    67           <para>This parameter skips trying to use <command>setcap</command>
    68           on itself. This avoids an installation error if the kernel or file
    69           system does not support extended capabilities.</para>
    70         </listitem>
    71       </varlistentry>
    72 
    73       <varlistentry>
    7469        <term><parameter>lib=lib</parameter></term>
    7570        <listitem>
    7671          <para>This parameter installs the library in
    77           <filename>$prefix/lib</filename> rather than
    78           <filename>$prefix/lib64</filename> on x86_64. It has no effect on
     72          <filename>/lib</filename> rather than
     73          <filename>/lib64</filename> on x86_64. It has no effect on
    7974          x86.</para>
    8075        </listitem>
     
    8277 
    8378    </variablelist>
    84 
    85     <para>The shared library needs to be moved to
    86     <filename class="directory">/lib</filename>, and as a result the
    87     <filename class="extension">.so</filename> file in
    88     <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
    89 
    90 <screen><userinput remap="install">mv -v /usr/lib/libcap.so.* /lib
    91 ln -sfv ../../lib/$(readlink /usr/lib/libcap.so) /usr/lib/libcap.so</userinput></screen>
    9279
    9380  </sect2>
Note: See TracChangeset for help on using the changeset viewer.