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 "&mozilla-http;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.xz">
|
---|
8 | <!ENTITY firefox-download-ftp " ">
|
---|
9 | <!ENTITY firefox-md5sum "aba4b673b10e3fdcee80f88300829613">
|
---|
10 | <!ENTITY firefox-size "180 MB">
|
---|
11 | <!ENTITY firefox-buildsize "5.7 GB (85 MB installed)">
|
---|
12 | <!ENTITY firefox-time "18 SBU (with parallelism=4 on a recent intel i7, much longer on lesser CPUs)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
|
---|
16 | <?dbhtml filename="firefox.html" ?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>Firefox-&firefox-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="firefox">
|
---|
26 | <primary sortas="a-Firefox">Firefox</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to Firefox</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | <application>Firefox</application> is a stand-alone browser based on the
|
---|
34 | <application>Mozilla</application> codebase.
|
---|
35 | </para>
|
---|
36 |
|
---|
37 | &lfs79_checked;&gcc6_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (HTTP): <ulink url="&firefox-download-http;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (FTP): <ulink url="&firefox-download-ftp;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download MD5 sum: &firefox-md5sum;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download size: &firefox-size;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated disk space required: &firefox-buildsize;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated build time: &firefox-time;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | </itemizedlist>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
74 | <itemizedlist spacing="compact">
|
---|
75 | <listitem>
|
---|
76 | <para>
|
---|
77 | Required patch if using gcc-6 or later
|
---|
78 | <ulink url="&patch-root;/firefox-&firefox-version;-gcc6-1.patch"/>
|
---|
79 | </para>
|
---|
80 | </listitem>
|
---|
81 | <listitem>
|
---|
82 | <para>
|
---|
83 | Required patch if using gtk+-3.20 or later (do not use with earlier versions)
|
---|
84 | <ulink url="&patch-root;/firefox-&firefox-version;-gtk320-1.patch"/>
|
---|
85 | </para>
|
---|
86 | </listitem>
|
---|
87 | <listitem>
|
---|
88 | <para>
|
---|
89 | Optional patch to allow system versions of <xref linkend="graphite2"/>
|
---|
90 | and <xref linkend="harfbuzz"/> - this should be regarded as experimental
|
---|
91 | <ulink url="&patch-root;/firefox-&firefox-version;-system_graphite2_harfbuzz-1.patch"/>
|
---|
92 | </para>
|
---|
93 | </listitem>
|
---|
94 | </itemizedlist>
|
---|
95 |
|
---|
96 | <note>
|
---|
97 | <para>
|
---|
98 | The tarball <emphasis>firefox-&firefox-version;.source.tar.xz</emphasis>
|
---|
99 | will untar to <emphasis>firefox-&firefox-version;</emphasis> directory.
|
---|
100 | </para>
|
---|
101 | </note>
|
---|
102 |
|
---|
103 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
104 |
|
---|
105 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
106 | <para role="required">
|
---|
107 | <xref linkend="alsa-lib"/>,
|
---|
108 | <xref linkend="autoconf213"/>,
|
---|
109 | <xref linkend="gtk3"/>
|
---|
110 | (or <xref linkend="gtk2"/> if you change the mozconfig where indicated),
|
---|
111 | <xref linkend="nss"/>,
|
---|
112 | <xref linkend="unzip"/>,
|
---|
113 | <xref linkend="yasm"/>, and
|
---|
114 | <xref linkend="zip"/>
|
---|
115 | </para>
|
---|
116 |
|
---|
117 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
118 | <para role="recommended">
|
---|
119 | <xref linkend="icu"/>,
|
---|
120 | <xref linkend="libevent"/>,
|
---|
121 | <xref linkend="libvpx"/>, and
|
---|
122 | <xref linkend="sqlite"/>
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <note>
|
---|
126 | <para>
|
---|
127 | If you don't install recommended dependencies, then internal copies of
|
---|
128 | those packages will be used. They might be tested to work, but they can
|
---|
129 | be out of date or contain security holes.
|
---|
130 | </para>
|
---|
131 | </note>
|
---|
132 |
|
---|
133 | <note>
|
---|
134 | <para>
|
---|
135 | With <application>Firefox-31.0</application> and later versions, you
|
---|
136 | must have installed <application>Openssl</application> before
|
---|
137 | <application>Python 2</application> or the build system will quickly
|
---|
138 | fail with output including "ImportError: cannot import name
|
---|
139 | HTTPSHandler". If you are in any doubt about this (e.g. upgrading from
|
---|
140 | an older version of Firefox), check if
|
---|
141 | <filename>/usr/lib/python&python2-majorver;/lib-dynload/_ssl.so</filename>
|
---|
142 | exists. If it does not, reinstall <xref linkend="python2"/> (after
|
---|
143 | installing <xref linkend="openssl"/>). The latest version of any
|
---|
144 | <emphasis>currently maintained</emphasis> version of Openssl should be
|
---|
145 | satisfactory if already installed.
|
---|
146 | </para>
|
---|
147 | </note>
|
---|
148 |
|
---|
149 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
150 | <para role="optional">
|
---|
151 | <xref linkend="curl"/>,
|
---|
152 | <xref linkend="dbus-glib"/>,
|
---|
153 | <xref linkend="doxygen"/>,
|
---|
154 | <xref linkend="GConf"/>,
|
---|
155 | <xref linkend="ffmpeg"/> (runtime) or
|
---|
156 | <xref linkend="gst10-plugins-base"/> (with
|
---|
157 | <xref linkend="gst10-plugins-good"/> and
|
---|
158 | <xref linkend="gst10-libav"/> at runtime),
|
---|
159 | <xref linkend="libwebp"/>,
|
---|
160 | <xref linkend="openjdk"/>,
|
---|
161 | <xref linkend="pulseaudio"/>,
|
---|
162 | <xref linkend="startup-notification"/>,
|
---|
163 | <xref linkend="valgrind"/>,
|
---|
164 | <xref linkend="wget"/>,
|
---|
165 | <xref linkend="wireless_tools"/>,
|
---|
166 | <ulink url="https://hunspell.github.io/">Hunspell</ulink>,
|
---|
167 | <ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink>, and
|
---|
168 | <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>,
|
---|
169 | <ulink url="https://www.rust-lang.org/">Rust</ulink>,
|
---|
170 | and (with the patch)
|
---|
171 | <xref linkend="graphite2"/> and
|
---|
172 | <xref linkend="harfbuzz"/>
|
---|
173 | </para>
|
---|
174 |
|
---|
175 | <para condition="html" role="usernotes">
|
---|
176 | User Notes: <ulink url="&blfs-wiki;/firefox"/>
|
---|
177 | </para>
|
---|
178 | </sect2>
|
---|
179 |
|
---|
180 | <sect2 role="installation">
|
---|
181 | <title>Installation of Firefox</title>
|
---|
182 |
|
---|
183 | <para>
|
---|
184 | The configuration of <application>Firefox</application> is accomplished
|
---|
185 | by creating a <filename>mozconfig</filename> file containing the desired
|
---|
186 | configuration options. A default <filename>mozconfig</filename> is
|
---|
187 | created below. To see the entire list of available configuration options
|
---|
188 | (and an abbreviated description of each one), issue <command>./configure
|
---|
189 | --help</command>. You may also wish to review the entire file and
|
---|
190 | uncomment any other desired options. Create the file by issuing the
|
---|
191 | following command:
|
---|
192 | </para>
|
---|
193 |
|
---|
194 | <screen><userinput>cat > mozconfig << "EOF"
|
---|
195 | <literal># If you have a multicore machine, all cores will be used by default.
|
---|
196 | # If desired, you can reduce the number of cores used, e.g. to 1, by
|
---|
197 | # uncommenting the next line and setting a valid number of CPU cores.
|
---|
198 | #mk_add_options MOZ_MAKE_FLAGS="-j1"
|
---|
199 |
|
---|
200 | # If you have installed DBus-Glib comment out this line:
|
---|
201 | ac_add_options --disable-dbus
|
---|
202 |
|
---|
203 | # If you have installed dbus-glib, and you have installed (or will install)
|
---|
204 | # wireless-tools, and you wish to use geolocation web services, comment out
|
---|
205 | # this line
|
---|
206 | ac_add_options --disable-necko-wifi
|
---|
207 |
|
---|
208 | # GStreamer is necessary for H.264 video playback in HTML5 Video Player if
|
---|
209 | # FFmpeg is not found at runtime;
|
---|
210 | # to be enabled, also remember to set "media.gstreamer.enabled" to "true"
|
---|
211 | # in about:config. If you have GStreamer 1.x.y, comment out this line and
|
---|
212 | # uncomment the following one:
|
---|
213 | ac_add_options --disable-gstreamer
|
---|
214 | #ac_add_options --enable-gstreamer=1.0
|
---|
215 |
|
---|
216 | # Uncomment this option if you wish to build with gtk+-2
|
---|
217 | #ac_add_options --enable-default-toolkit=cairo-gtk2
|
---|
218 |
|
---|
219 | # Uncomment these lines if you have installed optional dependencies:
|
---|
220 | #ac_add_options --enable-system-hunspell
|
---|
221 | #ac_add_options --enable-startup-notification
|
---|
222 |
|
---|
223 | # Comment out following option if you have PulseAudio installed
|
---|
224 | ac_add_options --disable-pulseaudio
|
---|
225 |
|
---|
226 | # If you have installed GConf, comment out this line
|
---|
227 | ac_add_options --disable-gconf
|
---|
228 |
|
---|
229 | # Comment out following options if you have not installed
|
---|
230 | # recommended dependencies:
|
---|
231 | ac_add_options --enable-system-sqlite
|
---|
232 | ac_add_options --with-system-libevent
|
---|
233 | ac_add_options --with-system-libvpx
|
---|
234 | ac_add_options --with-system-nspr
|
---|
235 | ac_add_options --with-system-nss
|
---|
236 | ac_add_options --with-system-icu
|
---|
237 |
|
---|
238 | # If you are going to apply the patch for system graphite
|
---|
239 | # and system harfbuzz, uncomment these lines:
|
---|
240 | #ac_add_options --with-system-graphite2
|
---|
241 | #ac_add_options --with-system-harfbuzz
|
---|
242 |
|
---|
243 | # Stripping is now enabled by default.
|
---|
244 | # Uncomment these lines if you need to run a debugger:
|
---|
245 | #ac_add_options --disable-strip
|
---|
246 | #ac_add_options --disable-install-strip
|
---|
247 |
|
---|
248 | # The BLFS editors recommend not changing anything below this line:
|
---|
249 | ac_add_options --prefix=/usr
|
---|
250 | ac_add_options --enable-application=browser
|
---|
251 |
|
---|
252 | ac_add_options --disable-crashreporter
|
---|
253 | ac_add_options --disable-updater
|
---|
254 | ac_add_options --disable-tests
|
---|
255 |
|
---|
256 | ac_add_options --enable-optimize
|
---|
257 |
|
---|
258 | ac_add_options --enable-gio
|
---|
259 | ac_add_options --enable-official-branding
|
---|
260 | ac_add_options --enable-safe-browsing
|
---|
261 | ac_add_options --enable-url-classifier
|
---|
262 |
|
---|
263 | # From firefox-40, using system cairo causes firefox to crash
|
---|
264 | # frequently when it is doing background rendering in a tab.
|
---|
265 | #ac_add_options --enable-system-cairo
|
---|
266 | ac_add_options --enable-system-ffi
|
---|
267 | ac_add_options --enable-system-pixman
|
---|
268 |
|
---|
269 | ac_add_options --with-pthreads
|
---|
270 |
|
---|
271 | ac_add_options --with-system-bz2
|
---|
272 | ac_add_options --with-system-jpeg
|
---|
273 | ac_add_options --with-system-png
|
---|
274 | ac_add_options --with-system-zlib
|
---|
275 |
|
---|
276 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
|
---|
277 | EOF</userinput></screen>
|
---|
278 |
|
---|
279 | <para>
|
---|
280 | Compile <application>Firefox</application> by issuing the following
|
---|
281 | commands:
|
---|
282 | </para>
|
---|
283 |
|
---|
284 | <para>
|
---|
285 | Fix an issue with GCC-6.0 and higher:
|
---|
286 | </para>
|
---|
287 |
|
---|
288 | <screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-gcc6-1.patch</userinput></screen>
|
---|
289 |
|
---|
290 | <para>
|
---|
291 | If you are using gtk+-3.20 or later, apply a patch to restore the
|
---|
292 | slider on scrollbars:
|
---|
293 | </para>
|
---|
294 |
|
---|
295 | <screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-gtk320-1.patch</userinput></screen>
|
---|
296 |
|
---|
297 | <para>
|
---|
298 | If you have installed system versions of graphite2 and harfbuzz and wish
|
---|
299 | firefox to use those instead of its shipped versions, apply the patch and
|
---|
300 | uncomment the appropriate entries in the <filename>mozconfig</filename>
|
---|
301 | file:
|
---|
302 | </para>
|
---|
303 |
|
---|
304 | <screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-system_graphite2_harfbuzz-1.patch</userinput></screen>
|
---|
305 |
|
---|
306 | <note><para>
|
---|
307 | If you are compiling <application>Firefox</application> in chroot, make
|
---|
308 | sure you have <envar>$SHELL</envar> environment variable set or prepend
|
---|
309 | <envar>SHELL=/bin/sh</envar>.
|
---|
310 | </para></note>
|
---|
311 |
|
---|
312 | <screen><userinput>export CFLAGS_HOLD=$CFLAGS &&
|
---|
313 | export CXXFLAGS_HOLD=$CXXFLAGS &&
|
---|
314 | export CFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2" &&
|
---|
315 | export CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2" &&
|
---|
316 |
|
---|
317 | make -f client.mk</userinput></screen>
|
---|
318 |
|
---|
319 | <para>
|
---|
320 | This package does not come with a test suite.
|
---|
321 | </para>
|
---|
322 |
|
---|
323 | <para>
|
---|
324 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
325 | </para>
|
---|
326 |
|
---|
327 | <screen role="root"><userinput>make -f client.mk install INSTALL_SDK= &&
|
---|
328 | chown -R 0:0 /usr/lib/firefox-&firefox-version; &&
|
---|
329 |
|
---|
330 | mkdir -pv /usr/lib/mozilla/plugins &&
|
---|
331 | ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser &&
|
---|
332 |
|
---|
333 | export CFLAGS=$CFLAGS_HOLD &&
|
---|
334 | export CXXFLAGS=$CXXFLAGS_HOLD &&
|
---|
335 | unset CFLAGS_HOLD CXXFLAGS_HOLD</userinput></screen>
|
---|
336 |
|
---|
337 | </sect2>
|
---|
338 |
|
---|
339 | <sect2 role="commands">
|
---|
340 | <title>Command Explanations</title>
|
---|
341 |
|
---|
342 | <para>
|
---|
343 | <command>CFLAGS= ... CXXFLAGS= ...</command>: These settings work around
|
---|
344 | code which gcc6 would otherwise regard as out-of-specification and allow
|
---|
345 | it to produce a working program.
|
---|
346 | </para>
|
---|
347 |
|
---|
348 | <para>
|
---|
349 | <command>make -f client.mk ...</command>: Mozilla products are packaged to
|
---|
350 | allow the use of a configuration file which can be used to pass the
|
---|
351 | configuration settings to the <command>configure</command> command.
|
---|
352 | <command>make</command> uses the <filename>client.mk</filename> file to
|
---|
353 | get initial configuration and setup parameters.
|
---|
354 | </para>
|
---|
355 |
|
---|
356 | <para>
|
---|
357 | <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
|
---|
358 | that <filename class="directory">/usr/lib/mozilla/plugins</filename>
|
---|
359 | exists.
|
---|
360 | </para>
|
---|
361 |
|
---|
362 | <para>
|
---|
363 | <command>ln -sv ... /usr/lib/firefox-&firefox-version;/browser</command>:
|
---|
364 | This command creates a symbolic link to <filename
|
---|
365 | class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
|
---|
366 | needed, as <application>Firefox</application> checks <filename
|
---|
367 | class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
|
---|
368 | symbolic link is made to keep all the plugins installed in one folder.
|
---|
369 | </para>
|
---|
370 |
|
---|
371 | </sect2>
|
---|
372 |
|
---|
373 | <sect2 role="configuration">
|
---|
374 | <title>Configuring Firefox</title>
|
---|
375 |
|
---|
376 | <para>
|
---|
377 | If you did not add the <option>--disable-webm</option> option to your
|
---|
378 | <filename>mozconfig</filename>, your <application>Firefox</application>
|
---|
379 | can play most YouTube videos without the need for the Flash plugin.
|
---|
380 | Go to <ulink url="http://www.youtube.com/html5"/> to see which HTML5
|
---|
381 | video features your browser supports on YouTube.
|
---|
382 | </para>
|
---|
383 |
|
---|
384 | <para>
|
---|
385 | If you use a desktop environment like <application>Gnome</application> or
|
---|
386 | <application>KDE</application> you may like to create a
|
---|
387 | <filename>firefox.desktop</filename> file so that
|
---|
388 | <application>Firefox</application> appears in the panel's menus. If you
|
---|
389 | didn't enable startup-notification in your mozconfig change the
|
---|
390 | StartupNotify line to false. As the
|
---|
391 | <systemitem class="username">root</systemitem> user:
|
---|
392 | </para>
|
---|
393 |
|
---|
394 | <screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
---|
395 | mkdir -pv /usr/share/pixmaps &&
|
---|
396 |
|
---|
397 | cat > /usr/share/applications/firefox.desktop << "EOF" &&
|
---|
398 | <literal>[Desktop Entry]
|
---|
399 | Encoding=UTF-8
|
---|
400 | Name=Firefox Web Browser
|
---|
401 | Comment=Browse the World Wide Web
|
---|
402 | GenericName=Web Browser
|
---|
403 | Exec=firefox %u
|
---|
404 | Terminal=false
|
---|
405 | Type=Application
|
---|
406 | Icon=firefox
|
---|
407 | Categories=GNOME;GTK;Network;WebBrowser;
|
---|
408 | MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
|
---|
409 | StartupNotify=true</literal>
|
---|
410 | EOF
|
---|
411 |
|
---|
412 | ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
|
---|
413 | /usr/share/pixmaps/firefox.png</userinput></screen>
|
---|
414 |
|
---|
415 | </sect2>
|
---|
416 |
|
---|
417 | <sect2 role="content">
|
---|
418 | <title>Contents</title>
|
---|
419 |
|
---|
420 | <segmentedlist>
|
---|
421 | <segtitle>Installed Programs</segtitle>
|
---|
422 | <segtitle>Installed Libraries</segtitle>
|
---|
423 | <segtitle>Installed Directory</segtitle>
|
---|
424 |
|
---|
425 | <seglistitem>
|
---|
426 | <seg>
|
---|
427 | firefox
|
---|
428 | </seg>
|
---|
429 | <seg>
|
---|
430 | Numerous libraries, browser components, plugins, extensions, and
|
---|
431 | helper modules installed in /usr/lib/firefox-&firefox-version;
|
---|
432 | </seg>
|
---|
433 | <seg>
|
---|
434 | /usr/lib/firefox-&firefox-version;
|
---|
435 | </seg>
|
---|
436 | </seglistitem>
|
---|
437 | </segmentedlist>
|
---|
438 |
|
---|
439 | <variablelist>
|
---|
440 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
441 | <?dbfo list-presentation="list"?>
|
---|
442 | <?dbhtml list-presentation="table"?>
|
---|
443 |
|
---|
444 | <varlistentry id="firefox-prog">
|
---|
445 | <term><command>firefox</command></term>
|
---|
446 | <listitem>
|
---|
447 | <para>
|
---|
448 | is a <application>GTK+ 2</application> internet browser that uses the
|
---|
449 | Mozilla Gecko rendering engine.
|
---|
450 | </para>
|
---|
451 | <indexterm zone="firefox firefox-prog">
|
---|
452 | <primary sortas="b-firefox">firefox</primary>
|
---|
453 | </indexterm>
|
---|
454 | </listitem>
|
---|
455 | </varlistentry>
|
---|
456 |
|
---|
457 | </variablelist>
|
---|
458 |
|
---|
459 | </sect2>
|
---|
460 |
|
---|
461 | </sect1>
|
---|