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
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[9c57b3a]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
[8dfc5c3]7 <!ENTITY nspr-download-http "&mozilla-http;/nspr/releases/v&nspr-version;/src/nspr-&nspr-version;.tar.gz">
[92e3023]8 <!ENTITY nspr-download-ftp " ">
[ecce4c73]9 <!ENTITY nspr-md5sum "5e0acf9fbdde85181bddd510f4624841">
[6c3d8a47]10 <!ENTITY nspr-size "1.0 MB">
[dbfc5bc1]11 <!ENTITY nspr-buildsize "9.6 MB">
[177e2f9]12 <!ENTITY nspr-time "less than 0.1 SBU">
[9c57b3a]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">
[67bd6fe4]22 <primary sortas="a-NSPR">NSPR</primary>
[9c57b3a]23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to NSPR</title>
27
[7753fc6]28 <para>
[c2d890f4]29 <application>Netscape Portable Runtime</application> (NSPR) provides a
30 platform-neutral API for system level and libc like functions.
31 </para>
[9c57b3a]32
[24e94e4d]33 &lfs121_checked;
[e3060aa]34
[9c57b3a]35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
[7753fc6]38 <para>
39 Download (HTTP): <ulink url="&nspr-download-http;"/>
40 </para>
[9c57b3a]41 </listitem>
42 <listitem>
[7753fc6]43 <para>
44 Download (FTP): <ulink url="&nspr-download-ftp;"/>
45 </para>
[9c57b3a]46 </listitem>
47 <listitem>
[7753fc6]48 <para>
49 Download MD5 sum: &nspr-md5sum;
50 </para>
[9c57b3a]51 </listitem>
52 <listitem>
[7753fc6]53 <para>
54 Download size: &nspr-size;
55 </para>
[9c57b3a]56 </listitem>
57 <listitem>
[7753fc6]58 <para>
59 Estimated disk space required: &nspr-buildsize;
60 </para>
[9c57b3a]61 </listitem>
62 <listitem>
[7753fc6]63 <para>
64 Estimated build time: &nspr-time;
65 </para>
[9c57b3a]66 </listitem>
67 </itemizedlist>
68
69 </sect2>
70
71 <sect2 role="installation">
72 <title>Installation of NSPR</title>
73
[7753fc6]74 <para>
75 Install <application>NSPR</application> by running the following commands:
76 </para>
[9c57b3a]77
[68dfef54]78<screen><userinput>cd nspr &amp;&amp;
79
[50d35ab3]80sed -i '/^RELEASE/s|^|#|' pr/src/misc/Makefile.in &amp;&amp;
81sed -i 's|$(LIBRARY) ||' config/rules.mk &amp;&amp;
[731d374]82
[68dfef54]83./configure --prefix=/usr \
84 --with-mozilla \
[4591404]85 --with-pthreads \
86 $([ $(uname -m) = x86_64 ] &amp;&amp; echo --enable-64bit) &amp;&amp;
[9c57b3a]87make</userinput></screen>
88
[7753fc6]89 <para>
[48771ae]90 The test suite is designed for testing changes to nss or nspr and is
[a98cec9]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
[42ddc30]93 existing alongside each other). For further details, see the Editor Notes
[a98cec9]94 for nss at <ulink url="&blfs-wiki;/nss"/>
[7753fc6]95 </para>
[9c57b3a]96
[7753fc6]97 <para>
98 Now, as the <systemitem class="username">root</systemitem> user:
99 </para>
[9c57b3a]100
[2ccd091]101<screen role="root"><userinput>make install</userinput></screen>
[9c57b3a]102 </sect2>
103
104 <sect2 role="commands">
105 <title>Command Explanations</title>
106
[7753fc6]107 <para>
[8558044]108 <command>sed -ri '/^RELEASE/s/^/#/' pr/src/misc/Makefile.in</command>:
[c1b3614]109 This sed disables installing two unneeded scripts.
[ee469098]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
[4591404]119 to the libraries (required if you want to build any other Mozilla
120 products and link them to these libraries).
[7753fc6]121 </para>
122
123 <para>
[ee469098]124 <parameter>--with-pthreads</parameter>: This parameter forces use of the
[4591404]125 system pthread library.
[7753fc6]126 </para>
127
128 <para>
[875b3b57]129 <parameter>--enable-64bit</parameter>: The --enable-64bit parameter is
[db32c4c]130 <emphasis>required</emphasis> on an x86_64 system to prevent
[7753fc6]131 <command>configure</command> failing with a claim that this is a system
[db32c4c]132 without pthread support. The [ $(uname -m) = x86_64 ] test ensures it has
133 no effect on a 32 bit system.
[7753fc6]134 </para>
135
[9c57b3a]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>
[4591404]147 <seg>
148 nspr-config
149 </seg>
150 <seg>
[91331cb]151 libnspr4.so, libplc4.so, and libplds4.so
[4591404]152 </seg>
153 <seg>
154 /usr/include/nspr
155 </seg>
[9c57b3a]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
[9c34dc7]164 <varlistentry id="nspr-config">
[9c57b3a]165 <term><command>nspr-config</command></term>
166 <listitem>
[7753fc6]167 <para>
168 provides compiler and linker options to other packages that use
[4c24eb0a]169 <application>NSPR</application>
[7753fc6]170 </para>
[9c57b3a]171 <indexterm zone="nspr nspr-config">
172 <primary sortas="b-nspr-config">nspr-config</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
[e305fa83]177 <varlistentry id="libnspr4">
[4c24eb0a]178 <term><filename class="libraryfile">libnspr4.so</filename></term>
[e305fa83]179 <listitem>
[7753fc6]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,
[4c24eb0a]184 basic memory management and shared library linking
[7753fc6]185 </para>
[e305fa83]186 <indexterm zone="nspr libnspr4">
[7753fc6]187 <primary sortas="c-libnspr4">libnspr4.so</primary>
[e305fa83]188 </indexterm>
189 </listitem>
190 </varlistentry>
191
192 <varlistentry id="libplc4">
[4c24eb0a]193 <term><filename class="libraryfile">libplc4.so</filename></term>
[e305fa83]194 <listitem>
[7753fc6]195 <para>
196 contains functions that implement many of the features offered by
197 libnspr4
198 </para>
[e305fa83]199 <indexterm zone="nspr libplc4">
[7753fc6]200 <primary sortas="c-libplc4">libplc4.so</primary>
[e305fa83]201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry id="libplds4">
[4c24eb0a]206 <term><filename class="libraryfile">libplds4.so</filename></term>
[e305fa83]207 <listitem>
[7753fc6]208 <para>
[4c24eb0a]209 contains functions that provide data structures
[7753fc6]210 </para>
[e305fa83]211 <indexterm zone="nspr libplds4">
[7753fc6]212 <primary sortas="c-libplds4">libplds4.so</primary>
[e305fa83]213 </indexterm>
214 </listitem>
215 </varlistentry>
[4591404]216
[9c57b3a]217 </variablelist>
[4591404]218
[9c57b3a]219 </sect2>
[4591404]220
[9c57b3a]221</sect1>
Note: See TracBrowser for help on using the repository browser.