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