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