source: general/genlib/pth.xml@ bfa1248

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since bfa1248 was bfa1248, checked in by Andrew Benton <andy@…>, 12 years ago

Pth tweaks

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

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