source: xsoft/graphweb/firefox.xml@ c46a0e5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c46a0e5 was e726ecfb, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

xulrunner-25.0.1, firefox-25.0.1, seamonkey-2.22.1 and thunderbird-3.1.20 to build with FreeType-2.5.1: four equal typos.

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

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