Changeset f8ea68b for chapter06/libcap.xml
- Timestamp:
- 01/12/2020 08:06:52 AM (4 years ago)
- Branches:
- multilib-10.1
- Children:
- ede49cd
- Parents:
- 6077ed49
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/libcap.xml
r6077ed49 rf8ea68b 46 46 <para>Prevent a static library from being installed:</para> 47 47 48 <screen><userinput remap="pre">sed -i '/install.*STA LIBNAME/d' libcap/Makefile</userinput></screen>48 <screen><userinput remap="pre">sed -i '/install.*STACAPLIBNAME/d' libcap/Makefile</userinput></screen> 49 49 50 50 <para>Compile the package:</para> 51 51 52 <screen><userinput remap="make">make</userinput></screen> 53 54 <para>This package does not come with a test suite.</para> 55 56 <para>Install the package:</para> 57 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> 52 <screen><userinput remap="make">make lib=lib</userinput></screen> 60 53 61 54 <variablelist> … … 63 56 64 57 <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 58 <term><parameter>lib=lib</parameter></term> 75 59 <listitem> 76 <para>This parameter installs the library in77 <filename> $prefix/lib</filename> rather than78 <filename> $prefix/lib64</filename> on x86_64. It has no effect on60 <para>This parameter sets the library directory to 61 <filename>/lib</filename> rather than 62 <filename>/lib64</filename> on x86_64. It has no effect on 79 63 x86.</para> 80 64 </listitem> 81 65 </varlistentry> 82 83 66 </variablelist> 84 67 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> 68 <para>To test the results, issue:</para> 69 70 <screen><userinput remap="test">make test</userinput></screen> 71 72 <para>Install the package:</para> 73 74 <screen><userinput remap="install">make lib=lib install 75 chmod -v 755 /lib/libcap.so.&libcap-version;</userinput></screen> 92 76 93 77 </sect2> … … 140 124 <seglistitem> 141 125 <seg>capsh, getcap, getpcaps, and setcap</seg> 142 <seg>libcap.so </seg>126 <seg>libcap.so and libpsx.a</seg> 143 127 </seglistitem> 144 128 </segmentedlist> … … 200 184 </varlistentry> 201 185 186 <varlistentry id="libpsx"> 187 <term><filename class="libraryfile">libpsx</filename></term> 188 <listitem> 189 <para>Contains functions to support POSIX semantics for syscalls 190 associated with the pthread library</para> 191 <indexterm zone="ch-system-libcap libpsx"> 192 <primary sortas="c-libpsx">libpsx</primary> 193 </indexterm> 194 </listitem> 195 </varlistentry> 196 202 197 </variablelist> 203 198
Note:
See TracChangeset
for help on using the changeset viewer.