Changeset 161691d for chapter06/libcap.xml
- Timestamp:
- 01/04/2020 09:00:15 AM (4 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/libcap.xml
r96ef299 r161691d 44 44 <title>Installation of Libcap</title> 45 45 46 <para>Prevent a static libraryfrom being installed:</para>46 <para>Prevent two static libraries from being installed:</para> 47 47 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> 49 53 50 54 <para>Compile the package:</para> 51 55 52 <screen><userinput remap="make">make </userinput></screen>56 <screen><userinput remap="make">make lib=lib</userinput></screen> 53 57 54 58 <para>This package does not come with a test suite.</para> … … 56 60 <para>Install the package:</para> 57 61 58 <screen><userinput remap="install">make RAISE_SETFCAP=no lib=lib prefix=/usrinstall59 chmod -v 755 / usr/lib/libcap.so.&libcap-version;</userinput></screen>62 <screen><userinput remap="install">make lib=lib install 63 chmod -v 755 /lib/libcap.so.&libcap-version;</userinput></screen> 60 64 61 65 <variablelist> … … 63 67 64 68 <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 file69 system does not support extended capabilities.</para>70 </listitem>71 </varlistentry>72 73 <varlistentry>74 69 <term><parameter>lib=lib</parameter></term> 75 70 <listitem> 76 71 <para>This parameter installs the library in 77 <filename> $prefix/lib</filename> rather than78 <filename> $prefix/lib64</filename> on x86_64. It has no effect on72 <filename>/lib</filename> rather than 73 <filename>/lib64</filename> on x86_64. It has no effect on 79 74 x86.</para> 80 75 </listitem> … … 82 77 83 78 </variablelist> 84 85 <para>The shared library needs to be moved to86 <filename class="directory">/lib</filename>, and as a result the87 <filename class="extension">.so</filename> file in88 <filename class="directory">/usr/lib</filename> will need to be recreated:</para>89 90 <screen><userinput remap="install">mv -v /usr/lib/libcap.so.* /lib91 ln -sfv ../../lib/$(readlink /usr/lib/libcap.so) /usr/lib/libcap.so</userinput></screen>92 79 93 80 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.