source: xsoft/graphweb/firefox.xml@ 7090d94

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 7090d94 was 7090d94, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Update to firefox-49.0.1
Update to thunderbird-45.4.0

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