source: x/lib/xulrunner.xml@ 0ccfdd3a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0ccfdd3a was 0ccfdd3a, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Modify build instructions for firefox-30.0 and thunderbird-24.6.0.
Uncoment 'ac_add_options --enable-system-cairo' in xulrunner/firefox-30.0 and thunderbird-24.6.0. Thanks Armin K.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@13230 af4574ff-66df-0310-9fd7-8a98e5e911e0

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