[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 |
|
---|
[44a8f24e] | 7 | <!ENTITY firefox-download-http
|
---|
| 8 | "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
| 9 | <!ENTITY firefox-download-ftp
|
---|
| 10 | "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
[6be27f3] | 11 | <!ENTITY firefox-md5sum "5ce038d591964f72c534fa33b75a62f5">
|
---|
[f0dcb37d] | 12 | <!ENTITY firefox-size "72 MB">
|
---|
[eb148eb] | 13 | <!ENTITY firefox-buildsize "3 GB (33 MB installed)">
|
---|
[d2e21cb0] | 14 | <!ENTITY firefox-time "24 SBU (or 0.3 SBU if you're building against
|
---|
[01ce75f8] | 15 | an installed Xulrunner)">
|
---|
[f939f05] | 16 | ]>
|
---|
| 17 |
|
---|
[ffe47ca2] | 18 | <sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
|
---|
[b81991e1] | 19 | <?dbhtml filename="firefox.html" ?>
|
---|
| 20 |
|
---|
| 21 | <sect1info>
|
---|
| 22 | <othername>$LastChangedBy$</othername>
|
---|
| 23 | <date>$Date$</date>
|
---|
| 24 | </sect1info>
|
---|
| 25 |
|
---|
| 26 | <title>Firefox-&firefox-version;</title>
|
---|
| 27 |
|
---|
| 28 | <indexterm zone="firefox">
|
---|
| 29 | <primary sortas="a-Firefox">Firefox</primary>
|
---|
| 30 | </indexterm>
|
---|
| 31 |
|
---|
| 32 | <sect2 role="package">
|
---|
| 33 | <title>Introduction to Firefox</title>
|
---|
| 34 |
|
---|
| 35 | <para><application>Firefox</application> is a stand-alone browser
|
---|
| 36 | based on the <application>Mozilla</application> codebase.</para>
|
---|
| 37 |
|
---|
[a66801a] | 38 | &lfs71_checked;
|
---|
[76ae9a2] | 39 |
|
---|
[b81991e1] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &firefox-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &firefox-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &firefox-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &firefox-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
| 63 |
|
---|
| 64 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[1555d3d] | 65 | <para role="required"><xref linkend="alsa-lib"/>, <xref linkend="gtk2"/>,
|
---|
[127b62c] | 66 | <xref linkend="zip"/> and <xref linkend="unzip"/>.</para>
|
---|
[b81991e1] | 67 |
|
---|
[41f2e90] | 68 | <para>Note: <application>libjpeg</application> and
|
---|
| 69 | <application>libpng</application> (patched for apng support) should have
|
---|
| 70 | been installed before <application>gdk-pixbuf</application> and should
|
---|
[d2e21cb0] | 71 | exist on your system. If for some strange reason you haven't installed
|
---|
[41f2e90] | 72 | them, you should remove the <option>--with-system-jpeg</option> and
|
---|
| 73 | <option>--with-system-png</option> options from the
|
---|
[dc8a9549] | 74 | <filename>mozconfig</filename> file created below.</para>
|
---|
[5a13c45] | 75 |
|
---|
[1555d3d] | 76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[1c6fdeb] | 77 | <para role="recommended"><xref linkend="yasm"/> or
|
---|
[88cec02] | 78 | <xref linkend="libvpx"/> (to allow <application>Firefox</application> to
|
---|
| 79 | play webm videos).</para>
|
---|
[1555d3d] | 80 |
|
---|
[b81991e1] | 81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[aed37975] | 82 | <para role="optional"><xref linkend="dbus-glib"/>,
|
---|
[41f2e90] | 83 | <xref linkend="startup-notification"/>, <xref linkend="sqlite"/>,
|
---|
[a0ace670] | 84 | <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
|
---|
[7133ec2] | 85 | <ulink url="http://libevent.org/">Libevent</ulink>,
|
---|
[e144d87] | 86 | <xref linkend="doxygen"/>, <xref linkend="gnome-vfs"/> and
|
---|
| 87 | <xref linkend="libgnomeui"/> (for gnome integration),
|
---|
| 88 | <xref linkend="libnotify"/>, <xref linkend="nspr"/>, <xref linkend="nss"/>,
|
---|
| 89 | <xref linkend="xulrunner"/> (linking against an installed xulrunner makes
|
---|
| 90 | Firefox about 32 MB smaller, which is trivial compared to the size of
|
---|
[02d3b95] | 91 | xulrunner), <xref linkend="wireless_tools"/>,
|
---|
[41f2e90] | 92 | <ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
|
---|
| 93 | the jemalloc code) and <xref linkend="wget"/></para>
|
---|
[b81991e1] | 94 |
|
---|
[38e4f06] | 95 | <para condition="html" role="usernotes">User Notes:
|
---|
| 96 | <ulink url="&blfs-wiki;/firefox"/></para>
|
---|
[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 |
|
---|
[f0dcb37d] | 111 | <screen><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 |
|
---|
[89c9c781] | 128 | # If you have installed xulrunner uncomment these two lines:
|
---|
| 129 | # ac_add_options --with-system-libxul
|
---|
| 130 | # ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-&xulrunner-version;
|
---|
| 131 |
|
---|
[5eda319] | 132 | # Uncomment these if you have installed them:
|
---|
[eb148eb] | 133 | # ac_add_options --with-system-nspr
|
---|
| 134 | # ac_add_options --with-system-nss
|
---|
[41f2e90] | 135 | # ac_add_options --enable-system-sqlite
|
---|
| 136 | # ac_add_options --with-system-libvpx
|
---|
| 137 | # ac_add_options --enable-startup-notification
|
---|
[a0ace670] | 138 | # ac_add_options --enable-system-hunspell
|
---|
[7133ec2] | 139 | # ac_add_options --with-system-libevent
|
---|
[dc8a9549] | 140 |
|
---|
[41f2e90] | 141 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
|
---|
[c84d97ad] | 142 | ac_add_options --enable-official-branding
|
---|
[a818e3c] | 143 | ac_add_options --prefix=/usr
|
---|
[c84d97ad] | 144 |
|
---|
[d2e21cb0] | 145 | # The rest of these options have no effect if you're
|
---|
[c84d97ad] | 146 | # building against an already installed xulrunner:
|
---|
[a0ace670] | 147 | ac_add_options --with-pthreads
|
---|
[41f2e90] | 148 | ac_add_options --enable-system-ffi
|
---|
[a0ace670] | 149 | ac_add_options --with-system-jpeg
|
---|
| 150 | ac_add_options --with-system-png
|
---|
[41f2e90] | 151 | ac_add_options --enable-system-cairo
|
---|
[a0ace670] | 152 | ac_add_options --with-system-zlib
|
---|
[41f2e90] | 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 |
|
---|
[b7daed2] | 165 | <screen><userinput>sed -i 's#VPX_CODEC_USE_INPUT_PARTITION#VPX_CODEC_USE_INPUT_FRAGMENTS#' configure &&
|
---|
[f0dcb37d] | 166 | sed -i 's# ""##' browser/base/Makefile.in &&
|
---|
[f0545c8] | 167 | make -f client.mk</userinput></screen>
|
---|
[bccbdaea] | 168 |
|
---|
[01ce75f8] | 169 | <para>If you have <emphasis>not</emphasis> linked
|
---|
| 170 | <application>Firefox</application> against an installed
|
---|
| 171 | <application>Xulrunner</application>:</para>
|
---|
| 172 |
|
---|
| 173 | <screen><userinput>make -C firefox-build-dir/browser/installer</userinput></screen>
|
---|
| 174 |
|
---|
[b81991e1] | 175 | <para>This package does not come with a test suite.</para>
|
---|
[4a8e9f7] | 176 |
|
---|
[01ce75f8] | 177 | <para>Now, if you have <emphasis>not</emphasis> linked
|
---|
| 178 | <application>Firefox</application> against an installed
|
---|
| 179 | <application>Xulrunner</application>, as the
|
---|
| 180 | <systemitem class="username">root</systemitem> user, install the
|
---|
| 181 | package:</para>
|
---|
[5a13c45] | 182 |
|
---|
[1f23aa4f] | 183 | <screen role="root"><userinput>mkdir /usr/lib/firefox-&firefox-version; &&
|
---|
[5c79a939] | 184 | tar -xvf firefox-build-dir/dist/firefox-*.tar.bz2 -C /usr/lib/firefox-&firefox-version; --strip-components=1 &&
|
---|
[1f23aa4f] | 185 | ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin/firefox &&
|
---|
[41f2e90] | 186 | mkdir -p /usr/lib/mozilla/plugins &&
|
---|
[1f23aa4f] | 187 | ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &&
|
---|
| 188 | chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
|
---|
[01ce75f8] | 189 |
|
---|
[eb148eb] | 190 | <para>If you <emphasis>have</emphasis> linked against an already installed
|
---|
| 191 | <application>Xulrunner</application>, as the
|
---|
[01ce75f8] | 192 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 193 |
|
---|
| 194 | <screen role="root"><userinput>make -C firefox-build-dir install &&
|
---|
| 195 | rm /usr/bin/firefox &&
|
---|
| 196 | cat > /usr/bin/firefox << "EOF" &&
|
---|
| 197 | #!/bin/bash
|
---|
| 198 | /usr/lib/xulrunner-&xulrunner-version;/xulrunner /usr/lib/firefox-&firefox-version;/application.ini "${@}"
|
---|
| 199 | EOF
|
---|
| 200 | chmod 755 /usr/bin/firefox &&
|
---|
| 201 | mkdir -p /usr/lib/mozilla/plugins &&
|
---|
| 202 | ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &&
|
---|
| 203 | chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
|
---|
[b81991e1] | 204 | </sect2>
|
---|
| 205 |
|
---|
[361df3e] | 206 | <sect2 role="commands">
|
---|
| 207 | <title>Command Explanations</title>
|
---|
| 208 |
|
---|
[f0dcb37d] | 209 | <para><command>sed -i 's#VPX_CODEC_USE ...</command>: This fixes
|
---|
[d2e21cb0] | 210 | <application>Firefox's</application> <command>configure</command>
|
---|
[f0dcb37d] | 211 | script to properly detect libvpx-v1.0.0. It is not needed if you have
|
---|
[d2e21cb0] | 212 | libvpx-v0.9.7 or earlier installed or if you've not installed
|
---|
[f0dcb37d] | 213 | <xref linkend="libvpx"/>.</para>
|
---|
| 214 |
|
---|
[280dff9] | 215 | <para><command>sed -i 's# ""##' browser/base/Makefile.in</command>: This
|
---|
[f0dcb37d] | 216 | sed removes an unprintable control character from the title bar.</para>
|
---|
[f0545c8] | 217 |
|
---|
[d33eabc] | 218 | <para><command>make -f client.mk ...</command>: Mozilla products are
|
---|
| 219 | packaged to allow the use of a configuration file which can be used to
|
---|
| 220 | pass the configuration settings to the <command>configure</command>
|
---|
| 221 | command. <command>make</command> uses the <filename>client.mk</filename>
|
---|
[41f2e90] | 222 | file to get initial configuration and setup parameters.</para>
|
---|
[361df3e] | 223 |
|
---|
[89c9c781] | 224 | <para><command>make -C firefox-build-dir/browser/installer</command>:
|
---|
| 225 | this creates a <application>Firefox</application> tarball.</para>
|
---|
| 226 |
|
---|
| 227 | <para><command>tar -xfv firefox-build-dir/dist ...</command>: This untars
|
---|
[1f23aa4f] | 228 | <application>Firefox</application> in /usr/lib. The
|
---|
| 229 | <option>--strip-components=1</option> option removes the leading
|
---|
[d2e21cb0] | 230 | 'firefox' directory from the filenames, allowing us to untar it
|
---|
[1f23aa4f] | 231 | into a versioned directory. Untaring it (instead of running make install)
|
---|
| 232 | prevents it installing /usr/lib/firefox-devel-&firefox-version; which
|
---|
[eb148eb] | 233 | contains about 430 MB of files. If you need any of those files,
|
---|
[d2e21cb0] | 234 | they're in <xref linkend="xulrunner"/></para>
|
---|
[01ce75f8] | 235 |
|
---|
| 236 | <para><command>make -C firefox-build-dir install</command>: This runs
|
---|
| 237 | <command>make install</command> in firefox-build-dir.</para>
|
---|
[89c9c781] | 238 |
|
---|
| 239 | <para><command>ln -sfv ... /usr/bin/firefox</command>: this puts a symbolic
|
---|
| 240 | link to the <command>firefox</command> executable in your ${PATH}.</para>
|
---|
[41f2e90] | 241 |
|
---|
| 242 | <para><command>mkdir -p /usr/lib/mozilla/plugins</command>: this checks
|
---|
| 243 | that /usr/lib/mozilla/plugins exists (if you installed
|
---|
| 244 | <xref linkend="librsvg"/>, it was probably already there).</para>
|
---|
[361df3e] | 245 |
|
---|
[41f2e90] | 246 | <para><command>ln -sv ... /usr/lib/firefox-&firefox-version;</command>:
|
---|
| 247 | this makes a symbolic link to /usr/lib/mozilla/plugins.</para>
|
---|
[b81991e1] | 248 | </sect2>
|
---|
| 249 |
|
---|
[88cec02] | 250 | <sect2 role="configuration">
|
---|
| 251 | <title>Configuring Firefox</title>
|
---|
| 252 |
|
---|
| 253 | <para>If you deleted the <option>--disable-webm</option> option from your
|
---|
| 254 | <filename>mozconfig</filename>, your <application>Firefox</application>
|
---|
| 255 | can play most YouTube videos without the need for the flash plugin. To
|
---|
| 256 | enable this, go to <ulink
|
---|
| 257 | url="http://www.youtube.com/html5">http://www.youtube.com/html5</ulink>
|
---|
[d2e21cb0] | 258 | and click on 'Join the HTML5 Trial' (needs cookies enabled).</para>
|
---|
[88cec02] | 259 |
|
---|
[31de6e7] | 260 | <para>If you use a desktop environment like <application>Gnome</application>
|
---|
[2fa7a3f7] | 261 | or <application>KDE</application> you may like to create a
|
---|
| 262 | <filename>firefox.desktop</filename> file so that
|
---|
| 263 | <application>Firefox</application> appears in the panel's menus. If you
|
---|
| 264 | didn't enable startup-notification in your mozconfig change the
|
---|
| 265 | StartupNotify line to false. As the
|
---|
[31de6e7] | 266 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 267 |
|
---|
| 268 | <screen role="root"><userinput>cat > /usr/share/applications/firefox.desktop << "EOF"
|
---|
| 269 | [Desktop Entry]
|
---|
| 270 | Encoding=UTF-8
|
---|
| 271 | Type=Application
|
---|
| 272 | Name=Firefox
|
---|
| 273 | Comment=Browse The Web
|
---|
| 274 | Icon=firefox
|
---|
| 275 | Exec=firefox
|
---|
[5e2fb70] | 276 | Categories=Network;GTK;Application;Browser;WebBrowser;
|
---|
[31de6e7] | 277 | StartupNotify=true
|
---|
| 278 | Terminal=false
|
---|
| 279 | EOF
|
---|
| 280 | ln -sv -f /usr/lib/firefox-&firefox-version;/icons/mozicon128.png /usr/share/pixmaps/firefox.png</userinput></screen>
|
---|
[88cec02] | 281 | </sect2>
|
---|
| 282 |
|
---|
[b81991e1] | 283 | <sect2 role="content">
|
---|
| 284 | <title>Contents</title>
|
---|
| 285 |
|
---|
| 286 | <segmentedlist>
|
---|
| 287 | <segtitle>Installed Programs</segtitle>
|
---|
| 288 | <segtitle>Installed Libraries</segtitle>
|
---|
| 289 | <segtitle>Installed Directories</segtitle>
|
---|
| 290 |
|
---|
| 291 | <seglistitem>
|
---|
[dc8a9549] | 292 | <seg>firefox</seg>
|
---|
[b81991e1] | 293 | <seg>Numerous libraries, browser components, plugins, extensions, and
|
---|
| 294 | helper modules installed in <filename
|
---|
[eb148eb] | 295 | class="directory">/usr/lib/firefox-&firefox-version;</filename>.</seg>
|
---|
[1f23aa4f] | 296 | <seg>/usr/lib/firefox-&firefox-version;</seg>
|
---|
[b81991e1] | 297 | </seglistitem>
|
---|
| 298 | </segmentedlist>
|
---|
| 299 |
|
---|
| 300 | <variablelist>
|
---|
| 301 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 302 | <?dbfo list-presentation="list"?>
|
---|
| 303 | <?dbhtml list-presentation="table"?>
|
---|
| 304 |
|
---|
| 305 | <varlistentry id="firefox-prog">
|
---|
| 306 | <term><command>firefox</command></term>
|
---|
| 307 | <listitem>
|
---|
[41f2e90] | 308 | <para>is a gtk2 internet browser that uses the gecko rendering
|
---|
| 309 | engine.</para>
|
---|
[b81991e1] | 310 | <indexterm zone="firefox firefox-prog">
|
---|
| 311 | <primary sortas="b-firefox">firefox</primary>
|
---|
| 312 | </indexterm>
|
---|
| 313 | </listitem>
|
---|
| 314 | </varlistentry>
|
---|
| 315 | </variablelist>
|
---|
| 316 | </sect2>
|
---|
[4d37129] | 317 | </sect1>
|
---|