source: xsoft/graphweb/firefox.xml@ eb148eb

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 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 systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since eb148eb was eb148eb, checked in by Andrew Benton <andy@…>, 12 years ago

assorted firefox and xulrunner tweaks

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

  • Property mode set to 100644
File size: 12.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!-- hopefully just for a couple of days
8 <!ENTITY firefox-download-http "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
9 -->
10 <!ENTITY firefox-download-http " ">
11 <!ENTITY firefox-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
12 <!ENTITY firefox-md5sum "d8d0c8c79660752b02d9e9ab69a68f94">
13 <!ENTITY firefox-size "70.8 MB">
14 <!ENTITY firefox-buildsize "3 GB (33 MB installed)">
15 <!ENTITY firefox-time "24 SBU (or 0.3 SBU if you&apos;re building against
16 an installed Xulrunner)">
17]>
18
19<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
20 <?dbhtml filename="firefox.html" ?>
21
22 <sect1info>
23 <othername>$LastChangedBy$</othername>
24 <date>$Date$</date>
25 </sect1info>
26
27 <title>Firefox-&firefox-version;</title>
28
29 <indexterm zone="firefox">
30 <primary sortas="a-Firefox">Firefox</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Firefox</title>
35
36 <para><application>Firefox</application> is a stand-alone browser
37 based on the <application>Mozilla</application> codebase.</para>
38
39 &lfs70_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download MD5 sum: &firefox-md5sum;</para>
51 </listitem>
52 <listitem>
53 <para>Download size: &firefox-size;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated disk space required: &firefox-buildsize;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated build time: &firefox-time;</para>
60 </listitem>
61 </itemizedlist>
62
63 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
64
65 <bridgehead renderas="sect4">Required</bridgehead>
66 <para role="required"><xref linkend="alsa-lib"/>, <xref linkend="gtk2"/>,
67 <xref linkend="libidl"/> and <xref linkend="zip"/></para>
68
69 <para>Note: <application>libjpeg</application> and
70 <application>libpng</application> (patched for apng support) should have
71 been installed before <application>gdk-pixbuf</application> and should
72 exist on your system. If for some strange reason you haven&apos;t installed
73 them, you should remove the <option>--with-system-jpeg</option> and
74 <option>--with-system-png</option> options from the
75 <filename>mozconfig</filename> file created below.</para>
76
77 <bridgehead renderas="sect4">Recommended</bridgehead>
78 <para role="recommended"><xref linkend="yasm"/> or
79 <xref linkend="libvpx"/> (to allow <application>Firefox</application> to
80 play webm videos).</para>
81
82 <bridgehead renderas="sect4">Optional</bridgehead>
83 <para role="optional"><xref linkend="dbus-glib"/>,
84 <xref linkend="startup-notification"/>, <xref linkend="sqlite"/>,
85 <ulink url="http://www.webmproject.org/code/">libvpx</ulink>,
86 <ulink url="http://sourceforge.net/projects/hunspell/">Hunspell</ulink>,
87 <xref linkend="doxygen"/>, <xref linkend="gnome-vfs"/> and
88 <xref linkend="libgnomeui"/> (for gnome integration),
89 <xref linkend="libnotify"/>, <xref linkend="nspr"/>, <xref linkend="nss"/>,
90 <xref linkend="xulrunner"/> (linking against an installed xulrunner makes
91 Firefox about 32 MB smaller, which is trivial compared to the size of
92 xulrunner), <xref linkend="unzip"/>, <xref linkend="wireless_tools"/>,
93 <ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
94 the jemalloc code) and <xref linkend="wget"/></para>
95
96 <para condition="html" role="usernotes">User Notes:
97 <ulink url="&blfs-wiki;/firefox"/></para>
98
99 </sect2>
100
101 <sect2 role="installation">
102 <title>Installation of Firefox</title>
103
104 <para>The configuration of <application>Firefox</application> is
105 accomplished by creating a <filename>mozconfig</filename> file containing
106 the desired configuration options. A default <filename>mozconfig</filename>
107 is created below. To see the entire list of available configuration options
108 (and an abbreviated description of each one), issue
109 <command>./configure --help</command>. You may also wish to review the
110 entire file and uncomment any other desired options. Create the file by
111 issuing the following command:</para>
112
113<screen><?dbfo keep-together="auto"?><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
114# If you have a multicore machine you can speed up the build by running
115# several jobs at once, but if you have a single core, delete this line:
116mk_add_options MOZ_MAKE_FLAGS="-j4"
117
118# If you have installed Yasm delete this option:
119ac_add_options --disable-webm
120
121# If you have installed DBus-Glib delete this option:
122ac_add_options --disable-dbus
123
124# If you have installed wireless-tools delete this option:
125ac_add_options --disable-necko-wifi
126
127# If you have installed libnotify delete this option:
128ac_add_options --disable-libnotify
129
130# If you have installed xulrunner uncomment these two lines:
131# ac_add_options --with-system-libxul
132# ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-&xulrunner-version;
133
134# Uncomment these if you have installed them and
135# you&apos;re not using an already installed xulrunner:
136# ac_add_options --with-system-nspr
137# ac_add_options --with-system-nss
138# ac_add_options --enable-system-sqlite
139# ac_add_options --enable-system-lcms
140# ac_add_options --with-system-libvpx
141# ac_add_options --enable-startup-notification
142
143mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
144ac_add_options --enable-official-branding
145ac_add_options --prefix=/usr
146
147# The rest of these options have no effect if you&apos;re
148# building against an already installed xulrunner:
149ac_add_options --enable-pthreads
150ac_add_options --enable-system-ffi
151ac_add_options --enable-system-jpeg
152ac_add_options --enable-system-png
153ac_add_options --enable-system-cairo
154ac_add_options --enable-system-zlib
155ac_add_options --enable-shared
156ac_add_options --disable-static
157ac_add_options --disable-debug
158ac_add_options --disable-crashreporter
159ac_add_options --disable-installer
160ac_add_options --disable-updater
161ac_add_options --disable-tests
162EOF</userinput></screen>
163
164 <para>Compile <application>Firefox</application> by issuing the
165 following commands:</para>
166
167<screen><userinput>sed -i 's# ""##' browser/base/Makefile.in &amp;&amp;
168make -f client.mk</userinput></screen>
169
170 <para>If you have <emphasis>not</emphasis> linked
171 <application>Firefox</application> against an installed
172 <application>Xulrunner</application>:</para>
173
174<screen><userinput>make -C firefox-build-dir/browser/installer</userinput></screen>
175
176 <para>This package does not come with a test suite.</para>
177
178 <para>Now, if you have <emphasis>not</emphasis> linked
179 <application>Firefox</application> against an installed
180 <application>Xulrunner</application>, as the
181 <systemitem class="username">root</systemitem> user, install the
182 package:</para>
183
184<screen role="root"><userinput>mkdir /usr/lib/firefox-&firefox-version; &amp;&amp;
185tar -xfv firefox-build-dir/dist/firefox-*.tar.bz2 -C /usr/lib/firefox-&firefox-version; --strip-components=1 &amp;&amp;
186ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin/firefox &amp;&amp;
187mkdir -p /usr/lib/mozilla/plugins &amp;&amp;
188ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &amp;&amp;
189chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
190
191 <para>If you <emphasis>have</emphasis> linked against an already installed
192 <application>Xulrunner</application>, as the
193 <systemitem class="username">root</systemitem> user:</para>
194
195<screen role="root"><userinput>make -C firefox-build-dir install &amp;&amp;
196rm /usr/bin/firefox &amp;&amp;
197cat &gt; /usr/bin/firefox &lt;&lt; "EOF" &amp;&amp;
198#!/bin/bash
199/usr/lib/xulrunner-&xulrunner-version;/xulrunner /usr/lib/firefox-&firefox-version;/application.ini "${@}"
200EOF
201chmod 755 /usr/bin/firefox &amp;&amp;
202mkdir -p /usr/lib/mozilla/plugins &amp;&amp;
203ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &amp;&amp;
204chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
205
206 </sect2>
207
208 <sect2 role="commands">
209 <title>Command Explanations</title>
210
211 <para><command>sed -i 's# ""##' browser/base/Makefile.in</command>: This
212 removes an unprintable control character from the title bar.</para>
213
214 <para><command>make -f client.mk ...</command>: Mozilla products are
215 packaged to allow the use of a configuration file which can be used to
216 pass the configuration settings to the <command>configure</command>
217 command. <command>make</command> uses the <filename>client.mk</filename>
218 file to get initial configuration and setup parameters.</para>
219
220 <para><command>make -C firefox-build-dir/browser/installer</command>:
221 this creates a <application>Firefox</application> tarball.</para>
222
223 <para><command>tar -xfv firefox-build-dir/dist ...</command>: This untars
224 <application>Firefox</application> in /usr/lib. The
225 <option>--strip-components=1</option> option removes the leading
226 &apos;firefox&apos; directory from the filenames, allowing us to untar it
227 into a versioned directory. Untaring it (instead of running make install)
228 prevents it installing /usr/lib/firefox-devel-&firefox-version; which
229 contains about 430 MB of files. If you need any of those files,
230 they&apos;re in <xref linkend="xulrunner"/></para>
231
232 <para><command>make -C firefox-build-dir install</command>: This runs
233 <command>make install</command> in firefox-build-dir.</para>
234
235 <para><command>ln -sfv ... /usr/bin/firefox</command>: this puts a symbolic
236 link to the <command>firefox</command> executable in your ${PATH}.</para>
237
238 <para><command>mkdir -p /usr/lib/mozilla/plugins</command>: this checks
239 that /usr/lib/mozilla/plugins exists (if you installed
240 <xref linkend="librsvg"/>, it was probably already there).</para>
241
242 <para><command>ln -sv ... /usr/lib/firefox-&firefox-version;</command>:
243 this makes a symbolic link to /usr/lib/mozilla/plugins.</para>
244
245 </sect2>
246
247 <sect2 role="configuration">
248 <title>Configuring Firefox</title>
249
250 <para>If you deleted the <option>--disable-webm</option> option from your
251 <filename>mozconfig</filename>, your <application>Firefox</application>
252 can play most YouTube videos without the need for the flash plugin. To
253 enable this, go to <ulink
254 url="http://www.youtube.com/html5">http://www.youtube.com/html5</ulink>
255 and click on &apos;Join the HTML5 Trial&apos; (needs cookies
256 enabled).</para>
257
258 </sect2>
259
260 <sect2 role="content">
261 <title>Contents</title>
262
263 <segmentedlist>
264 <segtitle>Installed Programs</segtitle>
265 <segtitle>Installed Libraries</segtitle>
266 <segtitle>Installed Directories</segtitle>
267
268 <seglistitem>
269 <seg>firefox</seg>
270 <seg>Numerous libraries, browser components, plugins, extensions, and
271 helper modules installed in <filename
272 class="directory">/usr/lib/firefox-&firefox-version;</filename>.</seg>
273 <seg>/usr/lib/firefox-&firefox-version;</seg>
274 </seglistitem>
275 </segmentedlist>
276
277 <variablelist>
278 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
279 <?dbfo list-presentation="list"?>
280 <?dbhtml list-presentation="table"?>
281
282 <varlistentry id="firefox-prog">
283 <term><command>firefox</command></term>
284 <listitem>
285 <para>is a gtk2 internet browser that uses the gecko rendering
286 engine.</para>
287 <indexterm zone="firefox firefox-prog">
288 <primary sortas="b-firefox">firefox</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 </variablelist>
294
295 </sect2>
296
297</sect1>
Note: See TracBrowser for help on using the repository browser.