Changeset 5a13c45


Ignore:
Timestamp:
12/24/2005 05:34:04 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:
4dffff6
Parents:
b2febe4e
Message:

Updated to Firefox-1.5 and modified the method used to build the package

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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    rb2febe4e r5a13c45  
    1 <!ENTITY day          "23">
     1<!ENTITY day          "24">
    22<!ENTITY month        "12">
    33<!ENTITY year         "2005">
    44<!ENTITY version      "svn-&year;&month;&day;">
    5 <!ENTITY releasedate  "December &day;st, &year;">
     5<!ENTITY releasedate  "December &day;th, &year;">
    66<!ENTITY pubdate      "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
    77<!ENTITY blfs-version "svn">                  <!-- svn|[release #] -->
     
    475475<!-- Chapter 35 -->
    476476<!ENTITY mozilla-version              "1.7.11">
    477 <!ENTITY firefox-version              "1.0.7">
     477<!ENTITY firefox-version              "1.5">
    478478<!ENTITY galeon-version               "1.3.21">
    479479<!ENTITY dillo-version                "0.8.5">
  • introduction/welcome/changelog.xml

    rb2febe4e r5a13c45  
    4141
    4242-->
    43     <listitem>
    44       <para>December 23nd, 2005</para>
     43
     44    <listitem>
     45      <para>December 24th, 2005</para>
     46      <itemizedlist>
     47        <listitem>
     48          <para>[randy] - Updated to Firefox-1.5 and modified the method used
     49          to build the package.</para>
     50        </listitem>
     51      </itemizedlist>
     52    </listitem>
     53
     54    <listitem>
     55      <para>December 23rd, 2005</para>
    4556      <itemizedlist>
    4657        <listitem>
  • xsoft/graphweb/firefox.xml

    rb2febe4e r5a13c45  
    66
    77  <!ENTITY firefox-download-http "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
    8   <!ENTITY firefox-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
    9   <!ENTITY firefox-md5sum        "5704a8c36de84b408e069afb0c5bc1df">
    10   <!ENTITY firefox-size          "32.0 MB">
    11   <!ENTITY firefox-buildsize     "545 MB">
    12   <!ENTITY firefox-time          "10.3 SBU">
     8  <!ENTITY firefox-download-ftp  "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
     9  <!ENTITY firefox-md5sum        "fa915ddcadecda30ed3e13694f26a779">
     10  <!ENTITY firefox-size          "34.4 MB">
     11  <!ENTITY firefox-buildsize     "568 MB">
     12  <!ENTITY firefox-time          "15.8 SBU">
    1313]>
    14 
    15 <!--
    16 
    17 Devs:
    18 
    19 Always check the browser/config/mozconfig file in the source tree for
    20 any changes to the options passed to configure. This file shows the
    21 default build used by Mozilla. BLFS adds to this, but the values here
    22 should be in our setup.
    23 
    24 -->
    2514
    2615<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
     
    7059    </itemizedlist>
    7160
    72     <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    73     <itemizedlist spacing="compact">
    74       <listitem>
    75         <para>Required patch: <ulink
    76         url="&patch-root;/firefox-&firefox-version;-gcc4-2.patch"/></para>
    77       </listitem>
    78     </itemizedlist>
    79 
    8061    <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
    8162
     
    8566    <xref linkend="zip"/></para>
    8667
     68    <para>Note: <application>libjpeg</application> should have been installed
     69    before <application>GTK+</application> and should exist on your system. If
     70    for some reason you haven't installed <application>libjpeg</application>,
     71    you should remove the <option>--with-system-jpeg</option> option from the
     72    <filename>.mozconfig</filename> file created below.</para>
     73
    8774    <bridgehead renderas="sect4">Optional</bridgehead>
    88     <para role="optional"><xref linkend="libjpeg"/>,
    89     <xref linkend="unzip"/>,
    90     <xref linkend="gnome-vfs"/> and
    91     <xref linkend="libgnome"/> (to build the gnomevfs extension),
    92     <xref linkend="mitkrb"/> or <xref linkend="heimdal"/>
    93     (for the GSSAPI libraries to build the negotiateauth extension),
    94     <xref linkend="doxygen"/>,
    95     <ulink url="http://xprint.mozdev.org/">Xprint</ulink>,
    96     <ulink url="http://perens.com/FreeSoftware/">Electric Fence</ulink></para>
     75    <para role="optional"><xref linkend="unzip"/> and
     76    <xref linkend="libgnomeui"/> (to build the gnomevfs extension)</para>
    9777
    9878  </sect2>
     
    10181    <title>Installation of Firefox</title>
    10282
    103     <para>The configuration of <application>Firefox</application> is very
    104     similar to <xref linkend="mozilla"/> and hence the options are not
    105     discussed. Refer to the <xref linkend="mozilla"/> instructions for
    106     explanations and additional configuration information.</para>
     83    <!-- This is now obsolete (I'm almost certain). During the next update
     84         of Firefox, please remove everything contained in this comment if
     85         there's been no mention to reactivate this. -Randy
    10786
    10887    <para><application>Firefox</application> default behavior when invoked
     
    11291
    11392<screen><userinput>sed -i 's|openURL(${_optLast}|&amp;, new-tab|' browser/app/mozilla.in</userinput></screen>
    114 
    115     <para>Compile and install <application>Firefox</application> by
    116     running the following commands:</para>
    117 
    118 <screen><userinput>export MOZILLA_OFFICIAL="1" &amp;&amp;
    119 export BUILD_OFFICIAL="1" &amp;&amp;
    120 export MOZ_PHOENIX="1" &amp;&amp;
    121 
    122 sed -i 's|    dist_bin="$moz_libdir"|\
    123 &amp;\n    run_moz="$dist_bin/run-mozilla.sh"|' browser/app/mozilla.in &amp;&amp;
    124 
    125 patch -Np1 -i ../firefox-&firefox-version;-gcc4-2.patch &amp;&amp;
    126 ./configure --prefix=/usr \
    127             --with-default-mozilla-five-home=/usr/lib/firefox-&firefox-version; \
    128             --with-user-appdir=.firefox \
    129             --with-system-zlib \
    130             --with-system-png \
    131             --enable-application=browser \
    132             --enable-default-toolkit=gtk2 \
    133             --enable-extensions=cookie,xml-rpc,xmlextras,pref,\
    134 transformiix,universalchardet,webservices,inspector,\
    135 gnomevfs,negotiateauth \
    136             --enable-crypto \
    137             --enable-xft \
    138             --enable-xinerama \
    139             --enable-optimize \
    140             --enable-reorder \
    141             --enable-strip \
    142             --enable-cpp-rtti \
    143             --enable-single-profile \
    144             --disable-freetype2 \
    145             --disable-accessibility \
    146             --disable-debug \
    147             --disable-tests \
    148             --disable-logging \
    149             --disable-pedantic \
    150             --disable-installer \
    151             --disable-mailnews \
    152             --disable-ldap \
    153             --disable-composer \
    154             --disable-profilesharing &amp;&amp;
    155 make</userinput></screen>
    156 
    157     <para>You should add the <option>--with-system-jpeg</option> switch
    158     to the <command>configure</command> script if you have
    159     <application>libjpeg</application> installed.</para>
     93    -->
     94
     95    <para>The configuration of <application>Firefox</application> is
     96    accomplished by creating a <filename>.mozconfig</filename> file containing
     97    the desired configuration options. A default <filename>.mozconfig</filename>
     98    is created below. To see the entire list of available configuration options
     99    (and an abbreviated description of each one), issue
     100    <command>./configure --help</command>. If you are going to build the
     101    <application>OpenOffice</application> package and you want to use this
     102    <application>Firefox</application> installation as the default
     103    <application>Mozilla</application> source, ensure you uncomment the
     104    <option>--enable-ldap</option> option from the default file created below.
     105    You may also wish to review the entire file and uncomment any other desired
     106    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
     108    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
     111    <filename>.mozconfig</filename>). Create the file by issuing the following
     112    command:</para>
     113
     114<screen><userinput>cat &gt; .mozconfig &lt;&lt; "EOF"
     115<literal># This file contains the options used in the Firefox build. You may
     116# need to specify additional options for your specific build needs.
     117# Use the information provided by running './configure --help' to
     118# help you determine if you need to add any additional options.
     119# Some additional options can be added by uncommenting the examples
     120# in this file or adding options by inserting a line containing
     121# 'ac_add_options --some-option-you-need'.
     122
     123
     124# Use the default settings specified in the source tree
     125. $topsrcdir/browser/config/mozconfig
     126
     127# Create an object directory and specify to build the package in that
     128# directory. If desired, modify the location of the object directory
     129# to a directory inside the source tree by removing '../' from the
     130# line below.
     131mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../firefox-build
     132
     133# Specify the installation prefix. If you would prefer Firefox
     134# installed in a different prefix, modify the line below to fit
     135# your needs. You'll also need to modify some of the instructions in
     136# the BLFS book to point to your desired prefix.
     137ac_add_options --prefix=/usr
     138
     139# These options are used so that the Firefox binaries are linked to
     140# the system-installed copies of the specified libraries instead of
     141# the source tree code which may not be the most recent versions.
     142ac_add_options --with-system-zlib
     143ac_add_options --with-system-png
     144ac_add_options --with-system-jpeg
     145ac_add_options --enable-system-cairo
     146
     147# This option causes the installed binaries to have the official
     148# Firefox name embedded in them. Due to license restrictions, you
     149# may not distribute binaries created using this option.
     150ac_add_options --enable-official-branding
     151
     152# This option specifies to include support for rendering the HTML
     153# &lt;canvas&gt;&lt;/canvas&gt; tag in the Firefox browser.
     154ac_add_options --enable-canvas
     155
     156# This option is used so that the debugging symbols are removed from
     157# the installed binaries during the installation process. Comment out
     158# this option if you may have a need to retain the debugging symbols
     159# in the installed binaries. Note that this can substantially
     160# increase the size of the installed binaries.
     161ac_add_options --enable-strip
     162
     163# This option is added so that test libraries and programs are not
     164# built. These would only be required for debugging purposes.
     165ac_add_options --disable-tests
     166
     167# This option is added so that the Mozilla Installer program is not
     168# built or installed. The program is not required for a BLFS
     169# installation of Firefox.
     170ac_add_options --disable-installer
     171
     172# This option is used to disable the a11y support in the Firefox
     173# binaries. Comment out this option if you require a11y support.
     174ac_add_options --disable-accessibility
     175
     176# This option is used to enable source tree included LDAP support in
     177# the Firefox binaries.
     178###################################################################
     179#
     180# NOTE: You must uncomment this option if there is any chance of
     181# compiling the OpenOffice package from source code using this copy
     182# of Firefox for your Mozilla support.
     183#
     184###################################################################
     185#ac_add_options --enable-ldap
     186
     187# This option is used to enable support for rendering SVG files in the
     188# Firefox browser. Uncomment the line below to enable the option.
     189#ac_add_options --enable-svg
     190
     191# Uncomment this option if you desire support for dual-monitor
     192# display of Firefox using the X-Window Xinerama libraries.
     193#ac_add_options --enable-xinerama
     194
     195# This option identifies the default binary directory of the Firefox
     196# installation and is used to locate Firefox's installed files. This
     197# option is not required for end-user browsing, and is only used for
     198# development purposes.
     199#ac_add_options --with-default-mozilla-five-home=/usr/lib/firefox-&firefox-version;</literal>
     200
     201EOF</userinput></screen>
     202
     203    <para>Compile <application>Firefox</application> by issuing the
     204    following command:</para>
     205
     206<screen><userinput>make -f client.mk build</userinput></screen>
    160207
    161208    <para>This package does not come with a test suite.</para>
    162209
    163     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
    164 
    165 <screen role="root"><userinput>make install &amp;&amp;
     210    <para>Now, as the <systemitem class="username">root</systemitem> user,
     211    install the package:</para>
     212
     213<screen role="root"><userinput>make -f client.mk install &amp;&amp;
     214
     215install -v -m755 -d /usr/lib/firefox-&firefox-version;/chrome/icons/default &amp;&amp;
     216ln -v -s ../../../icons/default.xpm \
     217    /usr/lib/firefox-&firefox-version;/chrome/icons/default &amp;&amp;
     218
    166219install -v -m755 -d /usr/include/firefox-&firefox-version;/nss &amp;&amp;
    167 cp -v -Lf dist/private/nss/*.h dist/public/nss/*.h \
    168     /usr/include/firefox-&firefox-version;/nss</userinput></screen>
     220cp -v -Lf ../firefox-build/dist/{private,public}/nss/*.h \
     221    /usr/include/firefox-&firefox-version;/nss &amp;&amp;
     222
     223chown -v -R root:root \
     224    /usr/lib/firefox-&firefox-version;/extensions/inspector@mozilla.org/*</userinput></screen>
     225
     226    <para>If you enabled LDAP support in the <application>Firefox</application>
     227    build, install some additional interface headers as the
     228    <systemitem class="username">root</systemitem> user:</para>
     229
     230<screen role="root"><userinput>install -v -m644 ../firefox-build/dist/public/ldap-private/* \
     231    /usr/include/firefox-&firefox-version;/ldap</userinput></screen>
     232
     233    <!-- This appears to not be required any longer. The regchrome program
     234         is not built any longer, and multi-user access to Firefox appears
     235         to work fine without running regxpcom and touching the files. -Randy
    169236
    170237    <para>To enable multi-user operation, execute the following as the
     
    178245touch `find . -name *.rdf`</userinput></screen>
    179246
     247    -->
     248
    180249    <note>
    181250      <para>You should run <command>/usr/bin/firefox</command> once as the
     
    185254    </note>
    186255
    187     <para>Lastly, unset the build variables from the unprivileged user's
    188     environment:</para>
    189 
    190 <screen><userinput>unset MOZILLA_OFFICIAL &amp;&amp;
    191 unset BUILD_OFFICIAL &amp;&amp;
    192 unset MOZ_PHOENIX</userinput></screen>
    193 
    194256  </sect2>
    195257
     
    197259    <title>Command Explanations</title>
    198260
    199     <para><command>sed -i '...' browser/app/mozilla.in</command>: This command
    200     fixes an issue where <application>Firefox</application> wants to call the
    201     profile manager instead of just invoking another copy of itself.</para>
     261    <para><command>install -v -m755 -d .../chrome/icons/default</command> and
     262    <command>ln -v -s ../../../icons/default.xpm ...</command>: These two
     263    commands are used to create a symlink in the required directory so that
     264    the proper icon is displayed in the taskbar and when
     265    <application>Firefox</application> windows are minimized.</para>
     266
     267    <para><command>install -v -m755 -d /usr/include/firefox-&firefox-version;/nss</command>
     268    and <command>cp -v -Lf ../firefox-build/dist/{private,public}/nss/*.h ...</command>:
     269    These commands are used to install the Mozilla Network Security Services
     270    (NSS) interface headers to a system-wide location.</para>
     271
     272    <para><command>chown -v -R root:root ...</command>: This command changes
     273    the ownership of some installed files to more appropriate user:group
     274    names.</para>
    202275
    203276  </sect2>
     
    209282    <command>firefox</command> script is in the user's path. If
    210283    <application>Firefox</application> is installed in a non-standard location,
    211     then make a symlink to the <command>firefox</command> script from
    212     <filename class="directory">/usr/bin</filename>.</para>
     284    then make a symlink to the <command>firefox</command> script in the
     285    <filename class="directory">/usr/bin</filename> directory.</para>
    213286
    214287    <para>Many applications look for <command>netscape</command> when they
     
    222295    PluginDoc Project</ulink>. If you have <xref linkend="jdk"/> already
    223296    installed, create the following link as the
    224     <systemitem class="username">root</systemitem> user to utilize the
    225     <application>JAVA</application> plugin: </para>
     297    <systemitem class="username">root</systemitem> user to utilize the installed
     298    <application>Java</application> plugin: </para>
    226299
    227300<screen role="root"><userinput>ln -v -s $JAVA_HOME/jre/plugin/i386/ns7/libjavaplugin_oji.so \
    228301    /usr/lib/firefox-&firefox-version;/plugins</userinput></screen>
     302
     303    <para>Some packages install Mozilla plugins into the default system-wide
     304    directory <filename class='directory'>/usr/lib/mozilla/plugins</filename>.
     305    If desired, issue the following commands as the
     306    <systemitem class="username">root</systemitem> user to link any plugins
     307    you may have installed to the <application>Firefox</application> plugin
     308    directory.</para>
     309
     310<screen role="root"><userinput>if [ -f /usr/lib/mozilla/plugins/* ]; then
     311  for PLUGIN_FILE in $(ls /usr/lib/mozilla/plugins/*)
     312  do
     313    ln -v -s ../../mozilla/plugins/$(basename $PLUGIN_FILE) \
     314        /usr/lib/firefox-&firefox-version;/plugins
     315  done
     316fi</userinput></screen>
    229317
    230318  </sect2>
     
    243331        helper modules installed in <filename
    244332        class='directory'>/usr/lib/firefox-&firefox-version;</filename></seg>
    245         <seg>/usr/bin/defaults, /usr/include/firefox-&firefox-version;,
     333        <seg>/usr/include/firefox-&firefox-version;,
    246334        /usr/lib/firefox-&firefox-version;, and
    247335        /usr/share/idl/firefox-&firefox-version;</seg>
     
    257345        <term><command>firefox</command></term>
    258346        <listitem>
    259           <para>is the next-generation browser from Mozilla.</para>
     347          <para>is a shell script that sets up the environment and
     348          calls the <filename>firefox-bin</filename> binary.</para>
    260349          <indexterm zone="firefox firefox-prog">
    261350            <primary sortas="b-firefox">firefox</primary>
Note: See TracChangeset for help on using the changeset viewer.