source: xsoft/graphweb/firefox.xml@ 6e8b058

krejzi/svn
Last change on this file since 6e8b058 was 07c39524, checked in by Krejzi <krejzi@…>, 10 years ago

Firefox-33.0.2 update.

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

  • Property mode set to 100644
File size: 12.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 "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
9 <!ENTITY firefox-download-ftp
10 "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
11 <!ENTITY firefox-md5sum "385ad037451f141b68515c73cad01704">
12 <!ENTITY firefox-size "148 MB">
13 <!ENTITY firefox-buildsize "4.9 GB (66 MB installed)">
14 <!ENTITY firefox-time "60 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 &lfs76_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="unzip"/> and
82 <xref linkend="zip"/>
83 </para>
84
85 <bridgehead renderas="sect4">Recommended</bridgehead>
86 <para role="recommended">
87 <xref linkend="icu"/>,
88 <xref linkend="libevent"/>,
89 <xref linkend="libvpx"/>,
90 <xref linkend="nspr"/>,
91 <xref linkend="nss"/>,
92 <xref linkend="sqlite"/> and
93 <xref linkend="yasm"/>
94 </para>
95
96 <note>
97 <para>
98 If you don't install recommended dependencies,
99 then internal copies of those packages will
100 be used. They might be tested to work, but
101 they can be out of date or contain security
102 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 - if that package has not already
119 been installed).
120 </para>
121 </note>
122
123 <bridgehead renderas="sect4">Optional</bridgehead>
124 <para role="optional">
125 <xref linkend="curl"/>,
126 <xref linkend="dbus-glib"/>,
127 <xref linkend="doxygen"/>,
128 <xref linkend="gst-plugins-base"/> (with
129 <xref linkend="gst-plugins-good"/> and
130 <xref linkend="gst-ffmpeg"/> at runtime), or
131 <xref linkend="gst10-plugins-base"/> (with
132 <xref linkend="gst10-plugins-good"/> and
133 <xref linkend="gst10-libav"/> at runtime),
134 <xref linkend="libnotify"/>,
135 <xref linkend="openjdk"/>,
136 <xref linkend="pulseaudio"/>,
137 <xref linkend="startup-notification"/>,
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 by
153 creating a <filename>mozconfig</filename> file containing the desired
154 configuration options. A default <filename>mozconfig</filename> is created
155 below. To see the entire list of available configuration options (and an
156 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.
159 Create the file by issuing the following command:
160 </para>
161
162<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
163<literal># If you have a multicore machine, firefox will now use all the cores by
164# default. Exceptionally, you can reduce the number of cores, e.g. to 1,
165# by 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 do *not* have GStreamer 0.x.y, uncomment this line:
182#ac_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
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-strip
214ac_add_options --enable-install-strip
215
216ac_add_options --enable-gio
217ac_add_options --enable-official-branding
218ac_add_options --enable-safe-browsing
219ac_add_options --enable-url-classifier
220
221ac_add_options --enable-system-cairo
222ac_add_options --enable-system-ffi
223ac_add_options --enable-system-pixman
224
225ac_add_options --with-pthreads
226
227ac_add_options --with-system-bz2
228ac_add_options --with-system-jpeg
229ac_add_options --with-system-png
230ac_add_options --with-system-zlib
231
232mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
233EOF</userinput></screen>
234
235 <para>
236 Compile <application>Firefox</application> by issuing the following
237 commands:
238 </para>
239
240<screen><userinput>make -f client.mk</userinput></screen>
241
242 <para>
243 This package does not come with a test suite.
244 </para>
245
246 <para>
247 Install <application>Firefox</application> by running the following
248 commands as the <systemitem class="username">root</systemitem> user:
249 </para>
250
251<screen role="root"><userinput>make -f client.mk install INSTALL_SDK= &amp;&amp;
252
253mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
254ln -sfv ../mozilla/plugins /usr/lib/firefox-&firefox-version;</userinput></screen>
255
256 <para>
257 The above instruction just installs the parts you need to run
258 <application>Firefox</application>. Alternatively, if you want to
259 install the full <application>Firefox</application> development
260 environment, run the following command as the
261 <systemitem class="username">root</systemitem> user:
262 </para>
263
264<screen role="root"><userinput>make -C firefox-build-dir install</userinput></screen>
265
266 </sect2>
267
268 <sect2 role="commands">
269 <title>Command Explanations</title>
270
271 <para>
272 <command>make -f client.mk ...</command>: Mozilla products are packaged to
273 allow the use of a configuration file which can be used to pass the
274 configuration settings to the <command>configure</command> command.
275 <command>make</command> uses the <filename>client.mk</filename> file to
276 get initial configuration and setup parameters.
277 </para>
278
279 <para>
280 <command>ln -sfv ... /usr/lib/firefox-&firefox-version;/browser</command>:
281 This command creates a symbolic link to <filename
282 class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
283 needed, as <application>Firefox</application> checks <filename
284 class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
285 symbolic link is made to keep all the plugins installed in one folder.
286 </para>
287
288 </sect2>
289
290 <sect2 role="configuration">
291 <title>Configuring Firefox</title>
292
293 <para>
294 If you deleted the <option>--disable-webm</option> option from your
295 <filename>mozconfig</filename>, your <application>Firefox</application>
296 can play most YouTube videos without the need for the flash plugin. To
297 enable this, go to <ulink url="http://www.youtube.com/html5"/> and click
298 on 'Join the HTML5 Trial' (needs cookies enabled).
299 </para>
300
301 <para>
302 If you use a desktop environment like <application>Gnome</application> or
303 <application>KDE</application> you may like to create a
304 <filename>firefox.desktop</filename> file so that
305 <application>Firefox</application> appears in the panel's menus. If you
306 didn't enable startup-notification in your mozconfig change the
307 StartupNotify line to false. As the
308 <systemitem class="username">root</systemitem> user:
309 </para>
310
311<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
312
313cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
314<literal>[Desktop Entry]
315Encoding=UTF-8
316Name=Firefox Web Browser
317Comment=Browse the World Wide Web
318GenericName=Web Browser
319Exec=firefox %u
320Terminal=false
321Type=Application
322Icon=firefox
323Categories=GNOME;GTK;Network;WebBrowser;
324MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
325StartupNotify=true</literal>
326EOF
327
328for s in 16 32 48
329do
330install -v -Dm644 /usr/lib/firefox-&firefox-version;/browser/chrome/icons/default/default${s}.png \
331 /usr/share/icons/hicolor/${s}x${s}/apps/firefox.png
332done &amp;&amp;
333install -v -Dm644 /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
334 /usr/share/icons/hicolor/128x128/apps/firefox.png &amp;&amp;
335gtk-update-icon-cache -qf /usr/share/icons/hicolor &amp;&amp;
336unset s</userinput></screen>
337
338 </sect2>
339
340 <sect2 role="content">
341 <title>Contents</title>
342
343 <segmentedlist>
344 <segtitle>Installed Programs</segtitle>
345 <segtitle>Installed Libraries</segtitle>
346 <segtitle>Installed Directories</segtitle>
347
348 <seglistitem>
349 <seg>
350 firefox
351 </seg>
352 <seg>
353 None
354 </seg>
355 <seg>
356 /usr/lib/firefox-&firefox-version; and
357 /usr/lib/mozilla/plugins
358 </seg>
359 </seglistitem>
360 </segmentedlist>
361
362 <variablelist>
363 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
364 <?dbfo list-presentation="list"?>
365 <?dbhtml list-presentation="table"?>
366
367 <varlistentry id="firefox-prog">
368 <term><command>firefox</command></term>
369 <listitem>
370 <para>
371 is a <application>GTK+ 2</application> internet browser that uses the
372 Mozilla Gecko rendering engine.
373 </para>
374 <indexterm zone="firefox firefox-prog">
375 <primary sortas="b-firefox">firefox</primary>
376 </indexterm>
377 </listitem>
378 </varlistentry>
379
380 </variablelist>
381
382 </sect2>
383
384</sect1>
Note: See TracBrowser for help on using the repository browser.