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 "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
8 | <!ENTITY xulrunner-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
9 | <!-- md5sum and size should match firefox, but the buildsize and time will differ -->
|
---|
10 | <!ENTITY xulrunner-md5sum "b7d09b082e88a74860a51a8e04e29333">
|
---|
11 | <!ENTITY xulrunner-size "67 MB">
|
---|
12 | <!ENTITY xulrunner-buildsize "2.6 GB">
|
---|
13 | <!ENTITY xulrunner-time "22 SBU">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="xulrunner" xreflabel="Xulrunner-&xulrunner-version;">
|
---|
17 | <?dbhtml filename="xulrunner.html" ?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <othername>$LastChangedBy$</othername>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>Xulrunner-&xulrunner-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="xulrunner">
|
---|
27 | <primary sortas="a-Xulrunner">Xulrunner</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to Xulrunner</title>
|
---|
32 |
|
---|
33 | <para><application>Xulrunner</application> is a runtime environment for XUL
|
---|
34 | applications, and forms the major part of the
|
---|
35 | <application>Mozilla</application> codebase. In particular, it provides the
|
---|
36 | gecko engine together with pkgconfig files so that applications such as
|
---|
37 | <application>Yelp</application> can find and use it. However, be aware that
|
---|
38 | Gnome applications are transitioning to <application>Webkit</application>
|
---|
39 | instead of gecko.</para>
|
---|
40 |
|
---|
41 | &lfs70_checked;
|
---|
42 |
|
---|
43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
44 | <itemizedlist spacing="compact">
|
---|
45 | <listitem>
|
---|
46 | <para>Download (HTTP): <ulink url="&xulrunner-download-http;"/></para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>Download (FTP): <ulink url="&xulrunner-download-ftp;"/></para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Download MD5 sum: &xulrunner-md5sum;</para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Download size: &xulrunner-size;</para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>Estimated disk space required: &xulrunner-buildsize;</para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>Estimated build time: &xulrunner-time;</para>
|
---|
62 | </listitem>
|
---|
63 | </itemizedlist>
|
---|
64 |
|
---|
65 | <bridgehead renderas="sect3">Xulrunner Dependencies</bridgehead>
|
---|
66 |
|
---|
67 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
68 | <para role="required"><xref linkend="alsa-lib"/>, <xref linkend="gtk2"/>,
|
---|
69 | <xref linkend="libidl"/> and <xref linkend="zip"/></para>
|
---|
70 |
|
---|
71 | <para>Note: <application>libjpeg</application> and
|
---|
72 | <application>libpng</application> (patched for apng support) should have
|
---|
73 | been installed before <application>gdk-pixbuf</application> and should
|
---|
74 | exist on your system. If for some strange reason you haven't installed
|
---|
75 | them, you should remove the <option>--with-system-jpeg</option> and
|
---|
76 | <option>--with-system-png</option> options from the
|
---|
77 | <filename>mozconfig</filename> file created below.</para>
|
---|
78 |
|
---|
79 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
80 | <para role="recommended"><xref linkend="yasm"/> or
|
---|
81 | <xref linkend="libvpx"/>.</para>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
84 | <para role="optional"><xref linkend="dbus-glib"/>,
|
---|
85 | <xref linkend="startup-notification"/>, <xref linkend="sqlite"/>,
|
---|
86 | <ulink url="http://www.webmproject.org/code/">libvpx</ulink>,
|
---|
87 | <ulink url="http://sourceforge.net/projects/hunspell/">Hunspell</ulink>,
|
---|
88 | <xref linkend="doxygen"/>,
|
---|
89 | <xref linkend="gnome-vfs"/> and <xref linkend="libgnomeui"/> (for gnome
|
---|
90 | integration), <xref linkend="libnotify"/>, <xref linkend="nspr"/>,
|
---|
91 | <xref linkend="nss"/>, <xref linkend="unzip"/>,
|
---|
92 | <xref linkend="wireless_tools"/>,
|
---|
93 | <ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
|
---|
94 | the jemalloc code) and <xref linkend="wget"/></para>
|
---|
95 |
|
---|
96 | <para condition="html" role="usernotes">User Notes:
|
---|
97 | <ulink url="&blfs-wiki;/xulrunner"/></para>
|
---|
98 |
|
---|
99 | </sect2>
|
---|
100 |
|
---|
101 | <sect2 role="installation">
|
---|
102 | <title>Installation of Xulrunner</title>
|
---|
103 |
|
---|
104 | <para>The configuration of <application>Xulrunner</application> is
|
---|
105 | accomplished by creating a <filename>mozconfig</filename> file containing
|
---|
106 | the desired configuration options. A default <filename>mozconfig</filename>
|
---|
107 | is created below. To see the entire list of available configuration options
|
---|
108 | (and an abbreviated description of each one), issue
|
---|
109 | <command>./configure --help</command>. You should review the entire file
|
---|
110 | and comment or uncomment options as necessary.</para>
|
---|
111 |
|
---|
112 | <screen><?dbfo keep-together="auto"?><userinput>cat > mozconfig << "EOF"
|
---|
113 | <literal># If you have a multicore machine you can speed up the build by running
|
---|
114 | # several jobs at once, but if you have a single core, delete this line:
|
---|
115 | mk_add_options MOZ_MAKE_FLAGS="-j4"
|
---|
116 |
|
---|
117 | # If you have installed Yasm delete this option:
|
---|
118 | ac_add_options --disable-webm
|
---|
119 |
|
---|
120 | # If you have installed DBus-Glib delete this option:
|
---|
121 | ac_add_options --disable-dbus
|
---|
122 |
|
---|
123 | # If you have installed wireless-tools delete this option:
|
---|
124 | ac_add_options --disable-necko-wifi
|
---|
125 |
|
---|
126 | # If you have installed libnotify delete this option:
|
---|
127 | ac_add_options --disable-libnotify
|
---|
128 |
|
---|
129 | # If you have not installed nss delete these two lines:
|
---|
130 | ac_add_options --with-system-nspr
|
---|
131 | ac_add_options --with-system-nss
|
---|
132 |
|
---|
133 | # Uncomment these if you have installed them:
|
---|
134 | # ac_add_options --enable-system-sqlite
|
---|
135 | # ac_add_options --enable-system-lcms
|
---|
136 | # ac_add_options --with-system-libvpx
|
---|
137 | # ac_add_options --enable-startup-notification
|
---|
138 |
|
---|
139 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xulrunner-build-dir
|
---|
140 | ac_add_options --prefix=/usr
|
---|
141 | ac_add_options --enable-application=xulrunner
|
---|
142 | ac_add_options --enable-pthreads
|
---|
143 | ac_add_options --enable-system-ffi
|
---|
144 | ac_add_options --enable-system-jpeg
|
---|
145 | ac_add_options --enable-system-png
|
---|
146 | ac_add_options --enable-system-cairo
|
---|
147 | ac_add_options --enable-system-zlib
|
---|
148 | ac_add_options --enable-shared
|
---|
149 | ac_add_options --disable-static
|
---|
150 | ac_add_options --disable-debug
|
---|
151 | ac_add_options --disable-crashreporter
|
---|
152 | ac_add_options --disable-installer
|
---|
153 | ac_add_options --disable-updater
|
---|
154 | ac_add_options --disable-tests</literal>
|
---|
155 | EOF</userinput></screen>
|
---|
156 |
|
---|
157 | <para>Install <application>Xulrunner</application> by issuing the
|
---|
158 | following commands:</para>
|
---|
159 |
|
---|
160 | <screen><userinput>sed -i '/Version/aRequires: nspr >= 4.8.9' xulrunner/installer/libxul-embedding.pc.in &&
|
---|
161 | make -f client.mk</userinput></screen>
|
---|
162 |
|
---|
163 | <para>This package does not come with a test suite.</para>
|
---|
164 |
|
---|
165 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
166 | user:</para>
|
---|
167 |
|
---|
168 | <screen role="root"><userinput>make -C xulrunner-build-dir install &&
|
---|
169 | mkdir -p /usr/lib/mozilla &&
|
---|
170 | rm -rf /usr/lib/xulrunner-&xulrunner-version;/plugins &&
|
---|
171 | ln -sv ../mozilla/plugins /usr/lib/xulrunner-&xulrunner-version; &&
|
---|
172 | chown -Rv root:root /usr/{include,lib,share/idl}/xulrunner-*</userinput></screen>
|
---|
173 |
|
---|
174 | <para>If you elected to use the included NSPR and NSS (ie, if you have
|
---|
175 | <emphasis>not</emphasis> installed <xref linkend="nspr"/> and
|
---|
176 | <xref linkend="nss"/>), while still the
|
---|
177 | <systemitem class="username">root</systemitem> user, complete the
|
---|
178 | installation with the following commands:</para>
|
---|
179 |
|
---|
180 | <screen role="root"><userinput>for DL in libnss3.so libnssutil3.so libsmime3.so \
|
---|
181 | libssl3.so libsoftokn3.so libplds4.so libplc4.so libnspr4.so
|
---|
182 | do ln -sv xulrunner-&xulrunner-version;/${DL} /usr/lib
|
---|
183 | done &&
|
---|
184 | unset DL</userinput></screen>
|
---|
185 |
|
---|
186 | </sect2>
|
---|
187 |
|
---|
188 | <sect2 role="commands">
|
---|
189 | <title>Command Explanations</title>
|
---|
190 |
|
---|
191 | <para><command>sed ... Requires: nspr</command>: If you try to build
|
---|
192 | <application>Yelp</application> without this, the
|
---|
193 | prtypes header from NSPR will not be found. It is arguable whose error this
|
---|
194 | is (the code presumably works on earlier geckos), but this fix is unlikely
|
---|
195 | to cause any damage in other packages.</para>
|
---|
196 |
|
---|
197 | <para><command>make -f client.mk ...</command>: Mozilla products are
|
---|
198 | packaged to allow the use of a configuration file which can be used to
|
---|
199 | pass the configuration settings to the <command>configure</command>
|
---|
200 | command. <command>make</command> uses the <filename>client.mk</filename>
|
---|
201 | file to get initial configuration and setup parameters.</para>
|
---|
202 |
|
---|
203 | <para><command>for DL in ...</command>: The NSPR and NSS libraries shipped
|
---|
204 | with this package are installed into
|
---|
205 | <filename class='directory'>/usr/lib/xulrunner-&xulrunner-version;</filename>
|
---|
206 | which means they will not be found at runtime. By using symbolic links from
|
---|
207 | <filename class="directory">/usr/lib</filename> the libraries will be found
|
---|
208 | and the links can be easily changed to point to a newer version during an
|
---|
209 | upgrade.</para>
|
---|
210 |
|
---|
211 | <para><command>ln -sv ../mozilla/plugins ...</command>: Some packages will
|
---|
212 | install browser plugins into
|
---|
213 | <filename class='directory'>/usr/lib/mozilla/plugins</filename>.
|
---|
214 | Creating this symlink <application>Xulrunner</application> keeps additional
|
---|
215 | plugins in a common directory.</para>
|
---|
216 |
|
---|
217 | <note>
|
---|
218 | <para>When you upgrade Xulrunner, remember to update the symlinks.</para>
|
---|
219 | </note>
|
---|
220 |
|
---|
221 | </sect2>
|
---|
222 |
|
---|
223 | <sect2 role="content">
|
---|
224 | <title>Contents</title>
|
---|
225 |
|
---|
226 | <segmentedlist>
|
---|
227 | <segtitle>Installed Programs</segtitle>
|
---|
228 | <segtitle>Installed Libraries</segtitle>
|
---|
229 | <segtitle>Installed Directories</segtitle>
|
---|
230 |
|
---|
231 | <seglistitem>
|
---|
232 | <seg>xulrunner, and optionally nspr-config</seg>
|
---|
233 | <seg>Numerous libraries, browser components, plugins, extensions, and
|
---|
234 | helper modules installed in <filename
|
---|
235 | class='directory'>/usr/lib/xulrunner-&xulrunner-version;</filename></seg>
|
---|
236 | <seg>/etc/gre.d, /usr/include/xulrunner-&xulrunner-version;,
|
---|
237 | /usr/lib/xulrunner-&xulrunner-version;,
|
---|
238 | /usr/lib/xulrunner-devel-&xulrunner-version;, and
|
---|
239 | /usr/share/idl/xulrunner-&xulrunner-version;</seg>
|
---|
240 | </seglistitem>
|
---|
241 | </segmentedlist>
|
---|
242 |
|
---|
243 | <variablelist>
|
---|
244 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
245 | <?dbfo list-presentation="list"?>
|
---|
246 | <?dbhtml list-presentation="table"?>
|
---|
247 |
|
---|
248 | <varlistentry id="xulrunner-prog">
|
---|
249 | <term><command>xulrunner</command></term>
|
---|
250 | <listitem>
|
---|
251 | <para>is a shell script, useful for identifying the version
|
---|
252 | installed.</para>
|
---|
253 | <indexterm zone="xulrunner xulrunner-prog">
|
---|
254 | <primary sortas="b-xulrunner">xulrunner</primary>
|
---|
255 | </indexterm>
|
---|
256 | </listitem>
|
---|
257 | </varlistentry>
|
---|
258 |
|
---|
259 | </variablelist>
|
---|
260 |
|
---|
261 | </sect2>
|
---|
262 |
|
---|
263 | </sect1>
|
---|