source: x/lib/xulrunner.xml@ 2ad0d13

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 2ad0d13 was 2ad0d13, checked in by Andrew Benton <andy@…>, 12 years ago

removed an obsolete note about libpng and libjpeg from the mozilla pages

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

  • Property mode set to 100644
File size: 11.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-ftp
10 "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
11 <!-- md5sum and size should match firefox, but the buildsize and time will differ -->
12 <!ENTITY xulrunner-md5sum "80c3e5927274de7f181fb5f931ac5fd4">
13 <!ENTITY xulrunner-size "75 MB">
14 <!ENTITY xulrunner-buildsize "3.4 GB (538 MB installed)">
15 <!ENTITY xulrunner-time "22 SBU">
16]>
17
18<sect1 id="xulrunner" xreflabel="Xulrunner-&xulrunner-version;">
19 <?dbhtml filename="xulrunner.html" ?>
20
21 <sect1info>
22 <othername>$LastChangedBy$</othername>
23 <date>$Date$</date>
24 </sect1info>
25
26 <title>Xulrunner-&xulrunner-version;</title>
27
28 <indexterm zone="xulrunner">
29 <primary sortas="a-Xulrunner">Xulrunner</primary>
30 </indexterm>
31
32 <sect2 role="package">
33 <title>Introduction to Xulrunner</title>
34
35 <para>
36 <application>Xulrunner</application> is a runtime environment for XUL
37 applications, and forms the major part of the
38 <application>Mozilla</application> codebase. In particular, it provides
39 the Gecko engine together with pkgconfig files so that other applications
40 can find and use it.
41 </para>
42
43 &lfs71_checked;
44
45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
48 <para>
49 Download (HTTP): <ulink url="&xulrunner-download-http;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download (FTP): <ulink url="&xulrunner-download-ftp;"/>
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download MD5 sum: &xulrunner-md5sum;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Download size: &xulrunner-size;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated disk space required: &xulrunner-buildsize;
70 </para>
71 </listitem>
72 <listitem>
73 <para>
74 Estimated build time: &xulrunner-time;
75 </para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">Xulrunner Dependencies</bridgehead>
80
81 <bridgehead renderas="sect4">Required</bridgehead>
82 <para role="required">
83 <xref linkend="alsa-lib"/>,
84 <xref linkend="gtk2"/>,
85 <xref linkend="zip"/> and
86 <xref linkend="unzip"/>.
87 </para>
88
89 <bridgehead renderas="sect4">Recommended</bridgehead>
90 <para role="recommended">
91 <xref linkend="yasm"/> or <xref linkend="libvpx"/>
92 (to allow <application>Xulrunner</application> to play webm videos).
93 </para>
94
95 <bridgehead renderas="sect4">Optional</bridgehead>
96 <para role="optional">
97 <xref linkend="dbus-glib"/>,
98 <xref linkend="startup-notification"/>,
99 <xref linkend="sqlite"/>,
100 <ulink url="http://sourceforge.net/projects/hunspell/">Hunspell</ulink>,
101 <ulink url="http://libevent.org/">Libevent</ulink>,
102 <xref linkend="doxygen"/>,
103 <xref linkend="gnome-vfs"/> and <xref linkend="libgnomeui"/> (for
104 integration with the old version of <application>Gnome</application>),
105 <xref linkend="libnotify"/>,
106 <xref linkend="nspr"/>,
107 <xref linkend="nss"/>,
108 <xref linkend="wireless_tools"/>,
109 <ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
110 the jemalloc code) and
111 <xref linkend="wget"/>
112 </para>
113
114 <para condition="html" role="usernotes">
115 User Notes: <ulink url="&blfs-wiki;/xulrunner"/>
116 </para>
117 </sect2>
118
119 <sect2 role="installation">
120 <title>Installation of Xulrunner</title>
121
122 <para>
123 The configuration of <application>Xulrunner</application> is accomplished
124 by creating a <filename>mozconfig</filename> file containing the desired
125 configuration options. A default <filename>mozconfig</filename> is created
126 below. To see the entire list of available configuration options (and an
127 abbreviated description of each one), issue <command>./configure
128 --help</command>. You should review the entire file and comment or
129 uncomment options as necessary.
130 </para>
131
132<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
133# If you have a multicore machine you can speed up the build by running
134# several jobs at once, but if you have a single core, delete this line:
135mk_add_options MOZ_MAKE_FLAGS="-j4"
136
137# If you have installed Yasm delete this option:
138ac_add_options --disable-webm
139
140# If you have installed DBus-Glib delete this option:
141ac_add_options --disable-dbus
142
143# If you have installed wireless-tools delete this option:
144ac_add_options --disable-necko-wifi
145
146# If you have installed libnotify delete this option:
147ac_add_options --disable-libnotify
148
149# Uncomment these if you have installed them:
150# ac_add_options --enable-startup-notification
151# ac_add_options --enable-system-hunspell
152# ac_add_options --enable-system-sqlite
153# ac_add_options --with-system-libevent
154# ac_add_options --with-system-libvpx
155# ac_add_options --with-system-nspr
156# ac_add_options --with-system-nss
157
158mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xulrunner-build-dir
159ac_add_options --disable-crashreporter
160ac_add_options --disable-debug
161ac_add_options --disable-installer
162ac_add_options --disable-static
163ac_add_options --disable-tests
164ac_add_options --disable-updater
165ac_add_options --enable-application=xulrunner
166ac_add_options --enable-shared
167ac_add_options --enable-system-cairo
168ac_add_options --enable-system-ffi
169ac_add_options --prefix=/usr
170ac_add_options --with-pthreads
171ac_add_options --with-system-jpeg
172ac_add_options --with-system-png
173ac_add_options --with-system-zlib
174EOF</userinput></screen>
175
176 <para>
177 Install <application>Xulrunner</application> by issuing the following
178 commands:
179 </para>
180
181<screen><userinput>sed -i '/fcntl.h/a#include &lt;unistd.h&gt;' \
182 ipc/chromium/src/base/{file_util_linux,message_pump_libevent}.cc &amp;&amp;
183sed -i '/sys\/time\.h/a#include &lt;unistd.h&gt;' ipc/chromium/src/base/time_posix.cc &amp;&amp;
184make -f client.mk</userinput></screen>
185
186<!--
187if pkg-config -&#45;atleast-version &nspr-version; nspr
188then sed -i '/Version/aRequires: nspr &gt;= &nspr-version;' xulrunner/installer/libxul-embedding.pc.in
189else sed -i '/Version/aRequires: mozilla-nspr &gt;= &nspr-version;' xulrunner/installer/libxul-embedding.pc.in
190fi &amp;&amp;
191-->
192
193 <para>
194 This package does not come with a test suite.
195 </para>
196
197 <para>
198 Now, as the <systemitem class="username">root</systemitem> user:
199 </para>
200
201<screen role="root"><userinput>make -C xulrunner-build-dir install &amp;&amp;
202mkdir -p /usr/lib/mozilla/plugins &amp;&amp;
203rm -rf /usr/lib/xulrunner-&xulrunner-version;/plugins &amp;&amp;
204ln -sv ../mozilla/plugins /usr/lib/xulrunner-&xulrunner-version; &amp;&amp;
205chown -Rv root:root /usr/{include,lib,share/idl}/xulrunner-* &amp;&amp;
206for library in /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib/*.so
207do ln -sfv ${library#/usr/lib/} /usr${library#*sdk}
208done</userinput></screen>
209 </sect2>
210
211 <sect2 role="commands">
212 <title>Command Explanations</title>
213
214 <para>
215 <command>sed -i '/fcntl.h/a#include &lt;unistd.h&gt;'
216 ipc/chromium/src/base/{file_util_linux,message_pump_libevent}.cc
217 &amp;&amp; sed -i '/sys\/time\.h/a#include &lt;unistd.h&gt;'
218 ipc/chromium/src/base/time_posix.cc</command>: These seds fix bugs that
219 would otherwise break the build if you're using
220 <application>GCC 4.7</application>.
221 </para>
222
223 <!-- is this sed nstill needed?
224 <para>
225 <command>if pkg-config -&#45;atleast-version &nspr-version; nspr;
226 then sed -i '/Version/aRequires: nspr &gt;= &nspr-version;'
227 xulrunner/installer/libxul-embedding.pc.in;
228 else sed -i '/Version/aRequires: mozilla-nspr &gt;= &nspr-version;'
229 xulrunner/installer/libxul-embedding.pc.in;
230 fi</command>: This uses <command>pkg-config</command> to see if
231 <xref linkend="nspr"/> is installed and then adds a line to require
232 <application>nspr</application> or <application>mozilla-nspr</application>
233 to <filename>libxul-embedding.pc</filename>. If you try to build some
234 other applications without this, the prtypes header from NSPR will not be
235 found.
236 </para> -->
237
238 <para>
239 <command>make -f client.mk ...</command>: Mozilla products are packaged to
240 allow the use of a configuration file which can be used to pass the
241 configuration settings to the <command>configure</command> command.
242 <command>make</command> uses the <filename>client.mk</filename> file to
243 get initial configuration and setup parameters.
244 </para>
245
246 <para>
247 <command>ln -sv ../mozilla/plugins ...</command>: Some packages will
248 install browser plugins into
249 <filename class="directory">/usr/lib/mozilla/plugins</filename>.
250 Creating this symlink <application>Xulrunner</application> keeps
251 additional plugins in a common directory.
252 </para>
253
254 <para>
255 <command>for library in
256 /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib/*.so; do ln -sfv
257 ${library#/usr/lib/} /usr${library#*sdk}; done</command>: The libraries
258 shipped with this package are installed into
259 <filename class="directory">/usr/lib/xulrunner-devel-&xulrunner-version;</filename>
260 which means they will not be found at runtime. These commands make
261 relative symbolic links to the shared libraries from
262 <filename class="directory">/usr/lib</filename>.
263 </para>
264 </sect2>
265
266 <sect2 role="content">
267 <title>Contents</title>
268
269 <segmentedlist>
270 <segtitle>Installed Programs</segtitle>
271 <segtitle>Installed Libraries</segtitle>
272 <segtitle>Installed Directories</segtitle>
273
274 <seglistitem>
275 <seg>xulrunner</seg>
276 <seg>Numerous libraries, browser components, plugins, extensions, and
277 helper modules installed in <filename
278 class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename></seg>
279 <seg>/etc/gre.d, /usr/include/xulrunner-&xulrunner-version;,
280 /usr/lib/xulrunner-&xulrunner-version;,
281 /usr/lib/xulrunner-devel-&xulrunner-version;, and
282 /usr/share/idl/xulrunner-&xulrunner-version;</seg>
283 </seglistitem>
284 </segmentedlist>
285
286 <variablelist>
287 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
288 <?dbfo list-presentation="list"?>
289 <?dbhtml list-presentation="table"?>
290
291 <varlistentry id="xulrunner-prog">
292 <term><command>xulrunner</command></term>
293 <listitem>
294 <para>
295 is a shell script, useful for identifying the version installed.
296 </para>
297 <indexterm zone="xulrunner xulrunner-prog">
298 <primary sortas="b-xulrunner">xulrunner</primary>
299 </indexterm>
300 </listitem>
301 </varlistentry>
302 </variablelist>
303 </sect2>
304</sect1>
Note: See TracBrowser for help on using the repository browser.