source: x/lib/xulrunner.xml@ 204c71d5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind 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 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 204c71d5 was 204c71d5, checked in by Chris Staub <chris@…>, 10 years ago

Minor text updates

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

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