source: general/genlib/nspr.xml@ 9c485ae

12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 9c485ae was 68dfef54, checked in by Pierre Labastie <pierre.labastie@…>, 7 months ago

Fix alignement of blocks

Reported by "rhubarbpieguy" on the blfs-dev mailing list

  • Property mode set to 100644
File size: 6.6 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 &lfs120_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 -ri '/^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>$([ $(uname -m) = x86_64 ] &amp;&amp; echo
130 --enable-64bit)</parameter>: The --enable-64bit parameter is
131 <emphasis>required</emphasis> on an x86_64 system to prevent
132 <command>configure</command> failing with a claim that this is a system
133 without pthread support. The [ $(uname -m) = x86_64 ] test ensures it has
134 no effect on a 32 bit system.
135 </para>
136
137 </sect2>
138
139 <sect2 role="content">
140 <title>Contents</title>
141
142 <segmentedlist>
143 <segtitle>Installed Programs</segtitle>
144 <segtitle>Installed Libraries</segtitle>
145 <segtitle>Installed Directories</segtitle>
146
147 <seglistitem>
148 <seg>
149 nspr-config
150 </seg>
151 <seg>
152 libnspr4.so, libplc4.so, and libplds4.so
153 </seg>
154 <seg>
155 /usr/include/nspr
156 </seg>
157 </seglistitem>
158 </segmentedlist>
159
160 <variablelist>
161 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
162 <?dbfo list-presentation="list"?>
163 <?dbhtml list-presentation="table"?>
164
165 <varlistentry id="nspr-config">
166 <term><command>nspr-config</command></term>
167 <listitem>
168 <para>
169 provides compiler and linker options to other packages that use
170 <application>NSPR</application>
171 </para>
172 <indexterm zone="nspr nspr-config">
173 <primary sortas="b-nspr-config">nspr-config</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="libnspr4">
179 <term><filename class="libraryfile">libnspr4.so</filename></term>
180 <listitem>
181 <para>
182 contains functions that provide platform independence for non-GUI
183 operating system facilities such as threads, thread synchronization,
184 normal file and network I/O, interval timing and calendar time,
185 basic memory management and shared library linking
186 </para>
187 <indexterm zone="nspr libnspr4">
188 <primary sortas="c-libnspr4">libnspr4.so</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="libplc4">
194 <term><filename class="libraryfile">libplc4.so</filename></term>
195 <listitem>
196 <para>
197 contains functions that implement many of the features offered by
198 libnspr4
199 </para>
200 <indexterm zone="nspr libplc4">
201 <primary sortas="c-libplc4">libplc4.so</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="libplds4">
207 <term><filename class="libraryfile">libplds4.so</filename></term>
208 <listitem>
209 <para>
210 contains functions that provide data structures
211 </para>
212 <indexterm zone="nspr libplds4">
213 <primary sortas="c-libplds4">libplds4.so</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 </variablelist>
219
220 </sect2>
221
222</sect1>
Note: See TracBrowser for help on using the repository browser.