source: xsoft/graphweb/firefox.xml@ b9f61df

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.7 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 krejzi/svn 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 b9f61df was b9f61df, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Archive xulrunner

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

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