source: xsoft/graphweb/firefox.xml@ 08148c0

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

Update to firefox-38.0.5.

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

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