2004-06-14 04:45:42 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-14 04:45:42 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2012-04-25 01:00:11 +08:00
|
|
|
<!ENTITY firefox-download-http
|
|
|
|
"http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
2012-02-13 05:10:29 +08:00
|
|
|
<!ENTITY firefox-download-ftp
|
|
|
|
"ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
2012-04-23 02:30:57 +08:00
|
|
|
<!ENTITY firefox-md5sum "80c3e5927274de7f181fb5f931ac5fd4">
|
2012-03-14 22:46:53 +08:00
|
|
|
<!ENTITY firefox-size "75 MB">
|
2012-04-23 03:09:59 +08:00
|
|
|
<!ENTITY firefox-buildsize "2.8 GB (31 MB installed)">
|
2012-05-02 18:23:49 +08:00
|
|
|
<!ENTITY firefox-time "24 SBU">
|
2004-06-14 04:45:42 +08:00
|
|
|
]>
|
|
|
|
|
2004-07-15 19:52:34 +08:00
|
|
|
<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
|
2005-05-21 16:19:50 +08:00
|
|
|
<?dbhtml filename="firefox.html" ?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Firefox-&firefox-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="firefox">
|
|
|
|
<primary sortas="a-Firefox">Firefox</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Firefox</title>
|
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
<application>Firefox</application> is a stand-alone browser based on the
|
|
|
|
<application>Mozilla</application> codebase.
|
|
|
|
</para>
|
2005-05-21 16:19:50 +08:00
|
|
|
|
2012-03-06 22:04:03 +08:00
|
|
|
&lfs71_checked;
|
2010-08-07 06:25:46 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&firefox-download-http;"/>
|
|
|
|
</para>
|
2005-05-21 16:19:50 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&firefox-download-ftp;"/>
|
|
|
|
</para>
|
2005-05-21 16:19:50 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &firefox-md5sum;
|
|
|
|
</para>
|
2005-05-21 16:19:50 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Download size: &firefox-size;
|
|
|
|
</para>
|
2005-05-21 16:19:50 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &firefox-buildsize;
|
|
|
|
</para>
|
2005-05-21 16:19:50 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &firefox-time;
|
|
|
|
</para>
|
2005-05-21 16:19:50 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para role="required">
|
|
|
|
<xref linkend="alsa-lib"/>,
|
|
|
|
<xref linkend="gtk2"/>,
|
|
|
|
<xref linkend="zip"/> and
|
|
|
|
<xref linkend="unzip"/>.
|
|
|
|
</para>
|
|
|
|
|
2011-11-30 21:59:55 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="yasm"/> or <xref linkend="libvpx"/>
|
|
|
|
(to allow <application>Firefox</application> to play webm videos).
|
|
|
|
</para>
|
2011-11-30 21:59:55 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="dbus-glib"/>,
|
|
|
|
<xref linkend="startup-notification"/>,
|
|
|
|
<xref linkend="sqlite"/>,
|
|
|
|
<ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
|
|
|
|
<ulink url="http://libevent.org/">Libevent</ulink>,
|
|
|
|
<xref linkend="doxygen"/>,
|
|
|
|
<xref linkend="gnome-vfs"/> and
|
|
|
|
<xref linkend="libgnomeui"/> (for integration with the old version of
|
|
|
|
<application>Gnome</application>),
|
|
|
|
<xref linkend="libnotify"/>,
|
|
|
|
<xref linkend="nspr"/>, <xref linkend="nss"/>,
|
|
|
|
<xref linkend="wireless_tools"/>,
|
|
|
|
<ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
|
|
|
|
the jemalloc code) and
|
|
|
|
<xref linkend="wget"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/firefox"/>
|
|
|
|
</para>
|
2005-05-21 16:19:50 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Firefox</title>
|
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
The configuration of <application>Firefox</application> is accomplished by
|
|
|
|
creating a <filename>mozconfig</filename> file containing the desired
|
|
|
|
configuration options. A default <filename>mozconfig</filename> is created
|
|
|
|
below. To see the entire list of available configuration options (and an
|
|
|
|
abbreviated description of each one), issue <command>./configure
|
|
|
|
--help</command>. You may also wish to review the entire file and
|
|
|
|
uncomment any other desired options. Create the file by issuing the
|
|
|
|
following command:
|
|
|
|
</para>
|
2005-12-25 01:34:04 +08:00
|
|
|
|
2012-02-01 22:22:30 +08:00
|
|
|
<screen><userinput>cat > mozconfig << "EOF"
|
2011-11-29 22:51:04 +08:00
|
|
|
# If you have a multicore machine you can speed up the build by running
|
2011-11-28 05:41:28 +08:00
|
|
|
# several jobs at once, but if you have a single core, delete this line:
|
|
|
|
mk_add_options MOZ_MAKE_FLAGS="-j4"
|
2009-03-12 21:37:30 +08:00
|
|
|
|
2011-11-30 21:59:55 +08:00
|
|
|
# If you have installed Yasm delete this option:
|
|
|
|
ac_add_options --disable-webm
|
|
|
|
|
2011-11-30 18:45:20 +08:00
|
|
|
# If you have installed DBus-Glib delete this option:
|
2009-09-25 11:54:31 +08:00
|
|
|
ac_add_options --disable-dbus
|
2009-03-12 21:37:30 +08:00
|
|
|
|
2011-11-30 18:45:20 +08:00
|
|
|
# If you have installed wireless-tools delete this option:
|
2010-02-18 14:44:20 +08:00
|
|
|
ac_add_options --disable-necko-wifi
|
|
|
|
|
2011-11-30 18:45:20 +08:00
|
|
|
# If you have installed libnotify delete this option:
|
|
|
|
ac_add_options --disable-libnotify
|
|
|
|
|
2012-01-10 20:47:26 +08:00
|
|
|
# Uncomment these if you have installed them:
|
2011-11-28 05:41:28 +08:00
|
|
|
# ac_add_options --enable-startup-notification
|
2012-01-16 21:01:37 +08:00
|
|
|
# ac_add_options --enable-system-hunspell
|
2012-04-23 20:11:11 +08:00
|
|
|
# ac_add_options --enable-system-sqlite
|
2012-01-16 22:56:53 +08:00
|
|
|
# ac_add_options --with-system-libevent
|
2012-04-23 20:11:11 +08:00
|
|
|
# ac_add_options --with-system-libvpx
|
|
|
|
# ac_add_options --with-system-nspr
|
|
|
|
# ac_add_options --with-system-nss
|
2011-01-08 05:25:26 +08:00
|
|
|
|
2011-11-28 05:41:28 +08:00
|
|
|
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
|
2012-04-23 20:11:11 +08:00
|
|
|
ac_add_options --disable-crashreporter
|
|
|
|
ac_add_options --disable-debug
|
|
|
|
ac_add_options --disable-installer
|
|
|
|
ac_add_options --disable-static
|
|
|
|
ac_add_options --disable-tests
|
|
|
|
ac_add_options --disable-updater
|
2012-05-02 18:23:49 +08:00
|
|
|
ac_add_options --enable-official-branding
|
2012-04-23 20:11:11 +08:00
|
|
|
ac_add_options --enable-shared
|
|
|
|
ac_add_options --enable-system-cairo
|
2011-11-28 05:41:28 +08:00
|
|
|
ac_add_options --enable-system-ffi
|
2012-05-02 18:23:49 +08:00
|
|
|
ac_add_options --prefix=/usr
|
2012-04-23 20:11:11 +08:00
|
|
|
ac_add_options --with-pthreads
|
2012-01-16 21:01:37 +08:00
|
|
|
ac_add_options --with-system-jpeg
|
|
|
|
ac_add_options --with-system-png
|
|
|
|
ac_add_options --with-system-zlib
|
2011-11-28 05:41:28 +08:00
|
|
|
EOF</userinput></screen>
|
2009-03-12 21:37:30 +08:00
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Compile <application>Firefox</application> by issuing the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2005-12-25 01:34:04 +08:00
|
|
|
|
2012-04-23 00:13:56 +08:00
|
|
|
<screen><userinput>sed -i '/fcntl.h/a#include <unistd.h>' \
|
|
|
|
ipc/chromium/src/base/{file_util_linux,message_pump_libevent}.cc &&
|
|
|
|
sed -i '/sys\/time\.h/a#include <unistd.h>' ipc/chromium/src/base/time_posix.cc &&
|
2012-02-01 22:22:30 +08:00
|
|
|
sed -i 's# ""##' browser/base/Makefile.in &&
|
2012-05-02 18:23:49 +08:00
|
|
|
make -f client.mk &&
|
|
|
|
make -C firefox-build-dir/browser/installer</userinput></screen>
|
2005-11-30 03:07:13 +08:00
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
2011-11-30 00:24:22 +08:00
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
2012-05-02 18:23:49 +08:00
|
|
|
Now, as the <systemitem class="username">root</systemitem> user install
|
|
|
|
<application>Firefox</application>:
|
2012-03-14 22:46:53 +08:00
|
|
|
</para>
|
2005-12-25 01:34:04 +08:00
|
|
|
|
2011-12-01 06:23:49 +08:00
|
|
|
<screen role="root"><userinput>mkdir /usr/lib/firefox-&firefox-version; &&
|
2012-04-24 08:21:16 +08:00
|
|
|
tar -xvf firefox-build-dir/dist/firefox-&firefox-version;.en-US.linux-$(uname -m).tar.bz2 \
|
2012-04-23 00:13:56 +08:00
|
|
|
-C /usr/lib/firefox-&firefox-version; --strip-components=1 &&
|
2012-04-24 19:41:29 +08:00
|
|
|
ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin &&
|
2011-11-28 05:41:28 +08:00
|
|
|
mkdir -p /usr/lib/mozilla/plugins &&
|
2011-12-01 06:23:49 +08:00
|
|
|
ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &&
|
|
|
|
chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
|
2011-11-30 00:24:22 +08:00
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
2012-05-02 18:23:49 +08:00
|
|
|
The above instructions just install the parts you need to run
|
|
|
|
<application>Firefox</application>. Alternatively, if you want to install
|
|
|
|
the full <application>Firefox</application> development environment (Note,
|
|
|
|
this installs more than half a gigabyte of extra files and so is not
|
|
|
|
recommended) as the <systemitem class="username">root</systemitem> user:
|
2012-03-14 22:46:53 +08:00
|
|
|
</para>
|
2011-11-30 00:24:22 +08:00
|
|
|
|
2012-05-02 18:23:49 +08:00
|
|
|
<screen role="root"><userinput>make -C firefox-build-dir install</userinput></screen>
|
2005-05-21 16:19:50 +08:00
|
|
|
</sect2>
|
|
|
|
|
2005-08-25 10:16:32 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
2012-04-23 00:13:56 +08:00
|
|
|
<command>sed -i '/fcntl.h/a#include <unistd.h>'
|
|
|
|
ipc/chromium/src/base/{file_util_linux,message_pump_libevent}.cc
|
|
|
|
&& sed -i '/sys\/time\.h/a#include <unistd.h>'
|
|
|
|
ipc/chromium/src/base/time_posix.cc</command>: These seds fix bugs that
|
|
|
|
would otherwise break the build if you're using
|
|
|
|
<application>GCC 4.7</application>.
|
2012-03-14 22:46:53 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>sed -i 's# ""##' browser/base/Makefile.in</command>: This sed
|
|
|
|
removes an unprintable control character from the title bar.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>make -f client.mk ...</command>: Mozilla products are packaged to
|
|
|
|
allow the use of a configuration file which can be used to pass the
|
|
|
|
configuration settings to the <command>configure</command> command.
|
|
|
|
<command>make</command> uses the <filename>client.mk</filename> file to
|
|
|
|
get initial configuration and setup parameters.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>make -C firefox-build-dir/browser/installer</command>: this
|
|
|
|
creates a <application>Firefox</application> tarball similar to the ones
|
|
|
|
you can download from Mozilla.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>tar -xfv firefox-build-dir/dist ...</command>: This untars
|
|
|
|
<application>Firefox</application> in /usr/lib. The
|
|
|
|
<option>--strip-components=1</option> option removes the leading
|
|
|
|
'firefox' directory from the filenames, allowing us to untar it
|
2012-05-02 18:23:49 +08:00
|
|
|
into a versioned directory.
|
2012-03-14 22:46:53 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>ln -sfv ... /usr/bin/firefox</command>: this puts a symbolic link
|
|
|
|
to the <command>firefox</command> executable in your ${PATH}.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>mkdir -p /usr/lib/mozilla/plugins</command>: this checks
|
|
|
|
that <filename class="directory">/usr/lib/mozilla/plugins</filename>
|
|
|
|
exists.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>ln -sv ... /usr/lib/firefox-&firefox-version;</command>: this
|
|
|
|
makes a symbolic link to
|
|
|
|
<filename class="directory">/usr/lib/mozilla/plugins</filename>. It's not
|
|
|
|
really needed, <application>Firefox</application> checks
|
|
|
|
<filename class="directory">/usr/lib/mozilla/plugins</filename> by
|
|
|
|
default, we make the symbolic link to keep all the plugins installed in
|
|
|
|
one folder.
|
|
|
|
</para>
|
2012-05-02 18:23:49 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>make -C firefox-build-dir install</command>: This runs
|
|
|
|
<command>make install</command> in
|
|
|
|
<filename class="directory">firefox-build-dir</filename>.
|
|
|
|
</para>
|
2005-05-21 16:19:50 +08:00
|
|
|
</sect2>
|
|
|
|
|
2011-12-03 01:02:01 +08:00
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring Firefox</title>
|
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
If you deleted the <option>--disable-webm</option> option from your
|
|
|
|
<filename>mozconfig</filename>, your <application>Firefox</application>
|
|
|
|
can play most YouTube videos without the need for the flash plugin. To
|
|
|
|
enable this, go to <ulink url="http://www.youtube.com/html5"/> and click
|
|
|
|
on 'Join the HTML5 Trial' (needs cookies enabled).
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
If you use a desktop environment like <application>Gnome</application> or
|
|
|
|
<application>KDE</application> you may like to create a
|
|
|
|
<filename>firefox.desktop</filename> file so that
|
|
|
|
<application>Firefox</application> appears in the panel's menus. If you
|
|
|
|
didn't enable startup-notification in your mozconfig change the
|
|
|
|
StartupNotify line to false. As the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2012-01-28 21:04:00 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>cat > /usr/share/applications/firefox.desktop << "EOF"
|
|
|
|
[Desktop Entry]
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Name=Firefox
|
|
|
|
Comment=Browse The Web
|
|
|
|
Icon=firefox
|
|
|
|
Exec=firefox
|
2012-01-28 23:46:15 +08:00
|
|
|
Categories=Network;GTK;Application;Browser;WebBrowser;
|
2012-01-28 21:04:00 +08:00
|
|
|
StartupNotify=true
|
|
|
|
Terminal=false
|
|
|
|
EOF
|
|
|
|
ln -sv -f /usr/lib/firefox-&firefox-version;/icons/mozicon128.png /usr/share/pixmaps/firefox.png</userinput></screen>
|
2011-12-03 01:02:01 +08:00
|
|
|
</sect2>
|
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2011-01-08 05:25:26 +08:00
|
|
|
<seg>firefox</seg>
|
2012-03-14 22:46:53 +08:00
|
|
|
<seg>
|
|
|
|
Numerous libraries, browser components, plugins, extensions, and
|
|
|
|
helper modules installed in
|
|
|
|
<filename class="directory">/usr/lib/firefox-&firefox-version;</filename>.
|
|
|
|
</seg>
|
2011-12-01 06:23:49 +08:00
|
|
|
<seg>/usr/lib/firefox-&firefox-version;</seg>
|
2005-05-21 16:19:50 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="firefox-prog">
|
|
|
|
<term><command>firefox</command></term>
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
2012-05-02 18:23:49 +08:00
|
|
|
is a <application>Gtk 2</application> internet browser that uses the
|
|
|
|
Gecko rendering engine.
|
2012-03-14 22:46:53 +08:00
|
|
|
</para>
|
2005-05-21 16:19:50 +08:00
|
|
|
<indexterm zone="firefox firefox-prog">
|
|
|
|
<primary sortas="b-firefox">firefox</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
2004-02-23 09:29:29 +08:00
|
|
|
</sect1>
|