[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 |
|
---|
[f42fa1eb] | 7 | <!ENTITY nspr-download-http "http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v&nspr-version;/src/nspr-&nspr-version;.tar.gz">
|
---|
[9c57b3a] | 8 | <!ENTITY nspr-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v&nspr-version;/src/nspr-&nspr-version;.tar.gz">
|
---|
[1bcb942] | 9 | <!ENTITY nspr-md5sum "60770d45dc08c0f181b22cdfce5be3e8">
|
---|
[e3060aa] | 10 | <!ENTITY nspr-size "1.2 MB">
|
---|
[1bcb942] | 11 | <!ENTITY nspr-buildsize "21 MB">
|
---|
| 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 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>NSPR-&nspr-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="nspr">
|
---|
| 26 | <primary sortas="a-NSPR">Netscape Portable Runtime</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to NSPR</title>
|
---|
| 31 |
|
---|
| 32 | <para><application>Netscape Portable Runtime</application> (NSPR) provides
|
---|
| 33 | a platform-neutral API for system level and libc like functions.</para>
|
---|
| 34 |
|
---|
[1bcb942] | 35 | &lfs70_checked;
|
---|
[e3060aa] | 36 |
|
---|
[9c57b3a] | 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&nspr-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&nspr-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &nspr-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &nspr-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &nspr-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &nspr-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
| 58 |
|
---|
| 59 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 60 | <itemizedlist spacing='compact'>
|
---|
| 61 | <listitem>
|
---|
[c4ee35e] | 62 | <para>Required patch: <ulink
|
---|
[e305fa83] | 63 | url="http://www.linuxfromscratch.org/patches/downloads/nspr/nspr-&nspr-version;-pkgconfig-2.patch"/>
|
---|
[9c57b3a] | 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
| 68 | <para condition="html" role="usernotes">User Notes:
|
---|
| 69 | <ulink url="&blfs-wiki;/nspr"/></para>
|
---|
| 70 |
|
---|
| 71 | </sect2>
|
---|
| 72 |
|
---|
| 73 | <sect2 role="installation">
|
---|
| 74 | <title>Installation of NSPR</title>
|
---|
| 75 |
|
---|
| 76 | <para>Install <application>NSPR</application> by running the following
|
---|
| 77 | commands:</para>
|
---|
| 78 |
|
---|
[e305fa83] | 79 | <screen><userinput>patch -Np1 -i ../nspr-&nspr-version;-pkgconfig-2.patch &&
|
---|
[0dbff5d] | 80 | cd mozilla/nsprpub &&
|
---|
[e305fa83] | 81 | sed -i 's#^\(RELEASE_BINS =\).*#\1#' pr/src/misc/Makefile.in &&
|
---|
| 82 | ./configure --prefix=/usr --with-mozilla --with-pthreads \
|
---|
| 83 | $([ $(arch) = x86_64 ] && echo --enable-64bit) &&
|
---|
[9c57b3a] | 84 | make</userinput></screen>
|
---|
| 85 |
|
---|
| 86 | <para>This package does not come with a test suite.</para>
|
---|
| 87 |
|
---|
| 88 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 89 |
|
---|
| 90 | <screen role="root"><userinput>make install &&
|
---|
[e305fa83] | 91 | cp -v -LR dist/include/nspr /usr/include</userinput></screen>
|
---|
[9c57b3a] | 92 |
|
---|
| 93 | </sect2>
|
---|
| 94 |
|
---|
| 95 | <sect2 role="commands">
|
---|
| 96 | <title>Command Explanations</title>
|
---|
| 97 |
|
---|
| 98 | <para><parameter>--with-mozilla</parameter>: This parameter adds Mozilla
|
---|
[e305fa83] | 99 | support to the libraries (required if you want to build any other Mozilla
|
---|
| 100 | products and link them to these libraries).</para>
|
---|
[9c57b3a] | 101 |
|
---|
| 102 | <para><parameter>--with-pthreads</parameter>: This parameter forces use of
|
---|
| 103 | the system pthreads library.</para>
|
---|
| 104 |
|
---|
[e305fa83] | 105 | <para><parameter>$([ $(arch) ... --enable-64bit</parameter>: This parameter
|
---|
| 106 | is required <emphasis>on an x86_64 system</emphasis> to prevent
|
---|
[e3060aa] | 107 | <command>configure</command> failing with a claim that this is a system
|
---|
[e305fa83] | 108 | without pthread support. It has no effect on a 32 bit system.</para>
|
---|
| 109 |
|
---|
| 110 | <para><command>sed -i 's#^\(RELEASE_BINS ...</command>: This disables
|
---|
| 111 | installing two unneeded scripts.</para>
|
---|
| 112 |
|
---|
| 113 | <para>If you don't want to compile and install the static versions of the
|
---|
| 114 | libraries you can disable them with a sed:
|
---|
| 115 | <command>sed -i '/^TARGETS/s# $(LIBRARY)##' config/rules.mk</command></para>
|
---|
[e3060aa] | 116 |
|
---|
[9c57b3a] | 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 | <sect2 role="content">
|
---|
| 120 | <title>Contents</title>
|
---|
| 121 |
|
---|
| 122 | <segmentedlist>
|
---|
| 123 | <segtitle>Installed Programs</segtitle>
|
---|
| 124 | <segtitle>Installed Libraries</segtitle>
|
---|
| 125 | <segtitle>Installed Directories</segtitle>
|
---|
| 126 |
|
---|
| 127 | <seglistitem>
|
---|
| 128 | <seg>nspr-config</seg>
|
---|
| 129 | <seg>libnspr4.{a,so}, libplc4.{a,so}, and libplds4.{a.so}</seg>
|
---|
| 130 | <seg>/usr/include/nspr</seg>
|
---|
| 131 | </seglistitem>
|
---|
| 132 | </segmentedlist>
|
---|
| 133 |
|
---|
| 134 | <variablelist>
|
---|
| 135 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 136 | <?dbfo list-presentation="list"?>
|
---|
| 137 | <?dbhtml list-presentation="table"?>
|
---|
| 138 |
|
---|
[9c34dc7] | 139 | <varlistentry id="nspr-config">
|
---|
[9c57b3a] | 140 | <term><command>nspr-config</command></term>
|
---|
| 141 | <listitem>
|
---|
| 142 | <para>provides compiler and linker options to other packages that
|
---|
| 143 | use <application>NSPR</application>.</para>
|
---|
| 144 | <indexterm zone="nspr nspr-config">
|
---|
| 145 | <primary sortas="b-nspr-config">nspr-config</primary>
|
---|
| 146 | </indexterm>
|
---|
| 147 | </listitem>
|
---|
| 148 | </varlistentry>
|
---|
| 149 |
|
---|
[e305fa83] | 150 | <varlistentry id="libnspr4">
|
---|
| 151 | <term><filename class='libraryfile'>libnspr4.{so,a}</filename></term>
|
---|
| 152 | <listitem>
|
---|
| 153 | <para>contains functions that provide platform independence for
|
---|
| 154 | non-GUI operating system facilities such as threads, thread
|
---|
| 155 | synchronization, normal file and network I/O, interval timing and
|
---|
| 156 | calendar time, basic memory management (malloc and free) and shared
|
---|
| 157 | library linking.</para>
|
---|
| 158 | <indexterm zone="nspr libnspr4">
|
---|
| 159 | <primary sortas="c-libnspr4">libnspr4.{so,a}</primary>
|
---|
| 160 | </indexterm>
|
---|
| 161 | </listitem>
|
---|
| 162 | </varlistentry>
|
---|
| 163 |
|
---|
| 164 | <varlistentry id="libplc4">
|
---|
| 165 | <term><filename class='libraryfile'>libplc4.{so,a}</filename></term>
|
---|
| 166 | <listitem>
|
---|
| 167 | <para>contains functions that implement many of the features offered
|
---|
| 168 | by libnspr4</para>
|
---|
| 169 | <indexterm zone="nspr libplc4">
|
---|
| 170 | <primary sortas="c-libplc4">libplc4.{so,a}</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="libplds4">
|
---|
| 176 | <term><filename class='libraryfile'>libplds4.{so,a}</filename></term>
|
---|
| 177 | <listitem>
|
---|
| 178 | <para>contains functions that provide data structures.</para>
|
---|
| 179 | <indexterm zone="nspr libplds4">
|
---|
| 180 | <primary sortas="c-libplds4">libplds4.{so,a}</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
[9c57b3a] | 185 | </variablelist>
|
---|
| 186 |
|
---|
| 187 | </sect2>
|
---|
| 188 |
|
---|
| 189 | </sect1>
|
---|