source: xsoft/graphweb/firefox.xml@ 316d9591

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 316d9591 was 316d9591, checked in by Fernando de Oliveira <fernando@…>, 8 years ago
  • audacious-3.7 and audacious-plugins-3.7: Gtk2, not Gtk3.
  • Since Firefox-42.0 and SeaMonkey-2.3, tarballs unpack now to package-version directory.
  • Update to seamonkey-2.39.

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

  • Property mode set to 100644
File size: 13.5 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
[0bcaa9a6]7 <!ENTITY firefox-download-http "&mozilla-http;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.xz">
[59a6b63]8<!-- 550 Permission denied.
9 <!ENTITY firefox-download-ftp "&mozilla-ftp;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2"> -->
10 <!ENTITY firefox-download-ftp " ">
[dbc7eaed]11 <!ENTITY firefox-md5sum "d610bf10a75afb4734045e1a43d8eba4">
12 <!ENTITY firefox-size "159 MB">
13 <!ENTITY firefox-buildsize "4.1 GB (78 MB installed)">
14 <!ENTITY firefox-time "9.7 SBU (with 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
[c02ea85]39 &lfs78_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"/>,
[59a6b63]81 <xref linkend="nss"/>,
82 <xref linkend="unzip"/>,
[479e03a]83 <xref linkend="yasm"/>, and
84 <xref linkend="zip"/>
[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"/>,
[479e03a]91 <xref linkend="libvpx"/>, and
[a30a874]92 <xref linkend="sqlite"/>
[c1ae13c]93 </para>
[1555d3d]94
[316d9591]95 <note>
96 <para>
97 The tarball <emphasis>firefox-&firefox-version;.source.tar.xz</emphasis>
98 will untar to <emphasis>firefox-&firefox-version;</emphasis> directory.
99 </para>
100 </note>
101
[0e37869]102 <note>
103 <para>
[b9f61df]104 If you don't install recommended dependencies, then internal copies of
105 those packages will be used. They might be tested to work, but they can
106 be out of date or contain security holes.
[0e37869]107 </para>
108 </note>
109
[5be3a74]110 <note>
111 <para>
[204c71d5]112 With <application>Firefox-31.0</application> and later versions, you
113 must have installed <application>Openssl</application> before
[b9f61df]114 <application>Python 2</application> or the build system will quickly
[5be3a74]115 fail with output including "ImportError: cannot import name
[0c3e9be8]116 HTTPSHandler". If you are in any doubt about this (e.g. upgrading from
117 an older version of Firefox), check if
118 <filename>/usr/lib/python&python2-majorver;/lib-dynload/_ssl.so</filename>
119 exists. If it does not, reinstall <xref linkend="python2"/> (after
[44204a0]120 installing <xref linkend="openssl"/>). The latest version of any
[0c3e9be8]121 <emphasis>currently maintained</emphasis> version of Openssl should be
[59a6b63]122 satisfactory if already installed.
[5be3a74]123 </para>
124 </note>
125
[b81991e1]126 <bridgehead renderas="sect4">Optional</bridgehead>
[c1ae13c]127 <para role="optional">
[6c64623f]128 <xref linkend="curl"/>,
[c1ae13c]129 <xref linkend="dbus-glib"/>,
130 <xref linkend="doxygen"/>,
[d525da9c]131 <xref linkend="GConf"/>,
[c011125]132 <xref linkend="gst10-plugins-base"/> (with
133 <xref linkend="gst10-plugins-good"/> and
134 <xref linkend="gst10-libav"/> at runtime),
[26fa7d2]135 <xref linkend="openjdk"/>,
136 <xref linkend="pulseaudio"/>,
[0e37869]137 <xref linkend="startup-notification"/>,
[566fcae]138 <xref linkend="valgrind"/>,
[6000a3e]139 <xref linkend="wget"/>,
[73b06df]140 <xref linkend="wireless_tools"/>,
[59a6b63]141 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
142 <ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink>, and
[6c6990c]143 <ulink url="https://code.google.com/p/libproxy/">libproxy</ulink>, and
144 <ulink url="https://www.rust-lang.org/">Rust</ulink>
[c1ae13c]145 </para>
146
147 <para condition="html" role="usernotes">
148 User Notes: <ulink url="&blfs-wiki;/firefox"/>
149 </para>
[b81991e1]150 </sect2>
151
152 <sect2 role="installation">
153 <title>Installation of Firefox</title>
154
[f72a04a]155 <para>
[b9f61df]156 The configuration of <application>Firefox</application> is accomplished
157 by creating a <filename>mozconfig</filename> file containing the desired
158 configuration options. A default <filename>mozconfig</filename> is
159 created below. To see the entire list of available configuration options
160 (and an abbreviated description of each one), issue <command>./configure
[c1ae13c]161 --help</command>. You may also wish to review the entire file and
[b9f61df]162 uncomment any other desired options. Create the file by issuing the
163 following command:
[c1ae13c]164 </para>
[5a13c45]165
[0e37869]166<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
[dcb0fe6]167<literal># If you have a multicore machine, all cores will be used by default.
168# If desired, you can reduce the number of cores used, e.g. to 1, by
169# uncommenting the next line and setting a valid number of CPU cores.
170#mk_add_options MOZ_MAKE_FLAGS="-j1"
171
172# If you have installed DBus-Glib comment out this line:
[74eaf91]173ac_add_options --disable-dbus
[aed37975]174
[32cca2cd]175# If you have installed dbus-glib, and you have installed (or will install)
176# wireless-tools, and you wish to use geolocation web services, comment out
177# this line
[6d1bf0e]178ac_add_options --disable-necko-wifi
179
[686a89a3]180# GStreamer is necessary for H.264 video playback in HTML5 Video Player;
181# to be enabled, also remember to set "media.gstreamer.enabled" to "true"
[5a1d752]182# in about:config. If you have GStreamer 1.x.y, comment out this line and
183# uncomment the following one:
184ac_add_options --disable-gstreamer
[c011125]185#ac_add_options --enable-gstreamer=1.0
[48ae92a]186
187# Uncomment these lines if you have installed optional dependencies:
[0e37869]188#ac_add_options --enable-system-hunspell
189#ac_add_options --enable-startup-notification
[495ebe07]190
[27fd492b]191# Comment out following option if you have PulseAudio installed
192ac_add_options --disable-pulseaudio
[89cdb63d]193
194# If you have installed GConf, comment out this line
195ac_add_options --disable-gconf
196
[0e37869]197# Comment out following options if you have not installed
198# recommended dependencies:
199ac_add_options --enable-system-sqlite
200ac_add_options --with-system-libevent
201ac_add_options --with-system-libvpx
202ac_add_options --with-system-nspr
203ac_add_options --with-system-nss
[7bf10b1]204ac_add_options --with-system-icu
[0e37869]205
[7251b1d]206# The BLFS editors recommend not changing anything below this line:
[495ebe07]207ac_add_options --prefix=/usr
[0e37869]208ac_add_options --enable-application=browser
[495ebe07]209
[5f5dcc2]210ac_add_options --disable-crashreporter
211ac_add_options --disable-updater
[0e37869]212ac_add_options --disable-tests
213
214ac_add_options --enable-optimize
215ac_add_options --enable-strip
216ac_add_options --enable-install-strip
217
218ac_add_options --enable-gio
219ac_add_options --enable-official-branding
220ac_add_options --enable-safe-browsing
221ac_add_options --enable-url-classifier
222
[0bcaa9a6]223# From firefox-40, using system cairo causes firefox to crash
224# frequently when it is doing background rendering in a tab.
225#ac_add_options --enable-system-cairo
[41f2e90]226ac_add_options --enable-system-ffi
[0e37869]227ac_add_options --enable-system-pixman
228
[5f5dcc2]229ac_add_options --with-pthreads
[0e37869]230
231ac_add_options --with-system-bz2
[a0ace670]232ac_add_options --with-system-jpeg
233ac_add_options --with-system-png
234ac_add_options --with-system-zlib
[aed37975]235
[4def8b6]236mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
[0e37869]237EOF</userinput></screen>
[b9b7146]238
[89cdb63d]239 <para>
240 First, fix building with system freetype-2.6.1 or later:
241 </para>
242
243<screen><userinput>sed -i '/^freetype\/ftcache.h/a freetype\/ftfntfmt.h' config/system-headers</userinput></screen>
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
[dcb0fe6]256<screen><userinput>make -f client.mk</userinput></screen>
[bccbdaea]257
[0e37869]258 <para>
259 This package does not come with a test suite.
260 </para>
[01ce75f8]261
[495ebe07]262 <para>
[b9f61df]263 Now, as the <systemitem class="username">root</systemitem> user:
[c1ae13c]264 </para>
[5a13c45]265
[da67029]266<screen role="root"><userinput>make -f client.mk install INSTALL_SDK= &amp;&amp;
[89cdb63d]267chown -R 0:0 /usr/lib/firefox-&firefox-version; &amp;&amp;
[5ee1266]268
269mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
[89cdb63d]270ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userinput></screen>
[01ce75f8]271
[b81991e1]272 </sect2>
273
[361df3e]274 <sect2 role="commands">
275 <title>Command Explanations</title>
[566fcae]276
[c1ae13c]277 <para>
278 <command>make -f client.mk ...</command>: Mozilla products are packaged to
279 allow the use of a configuration file which can be used to pass the
280 configuration settings to the <command>configure</command> command.
281 <command>make</command> uses the <filename>client.mk</filename> file to
282 get initial configuration and setup parameters.
283 </para>
284
[495ebe07]285 <para>
286 <command>make -C firefox-build-dir install</command>: This runs
287 <command>make install</command> in firefox-build-dir.
288 </para>
289
[c1ae13c]290 <para>
[ec64d28]291 <command>ln -sfv ... /usr/bin/firefox</command>: This puts a symbolic link
292 to the <command>firefox</command> executable in your <envar>PATH</envar>
293 variable.
[c1ae13c]294 </para>
295
296 <para>
[ec64d28]297 <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
[c1ae13c]298 that <filename class="directory">/usr/lib/mozilla/plugins</filename>
299 exists.
300 </para>
301
302 <para>
[24da103]303 <command>ln -sv ... /usr/lib/firefox-&firefox-version;/browser</command>:
304 This command creates a symbolic link to <filename
305 class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
306 needed, as <application>Firefox</application> checks <filename
307 class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
308 symbolic link is made to keep all the plugins installed in one folder.
[c1ae13c]309 </para>
[fa1bc3e]310
[b81991e1]311 </sect2>
312
[88cec02]313 <sect2 role="configuration">
314 <title>Configuring Firefox</title>
315
[c1ae13c]316 <para>
[06ec5081]317 If you did not add the <option>--disable-webm</option> option to your
[c1ae13c]318 <filename>mozconfig</filename>, your <application>Firefox</application>
319 can play most YouTube videos without the need for the flash plugin. To
320 enable this, go to <ulink url="http://www.youtube.com/html5"/> and click
321 on 'Join the HTML5 Trial' (needs cookies enabled).
322 </para>
323
324 <para>
325 If you use a desktop environment like <application>Gnome</application> or
326 <application>KDE</application> you may like to create a
327 <filename>firefox.desktop</filename> file so that
328 <application>Firefox</application> appears in the panel's menus. If you
329 didn't enable startup-notification in your mozconfig change the
330 StartupNotify line to false. As the
331 <systemitem class="username">root</systemitem> user:
332 </para>
[31de6e7]333
[eb5f847a]334<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
[0e37869]335mkdir -pv /usr/share/pixmaps &amp;&amp;
[74f73ede]336
[c099902d]337cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
[fcd66369]338<literal>[Desktop Entry]
[31de6e7]339Encoding=UTF-8
[0e37869]340Name=Firefox Web Browser
341Comment=Browse the World Wide Web
342GenericName=Web Browser
343Exec=firefox %u
344Terminal=false
[31de6e7]345Type=Application
346Icon=firefox
[0e37869]347Categories=GNOME;GTK;Network;WebBrowser;
348MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
[fcd66369]349StartupNotify=true</literal>
[31de6e7]350EOF
[74f73ede]351
[376c8c0]352ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
[0e37869]353 /usr/share/pixmaps/firefox.png</userinput></screen>
354
[88cec02]355 </sect2>
356
[b81991e1]357 <sect2 role="content">
358 <title>Contents</title>
359
360 <segmentedlist>
361 <segtitle>Installed Programs</segtitle>
362 <segtitle>Installed Libraries</segtitle>
[c5f005b]363 <segtitle>Installed Directory</segtitle>
[b81991e1]364
365 <seglistitem>
[0e37869]366 <seg>
367 firefox
368 </seg>
[c1ae13c]369 <seg>
370 Numerous libraries, browser components, plugins, extensions, and
[dbc7eaed]371 helper modules installed in /usr/lib/firefox-&firefox-version;
[c1ae13c]372 </seg>
[7498751]373 <seg>
[0e37869]374 /usr/lib/firefox-&firefox-version;
[7498751]375 </seg>
[b81991e1]376 </seglistitem>
377 </segmentedlist>
378
379 <variablelist>
380 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
381 <?dbfo list-presentation="list"?>
382 <?dbhtml list-presentation="table"?>
383
384 <varlistentry id="firefox-prog">
385 <term><command>firefox</command></term>
386 <listitem>
[c1ae13c]387 <para>
[0e37869]388 is a <application>GTK+ 2</application> internet browser that uses the
[a38269c]389 Mozilla Gecko rendering engine.
[c1ae13c]390 </para>
[b81991e1]391 <indexterm zone="firefox firefox-prog">
392 <primary sortas="b-firefox">firefox</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
[0e37869]396
[b81991e1]397 </variablelist>
[0e37869]398
[b81991e1]399 </sect2>
[0e37869]400
[4d37129]401</sect1>
Note: See TracBrowser for help on using the repository browser.