source: xsoft/graphweb/firefox.xml@ 9e069685

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 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 9e069685 was 9e069685, checked in by Andrew Benton <andy@…>, 12 years ago

Firefox-12.0

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

  • Property mode set to 100644
File size: 14.5 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://releases.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 "4b07acf47857aff72776d805409cdd1b">
12 <!ENTITY firefox-size "75 MB">
13 <!ENTITY firefox-buildsize "3 GB (33 MB installed)">
14 <!ENTITY firefox-time "24 SBU (or 0.3 SBU if you're building against
15 an installed Xulrunner)">
16]>
17
18<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
19 <?dbhtml filename="firefox.html" ?>
20
21 <sect1info>
22 <othername>$LastChangedBy$</othername>
23 <date>$Date$</date>
24 </sect1info>
25
26 <title>Firefox-&firefox-version;</title>
27
28 <indexterm zone="firefox">
29 <primary sortas="a-Firefox">Firefox</primary>
30 </indexterm>
31
32 <sect2 role="package">
33 <title>Introduction to Firefox</title>
34
35 <para>
36 <application>Firefox</application> is a stand-alone browser based on the
37 <application>Mozilla</application> codebase.
38 </para>
39
40 &lfs71_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&firefox-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&firefox-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &firefox-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &firefox-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &firefox-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &firefox-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
77 <itemizedlist spacing="compact">
78 <listitem>
79 <para>
80 Required patch if you're using <application>GCC-4.7</application>:
81 <ulink url="&patch-root;/firefox-&firefox-version;_gcc-4.7-1.patch"/>
82 </para>
83 </listitem>
84 </itemizedlist>
85
86 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
87
88 <bridgehead renderas="sect4">Required</bridgehead>
89 <para role="required">
90 <xref linkend="alsa-lib"/>,
91 <xref linkend="gtk2"/>,
92 <xref linkend="zip"/> and
93 <xref linkend="unzip"/>.
94 </para>
95
96 <para>
97 Note: <application>libjpeg</application> and
98 <application>libpng</application> (patched for apng support) should have
99 been installed before <application>gdk-pixbuf</application> and should
100 exist on your system. If for some strange reason you haven't installed
101 them, you should remove the <option>--with-system-jpeg</option> and
102 <option>--with-system-png</option> options from the
103 <filename>mozconfig</filename> file created below.
104 </para>
105
106 <bridgehead renderas="sect4">Recommended</bridgehead>
107 <para role="recommended">
108 <xref linkend="yasm"/> or <xref linkend="libvpx"/>
109 (to allow <application>Firefox</application> to play webm videos).
110 </para>
111
112 <bridgehead renderas="sect4">Optional</bridgehead>
113 <para role="optional">
114 <xref linkend="dbus-glib"/>,
115 <xref linkend="startup-notification"/>,
116 <xref linkend="sqlite"/>,
117 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
118 <ulink url="http://libevent.org/">Libevent</ulink>,
119 <xref linkend="doxygen"/>,
120 <xref linkend="gnome-vfs"/> and
121 <xref linkend="libgnomeui"/> (for integration with the old version of
122 <application>Gnome</application>),
123 <xref linkend="libnotify"/>,
124 <xref linkend="nspr"/>, <xref linkend="nss"/>,
125 <xref linkend="xulrunner"/> (linking against an installed xulrunner makes
126 Firefox about 32 MB smaller, which is trivial compared to the size of
127 xulrunner),
128 <xref linkend="wireless_tools"/>,
129 <ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
130 the jemalloc code) and
131 <xref linkend="wget"/>
132 </para>
133
134 <para condition="html" role="usernotes">
135 User Notes: <ulink url="&blfs-wiki;/firefox"/>
136 </para>
137 </sect2>
138
139 <sect2 role="installation">
140 <title>Installation of Firefox</title>
141
142 <para>
143 The configuration of <application>Firefox</application> is accomplished by
144 creating a <filename>mozconfig</filename> file containing the desired
145 configuration options. A default <filename>mozconfig</filename> is created
146 below. To see the entire list of available configuration options (and an
147 abbreviated description of each one), issue <command>./configure
148 --help</command>. You may also wish to review the entire file and
149 uncomment any other desired options. Create the file by issuing the
150 following command:
151 </para>
152
153<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
154# If you have a multicore machine you can speed up the build by running
155# several jobs at once, but if you have a single core, delete this line:
156mk_add_options MOZ_MAKE_FLAGS="-j4"
157
158# If you have installed Yasm delete this option:
159ac_add_options --disable-webm
160
161# If you have installed DBus-Glib delete this option:
162ac_add_options --disable-dbus
163
164# If you have installed wireless-tools delete this option:
165ac_add_options --disable-necko-wifi
166
167# If you have installed libnotify delete this option:
168ac_add_options --disable-libnotify
169
170# If you have installed xulrunner uncomment these two lines:
171# ac_add_options --with-system-libxul
172# ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-&xulrunner-version;
173
174# Uncomment these if you have installed them:
175# ac_add_options --with-system-nspr
176# ac_add_options --with-system-nss
177# ac_add_options --enable-system-sqlite
178# ac_add_options --with-system-libvpx
179# ac_add_options --enable-startup-notification
180# ac_add_options --enable-system-hunspell
181# ac_add_options --with-system-libevent
182
183mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
184ac_add_options --enable-official-branding
185ac_add_options --prefix=/usr
186
187# The rest of these options have no effect if you're
188# building against an already installed xulrunner:
189ac_add_options --with-pthreads
190ac_add_options --enable-system-ffi
191ac_add_options --with-system-jpeg
192ac_add_options --with-system-png
193ac_add_options --enable-system-cairo
194ac_add_options --with-system-zlib
195ac_add_options --enable-shared
196ac_add_options --disable-static
197ac_add_options --disable-debug
198ac_add_options --disable-crashreporter
199ac_add_options --disable-installer
200ac_add_options --disable-updater
201ac_add_options --disable-tests
202EOF</userinput></screen>
203
204 <para>
205 Compile <application>Firefox</application> by issuing the following
206 commands:
207 </para>
208
209<screen><userinput>sed -i '/fcntl.h/a#include &lt;unistd.h&gt;' \
210 ipc/chromium/src/base/{file_util_linux,message_pump_libevent}.cc &amp;&amp;
211sed -i '/sys\/time\.h/a#include &lt;unistd.h&gt;' ipc/chromium/src/base/time_posix.cc &amp;&amp;
212sed -i 's# ""##' browser/base/Makefile.in &amp;&amp;
213make -f client.mk</userinput></screen>
214
215 <para>
216 This package does not come with a test suite.
217 </para>
218
219 <para>
220 If you have <emphasis>not</emphasis> linked
221 <application>Firefox</application> against an installed
222 <application>Xulrunner</application>:
223 </para>
224
225<screen><userinput>make -C firefox-build-dir/browser/installer</userinput></screen>
226
227 <para>
228 Now, as the <systemitem class="username">root</systemitem> user, if you
229 have <emphasis>not</emphasis> linked <application>Firefox</application>
230 against an installed <application>Xulrunner</application>, install the
231 package:
232 </para>
233
234<screen role="root"><userinput>mkdir /usr/lib/firefox-&firefox-version; &amp;&amp;
235tar -xvf firefox-build-dir/dist/firefox-*.tar.bz2 \
236 -C /usr/lib/firefox-&firefox-version; --strip-components=1 &amp;&amp;
237ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin/firefox &amp;&amp;
238mkdir -p /usr/lib/mozilla/plugins &amp;&amp;
239ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &amp;&amp;
240chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
241
242 <para>
243 If you <emphasis>have</emphasis> linked against an already installed
244 <application>Xulrunner</application>, as the
245 <systemitem class="username">root</systemitem> user:
246 </para>
247
248<screen role="root"><userinput>make -C firefox-build-dir install &amp;&amp;
249rm /usr/bin/firefox &amp;&amp;
250cat &gt; /usr/bin/firefox &lt;&lt; "EOF" &amp;&amp;
251#!/bin/bash
252/usr/lib/xulrunner-&xulrunner-version;/xulrunner /usr/lib/firefox-&firefox-version;/application.ini "${@}"
253EOF
254chmod 755 /usr/bin/firefox &amp;&amp;
255mkdir -p /usr/lib/mozilla/plugins &amp;&amp;
256ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &amp;&amp;
257chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
258 </sect2>
259
260 <sect2 role="commands">
261 <title>Command Explanations</title>
262
263 <para>
264 <command>sed -i '/fcntl.h/a#include &lt;unistd.h&gt;'
265 ipc/chromium/src/base/{file_util_linux,message_pump_libevent}.cc
266 &amp;&amp; sed -i '/sys\/time\.h/a#include &lt;unistd.h&gt;'
267 ipc/chromium/src/base/time_posix.cc</command>: These seds fix bugs that
268 would otherwise break the build if you're using
269 <application>GCC 4.7</application>.
270 </para>
271
272 <para>
273 <command>sed -i 's# ""##' browser/base/Makefile.in</command>: This sed
274 removes an unprintable control character from the title bar.
275 </para>
276
277 <para>
278 <command>make -f client.mk ...</command>: Mozilla products are packaged to
279 allow the use of a configuration file which can be used to pass the
280 configuration settings to the <command>configure</command> command.
281 <command>make</command> uses the <filename>client.mk</filename> file to
282 get initial configuration and setup parameters.
283 </para>
284
285 <para>
286 <command>make -C firefox-build-dir/browser/installer</command>: this
287 creates a <application>Firefox</application> tarball similar to the ones
288 you can download from Mozilla.
289 </para>
290
291 <para>
292 <command>tar -xfv firefox-build-dir/dist ...</command>: This untars
293 <application>Firefox</application> in /usr/lib. The
294 <option>--strip-components=1</option> option removes the leading
295 'firefox' directory from the filenames, allowing us to untar it
296 into a versioned directory. Untaring it (instead of running make install)
297 prevents it installing
298 <filename class="directory">/usr/lib/firefox-devel-&firefox-version;</filename>
299 which contains about 430 MB of files. If you need any of those files,
300 they're in <xref linkend="xulrunner"/>
301 </para>
302
303 <para>
304 <command>make -C firefox-build-dir install</command>: This runs
305 <command>make install</command> in firefox-build-dir.
306 </para>
307
308 <para>
309 <command>ln -sfv ... /usr/bin/firefox</command>: this puts a symbolic link
310 to the <command>firefox</command> executable in your ${PATH}.
311 </para>
312
313 <para>
314 <command>mkdir -p /usr/lib/mozilla/plugins</command>: this checks
315 that <filename class="directory">/usr/lib/mozilla/plugins</filename>
316 exists.
317 </para>
318
319 <para>
320 <command>ln -sv ... /usr/lib/firefox-&firefox-version;</command>: this
321 makes a symbolic link to
322 <filename class="directory">/usr/lib/mozilla/plugins</filename>. It's not
323 really needed, <application>Firefox</application> checks
324 <filename class="directory">/usr/lib/mozilla/plugins</filename> by
325 default, we make the symbolic link to keep all the plugins installed in
326 one folder.
327 </para>
328 </sect2>
329
330 <sect2 role="configuration">
331 <title>Configuring Firefox</title>
332
333 <para>
334 If you deleted the <option>--disable-webm</option> option from your
335 <filename>mozconfig</filename>, your <application>Firefox</application>
336 can play most YouTube videos without the need for the flash plugin. To
337 enable this, go to <ulink url="http://www.youtube.com/html5"/> and click
338 on 'Join the HTML5 Trial' (needs cookies enabled).
339 </para>
340
341 <para>
342 If you use a desktop environment like <application>Gnome</application> or
343 <application>KDE</application> you may like to create a
344 <filename>firefox.desktop</filename> file so that
345 <application>Firefox</application> appears in the panel's menus. If you
346 didn't enable startup-notification in your mozconfig change the
347 StartupNotify line to false. As the
348 <systemitem class="username">root</systemitem> user:
349 </para>
350
351<screen role="root"><userinput>cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF"
352[Desktop Entry]
353Encoding=UTF-8
354Type=Application
355Name=Firefox
356Comment=Browse The Web
357Icon=firefox
358Exec=firefox
359Categories=Network;GTK;Application;Browser;WebBrowser;
360StartupNotify=true
361Terminal=false
362EOF
363ln -sv -f /usr/lib/firefox-&firefox-version;/icons/mozicon128.png /usr/share/pixmaps/firefox.png</userinput></screen>
364 </sect2>
365
366 <sect2 role="content">
367 <title>Contents</title>
368
369 <segmentedlist>
370 <segtitle>Installed Programs</segtitle>
371 <segtitle>Installed Libraries</segtitle>
372 <segtitle>Installed Directories</segtitle>
373
374 <seglistitem>
375 <seg>firefox</seg>
376 <seg>
377 Numerous libraries, browser components, plugins, extensions, and
378 helper modules installed in
379 <filename class="directory">/usr/lib/firefox-&firefox-version;</filename>.
380 </seg>
381 <seg>/usr/lib/firefox-&firefox-version;</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 gtk2 internet browser that uses the Gecko rendering engine.
395 </para>
396 <indexterm zone="firefox firefox-prog">
397 <primary sortas="b-firefox">firefox</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401 </variablelist>
402 </sect2>
403</sect1>
Note: See TracBrowser for help on using the repository browser.