source: xsoft/graphweb/firefox.xml@ 0c3e9be8

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

Add keybinder2-0.3.0.
Update to lxpanel-0.8.0.
xfce4-mixer-4.10.0: uncomment keybinder and replace broken ulink by xref.
Python-2.7.8, SeaMonkey-2.31, Firefox-34.0. and Thunderbird-31.3.0:

replace /usr/lib/python2.7 by /usr/lib/python&python2-majorver;.

libxklavier-5.3: typo.

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

  • Property mode set to 100644
File size: 14.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
[3c9c4e8]8 "&mozilla-http;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
[44a8f24e]9 <!ENTITY firefox-download-ftp
[3c9c4e8]10 "&mozilla-ftp;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
[ff9cbde]11 <!ENTITY firefox-md5sum "d9b7e4819899e23466f5b0750408f128">
12 <!ENTITY firefox-size "157 MB">
13 <!ENTITY firefox-buildsize "4.0 GB (78 MB installed)">
[53da153]14 <!ENTITY firefox-time "17 SBU (using parallelism=4)">
[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
[b9875028]39 &lfs76_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
75 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
[c1ae13c]78 <para role="required">
79 <xref linkend="alsa-lib"/>,
80 <xref linkend="gtk2"/>,
[f72a04a]81 <xref linkend="zip"/>, and
[0e37869]82 <xref linkend="unzip"/>
[c1ae13c]83 </para>
84
[1555d3d]85 <bridgehead renderas="sect4">Recommended</bridgehead>
[c1ae13c]86 <para role="recommended">
[7bf10b1]87 <xref linkend="icu"/>,
[0e37869]88 <xref linkend="libevent"/>,
89 <xref linkend="libvpx"/>,
90 <xref linkend="nspr"/>,
91 <xref linkend="nss"/>,
[73b06df]92 <xref linkend="sqlite"/>, and
[0e37869]93 <xref linkend="yasm"/>
[c1ae13c]94 </para>
[1555d3d]95
[0e37869]96 <note>
97 <para>
[b9f61df]98 If you don't install recommended dependencies, then internal copies of
99 those packages will be used. They might be tested to work, but they can
100 be out of date or contain security holes.
[0e37869]101 </para>
102 </note>
103
[5be3a74]104 <note>
105 <para>
[204c71d5]106 With <application>Firefox-31.0</application> and later versions, you
107 must have installed <application>Openssl</application> before
[b9f61df]108 <application>Python 2</application> or the build system will quickly
[5be3a74]109 fail with output including "ImportError: cannot import name
[0c3e9be8]110 HTTPSHandler". If you are in any doubt about this (e.g. upgrading from
111 an older version of Firefox), check if
112 <filename>/usr/lib/python&python2-majorver;/lib-dynload/_ssl.so</filename>
113 exists. If it does not, reinstall <xref linkend="python2"/> (after
[b9f61df]114 installing <xref linkend="openssl"/>. The latest version of any
[0c3e9be8]115 <emphasis>currently maintained</emphasis> version of Openssl should be
116 satisfactory if already installed.
[5be3a74]117 </para>
118 </note>
119
[b81991e1]120 <bridgehead renderas="sect4">Optional</bridgehead>
[c1ae13c]121 <para role="optional">
[6c64623f]122 <xref linkend="curl"/>,
[c1ae13c]123 <xref linkend="dbus-glib"/>,
124 <xref linkend="doxygen"/>,
[7bf10b1]125 <xref linkend="gst-plugins-base"/> (with
[db73840]126 <xref linkend="gst-plugins-good"/> and
[c011125]127 <xref linkend="gst-ffmpeg"/> at runtime), or
128 <xref linkend="gst10-plugins-base"/> (with
129 <xref linkend="gst10-plugins-good"/> and
130 <xref linkend="gst10-libav"/> at runtime),
[c1ae13c]131 <xref linkend="libnotify"/>,
[26fa7d2]132 <xref linkend="openjdk"/>,
133 <xref linkend="pulseaudio"/>,
[0e37869]134 <xref linkend="startup-notification"/>,
[566fcae]135 <xref linkend="valgrind"/>,
[6000a3e]136 <xref linkend="wget"/>,
[73b06df]137 <xref linkend="wireless_tools"/>,
138 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>, and
[ff9cbde]139 <ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink>
[c1ae13c]140 </para>
141
142 <para condition="html" role="usernotes">
143 User Notes: <ulink url="&blfs-wiki;/firefox"/>
144 </para>
[b81991e1]145 </sect2>
146
147 <sect2 role="installation">
148 <title>Installation of Firefox</title>
149
[f72a04a]150 <para>
[b9f61df]151 The configuration of <application>Firefox</application> is accomplished
152 by creating a <filename>mozconfig</filename> file containing the desired
153 configuration options. A default <filename>mozconfig</filename> is
154 created below. To see the entire list of available configuration options
155 (and an abbreviated description of each one), issue <command>./configure
[c1ae13c]156 --help</command>. You may also wish to review the entire file and
[b9f61df]157 uncomment any other desired options. Create the file by issuing the
158 following command:
[c1ae13c]159 </para>
[5a13c45]160
[0e37869]161<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
[566fcae]162<literal># If you have installed DBus-Glib comment out this line:
[74eaf91]163ac_add_options --disable-dbus
[aed37975]164
[32cca2cd]165# If you have installed dbus-glib, and you have installed (or will install)
166# wireless-tools, and you wish to use geolocation web services, comment out
167# this line
[6d1bf0e]168ac_add_options --disable-necko-wifi
169
[0e37869]170# If you have installed libnotify comment out this line:
[e144d87]171ac_add_options --disable-libnotify
172
[686a89a3]173# GStreamer is necessary for H.264 video playback in HTML5 Video Player;
174# to be enabled, also remember to set "media.gstreamer.enabled" to "true"
[681168e]175# in about:config. If you do *not* have GStreamer 0.x.y, uncomment this line:
176#ac_add_options --disable-gstreamer
[c011125]177# or uncomment this line, if you have GStreamer 1.x.y
178#ac_add_options --enable-gstreamer=1.0
[48ae92a]179
180# Uncomment these lines if you have installed optional dependencies:
[0e37869]181#ac_add_options --enable-system-hunspell
182#ac_add_options --enable-startup-notification
[495ebe07]183
[27fd492b]184# Comment out following option if you have PulseAudio installed
185ac_add_options --disable-pulseaudio
186
[0e37869]187# If you have not installed Yasm then uncomment this line:
188#ac_add_options --disable-webm
[38c6448]189
[0e37869]190# Comment out following options if you have not installed
191# recommended dependencies:
192ac_add_options --enable-system-sqlite
193ac_add_options --with-system-libevent
194ac_add_options --with-system-libvpx
195ac_add_options --with-system-nspr
196ac_add_options --with-system-nss
[7bf10b1]197ac_add_options --with-system-icu
[0e37869]198
[7251b1d]199# The BLFS editors recommend not changing anything below this line:
[495ebe07]200ac_add_options --prefix=/usr
[0e37869]201ac_add_options --enable-application=browser
[495ebe07]202
[5f5dcc2]203ac_add_options --disable-crashreporter
204ac_add_options --disable-updater
[0e37869]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
[7251b1d]216ac_add_options --enable-system-cairo
[41f2e90]217ac_add_options --enable-system-ffi
[0e37869]218ac_add_options --enable-system-pixman
219
[5f5dcc2]220ac_add_options --with-pthreads
[0e37869]221
222ac_add_options --with-system-bz2
[a0ace670]223ac_add_options --with-system-jpeg
224ac_add_options --with-system-png
225ac_add_options --with-system-zlib
[aed37975]226
[4def8b6]227mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
[0e37869]228EOF</userinput></screen>
[b9b7146]229
[0f1ea40]230 <note><para>
231 There is a problem on i686 systems when building
232 <application>Firefox</application> with <application>gcc</application>
233 versions ranging from 4.8 to 4.9.1 and using the switch
234 <quote>--enable-optimize</quote>. There are two alternatives. The best
235 one is to upgrade <application>gcc</application> to version 4.9.2 or later
236 because it will give better perfomance and smaller binaries. However, if
237 you do not wish to upgrade gcc, reduce the level of optimization with:
[566fcae]238 </para>
239
[0f1ea40]240<screen><userinput>test $(uname -m) = "i686" &amp;&amp; sed -i 's/enable-optimize/&amp;=-O2/' mozconfig || true</userinput></screen>
241 </note>
[566fcae]242
[c1ae13c]243 <para>
244 Compile <application>Firefox</application> by issuing the following
245 commands:
246 </para>
[9572e88]247
[8b3a8979]248 <note><para>
[9572e88]249 If you are compiling <application>Firefox</application> in chroot, make
250 sure you have <envar>$SHELL</envar> environment variable set or prepend
[566fcae]251 <envar>SHELL=/bin/sh</envar>.
[8b3a8979]252 </para></note>
[566fcae]253
[7b4e974]254<screen><userinput>MOZ_MAKE_FLAGS='-j<replaceable>&lt;number&gt;</replaceable>' \
[566fcae]255make -f client.mk</userinput></screen>
256
257 <para>
258 where <replaceable>&lt;number&gt;</replaceable> is a integer between 1
[73b06df]259 and the number of threads of your processor, inclusive. The variable
[566fcae]260 <envar>MOZ_MAKE_FLAGS</envar> governs the number of parallel processes
261 used by <command>make</command>. If it is not defined, the compilation
262 will use all threads of a multithread machine. If this is what you want,
263 just delete the line with <envar>MOZ_MAKE_FLAGS</envar> in the command
264 above.
265 </para>
[bccbdaea]266
[0e37869]267 <para>
268 This package does not come with a test suite.
269 </para>
[01ce75f8]270
[495ebe07]271 <para>
[b9f61df]272 Now, as the <systemitem class="username">root</systemitem> user:
[c1ae13c]273 </para>
[5a13c45]274
[7b4e974]275<screen role="root"><userinput>MOZ_MAKE_FLAGS='-j<replaceable>&lt;number&gt;</replaceable>' \
[566fcae]276make -f client.mk install INSTALL_SDK= &amp;&amp;
[74f73ede]277
[eb5f847a]278mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
[24da103]279ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userinput></screen>
[01ce75f8]280
[566fcae]281 <para>
282 Here, the same comments about <envar>MOZ_MAKE_FLAGS</envar>, after the
283 compile command above, apply.
284 </para>
285
[b81991e1]286 </sect2>
287
[361df3e]288 <sect2 role="commands">
289 <title>Command Explanations</title>
[566fcae]290
[c1ae13c]291 <para>
292 <command>make -f client.mk ...</command>: Mozilla products are packaged to
293 allow the use of a configuration file which can be used to pass the
294 configuration settings to the <command>configure</command> command.
295 <command>make</command> uses the <filename>client.mk</filename> file to
296 get initial configuration and setup parameters.
297 </para>
298
[495ebe07]299 <para>
300 <command>make -C firefox-build-dir install</command>: This runs
301 <command>make install</command> in firefox-build-dir.
302 </para>
303
[c1ae13c]304 <para>
[ec64d28]305 <command>ln -sfv ... /usr/bin/firefox</command>: This puts a symbolic link
306 to the <command>firefox</command> executable in your <envar>PATH</envar>
307 variable.
[c1ae13c]308 </para>
309
310 <para>
[ec64d28]311 <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
[c1ae13c]312 that <filename class="directory">/usr/lib/mozilla/plugins</filename>
313 exists.
314 </para>
315
316 <para>
[24da103]317 <command>ln -sv ... /usr/lib/firefox-&firefox-version;/browser</command>:
318 This command creates a symbolic link to <filename
319 class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
320 needed, as <application>Firefox</application> checks <filename
321 class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
322 symbolic link is made to keep all the plugins installed in one folder.
[c1ae13c]323 </para>
[fa1bc3e]324
[b81991e1]325 </sect2>
326
[88cec02]327 <sect2 role="configuration">
328 <title>Configuring Firefox</title>
329
[c1ae13c]330 <para>
331 If you deleted the <option>--disable-webm</option> option from your
332 <filename>mozconfig</filename>, your <application>Firefox</application>
333 can play most YouTube videos without the need for the flash plugin. To
334 enable this, go to <ulink url="http://www.youtube.com/html5"/> and click
335 on 'Join the HTML5 Trial' (needs cookies enabled).
336 </para>
337
338 <para>
339 If you use a desktop environment like <application>Gnome</application> or
340 <application>KDE</application> you may like to create a
341 <filename>firefox.desktop</filename> file so that
342 <application>Firefox</application> appears in the panel's menus. If you
343 didn't enable startup-notification in your mozconfig change the
344 StartupNotify line to false. As the
345 <systemitem class="username">root</systemitem> user:
346 </para>
[31de6e7]347
[eb5f847a]348<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
[0e37869]349mkdir -pv /usr/share/pixmaps &amp;&amp;
[74f73ede]350
[c099902d]351cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
[fcd66369]352<literal>[Desktop Entry]
[31de6e7]353Encoding=UTF-8
[0e37869]354Name=Firefox Web Browser
355Comment=Browse the World Wide Web
356GenericName=Web Browser
357Exec=firefox %u
358Terminal=false
[31de6e7]359Type=Application
360Icon=firefox
[0e37869]361Categories=GNOME;GTK;Network;WebBrowser;
362MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
[fcd66369]363StartupNotify=true</literal>
[31de6e7]364EOF
[74f73ede]365
[376c8c0]366ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
[0e37869]367 /usr/share/pixmaps/firefox.png</userinput></screen>
368
[88cec02]369 </sect2>
370
[b81991e1]371 <sect2 role="content">
372 <title>Contents</title>
373
374 <segmentedlist>
375 <segtitle>Installed Programs</segtitle>
376 <segtitle>Installed Libraries</segtitle>
[c5f005b]377 <segtitle>Installed Directory</segtitle>
[b81991e1]378
379 <seglistitem>
[0e37869]380 <seg>
381 firefox
382 </seg>
[c1ae13c]383 <seg>
384 Numerous libraries, browser components, plugins, extensions, and
385 helper modules installed in
[0e37869]386 <filename class="directory">/usr/lib/firefox-&firefox-version;</filename>
[c1ae13c]387 </seg>
[7498751]388 <seg>
[0e37869]389 /usr/lib/firefox-&firefox-version;
[7498751]390 </seg>
[b81991e1]391 </seglistitem>
392 </segmentedlist>
393
394 <variablelist>
395 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
396 <?dbfo list-presentation="list"?>
397 <?dbhtml list-presentation="table"?>
398
399 <varlistentry id="firefox-prog">
400 <term><command>firefox</command></term>
401 <listitem>
[c1ae13c]402 <para>
[0e37869]403 is a <application>GTK+ 2</application> internet browser that uses the
[a38269c]404 Mozilla Gecko rendering engine.
[c1ae13c]405 </para>
[b81991e1]406 <indexterm zone="firefox firefox-prog">
407 <primary sortas="b-firefox">firefox</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
[0e37869]411
[b81991e1]412 </variablelist>
[0e37869]413
[b81991e1]414 </sect2>
[0e37869]415
[4d37129]416</sect1>
Note: See TracBrowser for help on using the repository browser.