source: general/genlib/nspr.xml

trunk
Last change on this file was 24e94e4d, checked in by Douglas R. Reno <renodr@…>, 2 months ago

Tag for NSS dependency

  • Property mode set to 100644
File size: 6.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 nspr-download-http "&mozilla-http;/nspr/releases/v&nspr-version;/src/nspr-&nspr-version;.tar.gz">
8 <!ENTITY nspr-download-ftp " ">
9 <!ENTITY nspr-md5sum "5e0acf9fbdde85181bddd510f4624841">
10 <!ENTITY nspr-size "1.0 MB">
11 <!ENTITY nspr-buildsize "9.6 MB">
12 <!ENTITY nspr-time "less than 0.1 SBU">
13]>
14
15<sect1 id="nspr" xreflabel="NSPR-&nspr-version;">
16 <?dbhtml filename="nspr.html"?>
17
18
19 <title>NSPR-&nspr-version;</title>
20
21 <indexterm zone="nspr">
22 <primary sortas="a-NSPR">NSPR</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to NSPR</title>
27
28 <para>
29 <application>Netscape Portable Runtime</application> (NSPR) provides a
30 platform-neutral API for system level and libc like functions.
31 </para>
32
33 &lfs121_checked;
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&nspr-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&nspr-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &nspr-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &nspr-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &nspr-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &nspr-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 </sect2>
70
71 <sect2 role="installation">
72 <title>Installation of NSPR</title>
73
74 <para>
75 Install <application>NSPR</application> by running the following commands:
76 </para>
77
78<screen><userinput>cd nspr &amp;&amp;
79
80sed -i '/^RELEASE/s|^|#|' pr/src/misc/Makefile.in &amp;&amp;
81sed -i 's|$(LIBRARY) ||' config/rules.mk &amp;&amp;
82
83./configure --prefix=/usr \
84 --with-mozilla \
85 --with-pthreads \
86 $([ $(uname -m) = x86_64 ] &amp;&amp; echo --enable-64bit) &amp;&amp;
87make</userinput></screen>
88
89 <para>
90 The test suite is designed for testing changes to nss or nspr and is
91 not particularly useful for checking a released version (e.g. it needs
92 to be run on a non-optimized build with both nss and nspr directories
93 existing alongside each other). For further details, see the Editor Notes
94 for nss at <ulink url="&blfs-wiki;/nss"/>
95 </para>
96
97 <para>
98 Now, as the <systemitem class="username">root</systemitem> user:
99 </para>
100
101<screen role="root"><userinput>make install</userinput></screen>
102 </sect2>
103
104 <sect2 role="commands">
105 <title>Command Explanations</title>
106
107 <para>
108 <command>sed -ri '/^RELEASE/s/^/#/' pr/src/misc/Makefile.in</command>:
109 This sed disables installing two unneeded scripts.
110 </para>
111
112 <para>
113 <command>sed -i 's#$(LIBRARY) ##' config/rules.mk</command>: This sed disables
114 installing the static libraries.
115 </para>
116
117 <para>
118 <parameter>--with-mozilla</parameter>: This parameter adds Mozilla support
119 to the libraries (required if you want to build any other Mozilla
120 products and link them to these libraries).
121 </para>
122
123 <para>
124 <parameter>--with-pthreads</parameter>: This parameter forces use of the
125 system pthread library.
126 </para>
127
128 <para>
129 <parameter>--enable-64bit</parameter>: The --enable-64bit parameter is
130 <emphasis>required</emphasis> on an x86_64 system to prevent
131 <command>configure</command> failing with a claim that this is a system
132 without pthread support. The [ $(uname -m) = x86_64 ] test ensures it has
133 no effect on a 32 bit system.
134 </para>
135
136 </sect2>
137
138 <sect2 role="content">
139 <title>Contents</title>
140
141 <segmentedlist>
142 <segtitle>Installed Programs</segtitle>
143 <segtitle>Installed Libraries</segtitle>
144 <segtitle>Installed Directories</segtitle>
145
146 <seglistitem>
147 <seg>
148 nspr-config
149 </seg>
150 <seg>
151 libnspr4.so, libplc4.so, and libplds4.so
152 </seg>
153 <seg>
154 /usr/include/nspr
155 </seg>
156 </seglistitem>
157 </segmentedlist>
158
159 <variablelist>
160 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
161 <?dbfo list-presentation="list"?>
162 <?dbhtml list-presentation="table"?>
163
164 <varlistentry id="nspr-config">
165 <term><command>nspr-config</command></term>
166 <listitem>
167 <para>
168 provides compiler and linker options to other packages that use
169 <application>NSPR</application>
170 </para>
171 <indexterm zone="nspr nspr-config">
172 <primary sortas="b-nspr-config">nspr-config</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
177 <varlistentry id="libnspr4">
178 <term><filename class="libraryfile">libnspr4.so</filename></term>
179 <listitem>
180 <para>
181 contains functions that provide platform independence for non-GUI
182 operating system facilities such as threads, thread synchronization,
183 normal file and network I/O, interval timing and calendar time,
184 basic memory management and shared library linking
185 </para>
186 <indexterm zone="nspr libnspr4">
187 <primary sortas="c-libnspr4">libnspr4.so</primary>
188 </indexterm>
189 </listitem>
190 </varlistentry>
191
192 <varlistentry id="libplc4">
193 <term><filename class="libraryfile">libplc4.so</filename></term>
194 <listitem>
195 <para>
196 contains functions that implement many of the features offered by
197 libnspr4
198 </para>
199 <indexterm zone="nspr libplc4">
200 <primary sortas="c-libplc4">libplc4.so</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry id="libplds4">
206 <term><filename class="libraryfile">libplds4.so</filename></term>
207 <listitem>
208 <para>
209 contains functions that provide data structures
210 </para>
211 <indexterm zone="nspr libplds4">
212 <primary sortas="c-libplds4">libplds4.so</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 </variablelist>
218
219 </sect2>
220
221</sect1>
Note: See TracBrowser for help on using the repository browser.