source: xsoft/graphweb/firefox.xml@ fc580439

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 fc580439 was 5a1d752, checked in by Pierre Labastie <pieere@…>, 9 years ago

Reinstate the "--disable-gstreamer" option in firefox, since gstreamer is still
an optional dep, and change the comments accordingly.

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

  • Property mode set to 100644
File size: 13.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">
[479e03a]11 <!ENTITY firefox-md5sum "34d9841bc9b8a85aaf06e311cf1cb263">
[a9b27c2]12 <!ENTITY firefox-size "172 MB">
[479e03a]13 <!ENTITY firefox-buildsize "3.7 GB (74 MB installed)">
14 <!ENTITY firefox-time "5.6 SBU (using parallelism=10)">
[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
[a9b27c2]39 &lfs77_checked; &gcc5_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"/>,
[479e03a]81 <xref linkend="nss"/>,
82 <xref linkend="unzip"/>,
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
[0e37869]95 <note>
96 <para>
[b9f61df]97 If you don't install recommended dependencies, then internal copies of
98 those packages will be used. They might be tested to work, but they can
99 be out of date or contain security holes.
[0e37869]100 </para>
101 </note>
102
[5be3a74]103 <note>
104 <para>
[204c71d5]105 With <application>Firefox-31.0</application> and later versions, you
106 must have installed <application>Openssl</application> before
[b9f61df]107 <application>Python 2</application> or the build system will quickly
[5be3a74]108 fail with output including "ImportError: cannot import name
[0c3e9be8]109 HTTPSHandler". If you are in any doubt about this (e.g. upgrading from
110 an older version of Firefox), check if
111 <filename>/usr/lib/python&python2-majorver;/lib-dynload/_ssl.so</filename>
112 exists. If it does not, reinstall <xref linkend="python2"/> (after
[b9f61df]113 installing <xref linkend="openssl"/>. The latest version of any
[0c3e9be8]114 <emphasis>currently maintained</emphasis> version of Openssl should be
115 satisfactory if already installed.
[5be3a74]116 </para>
117 </note>
118
[b81991e1]119 <bridgehead renderas="sect4">Optional</bridgehead>
[c1ae13c]120 <para role="optional">
[6c64623f]121 <xref linkend="curl"/>,
[c1ae13c]122 <xref linkend="dbus-glib"/>,
123 <xref linkend="doxygen"/>,
[c011125]124 <xref linkend="gst10-plugins-base"/> (with
125 <xref linkend="gst10-plugins-good"/> and
126 <xref linkend="gst10-libav"/> at runtime),
[c1ae13c]127 <xref linkend="libnotify"/>,
[94d8583]128 <ulink url="https://code.google.com/p/libproxy/">libproxy</ulink>,
[26fa7d2]129 <xref linkend="openjdk"/>,
130 <xref linkend="pulseaudio"/>,
[0e37869]131 <xref linkend="startup-notification"/>,
[566fcae]132 <xref linkend="valgrind"/>,
[6000a3e]133 <xref linkend="wget"/>,
[73b06df]134 <xref linkend="wireless_tools"/>,
135 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>, and
[ff9cbde]136 <ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink>
[c1ae13c]137 </para>
138
139 <para condition="html" role="usernotes">
140 User Notes: <ulink url="&blfs-wiki;/firefox"/>
141 </para>
[b81991e1]142 </sect2>
143
144 <sect2 role="installation">
145 <title>Installation of Firefox</title>
146
[f72a04a]147 <para>
[b9f61df]148 The configuration of <application>Firefox</application> is accomplished
149 by creating a <filename>mozconfig</filename> file containing the desired
150 configuration options. A default <filename>mozconfig</filename> is
151 created below. To see the entire list of available configuration options
152 (and an abbreviated description of each one), issue <command>./configure
[c1ae13c]153 --help</command>. You may also wish to review the entire file and
[b9f61df]154 uncomment any other desired options. Create the file by issuing the
155 following command:
[c1ae13c]156 </para>
[5a13c45]157
[0e37869]158<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
[dcb0fe6]159<literal># If you have a multicore machine, all cores will be used by default.
160# If desired, you can reduce the number of cores used, e.g. to 1, by
161# uncommenting the next line and setting a valid number of CPU cores.
162#mk_add_options MOZ_MAKE_FLAGS="-j1"
163
164# 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"
[5a1d752]177# in about:config. If you have GStreamer 1.x.y, comment out this line and
178# uncomment the following one:
179ac_add_options --disable-gstreamer
[c011125]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
[a30a874]188<!-- Does not work uncommented
[0e37869]189# If you have not installed Yasm then uncomment this line:
[a30a874]190#ac_add_options - -disable-webm
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
[e67830f1]232 <para>
233 First, fix building with system freetype-2.6 or later:
[566fcae]234 </para>
235
[e67830f1]236<screen><userinput>sed -i '/^ftglyph.h/ i ftfntfmt.h' config/system-headers</userinput></screen>
[566fcae]237
[c1ae13c]238 <para>
239 Compile <application>Firefox</application> by issuing the following
240 commands:
241 </para>
[9572e88]242
[8b3a8979]243 <note><para>
[9572e88]244 If you are compiling <application>Firefox</application> in chroot, make
245 sure you have <envar>$SHELL</envar> environment variable set or prepend
[566fcae]246 <envar>SHELL=/bin/sh</envar>.
[8b3a8979]247 </para></note>
[566fcae]248
[dcb0fe6]249<screen><userinput>make -f client.mk</userinput></screen>
[bccbdaea]250
[0e37869]251 <para>
252 This package does not come with a test suite.
253 </para>
[01ce75f8]254
[495ebe07]255 <para>
[b9f61df]256 Now, as the <systemitem class="username">root</systemitem> user:
[c1ae13c]257 </para>
[5a13c45]258
[da67029]259<screen role="root"><userinput>make -f client.mk install INSTALL_SDK= &amp;&amp;
[74f73ede]260
[dcb0fe6]261chown -R 0:0 /usr/lib/firefox-&firefox-version; &amp;&amp;
262mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
[24da103]263ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userinput></screen>
[01ce75f8]264
[b81991e1]265 </sect2>
266
[361df3e]267 <sect2 role="commands">
268 <title>Command Explanations</title>
[566fcae]269
[c1ae13c]270 <para>
271 <command>make -f client.mk ...</command>: Mozilla products are packaged to
272 allow the use of a configuration file which can be used to pass the
273 configuration settings to the <command>configure</command> command.
274 <command>make</command> uses the <filename>client.mk</filename> file to
275 get initial configuration and setup parameters.
276 </para>
277
[495ebe07]278 <para>
279 <command>make -C firefox-build-dir install</command>: This runs
280 <command>make install</command> in firefox-build-dir.
281 </para>
282
[c1ae13c]283 <para>
[ec64d28]284 <command>ln -sfv ... /usr/bin/firefox</command>: This puts a symbolic link
285 to the <command>firefox</command> executable in your <envar>PATH</envar>
286 variable.
[c1ae13c]287 </para>
288
289 <para>
[ec64d28]290 <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
[c1ae13c]291 that <filename class="directory">/usr/lib/mozilla/plugins</filename>
292 exists.
293 </para>
294
295 <para>
[24da103]296 <command>ln -sv ... /usr/lib/firefox-&firefox-version;/browser</command>:
297 This command creates a symbolic link to <filename
298 class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
299 needed, as <application>Firefox</application> checks <filename
300 class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
301 symbolic link is made to keep all the plugins installed in one folder.
[c1ae13c]302 </para>
[fa1bc3e]303
[b81991e1]304 </sect2>
305
[88cec02]306 <sect2 role="configuration">
307 <title>Configuring Firefox</title>
308
[c1ae13c]309 <para>
[06ec5081]310 If you did not add the <option>--disable-webm</option> option to your
[c1ae13c]311 <filename>mozconfig</filename>, your <application>Firefox</application>
312 can play most YouTube videos without the need for the flash plugin. To
313 enable this, go to <ulink url="http://www.youtube.com/html5"/> and click
314 on 'Join the HTML5 Trial' (needs cookies enabled).
315 </para>
316
317 <para>
318 If you use a desktop environment like <application>Gnome</application> or
319 <application>KDE</application> you may like to create a
320 <filename>firefox.desktop</filename> file so that
321 <application>Firefox</application> appears in the panel's menus. If you
322 didn't enable startup-notification in your mozconfig change the
323 StartupNotify line to false. As the
324 <systemitem class="username">root</systemitem> user:
325 </para>
[31de6e7]326
[eb5f847a]327<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
[0e37869]328mkdir -pv /usr/share/pixmaps &amp;&amp;
[74f73ede]329
[c099902d]330cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
[fcd66369]331<literal>[Desktop Entry]
[31de6e7]332Encoding=UTF-8
[0e37869]333Name=Firefox Web Browser
334Comment=Browse the World Wide Web
335GenericName=Web Browser
336Exec=firefox %u
337Terminal=false
[31de6e7]338Type=Application
339Icon=firefox
[0e37869]340Categories=GNOME;GTK;Network;WebBrowser;
341MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
[fcd66369]342StartupNotify=true</literal>
[31de6e7]343EOF
[74f73ede]344
[376c8c0]345ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
[0e37869]346 /usr/share/pixmaps/firefox.png</userinput></screen>
347
[88cec02]348 </sect2>
349
[b81991e1]350 <sect2 role="content">
351 <title>Contents</title>
352
353 <segmentedlist>
354 <segtitle>Installed Programs</segtitle>
355 <segtitle>Installed Libraries</segtitle>
[c5f005b]356 <segtitle>Installed Directory</segtitle>
[b81991e1]357
358 <seglistitem>
[0e37869]359 <seg>
360 firefox
361 </seg>
[c1ae13c]362 <seg>
363 Numerous libraries, browser components, plugins, extensions, and
364 helper modules installed in
[0e37869]365 <filename class="directory">/usr/lib/firefox-&firefox-version;</filename>
[c1ae13c]366 </seg>
[7498751]367 <seg>
[0e37869]368 /usr/lib/firefox-&firefox-version;
[7498751]369 </seg>
[b81991e1]370 </seglistitem>
371 </segmentedlist>
372
373 <variablelist>
374 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
375 <?dbfo list-presentation="list"?>
376 <?dbhtml list-presentation="table"?>
377
378 <varlistentry id="firefox-prog">
379 <term><command>firefox</command></term>
380 <listitem>
[c1ae13c]381 <para>
[0e37869]382 is a <application>GTK+ 2</application> internet browser that uses the
[a38269c]383 Mozilla Gecko rendering engine.
[c1ae13c]384 </para>
[b81991e1]385 <indexterm zone="firefox firefox-prog">
386 <primary sortas="b-firefox">firefox</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
[0e37869]390
[b81991e1]391 </variablelist>
[0e37869]392
[b81991e1]393 </sect2>
[0e37869]394
[4d37129]395</sect1>
Note: See TracBrowser for help on using the repository browser.