source: xsoft/graphweb/firefox.xml@ 99d18bf

7.6-blfs 7.6-systemd kde5-14269 kde5-14686 systemd-13485
Last change on this file since 99d18bf was 7251b1d, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Fix Net-DNS-0.76 md5sum, thanks Wayne B.
Promote '--enable-tee' to parameter in Cairo-1.12.16 and 'ac_add_options --enable-system-cairo' in Xulrunner-30.0, Firefox-30.0 and Thunderbird-24.6.0, thanks Armin K.
Replace sentence '... do not touch ...' by 'The BLFS editors recommend not changing anything below this line', thanks Bruce D.

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

  • Property mode set to 100644
File size: 15.0 KB
RevLine 
[f939f05]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[f939f05]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[1b356a9d]7<!-- <!ENTITY firefox-download-http
8 "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">-->
[0e37869]9 <!ENTITY firefox-download-http
[1b356a9d]10 "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
[44a8f24e]11 <!ENTITY firefox-download-ftp
[0e37869]12 "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
[c011125]13 <!ENTITY firefox-md5sum "ac7e8c801ded4e6195182bf54c81acb6">
[7bf10b1]14 <!ENTITY firefox-size "137 MB">
[c011125]15 <!ENTITY firefox-buildsize "3.7 GB (77 MB installed) (or 943 MB and 6.0 MB if using Xulrunner)">
16 <!ENTITY firefox-time "44 SBU (0.3 SBU if using Xulrunner)">
[f939f05]17]>
18
[ffe47ca2]19<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
[b81991e1]20 <?dbhtml filename="firefox.html" ?>
21
22 <sect1info>
23 <othername>$LastChangedBy$</othername>
24 <date>$Date$</date>
25 </sect1info>
26
27 <title>Firefox-&firefox-version;</title>
28
29 <indexterm zone="firefox">
30 <primary sortas="a-Firefox">Firefox</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Firefox</title>
35
[c1ae13c]36 <para>
37 <application>Firefox</application> is a stand-alone browser based on the
38 <application>Mozilla</application> codebase.
39 </para>
[b81991e1]40
[9faa3b74]41 &lfs75_checked;
[76ae9a2]42
[b81991e1]43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
[c1ae13c]46 <para>
47 Download (HTTP): <ulink url="&firefox-download-http;"/>
48 </para>
[b81991e1]49 </listitem>
50 <listitem>
[c1ae13c]51 <para>
52 Download (FTP): <ulink url="&firefox-download-ftp;"/>
53 </para>
[b81991e1]54 </listitem>
55 <listitem>
[c1ae13c]56 <para>
57 Download MD5 sum: &firefox-md5sum;
58 </para>
[b81991e1]59 </listitem>
60 <listitem>
[c1ae13c]61 <para>
62 Download size: &firefox-size;
63 </para>
[b81991e1]64 </listitem>
65 <listitem>
[c1ae13c]66 <para>
67 Estimated disk space required: &firefox-buildsize;
68 </para>
[b81991e1]69 </listitem>
70 <listitem>
[c1ae13c]71 <para>
72 Estimated build time: &firefox-time;
73 </para>
[b81991e1]74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Required</bridgehead>
[c1ae13c]80 <para role="required">
81 <xref linkend="alsa-lib"/>,
82 <xref linkend="gtk2"/>,
[f72a04a]83 <xref linkend="zip"/>, and
[0e37869]84 <xref linkend="unzip"/>
[c1ae13c]85 </para>
86
[1555d3d]87 <bridgehead renderas="sect4">Recommended</bridgehead>
[c1ae13c]88 <para role="recommended">
[7bf10b1]89 <xref linkend="icu"/>,
[0e37869]90 <xref linkend="libevent"/>,
91 <xref linkend="libvpx"/>,
92 <xref linkend="nspr"/>,
93 <xref linkend="nss"/>,
94 <xref linkend="sqlite"/> and
95 <xref linkend="yasm"/>
[c1ae13c]96 </para>
[1555d3d]97
[0e37869]98 <note>
99 <para>
100 If you don't install recommended dependencies,
101 then internal copies of those packages will
102 be used. They might be tested to work, but
103 they can be out of date or contain security
104 holes.
105 </para>
106 </note>
107
[b81991e1]108 <bridgehead renderas="sect4">Optional</bridgehead>
[c1ae13c]109 <para role="optional">
[6c64623f]110 <xref linkend="curl"/>,
[c1ae13c]111 <xref linkend="dbus-glib"/>,
112 <xref linkend="doxygen"/>,
[7bf10b1]113 <xref linkend="gst-plugins-base"/> (with
[db73840]114 <xref linkend="gst-plugins-good"/> and
[c011125]115 <xref linkend="gst-ffmpeg"/> at runtime), or
116 <xref linkend="gst10-plugins-base"/> (with
117 <xref linkend="gst10-plugins-good"/> and
118 <xref linkend="gst10-libav"/> at runtime),
[0e37869]119 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
[c1ae13c]120 <xref linkend="libnotify"/>,
[26fa7d2]121 <xref linkend="openjdk"/>,
122 <xref linkend="pulseaudio"/>,
[0e37869]123 <xref linkend="startup-notification"/>,
124 <xref linkend="wget"/>,
125 <xref linkend="wireless_tools"/> and
[495ebe07]126 <xref linkend="xulrunner"/>
[c1ae13c]127 </para>
128
129 <para condition="html" role="usernotes">
130 User Notes: <ulink url="&blfs-wiki;/firefox"/>
131 </para>
[b81991e1]132 </sect2>
133
134 <sect2 role="installation">
135 <title>Installation of Firefox</title>
136
[f72a04a]137 <para>
[a38269c]138 There are two major methods for building
139 <application>Firefox</application>. In the standard case, the entire suite
140 of libraries is built and installed. In the other, most of the system is
141 built using the procedures found in <xref linkend="xulrunner"/>. This is
142 advantageous if you are planning to build other related packages such as
143 <xref linkend="icedtea-web"/>. With either build method, you need to run
144 the main build procedure below with the appropriate options in the
145 <filename>mozconfig</filename> file. Then use the appropriate install
146 instructions depending on the chosen build method.
[f72a04a]147 </para>
148
[c1ae13c]149 <para>
150 The configuration of <application>Firefox</application> is accomplished by
151 creating a <filename>mozconfig</filename> file containing the desired
152 configuration options. A default <filename>mozconfig</filename> is created
153 below. To see the entire list of available configuration options (and an
154 abbreviated description of each one), issue <command>./configure
155 --help</command>. You may also wish to review the entire file and
[d2a469d2]156 uncomment any other desired options.
157 Create the file by issuing the following command:
[c1ae13c]158 </para>
[5a13c45]159
[0e37869]160<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
[d2a469d2]161# If you have a multicore machine, firefox will now use all the cores by
162# default. Exceptionally, you can reduce the number of cores, e.g. to 1,
163# by uncommenting the next line and setting a valid number of CPU cores.
164#mk_add_options MOZ_MAKE_FLAGS="-j1"
[1555d3d]165
[0e37869]166# If you have installed DBus-Glib comment out this line:
[74eaf91]167ac_add_options --disable-dbus
[aed37975]168
[32cca2cd]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
[6d1bf0e]172ac_add_options --disable-necko-wifi
173
[0e37869]174# If you have installed libnotify comment out this line:
[e144d87]175ac_add_options --disable-libnotify
176
[686a89a3]177# GStreamer is necessary for H.264 video playback in HTML5 Video Player;
178# to be enabled, also remember to set "media.gstreamer.enabled" to "true"
[c011125]179# in about:config. If you have GStreamer 0.x.y, uncomment this line:
180#ac_add_options --enable-gstreamer
181# or uncomment this line, if you have GStreamer 1.x.y
182#ac_add_options --enable-gstreamer=1.0
[48ae92a]183
184# Uncomment these lines if you have installed optional dependencies:
[0e37869]185#ac_add_options --enable-system-hunspell
186#ac_add_options --enable-startup-notification
[495ebe07]187
[27fd492b]188# Comment out following option if you have PulseAudio installed
189ac_add_options --disable-pulseaudio
190
[0e37869]191# If you have not installed Yasm then uncomment this line:
192#ac_add_options --disable-webm
[38c6448]193
[d2a469d2]194# If you have installed xulrunner uncomment the next two ac_add_options lines
195# and check that the sdk will be set by running pkg-config in a subshell
196# and has not become hardcoded or empty when you created this file
[0e37869]197#ac_add_options --with-system-libxul
[d2a469d2]198#ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul)
[dc8a9549]199
[0e37869]200# Comment out following options if you have not installed
201# recommended dependencies:
202ac_add_options --enable-system-sqlite
203ac_add_options --with-system-libevent
204ac_add_options --with-system-libvpx
205ac_add_options --with-system-nspr
206ac_add_options --with-system-nss
[7bf10b1]207ac_add_options --with-system-icu
[0e37869]208
[7251b1d]209# The BLFS editors recommend not changing anything below this line:
[495ebe07]210ac_add_options --prefix=/usr
[0e37869]211ac_add_options --enable-application=browser
[495ebe07]212
[5f5dcc2]213ac_add_options --disable-crashreporter
214ac_add_options --disable-updater
[0e37869]215ac_add_options --disable-tests
216
217ac_add_options --enable-optimize
218ac_add_options --enable-strip
219ac_add_options --enable-install-strip
220
221ac_add_options --enable-gio
222ac_add_options --enable-official-branding
223ac_add_options --enable-safe-browsing
224ac_add_options --enable-url-classifier
225
[7251b1d]226ac_add_options --enable-system-cairo
[41f2e90]227ac_add_options --enable-system-ffi
[0e37869]228ac_add_options --enable-system-pixman
229
[5f5dcc2]230ac_add_options --with-pthreads
[0e37869]231
232ac_add_options --with-system-bz2
[a0ace670]233ac_add_options --with-system-jpeg
234ac_add_options --with-system-png
235ac_add_options --with-system-zlib
[aed37975]236
[0e37869]237mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
238EOF</userinput></screen>
[b9b7146]239
[c1ae13c]240 <para>
241 Compile <application>Firefox</application> by issuing the following
242 commands:
243 </para>
[5a13c45]244
[8b3a8979]245 <note><para>
246 If you are compiling <application>Firefox</application> in chroot, prepend
247 <envar>SHELL=/bin/bash</envar> to the first make command below.
248 </para></note>
249
[f2b8afea]250<screen><userinput>make -f client.mk</userinput></screen>
[bccbdaea]251
[0e37869]252 <para>
253 This package does not come with a test suite.
254 </para>
[01ce75f8]255
[0ccfdd3a]256<!-- <para>
[495ebe07]257 If you have <emphasis>not</emphasis> linked
258 <application>Firefox</application> against an installed
259 <application>Xulrunner</application>:
260 </para>
261
262<screen><userinput>make -C firefox-build-dir/browser/installer</userinput></screen>
[0ccfdd3a]263-->
[495ebe07]264 <para>
265 Now, as the <systemitem class="username">root</systemitem> user, if you
266 have <emphasis>not</emphasis> linked <application>Firefox</application>
267 against an installed <application>Xulrunner</application>, install the
268 package:
[c1ae13c]269 </para>
[5a13c45]270
[0ccfdd3a]271<!--<screen role="root"><userinput>rm -rf /usr/lib/firefox-&firefox-version; &amp;&amp;
[74f73ede]272mkdir /usr/lib/firefox-&firefox-version; &amp;&amp;
273
[2d7d257e]274tar -xvf firefox-build-dir/dist/firefox-&firefox-version;.en-US.linux-$(uname -m).tar.bz2 \
[0ccfdd3a]275 -C /usr/lib/firefox-&firefox-version; -\-strip-components=1 &amp;&amp;
[0e37869]276chown -R -v root:root /usr/lib/firefox-&firefox-version; &amp;&amp;
277
[0ccfdd3a]278ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin &amp;&amp;-->
279<screen role="root"><userinput>make -f client.mk install INSTALL_SDK= &amp;&amp;
[74f73ede]280
[0e37869]281mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
282ln -sfv ../mozilla/plugins /usr/lib/firefox-&firefox-version;</userinput></screen>
[495ebe07]283
284 <para>
285 If you <emphasis>have</emphasis> linked against an already installed
286 <application>Xulrunner</application>, as the
287 <systemitem class="username">root</systemitem> user:
288 </para>
289
290<screen role="root"><userinput>make -C firefox-build-dir install &amp;&amp;
[31ab0f7]291ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin &amp;&amp;
292ln -sfv ../xulrunner-&firefox-version; /usr/lib/firefox-&firefox-version;/xulrunner &amp;&amp;
[74f73ede]293
[eb5f847a]294mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
[0e37869]295ln -sfv ../mozilla/plugins /usr/lib/firefox-&firefox-version;</userinput></screen>
[01ce75f8]296
[b81991e1]297 </sect2>
298
[361df3e]299 <sect2 role="commands">
300 <title>Command Explanations</title>
301
[32cca2cd]302 <para>
303 <command>ac_add_options --disable-necko-wifi</command>: If you remove
304 this command, you will enable opt-in support for geolocation web services
305 when you are using a wifi connection.
306 </para>
307
[c1ae13c]308 <para>
309 <command>make -f client.mk ...</command>: Mozilla products are packaged to
310 allow the use of a configuration file which can be used to pass the
311 configuration settings to the <command>configure</command> command.
312 <command>make</command> uses the <filename>client.mk</filename> file to
313 get initial configuration and setup parameters.
314 </para>
315
[495ebe07]316 <para>
317 <command>make -C firefox-build-dir install</command>: This runs
318 <command>make install</command> in firefox-build-dir.
319 </para>
320
[c1ae13c]321 <para>
[ec64d28]322 <command>ln -sfv ... /usr/bin/firefox</command>: This puts a symbolic link
323 to the <command>firefox</command> executable in your <envar>PATH</envar>
324 variable.
[c1ae13c]325 </para>
326
327 <para>
[ec64d28]328 <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
[c1ae13c]329 that <filename class="directory">/usr/lib/mozilla/plugins</filename>
330 exists.
331 </para>
332
333 <para>
[ec64d28]334 <command>ln -sv ... /usr/lib/firefox-&firefox-version;</command>: This
[0e37869]335 command creates a symbolic link to
[c1ae13c]336 <filename class="directory">/usr/lib/mozilla/plugins</filename>. It's not
[ec64d28]337 really needed, as <application>Firefox</application> checks
[c1ae13c]338 <filename class="directory">/usr/lib/mozilla/plugins</filename> by
[ec64d28]339 default, but the symbolic link is made to keep all the plugins installed in
[c1ae13c]340 one folder.
341 </para>
[fa1bc3e]342
[b81991e1]343 </sect2>
344
[88cec02]345 <sect2 role="configuration">
346 <title>Configuring Firefox</title>
347
[c1ae13c]348 <para>
349 If you deleted the <option>--disable-webm</option> option from your
350 <filename>mozconfig</filename>, your <application>Firefox</application>
351 can play most YouTube videos without the need for the flash plugin. To
352 enable this, go to <ulink url="http://www.youtube.com/html5"/> and click
353 on 'Join the HTML5 Trial' (needs cookies enabled).
354 </para>
355
356 <para>
357 If you use a desktop environment like <application>Gnome</application> or
358 <application>KDE</application> you may like to create a
359 <filename>firefox.desktop</filename> file so that
360 <application>Firefox</application> appears in the panel's menus. If you
361 didn't enable startup-notification in your mozconfig change the
362 StartupNotify line to false. As the
363 <systemitem class="username">root</systemitem> user:
364 </para>
[31de6e7]365
[eb5f847a]366<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
[0e37869]367mkdir -pv /usr/share/pixmaps &amp;&amp;
[74f73ede]368
[c099902d]369cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
[fcd66369]370<literal>[Desktop Entry]
[31de6e7]371Encoding=UTF-8
[0e37869]372Name=Firefox Web Browser
373Comment=Browse the World Wide Web
374GenericName=Web Browser
375Exec=firefox %u
376Terminal=false
[31de6e7]377Type=Application
378Icon=firefox
[0e37869]379Categories=GNOME;GTK;Network;WebBrowser;
380MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
[fcd66369]381StartupNotify=true</literal>
[31de6e7]382EOF
[74f73ede]383
[376c8c0]384ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
[0e37869]385 /usr/share/pixmaps/firefox.png</userinput></screen>
386
[88cec02]387 </sect2>
388
[b81991e1]389 <sect2 role="content">
390 <title>Contents</title>
391
392 <segmentedlist>
393 <segtitle>Installed Programs</segtitle>
394 <segtitle>Installed Libraries</segtitle>
[c5f005b]395 <segtitle>Installed Directory</segtitle>
[b81991e1]396
397 <seglistitem>
[0e37869]398 <seg>
399 firefox
400 </seg>
[c1ae13c]401 <seg>
402 Numerous libraries, browser components, plugins, extensions, and
403 helper modules installed in
[0e37869]404 <filename class="directory">/usr/lib/firefox-&firefox-version;</filename>
[c1ae13c]405 </seg>
[7498751]406 <seg>
[0e37869]407 /usr/lib/firefox-&firefox-version;
[7498751]408 </seg>
[b81991e1]409 </seglistitem>
410 </segmentedlist>
411
412 <variablelist>
413 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
414 <?dbfo list-presentation="list"?>
415 <?dbhtml list-presentation="table"?>
416
417 <varlistentry id="firefox-prog">
418 <term><command>firefox</command></term>
419 <listitem>
[c1ae13c]420 <para>
[0e37869]421 is a <application>GTK+ 2</application> internet browser that uses the
[a38269c]422 Mozilla Gecko rendering engine.
[c1ae13c]423 </para>
[b81991e1]424 <indexterm zone="firefox firefox-prog">
425 <primary sortas="b-firefox">firefox</primary>
426 </indexterm>
427 </listitem>
428 </varlistentry>
[0e37869]429
[b81991e1]430 </variablelist>
[0e37869]431
[b81991e1]432 </sect2>
[0e37869]433
[4d37129]434</sect1>
Note: See TracBrowser for help on using the repository browser.