source: general/genlib/nspr.xml@ 7481fd4

12.0 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 7481fd4 was 7481fd4, checked in by Douglas R. Reno <renodr@…>, 10 months ago

Tags

  • 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;
79sed -ri '/^RELEASE/s/^/#/' pr/src/misc/Makefile.in &amp;&amp;
80sed -i 's#$(LIBRARY) ##' config/rules.mk &amp;&amp;
81
82./configure --prefix=/usr \
83 --with-mozilla \
84 --with-pthreads \
85 $([ $(uname -m) = x86_64 ] &amp;&amp; echo --enable-64bit) &amp;&amp;
86make</userinput></screen>
87
88 <para>
89 The test suite is designed for testing changes to nss or nspr and is
90 not particularly useful for checking a released version (e.g. it needs
91 to be run on a non-optimized build with both nss and nspr directories
92 existing alongside each other). For further details, see the Editor Notes
93 for nss at <ulink url="&blfs-wiki;/nss"/>
94 </para>
95
96 <para>
97 Now, as the <systemitem class="username">root</systemitem> user:
98 </para>
99
100<screen role="root"><userinput>make install</userinput></screen>
101 </sect2>
102
103 <sect2 role="commands">
104 <title>Command Explanations</title>
105
106 <para>
107 <command>sed -ri '/^RELEASE/s/^/#/' pr/src/misc/Makefile.in</command>:
108 This sed disables installing two unneeded scripts.
109 </para>
110
111 <para>
112 <command>sed -i 's#$(LIBRARY) ##' config/rules.mk</command>: This sed disables
113 installing the static libraries.
114 </para>
115
116 <para>
117 <parameter>--with-mozilla</parameter>: This parameter adds Mozilla support
118 to the libraries (required if you want to build any other Mozilla
119 products and link them to these libraries).
120 </para>
121
122 <para>
123 <parameter>--with-pthreads</parameter>: This parameter forces use of the
124 system pthread library.
125 </para>
126
127 <para>
128 <parameter>$([ $(uname -m) = x86_64 ] &amp;&amp; echo
129 --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.