[f939f05] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[f939f05] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[65bc0795] | 7 | <!ENTITY firefox-download-http "http://releases.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">
|
---|
[41f2e90] | 9 | <!ENTITY firefox-md5sum "b7d09b082e88a74860a51a8e04e29333">
|
---|
| 10 | <!ENTITY firefox-size "67 MB">
|
---|
[01ce75f8] | 11 | <!ENTITY firefox-buildsize "3 GB (or 495 MB if you're building against an
|
---|
| 12 | installed Xulrunner)">
|
---|
| 13 | <!ENTITY firefox-time "24 SBU (or 0.3 SBU if you're building against
|
---|
| 14 | an installed Xulrunner)">
|
---|
[f939f05] | 15 | ]>
|
---|
| 16 |
|
---|
[ffe47ca2] | 17 | <sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
|
---|
[b81991e1] | 18 | <?dbhtml filename="firefox.html" ?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>Firefox-&firefox-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="firefox">
|
---|
| 28 | <primary sortas="a-Firefox">Firefox</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to Firefox</title>
|
---|
| 33 |
|
---|
| 34 | <para><application>Firefox</application> is a stand-alone browser
|
---|
| 35 | based on the <application>Mozilla</application> codebase.</para>
|
---|
| 36 |
|
---|
[41f2e90] | 37 | &lfs70_checked;
|
---|
[76ae9a2] | 38 |
|
---|
[b81991e1] | 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum: &firefox-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download size: &firefox-size;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated disk space required: &firefox-buildsize;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated build time: &firefox-time;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | </itemizedlist>
|
---|
| 60 |
|
---|
| 61 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
| 62 |
|
---|
| 63 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[1555d3d] | 64 | <para role="required"><xref linkend="alsa-lib"/>, <xref linkend="gtk2"/>,
|
---|
| 65 | <xref linkend="libidl"/> and <xref linkend="zip"/></para>
|
---|
[b81991e1] | 66 |
|
---|
[41f2e90] | 67 | <para>Note: <application>libjpeg</application> and
|
---|
| 68 | <application>libpng</application> (patched for apng support) should have
|
---|
| 69 | been installed before <application>gdk-pixbuf</application> and should
|
---|
| 70 | exist on your system. If for some strange reason you haven't installed
|
---|
| 71 | them, you should remove the <option>--with-system-jpeg</option> and
|
---|
| 72 | <option>--with-system-png</option> options from the
|
---|
[dc8a9549] | 73 | <filename>mozconfig</filename> file created below.</para>
|
---|
[5a13c45] | 74 |
|
---|
[1555d3d] | 75 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[1c6fdeb] | 76 | <para role="recommended"><xref linkend="yasm"/> or
|
---|
[88cec02] | 77 | <xref linkend="libvpx"/> (to allow <application>Firefox</application> to
|
---|
| 78 | play webm videos).</para>
|
---|
[1555d3d] | 79 |
|
---|
[b81991e1] | 80 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[aed37975] | 81 | <para role="optional"><xref linkend="dbus-glib"/>,
|
---|
[41f2e90] | 82 | <xref linkend="startup-notification"/>, <xref linkend="sqlite"/>,
|
---|
| 83 | <ulink url="http://www.webmproject.org/code/">libvpx</ulink>,
|
---|
[dc8a9549] | 84 | <ulink url="http://sourceforge.net/projects/hunspell/">Hunspell</ulink>,
|
---|
[e144d87] | 85 | <xref linkend="doxygen"/>, <xref linkend="gnome-vfs"/> and
|
---|
| 86 | <xref linkend="libgnomeui"/> (for gnome integration),
|
---|
| 87 | <xref linkend="libnotify"/>, <xref linkend="nspr"/>, <xref linkend="nss"/>,
|
---|
| 88 | <xref linkend="xulrunner"/> (linking against an installed xulrunner makes
|
---|
| 89 | Firefox about 32 MB smaller, which is trivial compared to the size of
|
---|
| 90 | xulrunner), <xref linkend="unzip"/>, <xref linkend="wireless_tools"/>,
|
---|
[41f2e90] | 91 | <ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
|
---|
| 92 | the jemalloc code) and <xref linkend="wget"/></para>
|
---|
[b81991e1] | 93 |
|
---|
[38e4f06] | 94 | <para condition="html" role="usernotes">User Notes:
|
---|
| 95 | <ulink url="&blfs-wiki;/firefox"/></para>
|
---|
| 96 |
|
---|
[b81991e1] | 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2 role="installation">
|
---|
| 100 | <title>Installation of Firefox</title>
|
---|
| 101 |
|
---|
[5a13c45] | 102 | <para>The configuration of <application>Firefox</application> is
|
---|
[dc8a9549] | 103 | accomplished by creating a <filename>mozconfig</filename> file containing
|
---|
| 104 | the desired configuration options. A default <filename>mozconfig</filename>
|
---|
[5a13c45] | 105 | is created below. To see the entire list of available configuration options
|
---|
| 106 | (and an abbreviated description of each one), issue
|
---|
[89c9c781] | 107 | <command>./configure --help</command>. You may also wish to review the
|
---|
| 108 | entire file and uncomment any other desired options. Create the file by
|
---|
| 109 | issuing the following command:</para>
|
---|
[5a13c45] | 110 |
|
---|
[dc8a9549] | 111 | <screen><?dbfo keep-together="auto"?><userinput>cat > mozconfig << "EOF"
|
---|
[89c9c781] | 112 | # If you have a multicore machine you can speed up the build by running
|
---|
[41f2e90] | 113 | # several jobs at once, but if you have a single core, delete this line:
|
---|
| 114 | mk_add_options MOZ_MAKE_FLAGS="-j4"
|
---|
[aed37975] | 115 |
|
---|
[1555d3d] | 116 | # If you have installed Yasm delete this option:
|
---|
| 117 | ac_add_options --disable-webm
|
---|
| 118 |
|
---|
[e144d87] | 119 | # If you have installed DBus-Glib delete this option:
|
---|
[74eaf91] | 120 | ac_add_options --disable-dbus
|
---|
[aed37975] | 121 |
|
---|
[e144d87] | 122 | # If you have installed wireless-tools delete this option:
|
---|
[6d1bf0e] | 123 | ac_add_options --disable-necko-wifi
|
---|
| 124 |
|
---|
[e144d87] | 125 | # If you have installed libnotify delete this option:
|
---|
| 126 | ac_add_options --disable-libnotify
|
---|
| 127 |
|
---|
[01ce75f8] | 128 | # If you have installed nss and nspr uncomment these two lines:
|
---|
[89c9c781] | 129 | # ac_add_options --with-system-nspr
|
---|
| 130 | # ac_add_options --with-system-nss
|
---|
| 131 |
|
---|
| 132 | # If you have installed xulrunner uncomment these two lines:
|
---|
| 133 | # ac_add_options --with-system-libxul
|
---|
| 134 | # ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-&xulrunner-version;
|
---|
| 135 |
|
---|
[41f2e90] | 136 | # Uncomment these if you have installed them:
|
---|
| 137 | # ac_add_options --enable-system-sqlite
|
---|
| 138 | # ac_add_options --enable-system-lcms
|
---|
| 139 | # ac_add_options --with-system-libvpx
|
---|
| 140 | # ac_add_options --enable-startup-notification
|
---|
[dc8a9549] | 141 |
|
---|
[41f2e90] | 142 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
|
---|
[c84d97ad] | 143 | ac_add_options --enable-official-branding
|
---|
| 144 |
|
---|
| 145 | # The rest of these options have no effect if you're
|
---|
| 146 | # building against an already installed xulrunner:
|
---|
[41f2e90] | 147 | ac_add_options --enable-pthreads
|
---|
| 148 | ac_add_options --enable-system-ffi
|
---|
| 149 | ac_add_options --enable-system-jpeg
|
---|
| 150 | ac_add_options --enable-system-png
|
---|
| 151 | ac_add_options --enable-system-cairo
|
---|
| 152 | ac_add_options --enable-system-zlib
|
---|
| 153 | ac_add_options --enable-shared
|
---|
| 154 | ac_add_options --disable-static
|
---|
| 155 | ac_add_options --disable-debug
|
---|
| 156 | ac_add_options --disable-crashreporter
|
---|
[5a13c45] | 157 | ac_add_options --disable-installer
|
---|
[aed37975] | 158 | ac_add_options --disable-updater
|
---|
[89c9c781] | 159 | ac_add_options --disable-tests
|
---|
[41f2e90] | 160 | EOF</userinput></screen>
|
---|
[aed37975] | 161 |
|
---|
[5a13c45] | 162 | <para>Compile <application>Firefox</application> by issuing the
|
---|
[27706cc] | 163 | following commands:</para>
|
---|
[5a13c45] | 164 |
|
---|
[280dff9] | 165 | <screen><userinput>sed -i 's# ""##' browser/base/Makefile.in &&
|
---|
[f0545c8] | 166 | make -f client.mk</userinput></screen>
|
---|
[bccbdaea] | 167 |
|
---|
[01ce75f8] | 168 | <para>If you have <emphasis>not</emphasis> linked
|
---|
| 169 | <application>Firefox</application> against an installed
|
---|
| 170 | <application>Xulrunner</application>:</para>
|
---|
| 171 |
|
---|
| 172 | <screen><userinput>make -C firefox-build-dir/browser/installer</userinput></screen>
|
---|
| 173 |
|
---|
[b81991e1] | 174 | <para>This package does not come with a test suite.</para>
|
---|
[4a8e9f7] | 175 |
|
---|
[01ce75f8] | 176 | <para>Now, if you have <emphasis>not</emphasis> linked
|
---|
| 177 | <application>Firefox</application> against an installed
|
---|
| 178 | <application>Xulrunner</application>, as the
|
---|
| 179 | <systemitem class="username">root</systemitem> user, install the
|
---|
| 180 | package:</para>
|
---|
[5a13c45] | 181 |
|
---|
[1f23aa4f] | 182 | <screen role="root"><userinput>mkdir /usr/lib/firefox-&firefox-version; &&
|
---|
| 183 | tar -xfv firefox-build-dir/dist/firefox-*.tar.bz2 -C /usr/lib/firefox-&firefox-version; --strip-components=1 &&
|
---|
| 184 | ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin/firefox &&
|
---|
[41f2e90] | 185 | mkdir -p /usr/lib/mozilla/plugins &&
|
---|
[1f23aa4f] | 186 | ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &&
|
---|
| 187 | chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
|
---|
[01ce75f8] | 188 |
|
---|
| 189 | <para>If you have installed <application>Firefox</application> linked
|
---|
| 190 | against an already installed <application>Xulrunner</application>, as the
|
---|
| 191 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 192 |
|
---|
| 193 | <screen role="root"><userinput>make -C firefox-build-dir install &&
|
---|
| 194 | rm /usr/bin/firefox &&
|
---|
| 195 | cat > /usr/bin/firefox << "EOF" &&
|
---|
| 196 | #!/bin/bash
|
---|
| 197 | /usr/lib/xulrunner-&xulrunner-version;/xulrunner /usr/lib/firefox-&firefox-version;/application.ini "${@}"
|
---|
| 198 | EOF
|
---|
| 199 | chmod 755 /usr/bin/firefox &&
|
---|
| 200 | mkdir -p /usr/lib/mozilla/plugins &&
|
---|
| 201 | ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &&
|
---|
| 202 | chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
|
---|
[2082307d] | 203 |
|
---|
[b81991e1] | 204 | </sect2>
|
---|
| 205 |
|
---|
[361df3e] | 206 | <sect2 role="commands">
|
---|
| 207 | <title>Command Explanations</title>
|
---|
| 208 |
|
---|
[280dff9] | 209 | <para><command>sed -i 's# ""##' browser/base/Makefile.in</command>: This
|
---|
[f0545c8] | 210 | removes an unprintable control character from the title bar.</para>
|
---|
| 211 |
|
---|
[d33eabc] | 212 | <para><command>make -f client.mk ...</command>: Mozilla products are
|
---|
| 213 | packaged to allow the use of a configuration file which can be used to
|
---|
| 214 | pass the configuration settings to the <command>configure</command>
|
---|
| 215 | command. <command>make</command> uses the <filename>client.mk</filename>
|
---|
[41f2e90] | 216 | file to get initial configuration and setup parameters.</para>
|
---|
[361df3e] | 217 |
|
---|
[89c9c781] | 218 | <para><command>make -C firefox-build-dir/browser/installer</command>:
|
---|
| 219 | this creates a <application>Firefox</application> tarball.</para>
|
---|
| 220 |
|
---|
| 221 | <para><command>tar -xfv firefox-build-dir/dist ...</command>: This untars
|
---|
[1f23aa4f] | 222 | <application>Firefox</application> in /usr/lib. The
|
---|
| 223 | <option>--strip-components=1</option> option removes the leading
|
---|
| 224 | 'firefox' directory from the filenames, allowing us to untar it
|
---|
| 225 | into a versioned directory. Untaring it (instead of running make install)
|
---|
| 226 | prevents it installing /usr/lib/firefox-devel-&firefox-version; which
|
---|
| 227 | contains about 430 MB of files. If you need any of those files, they're in
|
---|
[01ce75f8] | 228 | <xref linkend="xulrunner"/></para>
|
---|
| 229 |
|
---|
| 230 | <para><command>make -C firefox-build-dir install</command>: This runs
|
---|
| 231 | <command>make install</command> in firefox-build-dir.</para>
|
---|
[89c9c781] | 232 |
|
---|
| 233 | <para><command>ln -sfv ... /usr/bin/firefox</command>: this puts a symbolic
|
---|
| 234 | link to the <command>firefox</command> executable in your ${PATH}.</para>
|
---|
[41f2e90] | 235 |
|
---|
| 236 | <para><command>mkdir -p /usr/lib/mozilla/plugins</command>: this checks
|
---|
| 237 | that /usr/lib/mozilla/plugins exists (if you installed
|
---|
| 238 | <xref linkend="librsvg"/>, it was probably already there).</para>
|
---|
[361df3e] | 239 |
|
---|
[41f2e90] | 240 | <para><command>ln -sv ... /usr/lib/firefox-&firefox-version;</command>:
|
---|
| 241 | this makes a symbolic link to /usr/lib/mozilla/plugins.</para>
|
---|
[a7d71e2] | 242 |
|
---|
[b81991e1] | 243 | </sect2>
|
---|
| 244 |
|
---|
[88cec02] | 245 | <sect2 role="configuration">
|
---|
| 246 | <title>Configuring Firefox</title>
|
---|
| 247 |
|
---|
| 248 | <para>If you deleted the <option>--disable-webm</option> option from your
|
---|
| 249 | <filename>mozconfig</filename>, your <application>Firefox</application>
|
---|
| 250 | can play most YouTube videos without the need for the flash plugin. To
|
---|
| 251 | enable this, go to <ulink
|
---|
| 252 | url="http://www.youtube.com/html5">http://www.youtube.com/html5</ulink>
|
---|
| 253 | and click on 'Join the HTML5 Trial' (needs cookies
|
---|
| 254 | enabled).</para>
|
---|
| 255 |
|
---|
| 256 | </sect2>
|
---|
| 257 |
|
---|
[b81991e1] | 258 | <sect2 role="content">
|
---|
| 259 | <title>Contents</title>
|
---|
| 260 |
|
---|
| 261 | <segmentedlist>
|
---|
| 262 | <segtitle>Installed Programs</segtitle>
|
---|
| 263 | <segtitle>Installed Libraries</segtitle>
|
---|
| 264 | <segtitle>Installed Directories</segtitle>
|
---|
| 265 |
|
---|
| 266 | <seglistitem>
|
---|
[dc8a9549] | 267 | <seg>firefox</seg>
|
---|
[b81991e1] | 268 | <seg>Numerous libraries, browser components, plugins, extensions, and
|
---|
| 269 | helper modules installed in <filename
|
---|
[1f23aa4f] | 270 | class='directory'>/usr/lib/firefox-&firefox-version;</filename>.</seg>
|
---|
| 271 | <seg>/usr/lib/firefox-&firefox-version;</seg>
|
---|
[b81991e1] | 272 | </seglistitem>
|
---|
| 273 | </segmentedlist>
|
---|
| 274 |
|
---|
| 275 | <variablelist>
|
---|
| 276 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 277 | <?dbfo list-presentation="list"?>
|
---|
| 278 | <?dbhtml list-presentation="table"?>
|
---|
| 279 |
|
---|
| 280 | <varlistentry id="firefox-prog">
|
---|
| 281 | <term><command>firefox</command></term>
|
---|
| 282 | <listitem>
|
---|
[41f2e90] | 283 | <para>is a gtk2 internet browser that uses the gecko rendering
|
---|
| 284 | engine.</para>
|
---|
[b81991e1] | 285 | <indexterm zone="firefox firefox-prog">
|
---|
| 286 | <primary sortas="b-firefox">firefox</primary>
|
---|
| 287 | </indexterm>
|
---|
| 288 | </listitem>
|
---|
| 289 | </varlistentry>
|
---|
| 290 |
|
---|
| 291 | </variablelist>
|
---|
| 292 |
|
---|
| 293 | </sect2>
|
---|
[4d37129] | 294 |
|
---|
| 295 | </sect1>
|
---|