source: general/genlib/pth.xml@ 82e1be5

10.0 10.1 11.0 11.1 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind lazarus perl-modules qt5new trunk upgradedb xry111/intltool xry111/test-20220226
Last change on this file since 82e1be5 was 82e1be5, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to cryptsetup-2.0.4.
Update to xfsprogs-4.17.0.
Tags.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20311 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY pth-download-http "&gnu-http;/pth/pth-&pth-version;.tar.gz">
8 <!ENTITY pth-download-ftp "&gnu-ftp;/pth/pth-&pth-version;.tar.gz">
9 <!ENTITY pth-md5sum "9cb4a25331a4c4db866a31cbe507c793">
10 <!ENTITY pth-size "652 KB">
11 <!ENTITY pth-buildsize "5 MB">
12 <!ENTITY pth-time "0.2 SBU">
13]>
14
15<sect1 id="pth" xreflabel="Pth-&pth-version;">
16 <?dbhtml filename="pth.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Pth-&pth-version;</title>
24
25 <indexterm zone="pth">
26 <primary sortas="a-Pth">Pth</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Pth</title>
31
32 <para>The <application>Pth</application> package contains a very portable
33 POSIX/ANSI-C based library for Unix platforms which provides non-preemptive
34 priority-based scheduling for multiple threads of execution (multithreading)
35 inside event-driven applications. All threads run in the same address space
36 of the server application, but each thread has its own individual
37 program-counter, run-time stack, signal mask and errno variable. </para>
38
39 &lfs83_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>Download (HTTP): <ulink url="&pth-download-http;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download (FTP): <ulink url="&pth-download-ftp;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download MD5 sum: &pth-md5sum;</para>
51 </listitem>
52 <listitem>
53 <para>Download size: &pth-size;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated disk space required: &pth-buildsize;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated build time: &pth-time;</para>
60 </listitem>
61 </itemizedlist>
62
63 <para condition="html" role="usernotes">User Notes:
64 <ulink url="&blfs-wiki;/pth"/></para>
65 </sect2>
66
67 <sect2 role="installation">
68 <title>Installation of Pth</title>
69
70 <caution>
71 <para>Don't add the <option>--enable-pthread</option> parameter to the
72 <command>configure</command> command below else you will overwrite the
73 pthread library and interface header installed by the
74 <application>Glibc</application> package in LFS.</para>
75 </caution>
76
77 <para>Install <application>Pth</application> by running the
78 following commands:</para>
79
80<screen><userinput>sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in &amp;&amp;
81./configure --prefix=/usr \
82 --disable-static \
83 --mandir=/usr/share/man &amp;&amp;
84make</userinput></screen>
85
86 <para>To test the results, issue: <command>make test</command>.</para>
87
88 <para>Now, as the <systemitem class="username">root</systemitem>
89 user:</para>
90
91<screen role="root"><userinput>make install &amp;&amp;
92install -v -m755 -d /usr/share/doc/pth-&pth-version; &amp;&amp;
93install -v -m644 README PORTING SUPPORT TESTS \
94 /usr/share/doc/pth-&pth-version;</userinput></screen>
95 </sect2>
96
97 <sect2 role="commands">
98 <title>Command Explanations</title>
99
100 <para><command>sed -i 's#$(LOBJS) ...</command>: This <command>sed</command>
101 fixes a race condition in the <filename>Makefile</filename>. It allows you
102 to run <command>make</command> with multiple jobs (e.g., <command>make -j4</command>)
103 <!-- how ironic that a package for using multiple threads has this bug in
104 its Makefile -->.</para>
105
106 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
107 href="../../xincludes/static-libraries.xml"/>
108
109 <para><parameter>--mandir=/usr/share/man</parameter>: This switch puts the
110 man pages in <filename class="directory">/usr/share/man</filename> instead
111 of <filename class="directory">/usr/man</filename>.</para>
112 </sect2>
113
114 <sect2 role="content">
115 <title>Contents</title>
116
117 <segmentedlist>
118 <segtitle>Installed Program</segtitle>
119 <segtitle>Installed Library</segtitle>
120 <segtitle>Installed Directory</segtitle>
121
122 <seglistitem>
123 <seg>pth-config</seg>
124 <seg>libpth.so</seg>
125 <seg>/usr/share/doc/pth-&pth-version;</seg>
126 </seglistitem>
127 </segmentedlist>
128
129 <variablelist>
130 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
131 <?dbfo list-presentation="list"?>
132 <?dbhtml list-presentation="table"?>
133
134 <varlistentry id="pth-config">
135 <term><command>pth-config</command></term>
136 <listitem>
137 <para>is a utility used to configure and build applications based on
138 the pth(3) library. It can be used to query the C compiler and
139 linker flags which are required to correctly compile and link the
140 application against the pth(3) library.</para>
141 <indexterm zone="pth pth-config">
142 <primary sortas="b-pth-config">pth-config</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
147 <varlistentry id="libpth">
148 <term><filename class="libraryfile">libpth.so</filename></term>
149 <listitem>
150 <para>contains the API functions used by the GNU Portable Threads
151 Library.</para>
152 <indexterm zone="pth libpth">
153 <primary sortas="c-libpth">libpth.so</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157 </variablelist>
158 </sect2>
159</sect1>
Note: See TracBrowser for help on using the repository browser.