source: xsoft/graphweb/firefox.xml@ 4b0eaf01

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 4b0eaf01 was 4b0eaf01, checked in by Ken Moffat <ken@…>, 8 years ago

firefox can be built with gtk+-3 instead of gtk+-2.

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

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