source: xsoft/graphweb/firefox.xml@ f45fa1c

systemd-13485
Last change on this file since f45fa1c was f080ae0e, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Merge to trunk r17352

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@17354 af4574ff-66df-0310-9fd7-8a98e5e911e0

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