source: general/genlib/pth.xml@ 023cc87

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 023cc87 was 023cc87, checked in by Douglas R. Reno <renodr@…>, 3 years ago

Tag exim and add gcc as an optional dep of pth for gfortran

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