source: x/lib/xulrunner.xml@ 27fd492b

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 27fd492b was 27fd492b, checked in by Ken Moffat <ken@…>, 10 years ago

mozconfigs for firefox and xulrunner : move the pulse option above 'It is recommended not to touch anything below this line'.

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

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