source: archive/xulrunner.xml@ ccded7e

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 ccded7e was b9f61df, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Archive xulrunner

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

  • Property mode set to 100644
File size: 13.4 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>sed -i ... js/src/vm/WeakMapPtr.cpp</command>: Fixes build with
292 <command>ac_add_options --enable-shared-js</command>.
293 </para>
294
295 <para>
296 <command>make -f client.mk ...</command>: Mozilla products are packaged to
297 allow the use of a configuration file which can be used to pass the
298 configuration settings to the <command>configure</command> command.
299 <command>make</command> uses the <filename>client.mk</filename> file to
300 get initial configuration and setup parameters.
301 </para>
302
303 <para>
304 <command>ln -sfv ../mozilla/plugins ...</command>: Some packages will
305 install browser plugins into
306 <filename class="directory">/usr/lib/mozilla/plugins</filename>.
307 Creating this symlink <application>Xulrunner</application> keeps
308 additional plugins in a common directory.
309 </para>
310
311 <para>
312 <command>for library in libmozalloc.so libmozjs.so libxul.so ...
313 </command>: The libraries shipped with this package are installed into
314 <filename class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
315 which means they will not be found at runtime. These commands make
316 relative symbolic links to the shared libraries from
317 <filename class="directory">/usr/lib</filename>. They will also replace duplicate
318 libraries that are installed in
319 <filename class="directory">/usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib</filename>
320 with symlinks in order to save some space.
321 </para>
322
323 <para>
324 <command>ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/ ...</command>
325 The <filename>run-mozilla.sh</filename> and <filename>xpcshell</filename> files
326 have been moved in this version, but the code which installs
327 <application>Firefox</application> (when linked to xulrunner) was not updated.
328 These symlinks allow<application>Firefox</application> to install when built against
329 <application>Xulrunner</application>.
330 </para>
331
332 </sect2>
333
334 <sect2 role="content">
335 <title>Contents</title>
336
337 <segmentedlist>
338 <segtitle>Installed Programs</segtitle>
339 <segtitle>Installed Libraries</segtitle>
340 <segtitle>Installed Directories</segtitle>
341
342 <seglistitem>
343 <seg>
344 xulrunner
345 </seg>
346 <seg>
347 Numerous libraries, browser components, plugins, extensions, and
348 helper modules installed in <filename
349 class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
350 </seg>
351 <seg>
352 /usr/include/xulrunner-&xulrunner-version;,
353 /usr/lib/xulrunner-&xulrunner-version;,
354 /usr/lib/xulrunner-devel-&xulrunner-version; and
355 /usr/share/idl/xulrunner-&xulrunner-version;
356 </seg>
357 </seglistitem>
358 </segmentedlist>
359
360 <variablelist>
361 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
362 <?dbfo list-presentation="list"?>
363 <?dbhtml list-presentation="table"?>
364
365 <varlistentry id="xulrunner-prog">
366 <term><command>xulrunner</command></term>
367 <listitem>
368 <para>
369 is a shell script used for identifying the installed version
370 and running <application>Xulrunner</application> applications.
371 </para>
372 <indexterm zone="xulrunner xulrunner-prog">
373 <primary sortas="b-xulrunner">xulrunner</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 </variablelist>
379
380 </sect2>
381
382</sect1>
Note: See TracBrowser for help on using the repository browser.