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 "11b4f60e31007caf2a34aeed11b74b2d">
|
---|
10 | <!ENTITY firefox-size "187 MB">
|
---|
11 | <!ENTITY firefox-buildsize "4.6 GB (96 MB installed)">
|
---|
12 | <!ENTITY firefox-time "15 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 | &lfs7a_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 | Optional patch to allow system versions of <xref linkend="graphite2"/>
|
---|
78 | and <xref linkend="harfbuzz"/> - this should be regarded as experimental
|
---|
79 | <ulink url="&patch-root;/firefox-&firefox-version;-system_graphite2_harfbuzz-1.patch"/>
|
---|
80 | </para>
|
---|
81 | </listitem>
|
---|
82 | </itemizedlist>
|
---|
83 |
|
---|
84 | <note>
|
---|
85 | <para>
|
---|
86 | The tarball <emphasis>firefox-&firefox-version;.source.tar.xz</emphasis>
|
---|
87 | will untar to <emphasis>firefox-&firefox-version;</emphasis> directory.
|
---|
88 | However, if you do this in a directory where the sticky bit is set, such
|
---|
89 | as <filename class="directory">/tmp</filename> it will end with error
|
---|
90 | messages:
|
---|
91 | </para>
|
---|
92 |
|
---|
93 | <literallayout>tar: .: Cannot utime: Operation not permitted
|
---|
94 | tar: .: Cannot change mode to rwxr-xr-t: Operation not permitted
|
---|
95 | tar: Exiting with failure status due to previous errors
|
---|
96 | </literallayout>
|
---|
97 |
|
---|
98 | <para>
|
---|
99 | This does finish with non-zero status, but it does
|
---|
100 | <emphasis>NOT</emphasis> mean there is a real problem.
|
---|
101 | Do not untar as the <systemitem class="username">root</systemitem> user
|
---|
102 | in a directory where the sticky bit is set - that will unset it.
|
---|
103 | </para>
|
---|
104 | </note>
|
---|
105 |
|
---|
106 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
107 |
|
---|
108 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
109 | <para role="required">
|
---|
110 | <xref linkend="alsa-lib"/>,
|
---|
111 | <xref linkend="autoconf213"/>,
|
---|
112 | <xref linkend="gtk3"/>
|
---|
113 | (or <xref linkend="gtk2"/> if you change the mozconfig where indicated),
|
---|
114 | <xref linkend="nss"/>,
|
---|
115 | <xref linkend="unzip"/>,
|
---|
116 | <xref linkend="yasm"/>, and
|
---|
117 | <xref linkend="zip"/>
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
121 | <para role="recommended">
|
---|
122 | <xref linkend="icu"/>,
|
---|
123 | <xref linkend="libevent"/>,
|
---|
124 | <xref linkend="libvpx"/>, and
|
---|
125 | <xref linkend="sqlite"/>
|
---|
126 | </para>
|
---|
127 |
|
---|
128 | <note>
|
---|
129 | <para>
|
---|
130 | If you don't install recommended dependencies, then internal copies of
|
---|
131 | those packages will be used. They might be tested to work, but they can
|
---|
132 | be out of date or contain security holes.
|
---|
133 | </para>
|
---|
134 | </note>
|
---|
135 |
|
---|
136 | <note>
|
---|
137 | <para>
|
---|
138 | With <application>Firefox-31.0</application> and later versions, you
|
---|
139 | must have installed <application>Openssl</application> before
|
---|
140 | <application>Python 2</application> or the build system will quickly
|
---|
141 | fail with output including "ImportError: cannot import name
|
---|
142 | HTTPSHandler". If you are in any doubt about this (e.g. upgrading from
|
---|
143 | an older version of Firefox), check if
|
---|
144 | <filename>/usr/lib/python&python2-majorver;/lib-dynload/_ssl.so</filename>
|
---|
145 | exists. If it does not, reinstall <xref linkend="python2"/> (after
|
---|
146 | installing <xref linkend="openssl"/>). The latest version of any
|
---|
147 | <emphasis>currently maintained</emphasis> version of Openssl should be
|
---|
148 | satisfactory if already installed.
|
---|
149 | </para>
|
---|
150 | </note>
|
---|
151 |
|
---|
152 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
153 | <para role="optional">
|
---|
154 | <xref linkend="curl"/>,
|
---|
155 | <xref linkend="dbus-glib"/>,
|
---|
156 | <xref linkend="doxygen"/>,
|
---|
157 | <xref linkend="GConf"/>,
|
---|
158 | <xref linkend="ffmpeg"/> (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 | <phrase revision="sysv"><ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink></phrase>
|
---|
168 | <phrase revision="systemd"><xref linkend="liboauth"/></phrase>,
|
---|
169 | <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>,
|
---|
170 | <ulink url="https://www.rust-lang.org/">Rust</ulink>,
|
---|
171 | and (with the patch)
|
---|
172 | <xref linkend="graphite2"/> and
|
---|
173 | <xref linkend="harfbuzz"/>
|
---|
174 | </para>
|
---|
175 |
|
---|
176 | <para condition="html" role="usernotes">
|
---|
177 | User Notes: <ulink url="&blfs-wiki;/firefox"/>
|
---|
178 | </para>
|
---|
179 | </sect2>
|
---|
180 |
|
---|
181 | <sect2 role="installation">
|
---|
182 | <title>Installation of Firefox</title>
|
---|
183 |
|
---|
184 | <para>
|
---|
185 | The configuration of <application>Firefox</application> is accomplished
|
---|
186 | by creating a <filename>mozconfig</filename> file containing the desired
|
---|
187 | configuration options. A default <filename>mozconfig</filename> is
|
---|
188 | created below. To see the entire list of available configuration options
|
---|
189 | (and an abbreviated description of each one), issue <command>./configure
|
---|
190 | --help</command>. You may also wish to review the entire file and
|
---|
191 | uncomment any other desired options. Create the file by issuing the
|
---|
192 | following command:
|
---|
193 | </para>
|
---|
194 |
|
---|
195 | <screen><userinput>cat > mozconfig << "EOF"
|
---|
196 | <literal># If you have a multicore machine, all cores will be used by default.
|
---|
197 | # If desired, you can reduce the number of cores used, e.g. to 1, by
|
---|
198 | # uncommenting the next line and setting a valid number of CPU cores.
|
---|
199 | #mk_add_options MOZ_MAKE_FLAGS="-j1"
|
---|
200 |
|
---|
201 | # If you have installed dbus-glib, comment out this line:
|
---|
202 | ac_add_options --disable-dbus
|
---|
203 |
|
---|
204 | # If you have installed dbus-glib, and you have installed (or will install)
|
---|
205 | # wireless-tools, and you wish to use geolocation web services, comment out
|
---|
206 | # this line
|
---|
207 | ac_add_options --disable-necko-wifi
|
---|
208 |
|
---|
209 | # Uncomment this option if you wish to build with gtk+-2
|
---|
210 | #ac_add_options --enable-default-toolkit=cairo-gtk2
|
---|
211 |
|
---|
212 | # Uncomment these lines if you have installed optional dependencies:
|
---|
213 | #ac_add_options --enable-system-hunspell
|
---|
214 | #ac_add_options --enable-startup-notification
|
---|
215 |
|
---|
216 | # Comment out following option if you have PulseAudio installed
|
---|
217 | ac_add_options --disable-pulseaudio
|
---|
218 |
|
---|
219 | # If you have installed GConf, comment out this line
|
---|
220 | ac_add_options --disable-gconf
|
---|
221 |
|
---|
222 | # Comment out following options if you have not installed
|
---|
223 | # recommended dependencies:
|
---|
224 | ac_add_options --enable-system-sqlite
|
---|
225 | ac_add_options --with-system-libevent
|
---|
226 | ac_add_options --with-system-libvpx
|
---|
227 | ac_add_options --with-system-nspr
|
---|
228 | ac_add_options --with-system-nss
|
---|
229 | ac_add_options --with-system-icu
|
---|
230 |
|
---|
231 | # If you are going to apply the patch for system graphite
|
---|
232 | # and system harfbuzz, uncomment these lines:
|
---|
233 | #ac_add_options --with-system-graphite2
|
---|
234 | #ac_add_options --with-system-harfbuzz
|
---|
235 |
|
---|
236 | # Stripping is now enabled by default.
|
---|
237 | # Uncomment these lines if you need to run a debugger:
|
---|
238 | #ac_add_options --disable-strip
|
---|
239 | #ac_add_options --disable-install-strip
|
---|
240 |
|
---|
241 | # The BLFS editors recommend not changing anything below this line:
|
---|
242 | ac_add_options --prefix=/usr
|
---|
243 | ac_add_options --enable-application=browser
|
---|
244 |
|
---|
245 | ac_add_options --disable-crashreporter
|
---|
246 | ac_add_options --disable-updater
|
---|
247 | ac_add_options --disable-tests
|
---|
248 |
|
---|
249 | ac_add_options --enable-optimize
|
---|
250 |
|
---|
251 | ac_add_options --enable-gio
|
---|
252 | ac_add_options --enable-official-branding
|
---|
253 | ac_add_options --enable-safe-browsing
|
---|
254 | ac_add_options --enable-url-classifier
|
---|
255 |
|
---|
256 | # From firefox-40, using system cairo causes firefox to crash
|
---|
257 | # frequently when it is doing background rendering in a tab.
|
---|
258 | #ac_add_options --enable-system-cairo
|
---|
259 | ac_add_options --enable-system-ffi
|
---|
260 | ac_add_options --enable-system-pixman
|
---|
261 |
|
---|
262 | ac_add_options --with-pthreads
|
---|
263 |
|
---|
264 | ac_add_options --with-system-bz2
|
---|
265 | ac_add_options --with-system-jpeg
|
---|
266 | ac_add_options --with-system-png
|
---|
267 | ac_add_options --with-system-zlib
|
---|
268 |
|
---|
269 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
|
---|
270 | EOF</userinput></screen>
|
---|
271 |
|
---|
272 | <para>
|
---|
273 | Compile <application>Firefox</application> by issuing the following
|
---|
274 | commands:
|
---|
275 | </para>
|
---|
276 |
|
---|
277 | <para>
|
---|
278 | If you have installed system versions of graphite2 and harfbuzz and wish
|
---|
279 | firefox to use those instead of its shipped versions, apply the patch and
|
---|
280 | uncomment the appropriate entries in the <filename>mozconfig</filename>
|
---|
281 | file:
|
---|
282 | </para>
|
---|
283 |
|
---|
284 | <screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-system_graphite2_harfbuzz-1.patch</userinput></screen>
|
---|
285 |
|
---|
286 | <note><para>
|
---|
287 | If you are compiling <application>Firefox</application> in chroot, make
|
---|
288 | sure you have <envar>$SHELL</envar> environment variable set or prepend
|
---|
289 | <envar>SHELL=/bin/sh</envar>.
|
---|
290 | </para></note>
|
---|
291 | <!--
|
---|
292 | <screen><userinput>export CFLAGS_HOLD=$CFLAGS &&
|
---|
293 | export CXXFLAGS_HOLD=$CXXFLAGS &&
|
---|
294 | export CFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2" &&
|
---|
295 | export CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2" &&
|
---|
296 | -->
|
---|
297 | <screen><userinput>make -f client.mk</userinput></screen>
|
---|
298 |
|
---|
299 | <para>
|
---|
300 | This package does not come with a test suite.
|
---|
301 | </para>
|
---|
302 |
|
---|
303 | <para>
|
---|
304 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
305 | </para>
|
---|
306 |
|
---|
307 | <screen role="root"><userinput>make -f client.mk install INSTALL_SDK= &&
|
---|
308 | chown -R 0:0 /usr/lib/firefox-&firefox-version; &&
|
---|
309 |
|
---|
310 | mkdir -pv /usr/lib/mozilla/plugins &&
|
---|
311 | ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userinput></screen>
|
---|
312 | <!--
|
---|
313 | <para>
|
---|
314 | Set environment variables back to their values:
|
---|
315 | </para>
|
---|
316 |
|
---|
317 | <screen><userinput>export CFLAGS=$CFLAGS_HOLD &&
|
---|
318 | export CXXFLAGS=$CXXFLAGS_HOLD &&
|
---|
319 | unset CFLAGS_HOLD CXXFLAGS_HOLD</userinput></screen>
|
---|
320 | -->
|
---|
321 |
|
---|
322 | </sect2>
|
---|
323 |
|
---|
324 | <sect2 role="commands">
|
---|
325 | <title>Command Explanations</title>
|
---|
326 | <!--
|
---|
327 | <para>
|
---|
328 | <command>CFLAGS= ... CXXFLAGS= ...</command>: These settings work around
|
---|
329 | code which gcc6 would otherwise regard as out-of-specification and allow
|
---|
330 | it to produce a working program.
|
---|
331 | </para>
|
---|
332 | -->
|
---|
333 | <para>
|
---|
334 | <command>make -f client.mk ...</command>: Mozilla products are packaged to
|
---|
335 | allow the use of a configuration file which can be used to pass the
|
---|
336 | configuration settings to the <command>configure</command> command.
|
---|
337 | <command>make</command> uses the <filename>client.mk</filename> file to
|
---|
338 | get initial configuration and setup parameters.
|
---|
339 | </para>
|
---|
340 |
|
---|
341 | <para>
|
---|
342 | <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
|
---|
343 | that <filename class="directory">/usr/lib/mozilla/plugins</filename>
|
---|
344 | exists.
|
---|
345 | </para>
|
---|
346 |
|
---|
347 | <para>
|
---|
348 | <command>ln -sv ... /usr/lib/firefox-&firefox-version;/browser</command>:
|
---|
349 | This command creates a symbolic link to <filename
|
---|
350 | class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
|
---|
351 | needed, as <application>Firefox</application> checks <filename
|
---|
352 | class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
|
---|
353 | symbolic link is made to keep all the plugins installed in one folder.
|
---|
354 | </para>
|
---|
355 |
|
---|
356 | </sect2>
|
---|
357 |
|
---|
358 | <sect2 role="configuration">
|
---|
359 | <title>Configuring Firefox</title>
|
---|
360 |
|
---|
361 | <para>
|
---|
362 | If you use a desktop environment like <application>Gnome</application> or
|
---|
363 | <application>KDE</application> you may like to create a
|
---|
364 | <filename>firefox.desktop</filename> file so that
|
---|
365 | <application>Firefox</application> appears in the panel's menus. If you
|
---|
366 | didn't enable startup-notification in your mozconfig change the
|
---|
367 | StartupNotify line to false. As the
|
---|
368 | <systemitem class="username">root</systemitem> user:
|
---|
369 | </para>
|
---|
370 |
|
---|
371 | <screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
---|
372 | mkdir -pv /usr/share/pixmaps &&
|
---|
373 |
|
---|
374 | cat > /usr/share/applications/firefox.desktop << "EOF" &&
|
---|
375 | <literal>[Desktop Entry]
|
---|
376 | Encoding=UTF-8
|
---|
377 | Name=Firefox Web Browser
|
---|
378 | Comment=Browse the World Wide Web
|
---|
379 | GenericName=Web Browser
|
---|
380 | Exec=firefox %u
|
---|
381 | Terminal=false
|
---|
382 | Type=Application
|
---|
383 | Icon=firefox
|
---|
384 | Categories=GNOME;GTK;Network;WebBrowser;
|
---|
385 | MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
|
---|
386 | StartupNotify=true</literal>
|
---|
387 | EOF
|
---|
388 |
|
---|
389 | ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
|
---|
390 | /usr/share/pixmaps/firefox.png</userinput></screen>
|
---|
391 |
|
---|
392 | </sect2>
|
---|
393 |
|
---|
394 | <sect2 role="content">
|
---|
395 | <title>Contents</title>
|
---|
396 |
|
---|
397 | <segmentedlist>
|
---|
398 | <segtitle>Installed Programs</segtitle>
|
---|
399 | <segtitle>Installed Libraries</segtitle>
|
---|
400 | <segtitle>Installed Directory</segtitle>
|
---|
401 |
|
---|
402 | <seglistitem>
|
---|
403 | <seg>
|
---|
404 | firefox
|
---|
405 | </seg>
|
---|
406 | <seg>
|
---|
407 | Numerous libraries, browser components, plugins, extensions, and
|
---|
408 | helper modules installed in /usr/lib/firefox-&firefox-version;
|
---|
409 | </seg>
|
---|
410 | <seg>
|
---|
411 | /usr/lib/firefox-&firefox-version;
|
---|
412 | </seg>
|
---|
413 | </seglistitem>
|
---|
414 | </segmentedlist>
|
---|
415 |
|
---|
416 | <variablelist>
|
---|
417 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
418 | <?dbfo list-presentation="list"?>
|
---|
419 | <?dbhtml list-presentation="table"?>
|
---|
420 |
|
---|
421 | <varlistentry id="firefox-prog">
|
---|
422 | <term><command>firefox</command></term>
|
---|
423 | <listitem>
|
---|
424 | <para>
|
---|
425 | is a <application>GTK+-3</application> internet browser that uses the
|
---|
426 | Mozilla Gecko rendering engine.
|
---|
427 | </para>
|
---|
428 | <indexterm zone="firefox firefox-prog">
|
---|
429 | <primary sortas="b-firefox">firefox</primary>
|
---|
430 | </indexterm>
|
---|
431 | </listitem>
|
---|
432 | </varlistentry>
|
---|
433 |
|
---|
434 | </variablelist>
|
---|
435 |
|
---|
436 | </sect2>
|
---|
437 |
|
---|
438 | </sect1>
|
---|