source: xsoft/graphweb/firefox.xml@ 8eb9e848

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 8eb9e848 was 0e78dee, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Update to firefox-46.0.1

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

  • Property mode set to 100644
File size: 13.8 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 " ">
[0e78dee]9 <!ENTITY firefox-md5sum "3e3b90268b8a634f7c60a25eb3a04c8c">
[a980725c]10 <!ENTITY firefox-size "179 MB">
[0e78dee]11 <!ENTITY firefox-buildsize "4.6 GB (84 MB installed)">
12 <!ENTITY firefox-time "11.5 SBU (with parallelism=4)">
[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
[645e6b0]37 &lfs79_checked;
[0e78dee]38 &gcc6_checked;
[76ae9a2]39
[b81991e1]40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[c1ae13c]43 <para>
44 Download (HTTP): <ulink url="&firefox-download-http;"/>
45 </para>
[b81991e1]46 </listitem>
47 <listitem>
[c1ae13c]48 <para>
49 Download (FTP): <ulink url="&firefox-download-ftp;"/>
50 </para>
[b81991e1]51 </listitem>
52 <listitem>
[c1ae13c]53 <para>
54 Download MD5 sum: &firefox-md5sum;
55 </para>
[b81991e1]56 </listitem>
57 <listitem>
[c1ae13c]58 <para>
59 Download size: &firefox-size;
60 </para>
[b81991e1]61 </listitem>
62 <listitem>
[c1ae13c]63 <para>
64 Estimated disk space required: &firefox-buildsize;
65 </para>
[b81991e1]66 </listitem>
67 <listitem>
[c1ae13c]68 <para>
69 Estimated build time: &firefox-time;
70 </para>
[b81991e1]71 </listitem>
72 </itemizedlist>
73
[f06c692]74 <note>
75 <para>
76 The tarball <emphasis>firefox-&firefox-version;.source.tar.xz</emphasis>
77 will untar to <emphasis>firefox-&firefox-version;</emphasis> directory.
78 </para>
79 </note>
80
[b81991e1]81 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
82
83 <bridgehead renderas="sect4">Required</bridgehead>
[c1ae13c]84 <para role="required">
85 <xref linkend="alsa-lib"/>,
[4b0eaf01]86 <xref linkend="gtk2"/>
87 (or <xref linkend="gtk3"/> if you change the mozconfig where indicated),
[59a6b63]88 <xref linkend="nss"/>,
89 <xref linkend="unzip"/>,
[479e03a]90 <xref linkend="yasm"/>, and
91 <xref linkend="zip"/>
[c1ae13c]92 </para>
93
[1555d3d]94 <bridgehead renderas="sect4">Recommended</bridgehead>
[c1ae13c]95 <para role="recommended">
[7bf10b1]96 <xref linkend="icu"/>,
[0e37869]97 <xref linkend="libevent"/>,
[479e03a]98 <xref linkend="libvpx"/>, and
[a30a874]99 <xref linkend="sqlite"/>
[c1ae13c]100 </para>
[1555d3d]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"/>,
[0776cd7]132 <xref linkend="ffmpeg"/> (runtime) or
[c011125]133 <xref linkend="gst10-plugins-base"/> (with
134 <xref linkend="gst10-plugins-good"/> and
135 <xref linkend="gst10-libav"/> at runtime),
[9d2268bb]136 <xref linkend="libwebp"/>,
[26fa7d2]137 <xref linkend="openjdk"/>,
138 <xref linkend="pulseaudio"/>,
[0e37869]139 <xref linkend="startup-notification"/>,
[566fcae]140 <xref linkend="valgrind"/>,
[6000a3e]141 <xref linkend="wget"/>,
[73b06df]142 <xref linkend="wireless_tools"/>,
[b09ed46a]143 <ulink url="https://hunspell.github.io/">Hunspell</ulink>,
[59a6b63]144 <ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink>, and
[724ab41]145 <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>, and
[6c6990c]146 <ulink url="https://www.rust-lang.org/">Rust</ulink>
[c1ae13c]147 </para>
148
149 <para condition="html" role="usernotes">
150 User Notes: <ulink url="&blfs-wiki;/firefox"/>
151 </para>
[b81991e1]152 </sect2>
153
154 <sect2 role="installation">
155 <title>Installation of Firefox</title>
156
[f72a04a]157 <para>
[b9f61df]158 The configuration of <application>Firefox</application> is accomplished
159 by creating a <filename>mozconfig</filename> file containing the desired
160 configuration options. A default <filename>mozconfig</filename> is
161 created below. To see the entire list of available configuration options
162 (and an abbreviated description of each one), issue <command>./configure
[c1ae13c]163 --help</command>. You may also wish to review the entire file and
[b9f61df]164 uncomment any other desired options. Create the file by issuing the
165 following command:
[c1ae13c]166 </para>
[5a13c45]167
[0e37869]168<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
[dcb0fe6]169<literal># If you have a multicore machine, all cores will be used by default.
170# If desired, you can reduce the number of cores used, e.g. to 1, by
171# uncommenting the next line and setting a valid number of CPU cores.
172#mk_add_options MOZ_MAKE_FLAGS="-j1"
173
174# If you have installed DBus-Glib comment out this line:
[74eaf91]175ac_add_options --disable-dbus
[aed37975]176
[32cca2cd]177# If you have installed dbus-glib, and you have installed (or will install)
178# wireless-tools, and you wish to use geolocation web services, comment out
179# this line
[6d1bf0e]180ac_add_options --disable-necko-wifi
181
[0776cd7]182# GStreamer is necessary for H.264 video playback in HTML5 Video Player if
183# FFmpeg is not found at runtime;
[686a89a3]184# to be enabled, also remember to set "media.gstreamer.enabled" to "true"
[5a1d752]185# in about:config. If you have GStreamer 1.x.y, comment out this line and
186# uncomment the following one:
187ac_add_options --disable-gstreamer
[c011125]188#ac_add_options --enable-gstreamer=1.0
[48ae92a]189
[a980725c]190# Comment out this option if you wish to build with gtk+-3
191ac_add_options --enable-default-toolkit=cairo-gtk2
[4b0eaf01]192
[48ae92a]193# Uncomment these lines if you have installed optional dependencies:
[0e37869]194#ac_add_options --enable-system-hunspell
195#ac_add_options --enable-startup-notification
[495ebe07]196
[27fd492b]197# Comment out following option if you have PulseAudio installed
198ac_add_options --disable-pulseaudio
[89cdb63d]199
200# If you have installed GConf, comment out this line
201ac_add_options --disable-gconf
202
[0e37869]203# Comment out following options if you have not installed
204# recommended dependencies:
205ac_add_options --enable-system-sqlite
206ac_add_options --with-system-libevent
207ac_add_options --with-system-libvpx
208ac_add_options --with-system-nspr
209ac_add_options --with-system-nss
[7bf10b1]210ac_add_options --with-system-icu
[0e37869]211
[7251b1d]212# The BLFS editors recommend not changing anything below this line:
[495ebe07]213ac_add_options --prefix=/usr
[0e37869]214ac_add_options --enable-application=browser
[495ebe07]215
[5f5dcc2]216ac_add_options --disable-crashreporter
217ac_add_options --disable-updater
[0e37869]218ac_add_options --disable-tests
219
220ac_add_options --enable-optimize
221ac_add_options --enable-strip
222ac_add_options --enable-install-strip
223
224ac_add_options --enable-gio
225ac_add_options --enable-official-branding
226ac_add_options --enable-safe-browsing
227ac_add_options --enable-url-classifier
228
[0bcaa9a6]229# From firefox-40, using system cairo causes firefox to crash
230# frequently when it is doing background rendering in a tab.
[d8ddab5]231#ac_add_options --enable-system-cairo
[41f2e90]232ac_add_options --enable-system-ffi
[0e37869]233ac_add_options --enable-system-pixman
234
[5f5dcc2]235ac_add_options --with-pthreads
[0e37869]236
237ac_add_options --with-system-bz2
[a0ace670]238ac_add_options --with-system-jpeg
239ac_add_options --with-system-png
240ac_add_options --with-system-zlib
[aed37975]241
[4def8b6]242mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
[0e37869]243EOF</userinput></screen>
[b9b7146]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
[0e78dee]256<screen><userinput>sed -e '/#include/i\
257 print OUT "#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS\\n"\;' \
258 -i nsprpub/config/make-system-wrappers.pl
259
260sed -e '/#include/a\
261 print OUT "#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS\\n"\;' \
262 -i nsprpub/config/make-system-wrappers.pl
263
264CXX='g++ -std=c++11' make -f client.mk</userinput></screen>
[bccbdaea]265
[0e37869]266 <para>
267 This package does not come with a test suite.
268 </para>
[01ce75f8]269
[495ebe07]270 <para>
[b9f61df]271 Now, as the <systemitem class="username">root</systemitem> user:
[c1ae13c]272 </para>
[5a13c45]273
[da67029]274<screen role="root"><userinput>make -f client.mk install INSTALL_SDK= &amp;&amp;
[89cdb63d]275chown -R 0:0 /usr/lib/firefox-&firefox-version; &amp;&amp;
[5ee1266]276
277mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
[89cdb63d]278ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userinput></screen>
[01ce75f8]279
[b81991e1]280 </sect2>
281
[361df3e]282 <sect2 role="commands">
283 <title>Command Explanations</title>
[566fcae]284
[0e78dee]285 <para>
286 <command>sed ...</command>: These commads correct the source to be
287 compatible with gcc6.
288 </para>
289
[c1ae13c]290 <para>
291 <command>make -f client.mk ...</command>: Mozilla products are packaged to
292 allow the use of a configuration file which can be used to pass the
293 configuration settings to the <command>configure</command> command.
294 <command>make</command> uses the <filename>client.mk</filename> file to
295 get initial configuration and setup parameters.
296 </para>
297
[495ebe07]298 <para>
299 <command>make -C firefox-build-dir install</command>: This runs
300 <command>make install</command> in firefox-build-dir.
301 </para>
302
[c1ae13c]303 <para>
[ec64d28]304 <command>ln -sfv ... /usr/bin/firefox</command>: This puts a symbolic link
305 to the <command>firefox</command> executable in your <envar>PATH</envar>
306 variable.
[c1ae13c]307 </para>
308
309 <para>
[ec64d28]310 <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
[c1ae13c]311 that <filename class="directory">/usr/lib/mozilla/plugins</filename>
312 exists.
313 </para>
314
315 <para>
[24da103]316 <command>ln -sv ... /usr/lib/firefox-&firefox-version;/browser</command>:
317 This command creates a symbolic link to <filename
318 class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
319 needed, as <application>Firefox</application> checks <filename
320 class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
321 symbolic link is made to keep all the plugins installed in one folder.
[c1ae13c]322 </para>
[fa1bc3e]323
[b81991e1]324 </sect2>
325
[88cec02]326 <sect2 role="configuration">
327 <title>Configuring Firefox</title>
328
[c1ae13c]329 <para>
[06ec5081]330 If you did not add the <option>--disable-webm</option> option to your
[c1ae13c]331 <filename>mozconfig</filename>, your <application>Firefox</application>
332 can play most YouTube videos without the need for the flash plugin. To
333 enable this, go to <ulink url="http://www.youtube.com/html5"/> and click
334 on 'Join the HTML5 Trial' (needs cookies enabled).
335 </para>
336
337 <para>
338 If you use a desktop environment like <application>Gnome</application> or
339 <application>KDE</application> you may like to create a
340 <filename>firefox.desktop</filename> file so that
341 <application>Firefox</application> appears in the panel's menus. If you
342 didn't enable startup-notification in your mozconfig change the
343 StartupNotify line to false. As the
344 <systemitem class="username">root</systemitem> user:
345 </para>
[31de6e7]346
[eb5f847a]347<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
[0e37869]348mkdir -pv /usr/share/pixmaps &amp;&amp;
[74f73ede]349
[c099902d]350cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
[fcd66369]351<literal>[Desktop Entry]
[31de6e7]352Encoding=UTF-8
[0e37869]353Name=Firefox Web Browser
354Comment=Browse the World Wide Web
355GenericName=Web Browser
356Exec=firefox %u
357Terminal=false
[31de6e7]358Type=Application
359Icon=firefox
[0e37869]360Categories=GNOME;GTK;Network;WebBrowser;
361MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
[fcd66369]362StartupNotify=true</literal>
[31de6e7]363EOF
[74f73ede]364
[376c8c0]365ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
[0e37869]366 /usr/share/pixmaps/firefox.png</userinput></screen>
367
[88cec02]368 </sect2>
369
[b81991e1]370 <sect2 role="content">
371 <title>Contents</title>
372
373 <segmentedlist>
374 <segtitle>Installed Programs</segtitle>
375 <segtitle>Installed Libraries</segtitle>
[c5f005b]376 <segtitle>Installed Directory</segtitle>
[b81991e1]377
378 <seglistitem>
[0e37869]379 <seg>
380 firefox
381 </seg>
[c1ae13c]382 <seg>
383 Numerous libraries, browser components, plugins, extensions, and
[dbc7eaed]384 helper modules installed in /usr/lib/firefox-&firefox-version;
[c1ae13c]385 </seg>
[7498751]386 <seg>
[0e37869]387 /usr/lib/firefox-&firefox-version;
[7498751]388 </seg>
[b81991e1]389 </seglistitem>
390 </segmentedlist>
391
392 <variablelist>
393 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
394 <?dbfo list-presentation="list"?>
395 <?dbhtml list-presentation="table"?>
396
397 <varlistentry id="firefox-prog">
398 <term><command>firefox</command></term>
399 <listitem>
[c1ae13c]400 <para>
[0e37869]401 is a <application>GTK+ 2</application> internet browser that uses the
[a38269c]402 Mozilla Gecko rendering engine.
[c1ae13c]403 </para>
[b81991e1]404 <indexterm zone="firefox firefox-prog">
405 <primary sortas="b-firefox">firefox</primary>
406 </indexterm>
407 </listitem>
408 </varlistentry>
[0e37869]409
[b81991e1]410 </variablelist>
[0e37869]411
[b81991e1]412 </sect2>
[0e37869]413
[4d37129]414</sect1>
Note: See TracBrowser for help on using the repository browser.