source: xsoft/graphweb/firefox.xml@ a5708ba

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a5708ba was a5708ba, checked in by Pierre Labastie <pieere@…>, 8 years ago

Tag LXDE and cosmetics on firefox

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17715 af4574ff-66df-0310-9fd7-8a98e5e911e0

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