source: general/genlib/pth.xml@ 242345d

7.6-blfs 7.6-systemd kde5-14269 kde5-14686 systemd-13485
Last change on this file since 242345d was f2d55c92, checked in by Krejzi <krejzi@…>, 10 years ago

Even more checks and fixes.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14021 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.7 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 &lfs76_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 <warning>
73 <para>Building this package in <application>Gnome Terminal</application>
74 will cause it to hang on configure.</para>
75 </warning>
76
77 <caution>
78 <para>Don't add the <option>--enable-pthread</option> parameter to the
79 <command>configure</command> command below else you will overwrite the
80 pthread library and interface header installed by the
81 <application>Glibc</application> package in LFS.</para>
82 </caution>
83
84 <para>Install <application>Pth</application> by running the
85 following commands:</para>
86
87<screen><userinput>sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in &amp;&amp;
88./configure --prefix=/usr \
89 --disable-static \
90 --mandir=/usr/share/man &amp;&amp;
91make</userinput></screen>
92
93 <para>To test the results, issue: <command>make test</command>.</para>
94
95 <para>Now, as the <systemitem class="username">root</systemitem>
96 user:</para>
97
98<screen role="root"><userinput>make install &amp;&amp;
99install -v -m755 -d /usr/share/doc/pth-&pth-version; &amp;&amp;
100install -v -m644 README PORTING SUPPORT TESTS \
101 /usr/share/doc/pth-&pth-version;</userinput></screen>
102 </sect2>
103
104 <sect2 role="commands">
105 <title>Command Explanations</title>
106
107 <para><command>sed -i 's#$(LOBJS) ...</command>: This <command>sed</command>
108 fixes a race condition in the <filename>Makefile</filename>. It allows you
109 to run <command>make</command> with multiple jobs (e.g., <command>make -j4</command>)
110 <!-- how ironic that a package for using multiple threads has this bug in
111 its Makefile -->.</para>
112
113 <para><option>--disable-static</option>: This option stops it compiling a
114 static version of the library.</para>
115
116 <para><option>--mandir=/usr/share/man</option>: This option puts the man
117 pages in <filename class="directory">/usr/share/man</filename> and not
118 <filename class="directory">/usr/man</filename>.</para>
119 </sect2>
120
121 <sect2 role="content">
122 <title>Contents</title>
123
124 <segmentedlist>
125 <segtitle>Installed Program</segtitle>
126 <segtitle>Installed Library</segtitle>
127 <segtitle>Installed Directory</segtitle>
128
129 <seglistitem>
130 <seg>pth-config</seg>
131 <seg>libpth.so</seg>
132 <seg>/usr/share/doc/pth-&pth-version;</seg>
133 </seglistitem>
134 </segmentedlist>
135
136 <variablelist>
137 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
138 <?dbfo list-presentation="list"?>
139 <?dbhtml list-presentation="table"?>
140
141 <varlistentry id="pth-config">
142 <term><command>pth-config</command></term>
143 <listitem>
144 <para>is a utility used to configure and build applications based on
145 the pth(3) library. It can be used to query the C compiler and
146 linker flags which are required to correctly compile and link the
147 application against the pth(3) library.</para>
148 <indexterm zone="pth pth-config">
149 <primary sortas="b-pth-config">pth-config</primary>
150 </indexterm>
151 </listitem>
152 </varlistentry>
153
154 <varlistentry id="libpth">
155 <term><filename class="libraryfile">libpth.so</filename></term>
156 <listitem>
157 <para>contains the API functions used by the GNU Portable Threads
158 Library.</para>
159 <indexterm zone="pth libpth">
160 <primary sortas="c-libpth">libpth.so</primary>
161 </indexterm>
162 </listitem>
163 </varlistentry>
164 </variablelist>
165 </sect2>
166</sect1>
Note: See TracBrowser for help on using the repository browser.