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 "b7d09b082e88a74860a51a8e04e29333">
|
---|
10 | <!ENTITY firefox-size "67 MB">
|
---|
11 | <!ENTITY firefox-buildsize "3 GB (or 495 MB if you're building against an
|
---|
12 | installed Xulrunner)">
|
---|
13 | <!ENTITY firefox-time "24 SBU (or 0.3 SBU if you're building against
|
---|
14 | an installed Xulrunner)">
|
---|
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><application>Firefox</application> is a stand-alone browser
|
---|
35 | based on the <application>Mozilla</application> codebase.</para>
|
---|
36 |
|
---|
37 | &lfs70_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download MD5 sum: &firefox-md5sum;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download size: &firefox-size;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated disk space required: &firefox-buildsize;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated build time: &firefox-time;</para>
|
---|
58 | </listitem>
|
---|
59 | </itemizedlist>
|
---|
60 |
|
---|
61 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
64 | <para role="required"><xref linkend="alsa-lib"/>,
|
---|
65 | <xref linkend="gtk2"/>,
|
---|
66 | <xref linkend="libidl"/> and
|
---|
67 | <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'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">Optional</bridgehead>
|
---|
78 | <para role="optional"><xref linkend="dbus-glib"/>,
|
---|
79 | <xref linkend="startup-notification"/>, <xref linkend="sqlite"/>,
|
---|
80 | <ulink url="http://www.webmproject.org/code/">libvpx</ulink>,
|
---|
81 | <ulink url="http://sourceforge.net/projects/hunspell/">Hunspell</ulink>,
|
---|
82 | <xref linkend="doxygen"/>,
|
---|
83 | <xref linkend="gnome-vfs"/> and <xref linkend="libgnomeui"/> (for gnome
|
---|
84 | integration), <xref linkend="libnotify"/>, <xref linkend="nspr"/>,
|
---|
85 | <xref linkend="nss"/>, <xref linkend="xulrunner"/> (linking against an
|
---|
86 | installed xulrunner makes Firefox about 32 MB smaller, which is trivial
|
---|
87 | compared to the size of xulrunner), <xref linkend="unzip"/>,
|
---|
88 | <xref linkend="wireless_tools"/>,
|
---|
89 | <ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
|
---|
90 | the jemalloc code) and <xref linkend="wget"/></para>
|
---|
91 |
|
---|
92 | <para condition="html" role="usernotes">User Notes:
|
---|
93 | <ulink url="&blfs-wiki;/firefox"/></para>
|
---|
94 |
|
---|
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><?dbfo keep-together="auto"?><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 DBus-Glib you can delete this option:
|
---|
115 | ac_add_options --disable-dbus
|
---|
116 |
|
---|
117 | # If you have installed wireless-tools you can delete this option:
|
---|
118 | ac_add_options --disable-necko-wifi
|
---|
119 |
|
---|
120 | # If you have installed nss and nspr uncomment these two lines:
|
---|
121 | # ac_add_options --with-system-nspr
|
---|
122 | # ac_add_options --with-system-nss
|
---|
123 |
|
---|
124 | # If you have installed xulrunner uncomment these two lines:
|
---|
125 | # ac_add_options --with-system-libxul
|
---|
126 | # ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-&xulrunner-version;
|
---|
127 |
|
---|
128 | # Uncomment these if you have installed them:
|
---|
129 | # ac_add_options --enable-system-sqlite
|
---|
130 | # ac_add_options --enable-system-lcms
|
---|
131 | # ac_add_options --with-system-libvpx
|
---|
132 | # ac_add_options --enable-startup-notification
|
---|
133 |
|
---|
134 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
|
---|
135 | ac_add_options --enable-official-branding
|
---|
136 |
|
---|
137 | # The rest of these options have no effect if you're
|
---|
138 | # building against an already installed xulrunner:
|
---|
139 | ac_add_options --enable-pthreads
|
---|
140 | ac_add_options --enable-system-ffi
|
---|
141 | ac_add_options --enable-system-jpeg
|
---|
142 | ac_add_options --enable-system-png
|
---|
143 | ac_add_options --enable-system-cairo
|
---|
144 | ac_add_options --enable-system-zlib
|
---|
145 | ac_add_options --enable-shared
|
---|
146 | ac_add_options --disable-static
|
---|
147 | ac_add_options --disable-debug
|
---|
148 | ac_add_options --disable-crashreporter
|
---|
149 | ac_add_options --disable-installer
|
---|
150 | ac_add_options --disable-updater
|
---|
151 | ac_add_options --disable-tests
|
---|
152 | EOF</userinput></screen>
|
---|
153 |
|
---|
154 | <para>Compile <application>Firefox</application> by issuing the
|
---|
155 | following commands:</para>
|
---|
156 |
|
---|
157 | <screen><userinput>make -f client.mk</userinput></screen>
|
---|
158 |
|
---|
159 | <para>If you have <emphasis>not</emphasis> linked
|
---|
160 | <application>Firefox</application> against an installed
|
---|
161 | <application>Xulrunner</application>:</para>
|
---|
162 |
|
---|
163 | <screen><userinput>make -C firefox-build-dir/browser/installer</userinput></screen>
|
---|
164 |
|
---|
165 | <para>This package does not come with a test suite.</para>
|
---|
166 |
|
---|
167 | <para>Now, if you have <emphasis>not</emphasis> linked
|
---|
168 | <application>Firefox</application> against an installed
|
---|
169 | <application>Xulrunner</application>, as the
|
---|
170 | <systemitem class="username">root</systemitem> user, install the
|
---|
171 | package:</para>
|
---|
172 |
|
---|
173 | <screen role="root"><userinput>tar -xfv firefox-build-dir/dist/firefox-*.tar.bz2 -C /usr/lib &&
|
---|
174 | ln -sfv ../lib/firefox/firefox /usr/bin/firefox &&
|
---|
175 | mkdir -p /usr/lib/mozilla/plugins &&
|
---|
176 | ln -sv ../mozilla/plugins /usr/lib/firefox &&
|
---|
177 | chown -R -v root:root /usr/lib/firefox</userinput></screen>
|
---|
178 |
|
---|
179 | <para>If you have installed <application>Firefox</application> linked
|
---|
180 | against an already installed <application>Xulrunner</application>, as the
|
---|
181 | <systemitem class="username">root</systemitem> user:</para>
|
---|
182 |
|
---|
183 | <screen role="root"><userinput>make -C firefox-build-dir install &&
|
---|
184 | rm /usr/bin/firefox &&
|
---|
185 | cat > /usr/bin/firefox << "EOF" &&
|
---|
186 | #!/bin/bash
|
---|
187 | /usr/lib/xulrunner-&xulrunner-version;/xulrunner /usr/lib/firefox-&firefox-version;/application.ini "${@}"
|
---|
188 | EOF
|
---|
189 | chmod 755 /usr/bin/firefox &&
|
---|
190 | mkdir -p /usr/lib/mozilla/plugins &&
|
---|
191 | ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &&
|
---|
192 | chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
|
---|
193 |
|
---|
194 | </sect2>
|
---|
195 |
|
---|
196 | <sect2 role="commands">
|
---|
197 | <title>Command Explanations</title>
|
---|
198 |
|
---|
199 | <para><command>make -f client.mk ...</command>: Mozilla products are
|
---|
200 | packaged to allow the use of a configuration file which can be used to
|
---|
201 | pass the configuration settings to the <command>configure</command>
|
---|
202 | command. <command>make</command> uses the <filename>client.mk</filename>
|
---|
203 | file to get initial configuration and setup parameters.</para>
|
---|
204 |
|
---|
205 | <para><command>make -C firefox-build-dir/browser/installer</command>:
|
---|
206 | this creates a <application>Firefox</application> tarball.</para>
|
---|
207 |
|
---|
208 | <para><command>tar -xfv firefox-build-dir/dist ...</command>: This untars
|
---|
209 | <application>Firefox</application> in /usr/lib. Untaring it (instead of
|
---|
210 | running make install) prevents it installing
|
---|
211 | /usr/lib/firefox-devel-&firefox-version; which contains about 430 MB of
|
---|
212 | files. If you need any of those files, they're in
|
---|
213 | <xref linkend="xulrunner"/></para>
|
---|
214 |
|
---|
215 | <para><command>make -C firefox-build-dir install</command>: This runs
|
---|
216 | <command>make install</command> in firefox-build-dir.</para>
|
---|
217 |
|
---|
218 | <para><command>ln -sfv ... /usr/bin/firefox</command>: this puts a symbolic
|
---|
219 | link to the <command>firefox</command> executable in your ${PATH}.</para>
|
---|
220 |
|
---|
221 | <para><command>mkdir -p /usr/lib/mozilla/plugins</command>: this checks
|
---|
222 | that /usr/lib/mozilla/plugins exists (if you installed
|
---|
223 | <xref linkend="librsvg"/>, it was probably already there).</para>
|
---|
224 |
|
---|
225 | <para><command>ln -sv ... /usr/lib/firefox-&firefox-version;</command>:
|
---|
226 | this makes a symbolic link to /usr/lib/mozilla/plugins.</para>
|
---|
227 |
|
---|
228 | </sect2>
|
---|
229 |
|
---|
230 | <sect2 role="content">
|
---|
231 | <title>Contents</title>
|
---|
232 |
|
---|
233 | <segmentedlist>
|
---|
234 | <segtitle>Installed Programs</segtitle>
|
---|
235 | <segtitle>Installed Libraries</segtitle>
|
---|
236 | <segtitle>Installed Directories</segtitle>
|
---|
237 |
|
---|
238 | <seglistitem>
|
---|
239 | <seg>firefox</seg>
|
---|
240 | <seg>Numerous libraries, browser components, plugins, extensions, and
|
---|
241 | helper modules installed in <filename
|
---|
242 | class='directory'>/usr/lib/firefox</filename> or <filename
|
---|
243 | class='directory'>/usr/lib/firefox-&firefox-version;</filename>
|
---|
244 | (depending whether you untared it or ran make install)</seg>
|
---|
245 | <seg>/usr/lib/firefox</seg>
|
---|
246 | </seglistitem>
|
---|
247 | </segmentedlist>
|
---|
248 |
|
---|
249 | <variablelist>
|
---|
250 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
251 | <?dbfo list-presentation="list"?>
|
---|
252 | <?dbhtml list-presentation="table"?>
|
---|
253 |
|
---|
254 | <varlistentry id="firefox-prog">
|
---|
255 | <term><command>firefox</command></term>
|
---|
256 | <listitem>
|
---|
257 | <para>is a gtk2 internet browser that uses the gecko rendering
|
---|
258 | engine.</para>
|
---|
259 | <indexterm zone="firefox firefox-prog">
|
---|
260 | <primary sortas="b-firefox">firefox</primary>
|
---|
261 | </indexterm>
|
---|
262 | </listitem>
|
---|
263 | </varlistentry>
|
---|
264 |
|
---|
265 | </variablelist>
|
---|
266 |
|
---|
267 | </sect2>
|
---|
268 |
|
---|
269 | </sect1>
|
---|