mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 06:27:16 +08:00
firefox-11.0
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9694 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
dfdc10ba1c
commit
c1ae13c63c
@ -3,13 +3,13 @@ $LastChangedBy$
|
||||
$Date$
|
||||
-->
|
||||
|
||||
<!ENTITY day "13"> <!-- Always 2 digits -->
|
||||
<!ENTITY day "14"> <!-- Always 2 digits -->
|
||||
<!ENTITY month "03"> <!-- Always 2 digits -->
|
||||
<!ENTITY year "2012">
|
||||
<!ENTITY copyrightdate "2001-&year;">
|
||||
<!ENTITY copyholder "The BLFS Development Team">
|
||||
<!ENTITY version "&year;-&month;-&day;">
|
||||
<!ENTITY releasedate "March 13th, &year;">
|
||||
<!ENTITY releasedate "March 14th, &year;">
|
||||
<!-- <!ENTITY releasedate "November &day;st, &year;"> -->
|
||||
<!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
|
||||
<!ENTITY blfs-version "svn"> <!-- svn|[release #] -->
|
||||
@ -620,7 +620,7 @@ $Date$
|
||||
<!ENTITY freeglut-version "2.8.0">
|
||||
<!ENTITY goffice-version "0.8.17">
|
||||
<!ENTITY mesalib-version "7.9">
|
||||
<!ENTITY xulrunner-version "10.0.2">
|
||||
<!ENTITY xulrunner-version "11.0">
|
||||
<!ENTITY webkitgtk-version "1.6.1">
|
||||
<!ENTITY libsexy-version "0.1.11">
|
||||
<!ENTITY libnotify-version "0.7.4">
|
||||
@ -893,7 +893,7 @@ program you invoke. Development restarted Feb 12, so commented until a new rele
|
||||
<!-- Chapter 37 -->
|
||||
<!ENTITY seamonkey-version "2.7.2">
|
||||
<!-- Don't forget xulrunner -->
|
||||
<!ENTITY firefox-version "10.0.2">
|
||||
<!ENTITY firefox-version "11.0">
|
||||
|
||||
<!-- Obsolete
|
||||
<!ENTITY dillo-version "0.8.5">
|
||||
|
@ -41,6 +41,15 @@
|
||||
</listitem>
|
||||
|
||||
-->
|
||||
<listitem>
|
||||
<para>March 13th, 2012</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[abenton] - Firefox/Xulrunner 11.0.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>March 13th, 2012</para>
|
||||
<itemizedlist>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<!ENTITY xulrunner-download-ftp
|
||||
"ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
||||
<!-- md5sum and size should match firefox, but the buildsize and time will differ -->
|
||||
<!ENTITY xulrunner-md5sum "5ce038d591964f72c534fa33b75a62f5">
|
||||
<!ENTITY xulrunner-size "72 MB">
|
||||
<!ENTITY xulrunner-md5sum "4b07acf47857aff72776d805409cdd1b">
|
||||
<!ENTITY xulrunner-size "75 MB">
|
||||
<!ENTITY xulrunner-buildsize "2.6 GB (440 MB installed)">
|
||||
<!ENTITY xulrunner-time "22 SBU">
|
||||
]>
|
||||
@ -32,84 +32,112 @@
|
||||
<sect2 role="package">
|
||||
<title>Introduction to Xulrunner</title>
|
||||
|
||||
<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 files so that applications such as
|
||||
<application>Yelp</application> can find and use it. However, be aware that
|
||||
Gnome applications are transitioning to <application>Webkit</application>
|
||||
instead of gecko.</para>
|
||||
<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 files so that other applications
|
||||
can find and use it.
|
||||
</para>
|
||||
|
||||
&lfs71_checked;
|
||||
|
||||
<bridgehead renderas="sect3">Package Information</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>Download (HTTP): <ulink url="&xulrunner-download-http;"/></para>
|
||||
<para>
|
||||
Download (HTTP): <ulink url="&xulrunner-download-http;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download (FTP): <ulink url="&xulrunner-download-ftp;"/></para>
|
||||
<para>
|
||||
Download (FTP): <ulink url="&xulrunner-download-ftp;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download MD5 sum: &xulrunner-md5sum;</para>
|
||||
<para>
|
||||
Download MD5 sum: &xulrunner-md5sum;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download size: &xulrunner-size;</para>
|
||||
<para>
|
||||
Download size: &xulrunner-size;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated disk space required: &xulrunner-buildsize;</para>
|
||||
<para>
|
||||
Estimated disk space required: &xulrunner-buildsize;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated build time: &xulrunner-time;</para>
|
||||
<para>
|
||||
Estimated build time: &xulrunner-time;
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<bridgehead renderas="sect3">Xulrunner Dependencies</bridgehead>
|
||||
|
||||
<bridgehead renderas="sect4">Required</bridgehead>
|
||||
<para role="required"><xref linkend="alsa-lib"/>, <xref linkend="gtk2"/>,
|
||||
<xref linkend="zip"/> and <xref linkend="unzip"/>.</para>
|
||||
<para role="required">
|
||||
<xref linkend="alsa-lib"/>,
|
||||
<xref linkend="gtk2"/>,
|
||||
<xref linkend="zip"/> and
|
||||
<xref linkend="unzip"/>.
|
||||
</para>
|
||||
|
||||
<para>Note: <application>libjpeg</application> and
|
||||
<application>libpng</application> (patched for apng support) should have
|
||||
been installed before <application>gdk-pixbuf</application> and should
|
||||
exist on your system. If for some strange reason you haven't installed
|
||||
them, you should remove the <option>--with-system-jpeg</option> and
|
||||
<option>--with-system-png</option> options from the
|
||||
<filename>mozconfig</filename> file created below.</para>
|
||||
<para>
|
||||
Note: <application>libjpeg</application> and
|
||||
<application>libpng</application> (patched for apng support) should have
|
||||
been installed before <application>gdk-pixbuf</application> and should
|
||||
exist on your system. If for some strange reason you haven't installed
|
||||
them, you should remove the <option>--with-system-jpeg</option> and
|
||||
<option>--with-system-png</option> options from the
|
||||
<filename>mozconfig</filename> file created below.
|
||||
</para>
|
||||
|
||||
<bridgehead renderas="sect4">Recommended</bridgehead>
|
||||
<para role="recommended"><xref linkend="yasm"/> or
|
||||
<xref linkend="libvpx"/>.</para>
|
||||
<para role="recommended">
|
||||
<xref linkend="yasm"/> or <xref linkend="libvpx"/>
|
||||
(to allow <application>Xulrunner</application> to play webm videos).
|
||||
</para>
|
||||
|
||||
<bridgehead renderas="sect4">Optional</bridgehead>
|
||||
<para role="optional"><xref linkend="dbus-glib"/>,
|
||||
<xref linkend="startup-notification"/>, <xref linkend="sqlite"/>,
|
||||
<ulink url="http://www.webmproject.org/code/">libvpx</ulink>,
|
||||
<ulink url="http://sourceforge.net/projects/hunspell/">Hunspell</ulink>,
|
||||
<ulink url="http://libevent.org/">Libevent</ulink>,
|
||||
<xref linkend="doxygen"/>,
|
||||
<xref linkend="gnome-vfs"/> and <xref linkend="libgnomeui"/> (for gnome
|
||||
integration), <xref linkend="libnotify"/>, <xref linkend="nspr"/>,
|
||||
<xref linkend="nss"/>, <xref linkend="unzip"/>,
|
||||
<xref linkend="wireless_tools"/>,
|
||||
<ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
|
||||
the jemalloc code) and <xref linkend="wget"/></para>
|
||||
<para role="optional">
|
||||
<xref linkend="dbus-glib"/>,
|
||||
<xref linkend="startup-notification"/>,
|
||||
<xref linkend="sqlite"/>,
|
||||
<ulink url="http://sourceforge.net/projects/hunspell/">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;/xulrunner"/></para>
|
||||
<para condition="html" role="usernotes">
|
||||
User Notes: <ulink url="&blfs-wiki;/xulrunner"/>
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 role="installation">
|
||||
<title>Installation of Xulrunner</title>
|
||||
|
||||
<para>The configuration of <application>Xulrunner</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 should review the entire file
|
||||
and comment or uncomment options as necessary.</para>
|
||||
<para>
|
||||
The configuration of <application>Xulrunner</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 should review the entire file and comment or
|
||||
uncomment options as necessary.
|
||||
</para>
|
||||
|
||||
<screen><userinput>cat > mozconfig << "EOF"
|
||||
# If you have a multicore machine you can speed up the build by running
|
||||
@ -155,17 +183,22 @@ ac_add_options --disable-updater
|
||||
ac_add_options --disable-tests
|
||||
EOF</userinput></screen>
|
||||
|
||||
<para>Install <application>Xulrunner</application> by issuing the
|
||||
following commands:</para>
|
||||
<para>
|
||||
Install <application>Xulrunner</application> by issuing the following
|
||||
commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>sed -i 's#VPX_CODEC_USE_INPUT_PARTITION#VPX_CODEC_USE_INPUT_FRAGMENTS#' configure &&
|
||||
sed -i '/Version/aRequires: nspr >= &nspr-version;' xulrunner/installer/libxul-embedding.pc.in &&
|
||||
make -f client.mk</userinput></screen>
|
||||
|
||||
<para>This package does not come with a test suite.</para>
|
||||
<para>
|
||||
This package does not come with a test suite.
|
||||
</para>
|
||||
|
||||
<para>Now, as the <systemitem class="username">root</systemitem>
|
||||
user:</para>
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>make -C xulrunner-build-dir install &&
|
||||
mkdir -p /usr/lib/mozilla &&
|
||||
@ -173,11 +206,13 @@ rm -rf /usr/lib/xulrunner-&xulrunner-version;/plugins &&
|
||||
ln -sv ../mozilla/plugins /usr/lib/xulrunner-&xulrunner-version; &&
|
||||
chown -Rv root:root /usr/{include,lib,share/idl}/xulrunner-*</userinput></screen>
|
||||
|
||||
<para>If you elected to use the included NSPR and NSS (ie, if you have
|
||||
<emphasis>not</emphasis> installed <xref linkend="nspr"/> and
|
||||
<xref linkend="nss"/>), while still the
|
||||
<systemitem class="username">root</systemitem> user, complete the
|
||||
installation with the following commands:</para>
|
||||
<para>
|
||||
If you elected to use the included NSPR and NSS (ie, if you have
|
||||
<emphasis>not</emphasis> installed <xref linkend="nspr"/> and
|
||||
<xref linkend="nss"/>), while still the
|
||||
<systemitem class="username">root</systemitem> user, complete the
|
||||
installation with the following commands:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>for DL in libnss3.so libnssutil3.so libsmime3.so \
|
||||
libssl3.so libsoftokn3.so libplds4.so libplc4.so libnspr4.so
|
||||
@ -189,42 +224,50 @@ unset DL</userinput></screen>
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para><command>sed -i 's#VPX_CODEC_USE ...</command>: This fixes
|
||||
<application>Xulrunner's</application> <command>configure</command>
|
||||
script to properly detect libvpx-v1.0.0. It is not needed if you have
|
||||
libvpx-v0.9.7 or earlier installed or if you've not installed
|
||||
<xref linkend="libvpx"/>.</para>
|
||||
<para>
|
||||
<command>sed -i 's#VPX_CODEC_USE_INPUT_PARTITION ...</command>: This fixes
|
||||
<application>Xulrunner's</application> <command>configure</command>
|
||||
script to properly detect <xref linkend="libvpx"/>. It is not needed if
|
||||
you have libvpx-v0.9.7 or earlier installed or if you've not installed
|
||||
<application>Libvpx</application>.
|
||||
</para>
|
||||
|
||||
<para><command>sed ... Requires: nspr</command>: If you try to build
|
||||
<application>Yelp</application> without this, the
|
||||
prtypes header from NSPR will not be found. It is arguable whose error this
|
||||
is (the code presumably works on earlier geckos), but this fix is unlikely
|
||||
to cause any damage in other packages.</para>
|
||||
<para>
|
||||
<command>sed ... Requires: nspr</command>: If you try to build some other
|
||||
applications without this, the prtypes header from NSPR will not be found.
|
||||
</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 -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>ln -sv ../mozilla/plugins ...</command>: Some packages will
|
||||
install browser plugins into
|
||||
<filename class="directory">/usr/lib/mozilla/plugins</filename>.
|
||||
Creating this symlink <application>Xulrunner</application> keeps additional
|
||||
plugins in a common directory.</para>
|
||||
<para>
|
||||
<command>ln -sv ../mozilla/plugins ...</command>: Some packages will
|
||||
install browser plugins into
|
||||
<filename class="directory">/usr/lib/mozilla/plugins</filename>.
|
||||
Creating this symlink <application>Xulrunner</application> keeps
|
||||
additional plugins in a common directory.
|
||||
</para>
|
||||
|
||||
<para><command>for DL in ...</command>: The NSPR and NSS libraries shipped
|
||||
with this package are installed into
|
||||
<filename
|
||||
class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
|
||||
which means they will not be found at runtime. By using symbolic links
|
||||
from <filename class="directory">/usr/lib</filename> the libraries will be
|
||||
found and the links can be easily changed to point to a newer version
|
||||
during an upgrade.</para>
|
||||
<para>
|
||||
<command>for DL in ...</command>: The NSPR and NSS libraries shipped
|
||||
with this package are installed into
|
||||
<filename class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
|
||||
which means they will not be found at runtime. By using symbolic links
|
||||
from <filename class="directory">/usr/lib</filename> the libraries will be
|
||||
found and the links can be easily changed to point to a newer version
|
||||
during an upgrade.
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<para>When you upgrade Xulrunner, remember to update the symlinks.</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
When you upgrade Xulrunner, remember to update the symlinks.
|
||||
</para>
|
||||
</note>
|
||||
</sect2>
|
||||
|
||||
<sect2 role="content">
|
||||
@ -255,8 +298,9 @@ unset DL</userinput></screen>
|
||||
<varlistentry id="xulrunner-prog">
|
||||
<term><command>xulrunner</command></term>
|
||||
<listitem>
|
||||
<para>is a shell script, useful for identifying the version
|
||||
installed.</para>
|
||||
<para>
|
||||
is a shell script, useful for identifying the version installed.
|
||||
</para>
|
||||
<indexterm zone="xulrunner xulrunner-prog">
|
||||
<primary sortas="b-xulrunner">xulrunner</primary>
|
||||
</indexterm>
|
||||
|
@ -8,8 +8,8 @@
|
||||
"http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
||||
<!ENTITY firefox-download-ftp
|
||||
"ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
||||
<!ENTITY firefox-md5sum "5ce038d591964f72c534fa33b75a62f5">
|
||||
<!ENTITY firefox-size "72 MB">
|
||||
<!ENTITY firefox-md5sum "4b07acf47857aff72776d805409cdd1b">
|
||||
<!ENTITY firefox-size "75 MB">
|
||||
<!ENTITY firefox-buildsize "3 GB (33 MB installed)">
|
||||
<!ENTITY firefox-time "24 SBU (or 0.3 SBU if you're building against
|
||||
an installed Xulrunner)">
|
||||
@ -32,81 +32,113 @@
|
||||
<sect2 role="package">
|
||||
<title>Introduction to Firefox</title>
|
||||
|
||||
<para><application>Firefox</application> is a stand-alone browser
|
||||
based on the <application>Mozilla</application> codebase.</para>
|
||||
<para>
|
||||
<application>Firefox</application> is a stand-alone browser based on the
|
||||
<application>Mozilla</application> codebase.
|
||||
</para>
|
||||
|
||||
&lfs71_checked;
|
||||
|
||||
<bridgehead renderas="sect3">Package Information</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
|
||||
<para>
|
||||
Download (HTTP): <ulink url="&firefox-download-http;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
|
||||
<para>
|
||||
Download (FTP): <ulink url="&firefox-download-ftp;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download MD5 sum: &firefox-md5sum;</para>
|
||||
<para>
|
||||
Download MD5 sum: &firefox-md5sum;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download size: &firefox-size;</para>
|
||||
<para>
|
||||
Download size: &firefox-size;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated disk space required: &firefox-buildsize;</para>
|
||||
<para>
|
||||
Estimated disk space required: &firefox-buildsize;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated build time: &firefox-time;</para>
|
||||
<para>
|
||||
Estimated build time: &firefox-time;
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
||||
|
||||
<bridgehead renderas="sect4">Required</bridgehead>
|
||||
<para role="required"><xref linkend="alsa-lib"/>, <xref linkend="gtk2"/>,
|
||||
<xref linkend="zip"/> and <xref linkend="unzip"/>.</para>
|
||||
<para role="required">
|
||||
<xref linkend="alsa-lib"/>,
|
||||
<xref linkend="gtk2"/>,
|
||||
<xref linkend="zip"/> and
|
||||
<xref linkend="unzip"/>.
|
||||
</para>
|
||||
|
||||
<para>Note: <application>libjpeg</application> and
|
||||
<application>libpng</application> (patched for apng support) should have
|
||||
been installed before <application>gdk-pixbuf</application> and should
|
||||
exist on your system. If for some strange reason you haven't installed
|
||||
them, you should remove the <option>--with-system-jpeg</option> and
|
||||
<option>--with-system-png</option> options from the
|
||||
<filename>mozconfig</filename> file created below.</para>
|
||||
<para>
|
||||
Note: <application>libjpeg</application> and
|
||||
<application>libpng</application> (patched for apng support) should have
|
||||
been installed before <application>gdk-pixbuf</application> and should
|
||||
exist on your system. If for some strange reason you haven't installed
|
||||
them, you should remove the <option>--with-system-jpeg</option> and
|
||||
<option>--with-system-png</option> options from the
|
||||
<filename>mozconfig</filename> file created below.
|
||||
</para>
|
||||
|
||||
<bridgehead renderas="sect4">Recommended</bridgehead>
|
||||
<para role="recommended"><xref linkend="yasm"/> or
|
||||
<xref linkend="libvpx"/> (to allow <application>Firefox</application> to
|
||||
play webm videos).</para>
|
||||
<para role="recommended">
|
||||
<xref linkend="yasm"/> or <xref linkend="libvpx"/>
|
||||
(to allow <application>Firefox</application> to play webm videos).
|
||||
</para>
|
||||
|
||||
<bridgehead renderas="sect4">Optional</bridgehead>
|
||||
<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 gnome integration),
|
||||
<xref linkend="libnotify"/>, <xref linkend="nspr"/>, <xref linkend="nss"/>,
|
||||
<xref linkend="xulrunner"/> (linking against an installed xulrunner makes
|
||||
Firefox about 32 MB smaller, which is trivial compared to the size of
|
||||
xulrunner), <xref linkend="wireless_tools"/>,
|
||||
<ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
|
||||
the jemalloc code) and <xref linkend="wget"/></para>
|
||||
<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="xulrunner"/> (linking against an installed xulrunner makes
|
||||
Firefox about 32 MB smaller, which is trivial compared to the size of
|
||||
xulrunner),
|
||||
<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>
|
||||
<para condition="html" role="usernotes">
|
||||
User Notes: <ulink url="&blfs-wiki;/firefox"/>
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 role="installation">
|
||||
<title>Installation of Firefox</title>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<screen><userinput>cat > mozconfig << "EOF"
|
||||
# If you have a multicore machine you can speed up the build by running
|
||||
@ -159,26 +191,33 @@ ac_add_options --disable-updater
|
||||
ac_add_options --disable-tests
|
||||
EOF</userinput></screen>
|
||||
|
||||
<para>Compile <application>Firefox</application> by issuing the
|
||||
following commands:</para>
|
||||
<para>
|
||||
Compile <application>Firefox</application> by issuing the following
|
||||
commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>sed -i 's#VPX_CODEC_USE_INPUT_PARTITION#VPX_CODEC_USE_INPUT_FRAGMENTS#' configure &&
|
||||
sed -i 's# ""##' browser/base/Makefile.in &&
|
||||
make -f client.mk</userinput></screen>
|
||||
|
||||
<para>If you have <emphasis>not</emphasis> linked
|
||||
<application>Firefox</application> against an installed
|
||||
<application>Xulrunner</application>:</para>
|
||||
<para>
|
||||
This package does not come with a test suite.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If you have <emphasis>not</emphasis> linked
|
||||
<application>Firefox</application> against an installed
|
||||
<application>Xulrunner</application>:
|
||||
</para>
|
||||
|
||||
<screen><userinput>make -C firefox-build-dir/browser/installer</userinput></screen>
|
||||
|
||||
<para>This package does not come with a test suite.</para>
|
||||
|
||||
<para>Now, if you have <emphasis>not</emphasis> linked
|
||||
<application>Firefox</application> against an installed
|
||||
<application>Xulrunner</application>, as the
|
||||
<systemitem class="username">root</systemitem> user, install the
|
||||
package:</para>
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user, if you
|
||||
have <emphasis>not</emphasis> linked <application>Firefox</application>
|
||||
against an installed <application>Xulrunner</application>, install the
|
||||
package:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>mkdir /usr/lib/firefox-&firefox-version; &&
|
||||
tar -xvf firefox-build-dir/dist/firefox-*.tar.bz2 -C /usr/lib/firefox-&firefox-version; --strip-components=1 &&
|
||||
@ -187,9 +226,11 @@ mkdir -p /usr/lib/mozilla/plugins &&
|
||||
ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &&
|
||||
chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
|
||||
|
||||
<para>If you <emphasis>have</emphasis> linked against an already installed
|
||||
<application>Xulrunner</application>, as the
|
||||
<systemitem class="username">root</systemitem> user:</para>
|
||||
<para>
|
||||
If you <emphasis>have</emphasis> linked against an already installed
|
||||
<application>Xulrunner</application>, as the
|
||||
<systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>make -C firefox-build-dir install &&
|
||||
rm /usr/bin/firefox &&
|
||||
@ -206,64 +247,92 @@ chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para><command>sed -i 's#VPX_CODEC_USE ...</command>: This fixes
|
||||
<application>Firefox's</application> <command>configure</command>
|
||||
script to properly detect libvpx-v1.0.0. It is not needed if you have
|
||||
libvpx-v0.9.7 or earlier installed or if you've not installed
|
||||
<xref linkend="libvpx"/>.</para>
|
||||
<para>
|
||||
<command>sed -i 's#VPX_CODEC_USE_INPUT_PARTITION ...</command>: This fixes
|
||||
<application>Firefox's</application> <command>configure</command>
|
||||
script to properly detect <xref linkend="libvpx"/>. It is not needed if
|
||||
you have libvpx-v0.9.7 or earlier installed or if you've not installed
|
||||
<application>Libvpx</application>.
|
||||
</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>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 -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.</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
|
||||
into a versioned directory. Untaring it (instead of running make install)
|
||||
prevents it installing /usr/lib/firefox-devel-&firefox-version; which
|
||||
contains about 430 MB of files. If you need any of those files,
|
||||
they're in <xref linkend="xulrunner"/></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
|
||||
into a versioned directory. Untaring it (instead of running make install)
|
||||
prevents it installing
|
||||
<filename class="directory">/usr/lib/firefox-devel-&firefox-version;</filename>
|
||||
which contains about 430 MB of files. If you need any of those files,
|
||||
they're in <xref linkend="xulrunner"/>
|
||||
</para>
|
||||
|
||||
<para><command>make -C firefox-build-dir install</command>: This runs
|
||||
<command>make install</command> in firefox-build-dir.</para>
|
||||
<para>
|
||||
<command>make -C firefox-build-dir install</command>: This runs
|
||||
<command>make install</command> in firefox-build-dir.
|
||||
</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>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 /usr/lib/mozilla/plugins exists (if you installed
|
||||
<xref linkend="librsvg"/>, it was probably already there).</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 /usr/lib/mozilla/plugins.</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>
|
||||
</sect2>
|
||||
|
||||
<sect2 role="configuration">
|
||||
<title>Configuring Firefox</title>
|
||||
|
||||
<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">http://www.youtube.com/html5</ulink>
|
||||
and click on 'Join the HTML5 Trial' (needs cookies enabled).</para>
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<screen role="root"><userinput>cat > /usr/share/applications/firefox.desktop << "EOF"
|
||||
[Desktop Entry]
|
||||
@ -290,9 +359,11 @@ ln -sv -f /usr/lib/firefox-&firefox-version;/icons/mozicon128.png /usr/share/pix
|
||||
|
||||
<seglistitem>
|
||||
<seg>firefox</seg>
|
||||
<seg>Numerous libraries, browser components, plugins, extensions, and
|
||||
helper modules installed in <filename
|
||||
class="directory">/usr/lib/firefox-&firefox-version;</filename>.</seg>
|
||||
<seg>
|
||||
Numerous libraries, browser components, plugins, extensions, and
|
||||
helper modules installed in
|
||||
<filename class="directory">/usr/lib/firefox-&firefox-version;</filename>.
|
||||
</seg>
|
||||
<seg>/usr/lib/firefox-&firefox-version;</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
@ -305,8 +376,9 @@ ln -sv -f /usr/lib/firefox-&firefox-version;/icons/mozicon128.png /usr/share/pix
|
||||
<varlistentry id="firefox-prog">
|
||||
<term><command>firefox</command></term>
|
||||
<listitem>
|
||||
<para>is a gtk2 internet browser that uses the gecko rendering
|
||||
engine.</para>
|
||||
<para>
|
||||
is a gtk2 internet browser that uses the Gecko rendering engine.
|
||||
</para>
|
||||
<indexterm zone="firefox firefox-prog">
|
||||
<primary sortas="b-firefox">firefox</primary>
|
||||
</indexterm>
|
||||
|
Loading…
Reference in New Issue
Block a user