source: general/genlib/nspr.xml@ bf565e06

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 xry111/llvm18 xry111/xf86-video-removal
Last change on this file since bf565e06 was 48771ae, checked in by David Bryant <davidbryant@…>, 17 months ago

Unless it's a directory name, or something like that, "test suite"
should be spelled as two words.

  • Property mode set to 100644
File size: 6.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 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 &lfs112_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 <para condition="html" role="usernotes">
70 User Notes: <ulink url="&blfs-wiki;/nspr"/>
71 </para>
72 </sect2>
73
74 <sect2 role="installation">
75 <title>Installation of NSPR</title>
76
77 <para>
78 Install <application>NSPR</application> by running the following commands:
79 </para>
80
81<screen><userinput>cd nspr &amp;&amp;
82sed -ri '/^RELEASE/s/^/#/' pr/src/misc/Makefile.in &amp;&amp;
83sed -i 's#$(LIBRARY) ##' config/rules.mk &amp;&amp;
84
85./configure --prefix=/usr \
86 --with-mozilla \
87 --with-pthreads \
88 $([ $(uname -m) = x86_64 ] &amp;&amp; echo --enable-64bit) &amp;&amp;
89make</userinput></screen>
90
91 <para>
92 The test suite is designed for testing changes to nss or nspr and is
93 not particularly useful for checking a released version (e.g. it needs
94 to be run on a non-optimized build with both nss and nspr directories
95 existing alongside each other). For further details, see the User Notes
96 for nss at <ulink url="&blfs-wiki;/nss"/>
97 </para>
98
99 <para>
100 Now, as the <systemitem class="username">root</systemitem> user:
101 </para>
102
103<screen role="root"><userinput>make install</userinput></screen>
104 </sect2>
105
106 <sect2 role="commands">
107 <title>Command Explanations</title>
108
109 <para>
110 <command>sed -ri '/^RELEASE/s/^/#/' pr/src/misc/Makefile.in</command>:
111 This sed disables installing two unneeded scripts.
112 </para>
113
114 <para>
115 <command>sed -i 's#$(LIBRARY) ##' config/rules.mk</command>: This sed disables
116 installing the static libraries.
117 </para>
118
119 <para>
120 <parameter>--with-mozilla</parameter>: This parameter adds Mozilla support
121 to the libraries (required if you want to build any other Mozilla
122 products and link them to these libraries).
123 </para>
124
125 <para>
126 <parameter>--with-pthreads</parameter>: This parameter forces use of the
127 system pthread library.
128 </para>
129
130 <para>
131 <parameter>$([ $(uname -m) = x86_64 ] &amp;&amp; echo
132 --enable-64bit)</parameter>: The --enable-64bit parameter is
133 <emphasis>required</emphasis> on an x86_64 system to prevent
134 <command>configure</command> failing with a claim that this is a system
135 without pthread support. The [ $(uname -m) = x86_64 ] test ensures it has
136 no effect on a 32 bit system.
137 </para>
138
139 </sect2>
140
141 <sect2 role="content">
142 <title>Contents</title>
143
144 <segmentedlist>
145 <segtitle>Installed Programs</segtitle>
146 <segtitle>Installed Libraries</segtitle>
147 <segtitle>Installed Directories</segtitle>
148
149 <seglistitem>
150 <seg>
151 nspr-config
152 </seg>
153 <seg>
154 libnspr4.so, libplc4.so, and libplds4.so
155 </seg>
156 <seg>
157 /usr/include/nspr
158 </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="nspr-config">
168 <term><command>nspr-config</command></term>
169 <listitem>
170 <para>
171 provides compiler and linker options to other packages that use
172 <application>NSPR</application>
173 </para>
174 <indexterm zone="nspr nspr-config">
175 <primary sortas="b-nspr-config">nspr-config</primary>
176 </indexterm>
177 </listitem>
178 </varlistentry>
179
180 <varlistentry id="libnspr4">
181 <term><filename class="libraryfile">libnspr4.so</filename></term>
182 <listitem>
183 <para>
184 contains functions that provide platform independence for non-GUI
185 operating system facilities such as threads, thread synchronization,
186 normal file and network I/O, interval timing and calendar time,
187 basic memory management and shared library linking
188 </para>
189 <indexterm zone="nspr libnspr4">
190 <primary sortas="c-libnspr4">libnspr4.so</primary>
191 </indexterm>
192 </listitem>
193 </varlistentry>
194
195 <varlistentry id="libplc4">
196 <term><filename class="libraryfile">libplc4.so</filename></term>
197 <listitem>
198 <para>
199 contains functions that implement many of the features offered by
200 libnspr4
201 </para>
202 <indexterm zone="nspr libplc4">
203 <primary sortas="c-libplc4">libplc4.so</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="libplds4">
209 <term><filename class="libraryfile">libplds4.so</filename></term>
210 <listitem>
211 <para>
212 contains functions that provide data structures
213 </para>
214 <indexterm zone="nspr libplds4">
215 <primary sortas="c-libplds4">libplds4.so</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 </variablelist>
221
222 </sect2>
223
224</sect1>
Note: See TracBrowser for help on using the repository browser.