source: archive/xulrunner.xml@ 54bd123

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 54bd123 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

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