source: general/genlib/pth.xml@ 9029db2

10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9029db2 was 9029db2, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Tag most of General Libraries and dependencies

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

  • Property mode set to 100644
File size: 5.9 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>
33 The <application>Pth</application> package contains a very portable
34 POSIX/ANSI-C based library for Unix platforms which provides
35 non-preemptive priority-based scheduling for multiple threads of
36 execution (multithreading) inside event-driven applications. All
37 threads run in the same address space of the server application, but
38 each thread has its own individual program-counter, run-time stack,
39 signal mask and errno variable.
40 </para>
41
42 &lfs101_checked;
43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>
48 Download (HTTP): <ulink url="&pth-download-http;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download (FTP): <ulink url="&pth-download-ftp;"/>
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download MD5 sum: &pth-md5sum;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Download size: &pth-size;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated disk space required: &pth-buildsize;
69 </para>
70 </listitem>
71 <listitem>
72 <para>
73 Estimated build time: &pth-time;
74 </para>
75 </listitem>
76 </itemizedlist>
77
78 <para condition="html" role="usernotes">User Notes:
79 <ulink url="&blfs-wiki;/pth"/></para>
80 </sect2>
81
82 <sect2 role="installation">
83 <title>Installation of Pth</title>
84
85 <caution>
86 <para>
87 Don't add the <option>--enable-pthread</option> parameter to the
88 <command>configure</command> command below else you will overwrite the
89 pthread library and interface header installed by the
90 <application>Glibc</application> package in LFS.
91 </para>
92 </caution>
93
94 <para>
95 Install <application>Pth</application> by running the
96 following commands:
97 </para>
98
99<screen><userinput>sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in &amp;&amp;
100./configure --prefix=/usr \
101 --disable-static \
102 --mandir=/usr/share/man &amp;&amp;
103make</userinput></screen>
104
105 <para>
106 To test the results, issue: <command>make test</command>.
107 </para>
108
109 <para>
110 Now, as the <systemitem class="username">root</systemitem>
111 user:
112 </para>
113
114<screen role="root"><userinput>make install &amp;&amp;
115install -v -m755 -d /usr/share/doc/pth-&pth-version; &amp;&amp;
116install -v -m644 README PORTING SUPPORT TESTS \
117 /usr/share/doc/pth-&pth-version;</userinput></screen>
118 </sect2>
119
120 <sect2 role="commands">
121 <title>Command Explanations</title>
122
123 <para>
124 <command>sed -i 's#$(LOBJS) ...</command>: This <command>sed</command>
125 fixes a race condition in the <filename>Makefile</filename>. It allows
126 running <command>make</command> with multiple jobs (e.g., <command>make
127 -j4</command>).
128 <!-- how ironic that a package for using multiple threads has this bug in
129 its Makefile -->
130 </para>
131
132 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
133 href="../../xincludes/static-libraries.xml"/>
134
135 <para>
136 <parameter>--mandir=/usr/share/man</parameter>: This switch puts the
137 man pages in <filename class="directory">/usr/share/man</filename> instead
138 of <filename class="directory">/usr/man</filename>.
139 </para>
140 </sect2>
141
142 <sect2 role="content">
143 <title>Contents</title>
144
145 <segmentedlist>
146 <segtitle>Installed Program</segtitle>
147 <segtitle>Installed Library</segtitle>
148 <segtitle>Installed Directory</segtitle>
149
150 <seglistitem>
151 <seg>pth-config</seg>
152 <seg>libpth.so</seg>
153 <seg>/usr/share/doc/pth-&pth-version;</seg>
154 </seglistitem>
155 </segmentedlist>
156
157 <variablelist>
158 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
159 <?dbfo list-presentation="list"?>
160 <?dbhtml list-presentation="table"?>
161
162 <varlistentry id="pth-config">
163 <term><command>pth-config</command></term>
164 <listitem>
165 <para>
166 is a utility used to configure and build applications based on
167 the pth(3) library. It can be used to query the C compiler and
168 linker flags which are required to correctly compile and link the
169 application against the pth(3) library
170 </para>
171 <indexterm zone="pth pth-config">
172 <primary sortas="b-pth-config">pth-config</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
177 <varlistentry id="libpth">
178 <term><filename class="libraryfile">libpth.so</filename></term>
179 <listitem>
180 <para>
181 contains the API functions used by the GNU Portable Threads
182 Library
183 </para>
184 <indexterm zone="pth libpth">
185 <primary sortas="c-libpth">libpth.so</primary>
186 </indexterm>
187 </listitem>
188 </varlistentry>
189 </variablelist>
190 </sect2>
191
192</sect1>
Note: See TracBrowser for help on using the repository browser.