source: xsoft/graphweb/firefox.xml@ 74f73ede

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 74f73ede was 74f73ede, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Update to firefox-15.0.1.
Fix some urls in perl-modules.

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

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