source: xsoft/graphweb/firefox.xml@ 581df7e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 581df7e was 581df7e, checked in by Chris Staub <chris@…>, 8 years ago

YouTube now defaults to using HTML5 if available

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

  • Property mode set to 100644
File size: 15.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 <!ENTITY firefox-download-ftp " ">
[14de4227]9 <!ENTITY firefox-md5sum "0bd5991a6c821dd1a34ead0f8bbb301a ">
10 <!ENTITY firefox-size "180 MB">
11 <!ENTITY firefox-buildsize "5.3 GB (85 MB installed)">
12 <!ENTITY firefox-time "11.3 SBU (with parallelism=4 on a recent intel i7, much longer on lesser CPUs)">
[f939f05]13]>
14
[ffe47ca2]15<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
[b81991e1]16 <?dbhtml filename="firefox.html" ?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Firefox-&firefox-version;</title>
24
25 <indexterm zone="firefox">
26 <primary sortas="a-Firefox">Firefox</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Firefox</title>
31
[c1ae13c]32 <para>
33 <application>Firefox</application> is a stand-alone browser based on the
34 <application>Mozilla</application> codebase.
35 </para>
[b81991e1]36
[14de4227]37 &lfs79_checked;&gcc6_checked;
[76ae9a2]38
[b81991e1]39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
[c1ae13c]42 <para>
43 Download (HTTP): <ulink url="&firefox-download-http;"/>
44 </para>
[b81991e1]45 </listitem>
46 <listitem>
[c1ae13c]47 <para>
48 Download (FTP): <ulink url="&firefox-download-ftp;"/>
49 </para>
[b81991e1]50 </listitem>
51 <listitem>
[c1ae13c]52 <para>
53 Download MD5 sum: &firefox-md5sum;
54 </para>
[b81991e1]55 </listitem>
56 <listitem>
[c1ae13c]57 <para>
58 Download size: &firefox-size;
59 </para>
[b81991e1]60 </listitem>
61 <listitem>
[c1ae13c]62 <para>
63 Estimated disk space required: &firefox-buildsize;
64 </para>
[b81991e1]65 </listitem>
66 <listitem>
[c1ae13c]67 <para>
68 Estimated build time: &firefox-time;
69 </para>
[b81991e1]70 </listitem>
71 </itemizedlist>
72
[14de4227]73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
75 <listitem>
76 <para>
77 Required patch if using gtk+-3.20 or later (do not use with earlier versions)
78 <ulink url="&patch-root;/firefox-&firefox-version;-gtk320-1.patch"/>
79 </para>
80 </listitem>
81 <listitem>
82 <para>
83 Optional patch to allow system versions of <xref linkend="graphite2"/>
84 and <xref linkend="harfbuzz"/> - this should be regarded as experimental
85 <ulink url="&patch-root;/firefox-&firefox-version;-system_graphite2_harfbuzz-1.patch"/>
86 </para>
87 </listitem>
88 </itemizedlist>
89
[f06c692]90 <note>
91 <para>
92 The tarball <emphasis>firefox-&firefox-version;.source.tar.xz</emphasis>
93 will untar to <emphasis>firefox-&firefox-version;</emphasis> directory.
94 </para>
95 </note>
96
[b81991e1]97 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
98
99 <bridgehead renderas="sect4">Required</bridgehead>
[c1ae13c]100 <para role="required">
101 <xref linkend="alsa-lib"/>,
[14de4227]102 <xref linkend="autoconf213"/>,
103 <xref linkend="gtk3"/>
104 (or <xref linkend="gtk2"/> if you change the mozconfig where indicated),
[59a6b63]105 <xref linkend="nss"/>,
106 <xref linkend="unzip"/>,
[479e03a]107 <xref linkend="yasm"/>, and
108 <xref linkend="zip"/>
[c1ae13c]109 </para>
110
[1555d3d]111 <bridgehead renderas="sect4">Recommended</bridgehead>
[c1ae13c]112 <para role="recommended">
[7bf10b1]113 <xref linkend="icu"/>,
[0e37869]114 <xref linkend="libevent"/>,
[479e03a]115 <xref linkend="libvpx"/>, and
[a30a874]116 <xref linkend="sqlite"/>
[c1ae13c]117 </para>
[1555d3d]118
[0e37869]119 <note>
120 <para>
[b9f61df]121 If you don't install recommended dependencies, then internal copies of
122 those packages will be used. They might be tested to work, but they can
123 be out of date or contain security holes.
[0e37869]124 </para>
125 </note>
126
[5be3a74]127 <note>
128 <para>
[204c71d5]129 With <application>Firefox-31.0</application> and later versions, you
130 must have installed <application>Openssl</application> before
[b9f61df]131 <application>Python 2</application> or the build system will quickly
[5be3a74]132 fail with output including "ImportError: cannot import name
[0c3e9be8]133 HTTPSHandler". If you are in any doubt about this (e.g. upgrading from
134 an older version of Firefox), check if
135 <filename>/usr/lib/python&python2-majorver;/lib-dynload/_ssl.so</filename>
136 exists. If it does not, reinstall <xref linkend="python2"/> (after
[44204a0]137 installing <xref linkend="openssl"/>). The latest version of any
[0c3e9be8]138 <emphasis>currently maintained</emphasis> version of Openssl should be
[59a6b63]139 satisfactory if already installed.
[5be3a74]140 </para>
141 </note>
142
[b81991e1]143 <bridgehead renderas="sect4">Optional</bridgehead>
[c1ae13c]144 <para role="optional">
[6c64623f]145 <xref linkend="curl"/>,
[c1ae13c]146 <xref linkend="dbus-glib"/>,
147 <xref linkend="doxygen"/>,
[d525da9c]148 <xref linkend="GConf"/>,
[0776cd7]149 <xref linkend="ffmpeg"/> (runtime) or
[c011125]150 <xref linkend="gst10-plugins-base"/> (with
151 <xref linkend="gst10-plugins-good"/> and
152 <xref linkend="gst10-libav"/> at runtime),
[9d2268bb]153 <xref linkend="libwebp"/>,
[26fa7d2]154 <xref linkend="openjdk"/>,
155 <xref linkend="pulseaudio"/>,
[0e37869]156 <xref linkend="startup-notification"/>,
[566fcae]157 <xref linkend="valgrind"/>,
[6000a3e]158 <xref linkend="wget"/>,
[73b06df]159 <xref linkend="wireless_tools"/>,
[b09ed46a]160 <ulink url="https://hunspell.github.io/">Hunspell</ulink>,
[59a6b63]161 <ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink>, and
[14de4227]162 <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>,
163 <ulink url="https://www.rust-lang.org/">Rust</ulink>,
164 and (with the patch)
165 <xref linkend="graphite2"/> and
166 <xref linkend="harfbuzz"/>
[c1ae13c]167 </para>
168
169 <para condition="html" role="usernotes">
170 User Notes: <ulink url="&blfs-wiki;/firefox"/>
171 </para>
[b81991e1]172 </sect2>
173
174 <sect2 role="installation">
175 <title>Installation of Firefox</title>
176
[f72a04a]177 <para>
[b9f61df]178 The configuration of <application>Firefox</application> is accomplished
179 by creating a <filename>mozconfig</filename> file containing the desired
180 configuration options. A default <filename>mozconfig</filename> is
181 created below. To see the entire list of available configuration options
182 (and an abbreviated description of each one), issue <command>./configure
[c1ae13c]183 --help</command>. You may also wish to review the entire file and
[b9f61df]184 uncomment any other desired options. Create the file by issuing the
185 following command:
[c1ae13c]186 </para>
[5a13c45]187
[0e37869]188<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
[dcb0fe6]189<literal># If you have a multicore machine, all cores will be used by default.
190# If desired, you can reduce the number of cores used, e.g. to 1, by
191# uncommenting the next line and setting a valid number of CPU cores.
192#mk_add_options MOZ_MAKE_FLAGS="-j1"
193
194# If you have installed DBus-Glib comment out this line:
[74eaf91]195ac_add_options --disable-dbus
[aed37975]196
[32cca2cd]197# If you have installed dbus-glib, and you have installed (or will install)
198# wireless-tools, and you wish to use geolocation web services, comment out
199# this line
[6d1bf0e]200ac_add_options --disable-necko-wifi
201
[0776cd7]202# GStreamer is necessary for H.264 video playback in HTML5 Video Player if
203# FFmpeg is not found at runtime;
[686a89a3]204# to be enabled, also remember to set "media.gstreamer.enabled" to "true"
[5a1d752]205# in about:config. If you have GStreamer 1.x.y, comment out this line and
206# uncomment the following one:
207ac_add_options --disable-gstreamer
[c011125]208#ac_add_options --enable-gstreamer=1.0
[48ae92a]209
[14de4227]210# Uncomment this option if you wish to build with gtk+-2
211#ac_add_options --enable-default-toolkit=cairo-gtk2
[4b0eaf01]212
[48ae92a]213# Uncomment these lines if you have installed optional dependencies:
[0e37869]214#ac_add_options --enable-system-hunspell
215#ac_add_options --enable-startup-notification
[495ebe07]216
[27fd492b]217# Comment out following option if you have PulseAudio installed
218ac_add_options --disable-pulseaudio
[89cdb63d]219
220# If you have installed GConf, comment out this line
221ac_add_options --disable-gconf
222
[0e37869]223# Comment out following options if you have not installed
224# recommended dependencies:
225ac_add_options --enable-system-sqlite
226ac_add_options --with-system-libevent
227ac_add_options --with-system-libvpx
228ac_add_options --with-system-nspr
229ac_add_options --with-system-nss
[7bf10b1]230ac_add_options --with-system-icu
[0e37869]231
[14de4227]232# If you are going to apply the patch for system graphite
233# and system harfbuzz, uncomment these lines:
234#ac_add_options --with-system-graphite2
235#ac_add_options --with-system-harfbuzz
236
237# Stripping is now enabled by default.
238# Uncomment these lines if you need to run a debugger:
239#ac_add_options --disable-strip
240#ac_add_options --disable-install-strip
241
[7251b1d]242# The BLFS editors recommend not changing anything below this line:
[495ebe07]243ac_add_options --prefix=/usr
[0e37869]244ac_add_options --enable-application=browser
[495ebe07]245
[5f5dcc2]246ac_add_options --disable-crashreporter
247ac_add_options --disable-updater
[0e37869]248ac_add_options --disable-tests
249
250ac_add_options --enable-optimize
251
252ac_add_options --enable-gio
253ac_add_options --enable-official-branding
254ac_add_options --enable-safe-browsing
255ac_add_options --enable-url-classifier
256
[0bcaa9a6]257# From firefox-40, using system cairo causes firefox to crash
258# frequently when it is doing background rendering in a tab.
[d8ddab5]259#ac_add_options --enable-system-cairo
[41f2e90]260ac_add_options --enable-system-ffi
[0e37869]261ac_add_options --enable-system-pixman
262
[5f5dcc2]263ac_add_options --with-pthreads
[0e37869]264
265ac_add_options --with-system-bz2
[a0ace670]266ac_add_options --with-system-jpeg
267ac_add_options --with-system-png
268ac_add_options --with-system-zlib
[aed37975]269
[4def8b6]270mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
[0e37869]271EOF</userinput></screen>
[b9b7146]272
[c1ae13c]273 <para>
274 Compile <application>Firefox</application> by issuing the following
275 commands:
276 </para>
[9572e88]277
[14de4227]278 <para>
279 If you are using gtk+-3.20 or later, apply a patch to restore the
280 slider on scrollbars:
281 </para>
282
283<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-gtk320-1.patch</userinput></screen>
284
285 <para>
286 If you have installed system versions of graphite2 and harfbuzz and wish
287 firefox to use those instead of its shipped versions, apply the patch and
288 uncomment the appropriate entries in the <filename>mozconfig</filename>
289 file:
290 </para>
291
292<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-system_graphite2_harfbuzz-1.patch</userinput></screen>
293
[8b3a8979]294 <note><para>
[9572e88]295 If you are compiling <application>Firefox</application> in chroot, make
296 sure you have <envar>$SHELL</envar> environment variable set or prepend
[566fcae]297 <envar>SHELL=/bin/sh</envar>.
[8b3a8979]298 </para></note>
[566fcae]299
[0e78dee]300<screen><userinput>sed -e '/#include/i\
301 print OUT "#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS\\n"\;' \
302 -i nsprpub/config/make-system-wrappers.pl
303
304sed -e '/#include/a\
305 print OUT "#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS\\n"\;' \
306 -i nsprpub/config/make-system-wrappers.pl
307
[14de4227]308CFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
309CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"</userinput></screen>
[bccbdaea]310
[0e37869]311 <para>
312 This package does not come with a test suite.
313 </para>
[01ce75f8]314
[495ebe07]315 <para>
[b9f61df]316 Now, as the <systemitem class="username">root</systemitem> user:
[c1ae13c]317 </para>
[5a13c45]318
[da67029]319<screen role="root"><userinput>make -f client.mk install INSTALL_SDK= &amp;&amp;
[89cdb63d]320chown -R 0:0 /usr/lib/firefox-&firefox-version; &amp;&amp;
[5ee1266]321
322mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
[89cdb63d]323ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userinput></screen>
[01ce75f8]324
[b81991e1]325 </sect2>
326
[361df3e]327 <sect2 role="commands">
328 <title>Command Explanations</title>
[566fcae]329
[0e78dee]330 <para>
[14de4227]331 <command>sed ...</command>: These commands correct the source to be
332 compatible with gcc6 by preventing c++ scope errors.
333 </para>
334
335 <para>
336 <command>CFLAGS= ... CXXFLAGS= ...</command>: These settings work around
337 code which gcc6 would otherwise regard as out-of-specification and allow
338 it to produce a working program.
[0e78dee]339 </para>
340
[c1ae13c]341 <para>
342 <command>make -f client.mk ...</command>: Mozilla products are packaged to
343 allow the use of a configuration file which can be used to pass the
344 configuration settings to the <command>configure</command> command.
345 <command>make</command> uses the <filename>client.mk</filename> file to
346 get initial configuration and setup parameters.
347 </para>
348
349 <para>
[ec64d28]350 <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
[c1ae13c]351 that <filename class="directory">/usr/lib/mozilla/plugins</filename>
352 exists.
353 </para>
354
355 <para>
[24da103]356 <command>ln -sv ... /usr/lib/firefox-&firefox-version;/browser</command>:
357 This command creates a symbolic link to <filename
358 class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
359 needed, as <application>Firefox</application> checks <filename
360 class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
361 symbolic link is made to keep all the plugins installed in one folder.
[c1ae13c]362 </para>
[fa1bc3e]363
[b81991e1]364 </sect2>
365
[88cec02]366 <sect2 role="configuration">
367 <title>Configuring Firefox</title>
368
[c1ae13c]369 <para>
[06ec5081]370 If you did not add the <option>--disable-webm</option> option to your
[c1ae13c]371 <filename>mozconfig</filename>, your <application>Firefox</application>
[581df7e]372 can play most YouTube videos without the need for the Flash plugin.
373 Go to <ulink url="http://www.youtube.com/html5"/> to see which HTML5
374 video features your browser supports on YouTube.
[c1ae13c]375 </para>
376
377 <para>
378 If you use a desktop environment like <application>Gnome</application> or
379 <application>KDE</application> you may like to create a
380 <filename>firefox.desktop</filename> file so that
381 <application>Firefox</application> appears in the panel's menus. If you
382 didn't enable startup-notification in your mozconfig change the
383 StartupNotify line to false. As the
384 <systemitem class="username">root</systemitem> user:
385 </para>
[31de6e7]386
[eb5f847a]387<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
[0e37869]388mkdir -pv /usr/share/pixmaps &amp;&amp;
[74f73ede]389
[c099902d]390cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
[fcd66369]391<literal>[Desktop Entry]
[31de6e7]392Encoding=UTF-8
[0e37869]393Name=Firefox Web Browser
394Comment=Browse the World Wide Web
395GenericName=Web Browser
396Exec=firefox %u
397Terminal=false
[31de6e7]398Type=Application
399Icon=firefox
[0e37869]400Categories=GNOME;GTK;Network;WebBrowser;
401MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
[fcd66369]402StartupNotify=true</literal>
[31de6e7]403EOF
[74f73ede]404
[376c8c0]405ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
[0e37869]406 /usr/share/pixmaps/firefox.png</userinput></screen>
407
[88cec02]408 </sect2>
409
[b81991e1]410 <sect2 role="content">
411 <title>Contents</title>
412
413 <segmentedlist>
414 <segtitle>Installed Programs</segtitle>
415 <segtitle>Installed Libraries</segtitle>
[c5f005b]416 <segtitle>Installed Directory</segtitle>
[b81991e1]417
418 <seglistitem>
[0e37869]419 <seg>
420 firefox
421 </seg>
[c1ae13c]422 <seg>
423 Numerous libraries, browser components, plugins, extensions, and
[dbc7eaed]424 helper modules installed in /usr/lib/firefox-&firefox-version;
[c1ae13c]425 </seg>
[7498751]426 <seg>
[0e37869]427 /usr/lib/firefox-&firefox-version;
[7498751]428 </seg>
[b81991e1]429 </seglistitem>
430 </segmentedlist>
431
432 <variablelist>
433 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
434 <?dbfo list-presentation="list"?>
435 <?dbhtml list-presentation="table"?>
436
437 <varlistentry id="firefox-prog">
438 <term><command>firefox</command></term>
439 <listitem>
[c1ae13c]440 <para>
[0e37869]441 is a <application>GTK+ 2</application> internet browser that uses the
[a38269c]442 Mozilla Gecko rendering engine.
[c1ae13c]443 </para>
[b81991e1]444 <indexterm zone="firefox firefox-prog">
445 <primary sortas="b-firefox">firefox</primary>
446 </indexterm>
447 </listitem>
448 </varlistentry>
[0e37869]449
[b81991e1]450 </variablelist>
[0e37869]451
[b81991e1]452 </sect2>
[0e37869]453
[4d37129]454</sect1>
Note: See TracBrowser for help on using the repository browser.