source: xsoft/graphweb/firefox.xml@ 566fcae

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 7.8 7.9 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 566fcae was 566fcae, checked in by Fernando de Oliveira <fernando@…>, 9 years ago

Fixes to seamonkey-2.30: number of threads, optimization and dependencies.
Fixes to firefox-33.0.3: number of threads and optimization.

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

  • Property mode set to 100644
File size: 14.6 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
8 "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">-->
9 <!ENTITY firefox-download-http
10 "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
11 <!ENTITY firefox-download-ftp
12 "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
13 <!ENTITY firefox-md5sum "ef274d62fffc2cdcfc287ccb84aeeb5d">
14 <!ENTITY firefox-size "148 MB">
15 <!ENTITY firefox-buildsize "3.8 GB (74 MB installed)">
16 <!ENTITY firefox-time "13 SBU (using parallelism=8)">
17]>
18
19<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
20 <?dbhtml filename="firefox.html" ?>
21
22 <sect1info>
23 <othername>$LastChangedBy$</othername>
24 <date>$Date$</date>
25 </sect1info>
26
27 <title>Firefox-&firefox-version;</title>
28
29 <indexterm zone="firefox">
30 <primary sortas="a-Firefox">Firefox</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Firefox</title>
35
36 <para>
37 <application>Firefox</application> is a stand-alone browser based on the
38 <application>Mozilla</application> codebase.
39 </para>
40
41 &lfs76_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&firefox-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&firefox-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &firefox-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &firefox-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &firefox-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &firefox-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Required</bridgehead>
80 <para role="required">
81 <xref linkend="alsa-lib"/>,
82 <xref linkend="gtk2"/>,
83 <xref linkend="zip"/>, and
84 <xref linkend="unzip"/>
85 </para>
86
87 <bridgehead renderas="sect4">Recommended</bridgehead>
88 <para role="recommended">
89 <xref linkend="icu"/>,
90 <xref linkend="libevent"/>,
91 <xref linkend="libvpx"/>,
92 <xref linkend="nspr"/>,
93 <xref linkend="nss"/>,
94 <xref linkend="sqlite"/> and
95 <xref linkend="yasm"/>
96 </para>
97
98 <note>
99 <para>
100 If you don't install recommended dependencies, then internal copies of
101 those packages will be used. They might be tested to work, but they can
102 be out of date or contain security holes.
103 </para>
104 </note>
105
106 <note>
107 <para>
108 With <application>Firefox-31.0</application> and later versions, you
109 must have installed <application>Openssl</application> before
110 <application>Python 2</application> or the build system will quickly
111 fail with output including "ImportError: cannot import name
112 HTTPSHandler". If you are in any doubt about this (e.g. upgrading
113 from an older version of Firefox), check if
114 <filename>/usr/lib/python2.7/lib-dynload/_ssl.so</filename> exists.
115 If it does not, reinstall <xref linkend="python2"/> (after
116 installing <xref linkend="openssl"/>. The latest version of any
117 <emphasis>currently maintained</emphasis> version of Openssl should
118 be satisfactory if already installed.
119 </para>
120 </note>
121
122 <bridgehead renderas="sect4">Optional</bridgehead>
123 <para role="optional">
124 <xref linkend="curl"/>,
125 <xref linkend="dbus-glib"/>,
126 <xref linkend="doxygen"/>,
127 <xref linkend="gst-plugins-base"/> (with
128 <xref linkend="gst-plugins-good"/> and
129 <xref linkend="gst-ffmpeg"/> at runtime), or
130 <xref linkend="gst10-plugins-base"/> (with
131 <xref linkend="gst10-plugins-good"/> and
132 <xref linkend="gst10-libav"/> at runtime),
133 <xref linkend="libnotify"/>,
134 <xref linkend="openjdk"/>,
135 <xref linkend="pulseaudio"/>,
136 <xref linkend="startup-notification"/>,
137 <xref linkend="valgrind"/>,
138 <xref linkend="wget"/>,
139 <xref linkend="wireless_tools"/>, and
140 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>
141 </para>
142
143 <para condition="html" role="usernotes">
144 User Notes: <ulink url="&blfs-wiki;/firefox"/>
145 </para>
146 </sect2>
147
148 <sect2 role="installation">
149 <title>Installation of Firefox</title>
150
151 <para>
152 The configuration of <application>Firefox</application> is accomplished
153 by creating a <filename>mozconfig</filename> file containing the desired
154 configuration options. A default <filename>mozconfig</filename> is
155 created below. To see the entire list of available configuration options
156 (and an abbreviated description of each one), issue <command>./configure
157 --help</command>. You may also wish to review the entire file and
158 uncomment any other desired options. Create the file by issuing the
159 following command:
160 </para>
161
162<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
163<literal># If you have installed DBus-Glib comment out this line:
164ac_add_options --disable-dbus
165
166# If you have installed dbus-glib, and you have installed (or will install)
167# wireless-tools, and you wish to use geolocation web services, comment out
168# this line
169ac_add_options --disable-necko-wifi
170
171# If you have installed libnotify comment out this line:
172ac_add_options --disable-libnotify
173
174# GStreamer is necessary for H.264 video playback in HTML5 Video Player;
175# to be enabled, also remember to set "media.gstreamer.enabled" to "true"
176# in about:config. If you do *not* have GStreamer 0.x.y, uncomment this line:
177#ac_add_options --disable-gstreamer
178# or uncomment this line, if you have GStreamer 1.x.y
179#ac_add_options --enable-gstreamer=1.0
180
181# Uncomment these lines if you have installed optional dependencies:
182#ac_add_options --enable-system-hunspell
183#ac_add_options --enable-startup-notification
184
185# Comment out following option if you have PulseAudio installed
186ac_add_options --disable-pulseaudio
187
188# If you have not installed Yasm then uncomment this line:
189#ac_add_options --disable-webm
190
191# Comment out following options if you have not installed
192# recommended dependencies:
193ac_add_options --enable-system-sqlite
194ac_add_options --with-system-libevent
195ac_add_options --with-system-libvpx
196ac_add_options --with-system-nspr
197ac_add_options --with-system-nss
198ac_add_options --with-system-icu
199
200# The BLFS editors recommend not changing anything below this line:
201ac_add_options --prefix=/usr
202ac_add_options --enable-application=browser
203
204ac_add_options --disable-crashreporter
205ac_add_options --disable-updater
206ac_add_options --disable-tests
207
208ac_add_options --enable-optimize
209ac_add_options --enable-strip
210ac_add_options --enable-install-strip
211
212ac_add_options --enable-gio
213ac_add_options --enable-official-branding
214ac_add_options --enable-safe-browsing
215ac_add_options --enable-url-classifier
216
217ac_add_options --enable-system-cairo
218ac_add_options --enable-system-ffi
219ac_add_options --enable-system-pixman
220
221ac_add_options --with-pthreads
222
223ac_add_options --with-system-bz2
224ac_add_options --with-system-jpeg
225ac_add_options --with-system-png
226ac_add_options --with-system-zlib
227
228mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
229EOF</userinput></screen>
230
231 <para>
232 There is a problem in i686 systems, when build with
233 <application>gcc</application> ranging from 4.8 to 4.9.1, and using the
234 switch <quote>--enable-optimize</quote>. You have two alternatives, best
235 one being the upgrade of <application>gcc</application> to version 4.9.2,
236 because that switch implies better perfomance and smaller binaries.
237 However, if you do not wish to upgrade gcc, disable the switch with:
238 </para>
239
240<screen><userinput>test $(uname -m) = "i686" &amp;&amp; sed -i 's/enable-optimize/disable-optimize/' mozconfig || true</userinput></screen>
241
242 <para>
243 Compile <application>Firefox</application> by issuing the following
244 commands:
245 </para>
246
247 <note><para>
248 If you are compiling <application>Firefox</application> in chroot, make
249 sure you have <envar>$SHELL</envar> environment variable set or prepend
250 <envar>SHELL=/bin/sh</envar>.
251 </para></note>
252
253<screen><userinput>MOZ_MAKE_FLAGS='<replaceable>&lt;number&gt;</replaceable>' \
254make -f client.mk</userinput></screen>
255
256 <para>
257 where <replaceable>&lt;number&gt;</replaceable> is a integer between 1
258 and the number of threads of your processor. The variable
259 <envar>MOZ_MAKE_FLAGS</envar> governs the number of parallel processes
260 used by <command>make</command>. If it is not defined, the compilation
261 will use all threads of a multithread machine. If this is what you want,
262 just delete the line with <envar>MOZ_MAKE_FLAGS</envar> in the command
263 above.
264 </para>
265
266 <para>
267 This package does not come with a test suite.
268 </para>
269
270 <para>
271 Now, as the <systemitem class="username">root</systemitem> user:
272 </para>
273
274<screen role="root"><userinput>MOZ_MAKE_FLAGS='<replaceable>&lt;number&gt;</replaceable>' \
275make -f client.mk install INSTALL_SDK= &amp;&amp;
276
277mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
278ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userinput></screen>
279
280 <para>
281 Here, the same comments about <envar>MOZ_MAKE_FLAGS</envar>, after the
282 compile command above, apply.
283 </para>
284
285 </sect2>
286
287 <sect2 role="commands">
288 <title>Command Explanations</title>
289
290 <para>
291 <command>test $(uname -m) = "i686" &amp;&amp; sed ...</command>:
292 On this version of seamonkey, an old bug has reappeared in 32-bit builds.
293 With optimization, the install fails<!-- with a Python error-->. This
294 command will fix i686 builds and preserve the optimization on x86_64.
295 </para>
296
297 <para>
298 <command>make -f client.mk ...</command>: Mozilla products are packaged to
299 allow the use of a configuration file which can be used to pass the
300 configuration settings to the <command>configure</command> command.
301 <command>make</command> uses the <filename>client.mk</filename> file to
302 get initial configuration and setup parameters.
303 </para>
304
305 <para>
306 <command>make -C firefox-build-dir install</command>: This runs
307 <command>make install</command> in firefox-build-dir.
308 </para>
309
310 <para>
311 <command>ln -sfv ... /usr/bin/firefox</command>: This puts a symbolic link
312 to the <command>firefox</command> executable in your <envar>PATH</envar>
313 variable.
314 </para>
315
316 <para>
317 <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
318 that <filename class="directory">/usr/lib/mozilla/plugins</filename>
319 exists.
320 </para>
321
322 <para>
323 <command>ln -sv ... /usr/lib/firefox-&firefox-version;/browser</command>:
324 This command creates a symbolic link to <filename
325 class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
326 needed, as <application>Firefox</application> checks <filename
327 class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
328 symbolic link is made to keep all the plugins installed in one folder.
329 </para>
330
331 </sect2>
332
333 <sect2 role="configuration">
334 <title>Configuring Firefox</title>
335
336 <para>
337 If you deleted the <option>--disable-webm</option> option from your
338 <filename>mozconfig</filename>, your <application>Firefox</application>
339 can play most YouTube videos without the need for the flash plugin. To
340 enable this, go to <ulink url="http://www.youtube.com/html5"/> and click
341 on 'Join the HTML5 Trial' (needs cookies enabled).
342 </para>
343
344 <para>
345 If you use a desktop environment like <application>Gnome</application> or
346 <application>KDE</application> you may like to create a
347 <filename>firefox.desktop</filename> file so that
348 <application>Firefox</application> appears in the panel's menus. If you
349 didn't enable startup-notification in your mozconfig change the
350 StartupNotify line to false. As the
351 <systemitem class="username">root</systemitem> user:
352 </para>
353
354<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
355mkdir -pv /usr/share/pixmaps &amp;&amp;
356
357cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
358<literal>[Desktop Entry]
359Encoding=UTF-8
360Name=Firefox Web Browser
361Comment=Browse the World Wide Web
362GenericName=Web Browser
363Exec=firefox %u
364Terminal=false
365Type=Application
366Icon=firefox
367Categories=GNOME;GTK;Network;WebBrowser;
368MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
369StartupNotify=true</literal>
370EOF
371
372ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
373 /usr/share/pixmaps/firefox.png</userinput></screen>
374
375 </sect2>
376
377 <sect2 role="content">
378 <title>Contents</title>
379
380 <segmentedlist>
381 <segtitle>Installed Programs</segtitle>
382 <segtitle>Installed Libraries</segtitle>
383 <segtitle>Installed Directory</segtitle>
384
385 <seglistitem>
386 <seg>
387 firefox
388 </seg>
389 <seg>
390 Numerous libraries, browser components, plugins, extensions, and
391 helper modules installed in
392 <filename class="directory">/usr/lib/firefox-&firefox-version;</filename>
393 </seg>
394 <seg>
395 /usr/lib/firefox-&firefox-version;
396 </seg>
397 </seglistitem>
398 </segmentedlist>
399
400 <variablelist>
401 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
402 <?dbfo list-presentation="list"?>
403 <?dbhtml list-presentation="table"?>
404
405 <varlistentry id="firefox-prog">
406 <term><command>firefox</command></term>
407 <listitem>
408 <para>
409 is a <application>GTK+ 2</application> internet browser that uses the
410 Mozilla Gecko rendering engine.
411 </para>
412 <indexterm zone="firefox firefox-prog">
413 <primary sortas="b-firefox">firefox</primary>
414 </indexterm>
415 </listitem>
416 </varlistentry>
417
418 </variablelist>
419
420 </sect2>
421
422</sect1>
Note: See TracBrowser for help on using the repository browser.