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