source: xsoft/graphweb/firefox.xml@ 67b9a05

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 67b9a05 was 151bd690, checked in by Fernando de Oliveira <fernando@…>, 11 years ago

Update firefox-26.0 standalone.

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

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