diff options
Diffstat (limited to 'chapter06/libcap.xml')
-rw-r--r-- | chapter06/libcap.xml | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/chapter06/libcap.xml b/chapter06/libcap.xml index 0b8e45aa3..de9092988 100644 --- a/chapter06/libcap.xml +++ b/chapter06/libcap.xml @@ -43,40 +43,37 @@ <sect2 role="installation"> <title>Installation of Libcap</title> - <para>Prevent two static libraries from being installed:</para> + <para>Prevent a static library from being installed:</para> -<screen><userinput remap="pre">sed -i '/install.*STA...LIBNAME/d' libcap/Makefile</userinput></screen> - - <para>Fix a file with wrong syntax:</para> - -<screen><userinput remap="pre">sed -i '/libpsx/,$d' libcap/libcap.pc.in</userinput></screen> +<screen><userinput remap="pre">sed -i '/install.*STACAPLIBNAME/d' libcap/Makefile</userinput></screen> <para>Compile the package:</para> <screen><userinput remap="make">make lib=lib</userinput></screen> - <para>This package does not come with a test suite.</para> - - <para>Install the package:</para> - -<screen><userinput remap="install">make lib=lib install -chmod -v 755 /lib/libcap.so.&libcap-version;</userinput></screen> - <variablelist> <title>The meaning of the make option:</title> <varlistentry> <term><parameter>lib=lib</parameter></term> <listitem> - <para>This parameter installs the library in + <para>This parameter sets the library directory to <filename>/lib</filename> rather than <filename>/lib64</filename> on x86_64. It has no effect on x86.</para> </listitem> </varlistentry> - </variablelist> + <para>To test the results, issue:</para> + +<screen><userinput remap="test">make test</userinput></screen> + + <para>Install the package:</para> + +<screen><userinput remap="install">make lib=lib install +chmod -v 755 /lib/libcap.so.&libcap-version;</userinput></screen> + </sect2> <sect2 id="contents-libcap" role="content"> @@ -88,7 +85,7 @@ chmod -v 755 /lib/libcap.so.&libcap-version;</userinput></screen> <seglistitem> <seg>capsh, getcap, getpcaps, and setcap</seg> - <seg>libcap.so</seg> + <seg>libcap.so and libpsx.a</seg> </seglistitem> </segmentedlist> @@ -148,6 +145,17 @@ chmod -v 755 /lib/libcap.so.&libcap-version;</userinput></screen> </listitem> </varlistentry> + <varlistentry id="libpsx"> + <term><filename class="libraryfile">libpsx</filename></term> + <listitem> + <para>Contains functions to support POSIX semantics for syscalls + associated with the pthread library</para> + <indexterm zone="ch-system-libcap libpsx"> + <primary sortas="c-libpsx">libpsx</primary> + </indexterm> + </listitem> + </varlistentry> + </variablelist> </sect2> |