source: xsoft/graphweb/firefox.xml@ c94758a

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 c94758a was c94758a, checked in by Ken Moffat <ken@…>, 11 years ago

firefox : revert http link, releases.mozilla.org appears to be working again.

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

  • Property mode set to 100644
File size: 15.4 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 "4ffb6d1c1a04ca8e3dbca23df09626dd">
12 <!ENTITY firefox-size "107 MB">
13 <!ENTITY firefox-buildsize "4.4 GB (46 MB installed) (or 784 MB and 4.2 MB if using Xulrunner)">
14 <!ENTITY firefox-time "32 SBU (0.2 SBU if using Xulrunner)">
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 &lfs73_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="zip"/>, and
82 <xref linkend="unzip"/>
83 </para>
84
85 <bridgehead renderas="sect4">Recommended</bridgehead>
86 <para role="recommended">
87 <xref linkend="libevent"/>,
88 <xref linkend="libvpx"/>,
89 <xref linkend="nspr"/>,
90 <xref linkend="nss"/>,
91 <xref linkend="sqlite"/> and
92 <xref linkend="yasm"/>
93 </para>
94
95 <note>
96 <para>
97 If you don't install recommended dependencies,
98 then internal copies of those packages will
99 be used. They might be tested to work, but
100 they can be out of date or contain security
101 holes.
102 </para>
103 </note>
104
105 <bridgehead renderas="sect4">Optional</bridgehead>
106 <para role="optional">
107 <xref linkend="curl"/>,
108 <xref linkend="dbus-glib"/>,
109 <xref linkend="doxygen"/>,
110 <xref linkend="gnome-vfs"/> and <xref linkend="libgnomeui"/>
111 (for integration with the old version of <application>GNOME</application>),
112 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
113 <xref linkend="libnotify"/>,
114 <xref linkend="startup-notification"/>,
115 <xref linkend="wget"/>,
116 <xref linkend="wireless_tools"/> and
117 <xref linkend="xulrunner"/>
118 </para>
119
120 <para condition="html" role="usernotes">
121 User Notes: <ulink url="&blfs-wiki;/firefox"/>
122 </para>
123 </sect2>
124
125 <sect2 role="installation">
126 <title>Installation of Firefox</title>
127
128 <para>
129 There are two major methods for building
130 <application>Firefox</application>. In the standard case, the entire suite
131 of libraries is built and installed. In the other, most of the system is
132 built using the procedures found in <xref linkend="xulrunner"/>. This is
133 advantageous if you are planning to build other related packages such as
134 <xref linkend="icedtea-web"/>. With either build method, you need to run
135 the main build procedure below with the appropriate options in the
136 <filename>mozconfig</filename> file. Then use the appropriate install
137 instructions depending on the chosen build method.
138 </para>
139
140 <para>
141 The configuration of <application>Firefox</application> is accomplished by
142 creating a <filename>mozconfig</filename> file containing the desired
143 configuration options. A default <filename>mozconfig</filename> is created
144 below. To see the entire list of available configuration options (and an
145 abbreviated description of each one), issue <command>./configure
146 --help</command>. You may also wish to review the entire file and
147 uncomment any other desired options.
148 Create the file by issuing the following command:
149 </para>
150
151<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
152# If you have a multicore machine, firefox will now use all the cores by
153# default. Exceptionally, you can reduce the number of cores, e.g. to 1,
154# by uncommenting the next line and setting a valid number of CPU cores.
155#mk_add_options MOZ_MAKE_FLAGS="-j1"
156
157# If you have installed DBus-Glib comment out this line:
158ac_add_options --disable-dbus
159
160# If you have installed wireless-tools comment out this line:
161ac_add_options --disable-necko-wifi
162
163# If you have installed libnotify comment out this line:
164ac_add_options --disable-libnotify
165
166# Uncomment these lines if you have installed optional dependencies:
167#ac_add_options --enable-system-hunspell
168#ac_add_options --enable-startup-notification
169
170# If you have not installed Yasm then uncomment this line:
171#ac_add_options --disable-webm
172
173# If you have installed xulrunner uncomment the next two ac_add_options lines
174# and check that the sdk will be set by running pkg-config in a subshell
175# and has not become hardcoded or empty when you created this file
176#ac_add_options --with-system-libxul
177#ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul)
178
179# Comment out following options if you have not installed
180# recommended dependencies:
181ac_add_options --enable-system-sqlite
182ac_add_options --with-system-libevent
183ac_add_options --with-system-libvpx
184ac_add_options --with-system-nspr
185ac_add_options --with-system-nss
186
187# It is recommended not to touch anything below this line
188ac_add_options --prefix=/usr
189ac_add_options --enable-application=browser
190
191ac_add_options --disable-crashreporter
192ac_add_options --disable-installer
193ac_add_options --disable-updater
194ac_add_options --disable-debug
195ac_add_options --disable-tests
196
197ac_add_options --enable-optimize
198ac_add_options --enable-strip
199ac_add_options --enable-install-strip
200
201ac_add_options --enable-gio
202ac_add_options --enable-official-branding
203ac_add_options --enable-safe-browsing
204ac_add_options --enable-url-classifier
205
206ac_add_options --enable-system-ffi
207ac_add_options --enable-system-pixman
208
209ac_add_options --with-pthreads
210
211ac_add_options --with-system-bz2
212ac_add_options --with-system-jpeg
213ac_add_options --with-system-png
214ac_add_options --with-system-zlib
215
216mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
217EOF</userinput></screen>
218
219 <para>
220 Compile <application>Firefox</application> by issuing the following
221 commands:
222 </para>
223
224<screen><userinput>sed -i 's@ ""@@' browser/base/Makefile.in &amp;&amp;
225sed -i "/gre_path/s@DIST'\]@&amp; + '/bin'@" toolkit/mozapps/installer/packager.py &amp;&amp;
226make -f client.mk</userinput></screen>
227
228 <para>
229 This package does not come with a test suite.
230 </para>
231
232 <para>
233 If you have <emphasis>not</emphasis> linked
234 <application>Firefox</application> against an installed
235 <application>Xulrunner</application>:
236 </para>
237
238<screen><userinput>make -C firefox-build-dir/browser/installer</userinput></screen>
239
240 <para>
241 Now, as the <systemitem class="username">root</systemitem> user, if you
242 have <emphasis>not</emphasis> linked <application>Firefox</application>
243 against an installed <application>Xulrunner</application>, install the
244 package:
245 </para>
246
247<screen role="root"><userinput>rm -rf /usr/lib/firefox-&firefox-version; &amp;&amp;
248mkdir /usr/lib/firefox-&firefox-version; &amp;&amp;
249
250tar -xvf firefox-build-dir/dist/firefox-&firefox-version;.en-US.linux-$(uname -m).tar.bz2 \
251 -C /usr/lib/firefox-&firefox-version; --strip-components=1 &amp;&amp;
252chown -R -v root:root /usr/lib/firefox-&firefox-version; &amp;&amp;
253
254ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin &amp;&amp;
255
256mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
257ln -sfv ../mozilla/plugins /usr/lib/firefox-&firefox-version;</userinput></screen>
258
259 <para>
260 If you <emphasis>have</emphasis> linked against an already installed
261 <application>Xulrunner</application>, as the
262 <systemitem class="username">root</systemitem> user:
263 </para>
264
265<screen role="root"><userinput>make -C firefox-build-dir install &amp;&amp;
266ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin &amp;&amp;
267ln -sfv ../xulrunner-&firefox-version; /usr/lib/firefox-&firefox-version;/xulrunner &amp;&amp;
268
269mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
270ln -sfv ../mozilla/plugins /usr/lib/firefox-&firefox-version;</userinput></screen>
271
272 <bridgehead renderas="sect3" id="npapi-firefox" xreflabel="Firefox">
273 NPAPI Headers
274 </bridgehead>
275
276 <para>
277 The above instructions just install the parts you need to run
278 <application>Firefox</application>. If you want to compile
279 <xref linkend="gnash"/>, the open source version of Flash, copy some
280 headers that Gnash needs into /usr/include, as the
281 <systemitem class="username">root</systemitem> user:
282 </para>
283
284<screen role="root"><userinput>rm -rf /usr/include/npapi &amp;&amp;
285mkdir -v /usr/include/npapi &amp;&amp;
286cp -v dom/plugins/base/*.h /usr/include/npapi</userinput></screen>
287
288 <note>
289 <para>
290 You don't need to install the headers if you have built
291 <application>Firefox</application> against
292 <application>Xulrunner</application>.
293 </para>
294 </note>
295
296 </sect2>
297
298 <sect2 role="commands">
299 <title>Command Explanations</title>
300
301 <para>
302 <command>sed -i 's@ ""@@' browser/base/Makefile.in</command>: This sed
303 removes an unprintable control character from the title bar.
304 </para>
305
306 <para>
307 <command>sed -i "/gre_path/s@DIST'\]@&amp; + '/bin'@" ...</command>: This
308 sed fixes build with <application>Xulrunner</application>.
309 </para>
310
311 <para>
312 <command>make -f client.mk ...</command>: Mozilla products are packaged to
313 allow the use of a configuration file which can be used to pass the
314 configuration settings to the <command>configure</command> command.
315 <command>make</command> uses the <filename>client.mk</filename> file to
316 get initial configuration and setup parameters.
317 </para>
318
319 <para>
320 <command>make -C firefox-build-dir/browser/installer</command>: this
321 creates a <application>Firefox</application> tarball similar to the ones
322 you can download from Mozilla.
323 </para>
324
325 <para>
326 <command>tar -xfv firefox-build-dir/dist ...</command>: This untars
327 <application>Firefox</application> in /usr/lib. The
328 <option>--strip-components=1</option> option removes the leading
329 'firefox' directory from the filenames, allowing us to untar it
330 into a versioned directory.
331 </para>
332
333 <para>
334 <command>make -C firefox-build-dir install</command>: This runs
335 <command>make install</command> in firefox-build-dir.
336 </para>
337
338 <para>
339 <command>ln -sfv ... /usr/bin/firefox</command>: This puts a symbolic link
340 to the <command>firefox</command> executable in your <envar>PATH</envar>
341 variable.
342 </para>
343
344 <para>
345 <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
346 that <filename class="directory">/usr/lib/mozilla/plugins</filename>
347 exists.
348 </para>
349
350 <para>
351 <command>ln -sv ... /usr/lib/firefox-&firefox-version;</command>: This
352 command creates a symbolic link to
353 <filename class="directory">/usr/lib/mozilla/plugins</filename>. It's not
354 really needed, as <application>Firefox</application> checks
355 <filename class="directory">/usr/lib/mozilla/plugins</filename> by
356 default, but the symbolic link is made to keep all the plugins installed in
357 one folder.
358 </para>
359
360 </sect2>
361
362 <sect2 role="configuration">
363 <title>Configuring Firefox</title>
364
365 <para>
366 If you deleted the <option>--disable-webm</option> option from your
367 <filename>mozconfig</filename>, your <application>Firefox</application>
368 can play most YouTube videos without the need for the flash plugin. To
369 enable this, go to <ulink url="http://www.youtube.com/html5"/> and click
370 on 'Join the HTML5 Trial' (needs cookies enabled).
371 </para>
372
373 <para>
374 If you use a desktop environment like <application>Gnome</application> or
375 <application>KDE</application> you may like to create a
376 <filename>firefox.desktop</filename> file so that
377 <application>Firefox</application> appears in the panel's menus. If you
378 didn't enable startup-notification in your mozconfig change the
379 StartupNotify line to false. As the
380 <systemitem class="username">root</systemitem> user:
381 </para>
382
383<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
384mkdir -pv /usr/share/pixmaps &amp;&amp;
385
386cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
387[Desktop Entry]
388Encoding=UTF-8
389Name=Firefox Web Browser
390Comment=Browse the World Wide Web
391GenericName=Web Browser
392Exec=firefox %u
393Terminal=false
394Type=Application
395Icon=firefox
396Categories=GNOME;GTK;Network;WebBrowser;
397MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
398StartupNotify=true
399EOF
400
401ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
402 /usr/share/pixmaps/firefox.png</userinput></screen>
403
404 </sect2>
405
406 <sect2 role="content">
407 <title>Contents</title>
408
409 <segmentedlist>
410 <segtitle>Installed Programs</segtitle>
411 <segtitle>Installed Libraries</segtitle>
412 <segtitle>Installed Directories</segtitle>
413
414 <seglistitem>
415 <seg>
416 firefox
417 </seg>
418 <seg>
419 Numerous libraries, browser components, plugins, extensions, and
420 helper modules installed in
421 <filename class="directory">/usr/lib/firefox-&firefox-version;</filename>
422 </seg>
423 <seg>
424 /usr/include/npapi and
425 /usr/lib/firefox-&firefox-version;
426 </seg>
427 </seglistitem>
428 </segmentedlist>
429
430 <variablelist>
431 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
432 <?dbfo list-presentation="list"?>
433 <?dbhtml list-presentation="table"?>
434
435 <varlistentry id="firefox-prog">
436 <term><command>firefox</command></term>
437 <listitem>
438 <para>
439 is a <application>GTK+ 2</application> internet browser that uses the
440 Mozilla Gecko rendering engine.
441 </para>
442 <indexterm zone="firefox firefox-prog">
443 <primary sortas="b-firefox">firefox</primary>
444 </indexterm>
445 </listitem>
446 </varlistentry>
447
448 </variablelist>
449
450 </sect2>
451
452</sect1>
Note: See TracBrowser for help on using the repository browser.