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