[blfs-book] r9023 - in trunk/BOOK: general/genlib x/lib

andy at linuxfromscratch.org andy at linuxfromscratch.org
Mon Nov 28 06:03:47 PST 2011


Author: andy
Date: 2011-11-28 07:03:42 -0700 (Mon, 28 Nov 2011)
New Revision: 9023

Modified:
   trunk/BOOK/general/genlib/nspr.xml
   trunk/BOOK/x/lib/xulrunner.xml
Log:
Added --enable-64bit to the nspr page

Modified: trunk/BOOK/general/genlib/nspr.xml
===================================================================
--- trunk/BOOK/general/genlib/nspr.xml	2011-11-28 12:07:51 UTC (rev 9022)
+++ trunk/BOOK/general/genlib/nspr.xml	2011-11-28 14:03:42 UTC (rev 9023)
@@ -60,7 +60,7 @@
     <itemizedlist spacing='compact'>
       <listitem>
         <para>Required patch: <ulink
-          url="&patch-root;/nspr-&nspr-version;-pkgconfig-1.patch"/>
+          url="http://www.linuxfromscratch.org/patches/downloads/nspr/nspr-&nspr-version;-pkgconfig-2.patch"/>
       </para>
       </listitem>
     </itemizedlist>
@@ -76,11 +76,11 @@
     <para>Install <application>NSPR</application> by running the following
     commands:</para>
 
-<screen><userinput>patch -Np1 -i ../nspr-&nspr-version;-pkgconfig-1.patch &&
+<screen><userinput>patch -Np1 -i ../nspr-&nspr-version;-pkgconfig-2.patch &&
 cd mozilla/nsprpub &&
-./configure --prefix=/usr \
-            --with-mozilla \
-            --with-pthreads &&
+sed -i 's#^\(RELEASE_BINS =\).*#\1#' pr/src/misc/Makefile.in &&
+./configure --prefix=/usr --with-mozilla --with-pthreads \
+  $([ $(arch) = x86_64 ] && echo --enable-64bit) &&
 make</userinput></screen>
 
     <para>This package does not come with a test suite.</para>
@@ -88,8 +88,7 @@
     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
 
 <screen role="root"><userinput>make install &&
-cp -v -LR dist/include/nspr /usr/include &&
-rm -v -f /usr/bin/{prerr.properties,compile-et.pl}</userinput></screen>
+cp -v -LR dist/include/nspr /usr/include</userinput></screen>
 
   </sect2>
 
@@ -97,17 +96,24 @@
     <title>Command Explanations</title>
 
     <para><parameter>--with-mozilla</parameter>: This parameter adds Mozilla
-    support to the libraries (required if you want to build any Mozilla
-    products).</para>
+    support to the libraries (required if you want to build any other Mozilla
+    products and link them to these libraries).</para>
 
     <para><parameter>--with-pthreads</parameter>: This parameter forces use of
     the system pthreads library.</para>
 
-    <para><parameter>--enable-64bit</parameter>: This parameter is required
-    <emphasis>on an x86_64 system</emphasis> to prevent
+    <para><parameter>$([ $(arch) ... --enable-64bit</parameter>: This parameter
+    is required <emphasis>on an x86_64 system</emphasis> to prevent
     <command>configure</command> failing with a claim that this is a system
-    without pthread support.</para>
+    without pthread support. It has no effect on a 32 bit system.</para>
 
+    <para><command>sed -i 's#^\(RELEASE_BINS ...</command>: This disables
+    installing two unneeded scripts.</para>
+
+    <para>If you don't want to compile and install the static versions of the
+    libraries you can disable them with a sed:
+    <command>sed -i '/^TARGETS/s# $(LIBRARY)##' config/rules.mk</command></para>
+
   </sect2>
 
   <sect2 role="content">
@@ -141,6 +147,41 @@
         </listitem>
       </varlistentry>
 
+      <varlistentry id="libnspr4">
+        <term><filename class='libraryfile'>libnspr4.{so,a}</filename></term>
+        <listitem>
+          <para>contains functions that provide platform independence for
+          non-GUI operating system facilities such as threads, thread
+          synchronization, normal file and network I/O, interval timing and
+          calendar time, basic memory management (malloc and free) and shared
+          library linking.</para>
+          <indexterm zone="nspr libnspr4">
+            <primary sortas="c-libnspr4">libnspr4.{so,a}</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry id="libplc4">
+        <term><filename class='libraryfile'>libplc4.{so,a}</filename></term>
+        <listitem>
+          <para>contains functions that implement many of the features offered
+          by libnspr4</para>
+          <indexterm zone="nspr libplc4">
+            <primary sortas="c-libplc4">libplc4.{so,a}</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry id="libplds4">
+        <term><filename class='libraryfile'>libplds4.{so,a}</filename></term>
+        <listitem>
+          <para>contains functions that provide data structures.</para>
+          <indexterm zone="nspr libplds4">
+            <primary sortas="c-libplds4">libplds4.{so,a}</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
     </variablelist>
 
   </sect2>

Modified: trunk/BOOK/x/lib/xulrunner.xml
===================================================================
--- trunk/BOOK/x/lib/xulrunner.xml	2011-11-28 12:07:51 UTC (rev 9022)
+++ trunk/BOOK/x/lib/xulrunner.xml	2011-11-28 14:03:42 UTC (rev 9023)
@@ -30,6 +30,9 @@
   <sect2 role="package">
     <title>Introduction to Xulrunner</title>
 
+    <!-- If someone updates this, please update the bit on the Firefox page
+    about building Firefox against xulrunner -->
+
     <para><application>Xulrunner</application> is a runtime environment for XUL
     applications, and forms the major part of the <application>Mozilla</application>
     codebase.  In particular, it provides the gecko engine together with pkgconfig




More information about the blfs-book mailing list