source: x/lib/xulrunner.xml@ 3bbe37d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 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 3bbe37d was 3bbe37d, checked in by Fernando de Oliveira <fernando@…>, 11 years ago

xulrunner and seamonkey: option to build with system cairo

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

  • Property mode set to 100644
File size: 11.8 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-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 &lfs74_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">Additional Download</bridgehead>
79 <itemizedlist spacing='compact'>
80 <listitem>
81 <para>Optional patch: <ulink
82 url="&patch-root;/firefox-&firefox-version;-system_cairo-1.patch"/></para>
83 </listitem>
84 </itemizedlist>
85
86 <bridgehead renderas="sect3">Xulrunner Dependencies</bridgehead>
87
88 <bridgehead renderas="sect4">Required</bridgehead>
89 <para role="required">
90 <xref linkend="alsa-lib"/>,
91 <xref linkend="gtk2"/>,
92 <xref linkend="zip"/> and
93 <xref linkend="unzip"/>
94 </para>
95
96 <bridgehead renderas="sect4">Recommended</bridgehead>
97 <para role="recommended">
98 <xref linkend="libevent"/>,
99 <xref linkend="libvpx"/>,
100 <xref linkend="nspr"/>,
101 <xref linkend="nss"/>,
102 <xref linkend="sqlite"/> and
103 <xref linkend="yasm"/>
104 </para>
105
106 <note>
107 <para>
108 If you don't install recommended dependencies,
109 then internal copies of those packages will
110 be used. They might be tested to work, but
111 they can be out of date or contain security
112 holes.
113 </para>
114 </note>
115
116 <bridgehead renderas="sect4">Optional</bridgehead>
117 <para role="optional">
118 <xref linkend="curl"/>,
119 <xref linkend="dbus-glib"/>,
120 <xref linkend="doxygen"/>,
121 <xref linkend="gst-plugins-base"/>,
122 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
123 <xref linkend="libnotify"/>,
124 <xref linkend="startup-notification"/>,
125 <xref linkend="wget"/> and
126 <xref linkend="wireless_tools"/>
127 </para>
128
129 <para condition="html" role="usernotes">
130 User Notes: <ulink url="&blfs-wiki;/xulrunner"/>
131 </para>
132 </sect2>
133
134 <sect2 role="installation">
135 <title>Installation of Xulrunner</title>
136
137 <para>
138 The configuration of <application>Xulrunner</application> is accomplished
139 by creating a <filename>mozconfig</filename> file containing the desired
140 configuration options. A default <filename>mozconfig</filename> is created
141 below. To see the entire list of available configuration options (and an
142 abbreviated description of each one), issue <command>./configure
143 --help</command>. You should review the entire file and comment or
144 uncomment options as necessary.
145 </para>
146
147<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
148# If you have a multicore machine, firefox will now use all the cores by
149# default. Exceptionally, you can reduce the number of cores, e.g. to 1,
150# by uncommenting the next line and setting a valid number of CPU cores.
151#mk_add_options MOZ_MAKE_FLAGS="-j1"
152
153# If you have installed DBus-Glib comment out this line:
154ac_add_options --disable-dbus
155
156# If you have installed wireless-tools comment out this line:
157ac_add_options --disable-necko-wifi
158
159# If you have installed libnotify comment out this line:
160ac_add_options --disable-libnotify
161
162# Uncomment these lines if you have installed optional dependencies:
163# GStreamer is necesary for H.264 video playback in HTML5 Video Player
164#ac_add_options --enable-gstreamer
165#ac_add_options --enable-system-hunspell
166#ac_add_options --enable-startup-notification
167
168# Uncomment this line if you compiled Cairo with --enable-tee switch and want
169# to use it instead of the bundled one:
170#ac_add_options --enable-system-cairo
171
172# If you have not installed Yasm then uncomment this line:
173#ac_add_options --disable-webm
174
175# Comment out following options if you have not installed
176# recommended dependencies:
177ac_add_options --enable-system-sqlite
178ac_add_options --with-system-libevent
179ac_add_options --with-system-libvpx
180ac_add_options --with-system-nspr
181ac_add_options --with-system-nss
182
183# It is recommended not to touch anything below this line
184ac_add_options --prefix=/usr
185ac_add_options --enable-application=xulrunner
186
187ac_add_options --disable-crashreporter
188ac_add_options --disable-installer
189ac_add_options --disable-updater
190ac_add_options --disable-debug
191ac_add_options --disable-tests
192ac_add_options --disable-mochitest
193
194ac_add_options --enable-optimize
195ac_add_options --enable-strip
196ac_add_options --enable-install-strip
197
198ac_add_options --enable-system-ffi
199ac_add_options --enable-system-pixman
200
201ac_add_options --enable-shared-js
202ac_add_options --with-pthreads
203
204ac_add_options --with-system-bz2
205ac_add_options --with-system-jpeg
206ac_add_options --with-system-png
207ac_add_options --with-system-zlib
208
209mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xulrunner-build-dir
210EOF</userinput></screen>
211
212 <note>
213 <para>
214 <application>Xulrunner</application>'s build uses large amount of
215 memory. On some systems, the RAM/Swap combination needs 6 GB available.
216 </para>
217 </note>
218
219 <para>
220 If you are building against a system-installed <application>Cairo</application>
221 apply the patch:
222 </para>
223
224<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-system_cairo-1.patch</userinput></screen>
225
226 <para>
227 Build <application>Xulrunner</application> by issuing the following
228 commands:
229 </para>
230
231<screen><userinput>make -f client.mk</userinput></screen>
232
233 <para>
234 This package does not come with a test suite.
235 </para>
236
237 <para>
238 Install, as the <systemitem class="username">root</systemitem> user:
239 </para>
240
241<screen role="root"><userinput>make -C xulrunner-build-dir install &amp;&amp;
242
243mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
244rm -rf /usr/lib/xulrunner-&xulrunner-version;/plugins &amp;&amp;
245ln -sv ../mozilla/plugins /usr/lib/xulrunner-&xulrunner-version; &amp;&amp;
246
247chmod -v 755 /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/bin/xpcshell &amp;&amp;
248
249for library in libmozalloc.so libmozjs.so libxul.so; do
250 ln -sfv ../../../xulrunner-&xulrunner-version;/$library \
251 /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib/$library
252 ln -sfv xulrunner-&xulrunner-version;/$library /usr/lib/$library
253done
254
255ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/run-mozilla.sh \
256 /usr/lib/xulrunner-&xulrunner-version;
257ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/xpcshell \
258 /usr/lib/xulrunner-&xulrunner-version;</userinput></screen>
259
260 </sect2>
261
262 <sect2 role="commands">
263 <title>Command Explanations</title>
264
265 <para>
266 <command>make -f client.mk ...</command>: Mozilla products are packaged to
267 allow the use of a configuration file which can be used to pass the
268 configuration settings to the <command>configure</command> command.
269 <command>make</command> uses the <filename>client.mk</filename> file to
270 get initial configuration and setup parameters.
271 </para>
272
273 <para>
274 <command>ln -sfv ../mozilla/plugins ...</command>: Some packages will
275 install browser plugins into
276 <filename class="directory">/usr/lib/mozilla/plugins</filename>.
277 Creating this symlink <application>Xulrunner</application> keeps
278 additional plugins in a common directory.
279 </para>
280
281 <para>
282 <command>for library in libmozalloc.so libmozjs.so libxul.so ...
283 </command>: The libraries shipped with this package are installed into
284 <filename class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
285 which means they will not be found at runtime. These commands make
286 relative symbolic links to the shared libraries from
287 <filename class="directory">/usr/lib</filename>. They will also replace duplicate
288 libraries that are installed in
289 <filename class="directory">/usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib</filename>
290 with symlinks in order to save some space.
291 </para>
292
293 <para>
294 <command>ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/ ...</command>
295 The <filename>run-mozilla.sh</filename> and <filename>xpcshell</filename> files
296 have been moved in this version, but the code which installs
297 <application>Firefox</application> (when linked to xulrunner) was not updated.
298 These symlinks allow<application>Firefox</application> to install when built against
299 <application>Xulrunner</application>.
300 </para>
301
302 </sect2>
303
304 <sect2 role="content">
305 <title>Contents</title>
306
307 <segmentedlist>
308 <segtitle>Installed Programs</segtitle>
309 <segtitle>Installed Libraries</segtitle>
310 <segtitle>Installed Directories</segtitle>
311
312 <seglistitem>
313 <seg>
314 xulrunner
315 </seg>
316 <seg>
317 Numerous libraries, browser components, plugins, extensions, and
318 helper modules installed in <filename
319 class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
320 </seg>
321 <seg>
322 /usr/include/xulrunner-&xulrunner-version;,
323 /usr/lib/xulrunner-&xulrunner-version;,
324 /usr/lib/xulrunner-devel-&xulrunner-version; and
325 /usr/share/idl/xulrunner-&xulrunner-version;
326 </seg>
327 </seglistitem>
328 </segmentedlist>
329
330 <variablelist>
331 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
332 <?dbfo list-presentation="list"?>
333 <?dbhtml list-presentation="table"?>
334
335 <varlistentry id="xulrunner-prog">
336 <term><command>xulrunner</command></term>
337 <listitem>
338 <para>
339 is a shell script used for identifying the installed version
340 and running <application>Xulrunner</application> applications.
341 </para>
342 <indexterm zone="xulrunner xulrunner-prog">
343 <primary sortas="b-xulrunner">xulrunner</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
347
348 </variablelist>
349
350 </sect2>
351
352</sect1>
Note: See TracBrowser for help on using the repository browser.