source: xsoft/graphweb/firefox.xml@ a980725c

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 a980725c was a980725c, checked in by Igor Živković <igor@…>, 8 years ago

Update to firefox-46.0.
Update to libgpg-error-1.22.

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

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