[ac38e9dc] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY firefox-download-http
|
---|
| 8 | "&mozilla-http;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
| 9 | <!ENTITY firefox-download-ftp
|
---|
| 10 | "&mozilla-ftp;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
| 11 | <!ENTITY firefox-md5sum "60466afbc7105d29dcd18f996c9c67e0">
|
---|
| 12 | <!ENTITY firefox-size "172 MB">
|
---|
| 13 | <!ENTITY firefox-buildsize "3.6 GB (73 MB installed)">
|
---|
| 14 | <!ENTITY firefox-time "28 SBU">
|
---|
| 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
|
---|
| 18 | <?dbhtml filename="firefox.html" ?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy: krejzi $</othername>
|
---|
| 22 | <date>$Date: 2014-10-29 19:58:34 +0100 (Wed, 29 Oct 2014) $</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>
|
---|
| 35 | <application>Firefox</application> is a stand-alone browser based on the
|
---|
| 36 | <application>Mozilla</application> codebase.
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
| 39 | &lfs77_checked;
|
---|
| 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&firefox-download-http;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&firefox-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download MD5 sum: &firefox-md5sum;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Download size: &firefox-size;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated disk space required: &firefox-buildsize;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
| 70 | Estimated build time: &firefox-time;
|
---|
| 71 | </para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 78 | <para role="required">
|
---|
| 79 | <xref linkend="alsa-lib"/>,
|
---|
| 80 | <xref linkend="gtk2"/>,
|
---|
| 81 | <xref linkend="unzip"/>,
|
---|
| 82 | <xref linkend="yasm"/> and
|
---|
| 83 | <xref linkend="zip"/>
|
---|
| 84 | </para>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 87 | <para role="recommended">
|
---|
| 88 | <xref linkend="icu"/>,
|
---|
| 89 | <xref linkend="libevent"/>,
|
---|
| 90 | <xref linkend="libvpx"/>,
|
---|
| 91 | <xref linkend="nspr"/>,
|
---|
| 92 | <xref linkend="nss"/> and
|
---|
| 93 | <xref linkend="sqlite"/>
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <note>
|
---|
| 97 | <para>
|
---|
| 98 | If you don't install recommended dependencies, then internal copies of
|
---|
| 99 | those packages will be used. They might be tested to work, but they can
|
---|
| 100 | be out of date or contain security holes.
|
---|
| 101 | </para>
|
---|
| 102 | </note>
|
---|
| 103 |
|
---|
| 104 | <note>
|
---|
| 105 | <para>
|
---|
| 106 | You must have installed <application>OpenSSL</application> before
|
---|
| 107 | <application>Python 2</application>, or the build system will quickly
|
---|
| 108 | fail with output including "ImportError: cannot import name
|
---|
| 109 | HTTPSHandler". If you are in any doubt about this (e.g. upgrading from
|
---|
| 110 | an older version of SeaMonkey), check if
|
---|
| 111 | <filename>/usr/lib/python&python2-majorver;/lib-dynload/_ssl.so</filename>
|
---|
| 112 | exists. If it does not, reinstall <xref linkend="python2"/> (after
|
---|
| 113 | installing <xref linkend="openssl"/>. The latest version of any
|
---|
| 114 | <emphasis>currently maintained</emphasis> version of OpenSSL should be
|
---|
| 115 | satisfactory if already installed.
|
---|
| 116 | </para>
|
---|
| 117 | </note>
|
---|
| 118 |
|
---|
| 119 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 120 | <para role="optional">
|
---|
| 121 | <xref linkend="curl"/>,
|
---|
| 122 | <xref linkend="dbus-glib"/>,
|
---|
| 123 | <xref linkend="doxygen"/>,
|
---|
| 124 | <xref linkend="gst-plugins-base"/> (with
|
---|
| 125 | <xref linkend="gst-plugins-good"/> and
|
---|
| 126 | <xref linkend="gst-ffmpeg"/> at runtime), or
|
---|
| 127 | <xref linkend="gst10-plugins-base"/> (with
|
---|
| 128 | <xref linkend="gst10-plugins-good"/> and
|
---|
| 129 | <xref linkend="gst10-libav"/> at runtime),
|
---|
| 130 | <xref linkend="libnotify"/>,
|
---|
| 131 | <xref linkend="openjdk"/>,
|
---|
| 132 | <xref linkend="pulseaudio"/>,
|
---|
| 133 | <xref linkend="startup-notification"/>,
|
---|
| 134 | <xref linkend="wget"/>,
|
---|
| 135 | <xref linkend="wireless_tools"/>,
|
---|
| 136 | <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink> and
|
---|
| 137 | <ulink url="https://code.google.com/p/libproxy/">libproxy</ulink>
|
---|
| 138 | </para>
|
---|
| 139 |
|
---|
| 140 | <para condition="html" role="usernotes">
|
---|
| 141 | User Notes: <ulink url="&blfs-wiki;/firefox"/>
|
---|
| 142 | </para>
|
---|
| 143 | </sect2>
|
---|
| 144 |
|
---|
| 145 | <sect2 role="installation">
|
---|
| 146 | <title>Installation of Firefox</title>
|
---|
| 147 |
|
---|
| 148 | <para>
|
---|
| 149 | The configuration of <application>Firefox</application> is accomplished by
|
---|
| 150 | creating a <filename>mozconfig</filename> file containing the desired
|
---|
| 151 | configuration options. A default <filename>mozconfig</filename> is created
|
---|
| 152 | below. To see the entire list of available configuration options (and an
|
---|
| 153 | abbreviated description of each one), issue <command>./configure
|
---|
| 154 | --help</command>. You may also wish to review the entire file and
|
---|
| 155 | uncomment any other desired options.
|
---|
| 156 | Create the file by issuing the following command:
|
---|
| 157 | </para>
|
---|
| 158 |
|
---|
| 159 | <screen><userinput>cat > mozconfig << "EOF"
|
---|
| 160 | <literal># If you have a multicore machine, all cores will be used by default.
|
---|
| 161 | # If desired, you can reduce the number of cores used, e.g. to 1, by
|
---|
| 162 | # uncommenting the next line and setting a valid number of CPU cores.
|
---|
| 163 | #mk_add_options MOZ_MAKE_FLAGS="-j1"
|
---|
| 164 |
|
---|
| 165 | # If you have installed DBus-Glib comment out this line:
|
---|
| 166 | ac_add_options --disable-dbus
|
---|
| 167 |
|
---|
| 168 | # If you have installed dbus-glib, and you have installed (or will install)
|
---|
| 169 | # wireless-tools, and you wish to use geolocation web services, comment out
|
---|
| 170 | # this line
|
---|
| 171 | ac_add_options --disable-necko-wifi
|
---|
| 172 |
|
---|
| 173 | # If you have installed libnotify comment out this line:
|
---|
| 174 | ac_add_options --disable-libnotify
|
---|
| 175 |
|
---|
| 176 | # Comment out following option if you have PulseAudio installed
|
---|
| 177 | ac_add_options --disable-pulseaudio
|
---|
| 178 |
|
---|
| 179 | # GStreamer is necessary for H.264 video playback in HTML5 Video Player.
|
---|
| 180 | # To enable it, make sure you also set "media.gstreamer.enabled" to
|
---|
| 181 | # "true" in about:config.
|
---|
| 182 |
|
---|
| 183 | # If you don't have GStreamer 0.10.x installed, uncomment this line:
|
---|
| 184 | #ac_add_options --disable-gstreamer
|
---|
| 185 | # or uncomment this line if you have GStreamer 1.x.y installed:
|
---|
| 186 | #ac_add_options --enable-gstreamer=1.0
|
---|
| 187 |
|
---|
| 188 | # Uncomment these lines if you have installed optional dependencies:
|
---|
| 189 | #ac_add_options --enable-system-hunspell
|
---|
| 190 | #ac_add_options --enable-startup-notification
|
---|
| 191 |
|
---|
| 192 | # Comment out following options if you have not installed
|
---|
| 193 | # recommended dependencies:
|
---|
| 194 | ac_add_options --enable-system-sqlite
|
---|
| 195 | ac_add_options --with-system-libevent
|
---|
| 196 | ac_add_options --with-system-libvpx
|
---|
| 197 | ac_add_options --with-system-nspr
|
---|
| 198 | ac_add_options --with-system-nss
|
---|
| 199 | ac_add_options --with-system-icu
|
---|
| 200 |
|
---|
| 201 | # The BLFS editors recommend not changing anything below this line:
|
---|
| 202 | ac_add_options --prefix=/usr
|
---|
| 203 | ac_add_options --enable-application=browser
|
---|
| 204 |
|
---|
| 205 | ac_add_options --disable-crashreporter
|
---|
| 206 | ac_add_options --disable-updater
|
---|
| 207 | ac_add_options --disable-tests
|
---|
| 208 |
|
---|
| 209 | ac_add_options --enable-optimize
|
---|
| 210 | ac_add_options --enable-strip
|
---|
| 211 | ac_add_options --enable-install-strip
|
---|
| 212 |
|
---|
| 213 | ac_add_options --enable-gio
|
---|
| 214 | ac_add_options --enable-official-branding
|
---|
| 215 | ac_add_options --enable-safe-browsing
|
---|
| 216 | ac_add_options --enable-url-classifier
|
---|
| 217 |
|
---|
| 218 | ac_add_options --enable-system-cairo
|
---|
| 219 | ac_add_options --enable-system-ffi
|
---|
| 220 | ac_add_options --enable-system-pixman
|
---|
| 221 |
|
---|
| 222 | ac_add_options --with-pthreads
|
---|
| 223 |
|
---|
| 224 | ac_add_options --with-system-bz2
|
---|
| 225 | ac_add_options --with-system-jpeg
|
---|
| 226 | ac_add_options --with-system-png
|
---|
| 227 | ac_add_options --with-system-zlib
|
---|
| 228 |
|
---|
| 229 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
|
---|
| 230 | EOF</userinput></screen>
|
---|
| 231 |
|
---|
| 232 | <para>
|
---|
| 233 | First, fix building with system freetype-2.6 or later:
|
---|
| 234 | </para>
|
---|
| 235 |
|
---|
| 236 | <screen><userinput>sed -i '/^ftglyph.h/ i ftfntfmt.h' config/system-headers</userinput></screen>
|
---|
| 237 |
|
---|
| 238 | <para>
|
---|
| 239 | Compile <application>Firefox</application> by issuing the following
|
---|
| 240 | commands:
|
---|
| 241 | </para>
|
---|
| 242 |
|
---|
| 243 | <screen><userinput>make -f client.mk</userinput></screen>
|
---|
| 244 |
|
---|
| 245 | <para>
|
---|
| 246 | This package does not come with a test suite.
|
---|
| 247 | </para>
|
---|
| 248 |
|
---|
| 249 | <para>
|
---|
| 250 | Install <application>Firefox</application> by running the following
|
---|
| 251 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 252 | </para>
|
---|
| 253 |
|
---|
| 254 | <screen role="root"><userinput>make -f client.mk install INSTALL_SDK= &&
|
---|
| 255 |
|
---|
| 256 | chown -R root:root /usr/lib/firefox-&firefox-version; &&
|
---|
| 257 |
|
---|
| 258 | mkdir -pv /usr/lib/mozilla/plugins &&
|
---|
| 259 | ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userinput></screen>
|
---|
| 260 |
|
---|
| 261 | <para>
|
---|
| 262 | While still as the <systemitem class="username">root</systemitem> user,
|
---|
| 263 | install the icon files which will be used in the desktop file below:
|
---|
| 264 | </para>
|
---|
| 265 |
|
---|
| 266 | <screen role="root"><userinput>for s in 16 32 48
|
---|
| 267 | do
|
---|
| 268 | install -v -Dm644 /usr/lib/firefox-&firefox-version;/browser/chrome/icons/default/default${s}.png \
|
---|
| 269 | /usr/share/icons/hicolor/${s}x${s}/apps/firefox.png
|
---|
| 270 | done &&
|
---|
| 271 | install -v -Dm644 /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
|
---|
| 272 | /usr/share/icons/hicolor/128x128/apps/firefox.png &&
|
---|
| 273 | gtk-update-icon-cache -qf /usr/share/icons/hicolor &&
|
---|
| 274 | unset s</userinput></screen>
|
---|
| 275 |
|
---|
| 276 | </sect2>
|
---|
| 277 |
|
---|
| 278 | <sect2 role="commands">
|
---|
| 279 | <title>Command Explanations</title>
|
---|
| 280 |
|
---|
| 281 | <para>
|
---|
| 282 | <command>make -f client.mk ...</command>: Mozilla products are packaged to
|
---|
| 283 | allow the use of a configuration file which can be used to pass the
|
---|
| 284 | configuration settings to the <command>configure</command> command.
|
---|
| 285 | <command>make</command> uses the <filename>client.mk</filename> file to
|
---|
| 286 | get initial configuration and setup parameters.
|
---|
| 287 | </para>
|
---|
| 288 |
|
---|
| 289 | <para>
|
---|
| 290 | <command>ln -sfv ... /usr/lib/firefox-&firefox-version;/browser</command>:
|
---|
| 291 | This command creates a symbolic link to <filename
|
---|
| 292 | class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
|
---|
| 293 | needed, as <application>Firefox</application> checks <filename
|
---|
| 294 | class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
|
---|
| 295 | symbolic link is made to keep all the plugins installed in one folder.
|
---|
| 296 | </para>
|
---|
| 297 |
|
---|
| 298 | </sect2>
|
---|
| 299 |
|
---|
| 300 | <sect2 role="configuration">
|
---|
| 301 | <title>Configuring Firefox</title>
|
---|
| 302 |
|
---|
| 303 | <para>
|
---|
| 304 | If you use a desktop environment such as <application>GNOME</application>
|
---|
| 305 | or <application>KDE</application>, you may want to create a desktop file
|
---|
| 306 | in order to be able to launch <application>Firefox</application> from the
|
---|
| 307 | desktop menus. If you didn't enable
|
---|
| 308 | <application>Startup Notification</application> support in your mozconfig
|
---|
| 309 | then change the StartupNotify line to false. Run the following commands
|
---|
| 310 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 311 | </para>
|
---|
| 312 |
|
---|
| 313 | <screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
---|
| 314 |
|
---|
| 315 | cat > /usr/share/applications/firefox.desktop << "EOF"
|
---|
| 316 | <literal>[Desktop Entry]
|
---|
| 317 | Encoding=UTF-8
|
---|
| 318 | Name=Firefox Web Browser
|
---|
| 319 | Comment=Browse the World Wide Web
|
---|
| 320 | GenericName=Web Browser
|
---|
| 321 | Exec=firefox %u
|
---|
| 322 | Terminal=false
|
---|
| 323 | Type=Application
|
---|
| 324 | Icon=firefox
|
---|
| 325 | Categories=GNOME;GTK;Network;WebBrowser;
|
---|
| 326 | MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
|
---|
| 327 | StartupNotify=true</literal>
|
---|
| 328 | EOF</userinput></screen>
|
---|
| 329 |
|
---|
| 330 | </sect2>
|
---|
| 331 |
|
---|
| 332 | <sect2 role="content">
|
---|
| 333 | <title>Contents</title>
|
---|
| 334 |
|
---|
| 335 | <segmentedlist>
|
---|
| 336 | <segtitle>Installed Programs</segtitle>
|
---|
| 337 | <segtitle>Installed Libraries</segtitle>
|
---|
| 338 | <segtitle>Installed Directories</segtitle>
|
---|
| 339 |
|
---|
| 340 | <seglistitem>
|
---|
| 341 | <seg>
|
---|
| 342 | firefox
|
---|
| 343 | </seg>
|
---|
| 344 | <seg>
|
---|
| 345 | None
|
---|
| 346 | </seg>
|
---|
| 347 | <seg>
|
---|
| 348 | /usr/lib/firefox-&firefox-version; and
|
---|
| 349 | /usr/lib/mozilla/plugins
|
---|
| 350 | </seg>
|
---|
| 351 | </seglistitem>
|
---|
| 352 | </segmentedlist>
|
---|
| 353 |
|
---|
| 354 | <variablelist>
|
---|
| 355 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 356 | <?dbfo list-presentation="list"?>
|
---|
| 357 | <?dbhtml list-presentation="table"?>
|
---|
| 358 |
|
---|
| 359 | <varlistentry id="firefox-prog">
|
---|
| 360 | <term><command>firefox</command></term>
|
---|
| 361 | <listitem>
|
---|
| 362 | <para>
|
---|
| 363 | is a <application>GTK+ 2</application> internet browser that uses the
|
---|
| 364 | Mozilla Gecko rendering engine.
|
---|
| 365 | </para>
|
---|
| 366 | <indexterm zone="firefox firefox-prog">
|
---|
| 367 | <primary sortas="b-firefox">firefox</primary>
|
---|
| 368 | </indexterm>
|
---|
| 369 | </listitem>
|
---|
| 370 | </varlistentry>
|
---|
| 371 |
|
---|
| 372 | </variablelist>
|
---|
| 373 |
|
---|
| 374 | </sect2>
|
---|
| 375 |
|
---|
| 376 | </sect1>
|
---|