source: general/genlib/pth.xml@ 8558044

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 8558044 was 8558044, checked in by Pierre Labastie <pierre.labastie@…>, 3 years ago

Remove spaces at the end of lines

I know it is somewhat useless, but I don't like them for
two reasons: first they cannot be seen, and I do not like things I
cannot see. Second, git highlights them, and this is disturbing...

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