source: xsoft/graphweb/firefox.xml@ d525da9c

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 d525da9c was d525da9c, checked in by Ken Moffat <ken@…>, 9 years ago

firefox-41.0 : add missing references to GConf

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

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