source: xsoft/graphweb/firefox.xml@ 73b06df

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 73b06df was 73b06df, checked in by Fernando de Oliveira <fernando@…>, 9 years ago

Archive LXPolkit-0.1.0. Commented out references in gparted and network-manager-applet.
Update to nss-3.17.3.
Update to libgusb-0.2.3.
Update to mercurial-3.2.2.
Update to samba-4.1.14.
Update to gnome-themes-standard-3.14.2.3.
Update to xfce4-power-manager-1.4.2.
Update to thunderbird-31.3.0. Notice the removal of the option MOZ_OBJDIR=@TOPSRCDIR@, and no fix is needed anymore.

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

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