aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
authorPierre Labastie <pieere@linuxfromscratch.org>2020-01-06 08:22:50 +0000
committerPierre Labastie <pieere@linuxfromscratch.org>2020-01-06 08:22:50 +0000
commit7e42b398615c56bc47375cb807d1246008863df3 (patch)
tree928413ef7e6e7fdc3590a0c3ffc7e372478e67d4 /chapter06
parent161691d721f1fb721d1a9849f715a46ed997749e (diff)
Libcap-2.30
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11720 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/libcap.xml40
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>