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 xulrunner-download-http
|
---|
8 | "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
9 | <!ENTITY xulrunner-download-ftp
|
---|
10 | "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
11 | <!ENTITY xulrunner-md5sum "0fa25582fb5e0fba37c9f1add8370af2">
|
---|
12 | <!ENTITY xulrunner-size "111 MB">
|
---|
13 | <!ENTITY xulrunner-buildsize "4.9 GB (89 MB installed)">
|
---|
14 | <!ENTITY xulrunner-time "94 SBU">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="xulrunner" xreflabel="Xulrunner-&xulrunner-version;">
|
---|
18 | <?dbhtml filename="xulrunner.html" ?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <othername>$LastChangedBy$</othername>
|
---|
22 | <date>$Date$</date>
|
---|
23 | </sect1info>
|
---|
24 |
|
---|
25 | <title>Xulrunner-&xulrunner-version;</title>
|
---|
26 |
|
---|
27 | <indexterm zone="xulrunner">
|
---|
28 | <primary sortas="a-Xulrunner">Xulrunner</primary>
|
---|
29 | </indexterm>
|
---|
30 |
|
---|
31 | <sect2 role="package">
|
---|
32 | <title>Introduction to Xulrunner</title>
|
---|
33 |
|
---|
34 | <para>
|
---|
35 | <application>Xulrunner</application> is a runtime environment for XUL
|
---|
36 | applications, and forms the major part of the
|
---|
37 | <application>Mozilla</application> codebase. In particular, it provides
|
---|
38 | the Gecko engine together with pkgconfig files so that other applications
|
---|
39 | can find and use it.
|
---|
40 | </para>
|
---|
41 |
|
---|
42 | &lfs73_checked;
|
---|
43 |
|
---|
44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
45 | <itemizedlist spacing="compact">
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (HTTP): <ulink url="&xulrunner-download-http;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download (FTP): <ulink url="&xulrunner-download-ftp;"/>
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download MD5 sum: &xulrunner-md5sum;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Download size: &xulrunner-size;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated disk space required: &xulrunner-buildsize;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | <listitem>
|
---|
72 | <para>
|
---|
73 | Estimated build time: &xulrunner-time;
|
---|
74 | </para>
|
---|
75 | </listitem>
|
---|
76 | </itemizedlist>
|
---|
77 |
|
---|
78 | <bridgehead renderas="sect3">Xulrunner Dependencies</bridgehead>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
81 | <para role="required">
|
---|
82 | <xref linkend="alsa-lib"/>,
|
---|
83 | <xref linkend="gtk2"/>,
|
---|
84 | <xref linkend="zip"/> and
|
---|
85 | <xref linkend="unzip"/>
|
---|
86 | </para>
|
---|
87 |
|
---|
88 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
89 | <para role="recommended">
|
---|
90 | <xref linkend="libevent"/>,
|
---|
91 | <xref linkend="libvpx"/>,
|
---|
92 | <xref linkend="nspr"/>,
|
---|
93 | <xref linkend="nss"/>,
|
---|
94 | <xref linkend="sqlite"/> and
|
---|
95 | <xref linkend="yasm"/>
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <note>
|
---|
99 | <para>
|
---|
100 | If you don't install recommended dependencies,
|
---|
101 | then internal copies of those packages will
|
---|
102 | be used. They might be tested to work, but
|
---|
103 | they can be out of date or contain security
|
---|
104 | holes.
|
---|
105 | </para>
|
---|
106 | </note>
|
---|
107 |
|
---|
108 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
109 | <para role="optional">
|
---|
110 | <xref linkend="curl"/>,
|
---|
111 | <xref linkend="dbus-glib"/>,
|
---|
112 | <xref linkend="doxygen"/>,
|
---|
113 | <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
|
---|
114 | <xref linkend="libnotify"/>,
|
---|
115 | <xref linkend="startup-notification"/>,
|
---|
116 | <xref linkend="wget"/> and
|
---|
117 | <xref linkend="wireless_tools"/>
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <para condition="html" role="usernotes">
|
---|
121 | User Notes: <ulink url="&blfs-wiki;/xulrunner"/>
|
---|
122 | </para>
|
---|
123 | </sect2>
|
---|
124 |
|
---|
125 | <sect2 role="installation">
|
---|
126 | <title>Installation of Xulrunner</title>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | The configuration of <application>Xulrunner</application> is accomplished
|
---|
130 | by creating a <filename>mozconfig</filename> file containing the desired
|
---|
131 | configuration options. A default <filename>mozconfig</filename> is created
|
---|
132 | below. To see the entire list of available configuration options (and an
|
---|
133 | abbreviated description of each one), issue <command>./configure
|
---|
134 | --help</command>. You should review the entire file and comment or
|
---|
135 | uncomment options as necessary.
|
---|
136 | </para>
|
---|
137 |
|
---|
138 | <screen><userinput>cat > mozconfig << "EOF"
|
---|
139 | # If you have a multicore machine, firefox will now use all the cores by
|
---|
140 | # default. Exceptionally, you can reduce the number of cores, e.g. to 1,
|
---|
141 | # by uncommenting the next line and setting a valid number of CPU cores.
|
---|
142 | #mk_add_options MOZ_MAKE_FLAGS="-j1"
|
---|
143 |
|
---|
144 | # If you have installed DBus-Glib comment out this line:
|
---|
145 | ac_add_options --disable-dbus
|
---|
146 |
|
---|
147 | # If you have installed wireless-tools comment out this line:
|
---|
148 | ac_add_options --disable-necko-wifi
|
---|
149 |
|
---|
150 | # If you have installed libnotify comment out this line:
|
---|
151 | ac_add_options --disable-libnotify
|
---|
152 |
|
---|
153 | # Uncomment these lines if you have installed optional dependencies:
|
---|
154 | #ac_add_options --enable-system-hunspell
|
---|
155 | #ac_add_options --enable-startup-notification
|
---|
156 |
|
---|
157 | # If you have not installed Yasm then uncomment this line:
|
---|
158 | #ac_add_options --disable-webm
|
---|
159 |
|
---|
160 | # Comment out following options if you have not installed
|
---|
161 | # recommended dependencies:
|
---|
162 | ac_add_options --enable-system-sqlite
|
---|
163 | ac_add_options --with-system-libevent
|
---|
164 | ac_add_options --with-system-libvpx
|
---|
165 | ac_add_options --with-system-nspr
|
---|
166 | ac_add_options --with-system-nss
|
---|
167 |
|
---|
168 | # It is recommended not to touch anything below this line
|
---|
169 | ac_add_options --prefix=/usr
|
---|
170 | ac_add_options --enable-application=xulrunner
|
---|
171 |
|
---|
172 | ac_add_options --disable-crashreporter
|
---|
173 | ac_add_options --disable-installer
|
---|
174 | ac_add_options --disable-updater
|
---|
175 | ac_add_options --disable-debug
|
---|
176 | ac_add_options --disable-tests
|
---|
177 | ac_add_options --disable-mochitest
|
---|
178 |
|
---|
179 | ac_add_options --enable-optimize
|
---|
180 | ac_add_options --enable-strip
|
---|
181 | ac_add_options --enable-install-strip
|
---|
182 |
|
---|
183 | ac_add_options --enable-system-ffi
|
---|
184 | ac_add_options --enable-system-pixman
|
---|
185 |
|
---|
186 | ac_add_options --enable-shared-js
|
---|
187 | ac_add_options --with-pthreads
|
---|
188 |
|
---|
189 | ac_add_options --with-system-bz2
|
---|
190 | ac_add_options --with-system-jpeg
|
---|
191 | ac_add_options --with-system-png
|
---|
192 | ac_add_options --with-system-zlib
|
---|
193 |
|
---|
194 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xulrunner-build-dir
|
---|
195 | EOF</userinput></screen>
|
---|
196 |
|
---|
197 | <note>
|
---|
198 | <para>
|
---|
199 | <application>Xulrunner</application>'s build uses large amount of
|
---|
200 | memory. On some systems, the RAM/Swap combination needs 6 GB available.
|
---|
201 | </para>
|
---|
202 | </note>
|
---|
203 |
|
---|
204 | <para>
|
---|
205 | Build <application>Xulrunner</application> by issuing the following
|
---|
206 | commands:
|
---|
207 | </para>
|
---|
208 |
|
---|
209 | <screen><userinput>make -f client.mk</userinput></screen>
|
---|
210 |
|
---|
211 | <para>
|
---|
212 | This package does not come with a test suite.
|
---|
213 | </para>
|
---|
214 |
|
---|
215 | <para>
|
---|
216 | Install, as the <systemitem class="username">root</systemitem> user:
|
---|
217 | </para>
|
---|
218 |
|
---|
219 | <screen role="root"><userinput>make -C xulrunner-build-dir install &&
|
---|
220 |
|
---|
221 | mkdir -pv /usr/lib/mozilla/plugins &&
|
---|
222 | rm -rf /usr/lib/xulrunner-&xulrunner-version;/plugins &&
|
---|
223 | ln -sv ../mozilla/plugins /usr/lib/xulrunner-&xulrunner-version; &&
|
---|
224 |
|
---|
225 | chmod -v 755 /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/bin/xpcshell &&
|
---|
226 |
|
---|
227 | for library in libmozalloc.so libmozjs.so libxul.so; do
|
---|
228 | ln -sfv ../../../xulrunner-&xulrunner-version;/$library \
|
---|
229 | /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib/$library
|
---|
230 | ln -sfv xulrunner-&xulrunner-version;/$library /usr/lib/$library
|
---|
231 | done
|
---|
232 |
|
---|
233 | ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/run-mozilla.sh \
|
---|
234 | /usr/lib/xulrunner-&xulrunner-version;
|
---|
235 | ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/xpcshell \
|
---|
236 | /usr/lib/xulrunner-&xulrunner-version;</userinput></screen>
|
---|
237 |
|
---|
238 | </sect2>
|
---|
239 |
|
---|
240 | <sect2 role="commands">
|
---|
241 | <title>Command Explanations</title>
|
---|
242 |
|
---|
243 | <para>
|
---|
244 | <command>make -f client.mk ...</command>: Mozilla products are packaged to
|
---|
245 | allow the use of a configuration file which can be used to pass the
|
---|
246 | configuration settings to the <command>configure</command> command.
|
---|
247 | <command>make</command> uses the <filename>client.mk</filename> file to
|
---|
248 | get initial configuration and setup parameters.
|
---|
249 | </para>
|
---|
250 |
|
---|
251 | <para>
|
---|
252 | <command>ln -sfv ../mozilla/plugins ...</command>: Some packages will
|
---|
253 | install browser plugins into
|
---|
254 | <filename class="directory">/usr/lib/mozilla/plugins</filename>.
|
---|
255 | Creating this symlink <application>Xulrunner</application> keeps
|
---|
256 | additional plugins in a common directory.
|
---|
257 | </para>
|
---|
258 |
|
---|
259 | <para>
|
---|
260 | <command>for library in libmozalloc.so libmozjs.so libxul.so ...
|
---|
261 | </command>: The libraries shipped with this package are installed into
|
---|
262 | <filename class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
|
---|
263 | which means they will not be found at runtime. These commands make
|
---|
264 | relative symbolic links to the shared libraries from
|
---|
265 | <filename class="directory">/usr/lib</filename>. They will also replace duplicate
|
---|
266 | libraries that are installed in
|
---|
267 | <filename class="directory">/usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib</filename>
|
---|
268 | with symlinks in order to save some space.
|
---|
269 | </para>
|
---|
270 |
|
---|
271 | <para>
|
---|
272 | <command>ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/ ...</command>
|
---|
273 | The <filename>run-mozilla.sh</filename> and <filename>xpcshell</filename> files
|
---|
274 | have been moved in this version, but the code which installs
|
---|
275 | <application>Firefox</application> (when linked to xulrunner) was not updated.
|
---|
276 | These symlinks allow<application>Firefox</application> to install when built against
|
---|
277 | <application>Xulrunner</application>.
|
---|
278 | </para>
|
---|
279 |
|
---|
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>
|
---|
292 | xulrunner
|
---|
293 | </seg>
|
---|
294 | <seg>
|
---|
295 | Numerous libraries, browser components, plugins, extensions, and
|
---|
296 | helper modules installed in <filename
|
---|
297 | class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
|
---|
298 | </seg>
|
---|
299 | <seg>
|
---|
300 | /usr/include/xulrunner-&xulrunner-version;,
|
---|
301 | /usr/lib/xulrunner-&xulrunner-version;,
|
---|
302 | /usr/lib/xulrunner-devel-&xulrunner-version; and
|
---|
303 | /usr/share/idl/xulrunner-&xulrunner-version;
|
---|
304 | </seg>
|
---|
305 | </seglistitem>
|
---|
306 | </segmentedlist>
|
---|
307 |
|
---|
308 | <variablelist>
|
---|
309 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
310 | <?dbfo list-presentation="list"?>
|
---|
311 | <?dbhtml list-presentation="table"?>
|
---|
312 |
|
---|
313 | <varlistentry id="xulrunner-prog">
|
---|
314 | <term><command>xulrunner</command></term>
|
---|
315 | <listitem>
|
---|
316 | <para>
|
---|
317 | is a shell script used for identifying the installed version
|
---|
318 | and running <application>Xulrunner</application> applications.
|
---|
319 | </para>
|
---|
320 | <indexterm zone="xulrunner xulrunner-prog">
|
---|
321 | <primary sortas="b-xulrunner">xulrunner</primary>
|
---|
322 | </indexterm>
|
---|
323 | </listitem>
|
---|
324 | </varlistentry>
|
---|
325 |
|
---|
326 | </variablelist>
|
---|
327 |
|
---|
328 | </sect2>
|
---|
329 |
|
---|
330 | </sect1>
|
---|