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