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