Changeset c103832


Ignore:
Timestamp:
01/23/2006 04:36:18 PM (18 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
3a4bc84
Parents:
30f88917
Message:

Added information about using system-installed versions of the NSS libraries and added additional configuration information to the Firefox instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5585 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • introduction/welcome/changelog.xml

    r30f88917 rc103832  
    4646      <itemizedlist>
    4747        <listitem>
     48          <para>[randy] - Added information about using system-installed
     49          versions of the NSS libraries and added additional configuration
     50          information to the Firefox instructions.</para>
     51        </listitem>
     52        <listitem>
    4853          <para>[randy] - Added new package Network Security Services,
    4954          NSS-3.11.</para>
  • xsoft/graphweb/firefox.xml

    r30f88917 rc103832  
    5959    </itemizedlist>
    6060
     61    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
     62    <itemizedlist spacing="compact">
     63      <listitem>
     64        <para>Required patch (if using the system-installed versions of
     65        <application>NSS</application> and <application>NSPR</application>):
     66        <ulink
     67        url="&patch-root;/firefox-&firefox-version;-system_nss-1.patch"/>
     68        </para>
     69      </listitem>
     70    </itemizedlist>
     71
    6172    <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
    6273
    6374    <bridgehead renderas="sect4">Required</bridgehead>
    6475    <para role="required"><xref linkend="gtk2"/>,
    65     <xref linkend="libidl"/> and
     76    <xref linkend="libidl"/>, and
    6677    <xref linkend="zip"/></para>
    6778
     
    7283    <filename>.mozconfig</filename> file created below.</para>
    7384
     85    <bridgehead renderas="sect4">Recommended (if you will be installing any
     86    other package that utilizes NSS/NSPR, such as
     87    <application>Thunderbird</application> or
     88    <application>Mozilla</application>)</bridgehead>
     89    <para role="recommended"><xref linkend="nss"/></para>
     90
    7491    <bridgehead renderas="sect4">Optional</bridgehead>
    7592    <para role="optional"><xref linkend="unzip"/> and
     
    98115    is created below. To see the entire list of available configuration options
    99116    (and an abbreviated description of each one), issue
    100     <command>./configure --help</command>. If you are going to build the
     117    <command>./configure --help</command>.  If you are going to use the
     118    system-installed versions of <application>NSS</application> and
     119    <application>NSPR</application>, ensure you uncomment the two lines near
     120    the bottom of the file. If you are going to build the
    101121    <application>OpenOffice</application> package and you want to use this
    102122    <application>Firefox</application> installation as the default
    103123    <application>Mozilla</application> source, ensure you uncomment the
    104     <option>--enable-ldap</option> option from the default file created below.
     124    <option>--enable-ldap</option> option in the file created below.
    105125    You may also wish to review the entire file and uncomment any other desired
    106126    options. If you would prefer to download the file instead of creating it by
    107     typing or cut-and-pasting, here is the URL: <ulink
     127    typing or cut-and-pasting, you can find it at <ulink
    108128    url="http://anduin.linuxfromscratch.org/files/BLFS/firefox-&firefox-version;-mozconfig"/>
    109     (the file must be installed in the
    110     <filename class='directory'>mozilla</filename> directory and named
     129    (the file must be installed in the root of the source tree
     130    <filename class='directory'>mozilla</filename> directory, and named
    111131    <filename>.mozconfig</filename>). Create the file by issuing the following
    112132    command:</para>
     
    193213#ac_add_options --enable-xinerama
    194214
     215# These two options enable support for building Firefox with
     216# system-installed versions of the Network Security Services (NSS)
     217# and Netscape Portable Runtime (NSPR) libraries. Uncomment both
     218# lines to enable support for system-installed NSS/NSPR.
     219#ac_add_options --with-system-nss
     220#ac_add_options --with-system-nspr
     221
    195222# This option identifies the default binary directory of the Firefox
    196223# installation and is used to locate Firefox's installed files. This
     
    201228EOF</userinput></screen>
    202229
     230    <para>If you have system-installed Network Security Services (NSS) and
     231    Netscape Portable Runtime (NSPR) libraries and you uncommented the
     232    appropriate lines in the <filename>.mozconfig</filename> file to utilize
     233    them, apply the following patch:</para>
     234
     235<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-system_nss-1.patch</userinput></screen>
     236
    203237    <para>Compile <application>Firefox</application> by issuing the
    204238    following commands:</para>
     
    219253    /usr/lib/firefox-&firefox-version;/chrome/icons/default &amp;&amp;
    220254
    221 install -v -m755 -d /usr/include/firefox-&firefox-version;/nss &amp;&amp;
    222 cp -v -Lf ../firefox-build/dist/{private,public}/nss/*.h \
    223     /usr/include/firefox-&firefox-version;/nss &amp;&amp;
    224 
    225255chown -v -R root:root \
    226256    /usr/lib/firefox-&firefox-version;/extensions/inspector@mozilla.org/*</userinput></screen>
     
    232262<screen role="root"><userinput>install -v -m644 ../firefox-build/dist/public/ldap-private/* \
    233263    /usr/include/firefox-&firefox-version;/ldap</userinput></screen>
     264
     265    <para>If you built <application>Firefox</application> utilizing
     266    system-installed NSS and NSPR libraries, the
     267    <filename>firefox-ns*.pc</filename> <application>pkgconfig</application>
     268    files need to be modified. Issue the following command as the
     269    <systemitem class="username">root</systemitem> user:</para>
     270
     271<screen role="root"><userinput>sed -i 's|/firefox-1.5||' /usr/lib/pkgconfig/firefox-ns*.pc</userinput></screen>
     272
     273    <para>If you did <emphasis role="strong">NOT</emphasis> build
     274    <application>Firefox</application> utilizing system-installed NSS and
     275    NSPR libraries, issue the following commands as the
     276    <systemitem class="username">root</systemitem> user to install the NSS
     277    interface headers:</para>
     278
     279<screen role="root"><userinput>install -v -m755 -d /usr/include/firefox-&firefox-version;/nss &amp;&amp;
     280cp -v -Lf ../firefox-build/dist/{private,public}/nss/*.h \
     281    /usr/include/firefox-&firefox-version;/nss</userinput></screen>
    234282
    235283    <!-- This appears to not be required any longer. The regchrome program
     
    271319    <application>Firefox</application> windows are minimized.</para>
    272320
    273     <para><command>install -v -m755 -d /usr/include/firefox-&firefox-version;/nss</command>
    274     and <command>cp -v -Lf ../firefox-build/dist/{private,public}/nss/*.h ...</command>:
    275     These commands are used to install the Mozilla Network Security Services
    276     (NSS) interface headers to a system-wide location.</para>
    277 
    278321    <para><command>chown -v -R root:root ...</command>: This command changes
    279322    the ownership of some installed files to more appropriate user:group
     
    291334    <filename class="directory">/usr/bin</filename> directory.</para>
    292335
     336    <para>If your Window or Desktop Manager does not allow you to configure
     337    a default mail client, you can add a configuration paramater to
     338    <application>Firefox</application> so that an email client will start
     339    when you click on a <systemitem role='url'>mailto:</systemitem> URL.
     340    There are two parameters you need to check. The procedure to check or
     341    modify any of the configuration parameters is quite simple and the
     342    instructions here can be used to view or modify any of the
     343    parameters.</para>
     344
     345    <para>First, open the configuration dialog by entering
     346    <systemitem role='url'>about:config</systemitem> in the address bar. This
     347    will display a list of the configuration preferences and information
     348    related to each one. You can use the <quote>Filter:</quote> bar to enter
     349    search criteria and narrow down the listed items. Changing a preference
     350    can be done in two methods. One, if the preference has a boolean value
     351    (True/False), simply double-click on the preference to toggle the value
     352    and two, for other preferences simply right-click on the desired line,
     353    choose <quote>Modify</quote> from the menu and change the value. Creating
     354    new preference items is accomplished in the same way, except choose
     355    <quote>New</quote> from the menu and provide the desired data into the
     356    fields when prompted.</para>
     357
     358    <para>The two configuration preference items you need to check so that
     359    <application>Firefox</application> uses a specified default mail client
     360    are the <parameter>network.protocol-handler.external.mailto</parameter>
     361    which should be set to <option>True</option> and the
     362    <parameter>network.protocol-handler.app.mailto</parameter> which should
     363    be set to the path of the desired mail client, e.g.,
     364    <option>/usr/bin/thunderbird</option>.</para>
     365
     366    <tip>
     367      <para>There is a multitude of configuration parameters you can tweak to
     368      customize <application>Firefox</application>. A very extensive and
     369      up-to-date list of these parameters can be found at <ulink
     370      url="http://preferential.mozdev.org/preferences.html"/>.</para>
     371    </tip>
     372
    293373    <para>Many applications look for <command>netscape</command> when they
    294     need to open a browser. You may make the following symlink for convenience
    295     (as the <systemitem class="username">root</systemitem> user).</para>
     374    need to open a browser. You may wish to make the following symlink for
     375    convenience (as the <systemitem class="username">root</systemitem>
     376    user).</para>
    296377
    297378<screen role="root"><userinput>ln -v -sf firefox /usr/bin/netscape</userinput></screen>
     
    299380    <para>For installing various <application>Firefox</application> plugins,
    300381    refer to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's
    301     PluginDoc Project</ulink>. If you have <xref linkend="jdk"/> already
     382    PluginDoc Project</ulink>. If you have the <xref linkend="jdk"/> already
    302383    installed, create the following link as the
    303384    <systemitem class="username">root</systemitem> user to utilize the installed
     
    312393    plugin directory
    313394    <filename class='directory'>/usr/lib/firefox-&firefox-version;/plugins</filename>
    314     to the files in the default plugin directory. Alternatively, you can move
    315     or copy the files in the default plugin directory to the
     395    to the files in the default plugin directory (you should link to the actual
     396    files and not other links). Alternatively, you can move or copy the files
     397    in the default plugin directory to the
    316398    <application>Firefox</application> plugin directory. An example of creating
    317399    a symbolic link is shown below. Create the links as the
Note: See TracChangeset for help on using the changeset viewer.