[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 |
|
---|
[c2fb1f2] | 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">
|
---|
[dc8a9549] | 9 | <!-- md5sum and size should match firefox, but the buildsize and time will differ -->
|
---|
[f0dcb37d] | 10 | <!ENTITY xulrunner-md5sum "13c61203ccfa583e5a54b4dc22f41233">
|
---|
| 11 | <!ENTITY xulrunner-size "72 MB">
|
---|
[eb148eb] | 12 | <!ENTITY xulrunner-buildsize "2.6 GB (440 MB installed)">
|
---|
[89c9c781] | 13 | <!ENTITY xulrunner-time "22 SBU">
|
---|
[aed37975] | 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
|
---|
[89c9c781] | 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;
|
---|
[76ae9a2] | 42 |
|
---|
[aed37975] | 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>
|
---|
[89c9c781] | 58 | <para>Estimated disk space required: &xulrunner-buildsize;</para>
|
---|
[aed37975] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[89c9c781] | 61 | <para>Estimated build time: &xulrunner-time;</para>
|
---|
[aed37975] | 62 | </listitem>
|
---|
| 63 | </itemizedlist>
|
---|
| 64 |
|
---|
| 65 | <bridgehead renderas="sect3">Xulrunner Dependencies</bridgehead>
|
---|
| 66 |
|
---|
| 67 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[89c9c781] | 68 | <para role="required"><xref linkend="alsa-lib"/>, <xref linkend="gtk2"/>,
|
---|
[f5ea855] | 69 | <xref linkend="zip"/> and <xref linkend="unzip"/>.</para>
|
---|
[89c9c781] | 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
|
---|
[eb148eb] | 74 | exist on your system. If for some strange reason you haven't installed
|
---|
[89c9c781] | 75 | them, you should remove the <option>--with-system-jpeg</option> and
|
---|
| 76 | <option>--with-system-png</option> options from the
|
---|
[dc8a9549] | 77 | <filename>mozconfig</filename> file created below.</para>
|
---|
[aed37975] | 78 |
|
---|
[1555d3d] | 79 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[1c6fdeb] | 80 | <para role="recommended"><xref linkend="yasm"/> or
|
---|
[793932fd] | 81 | <xref linkend="libvpx"/>.</para>
|
---|
[1555d3d] | 82 |
|
---|
[aed37975] | 83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 84 | <para role="optional"><xref linkend="dbus-glib"/>,
|
---|
[89c9c781] | 85 | <xref linkend="startup-notification"/>, <xref linkend="sqlite"/>,
|
---|
| 86 | <ulink url="http://www.webmproject.org/code/">libvpx</ulink>,
|
---|
[dc8a9549] | 87 | <ulink url="http://sourceforge.net/projects/hunspell/">Hunspell</ulink>,
|
---|
[7133ec2] | 88 | <ulink url="http://libevent.org/">Libevent</ulink>,
|
---|
[89c9c781] | 89 | <xref linkend="doxygen"/>,
|
---|
| 90 | <xref linkend="gnome-vfs"/> and <xref linkend="libgnomeui"/> (for gnome
|
---|
| 91 | integration), <xref linkend="libnotify"/>, <xref linkend="nspr"/>,
|
---|
| 92 | <xref linkend="nss"/>, <xref linkend="unzip"/>,
|
---|
| 93 | <xref linkend="wireless_tools"/>,
|
---|
| 94 | <ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
|
---|
| 95 | the jemalloc code) and <xref linkend="wget"/></para>
|
---|
[aed37975] | 96 |
|
---|
| 97 | <para condition="html" role="usernotes">User Notes:
|
---|
| 98 | <ulink url="&blfs-wiki;/xulrunner"/></para>
|
---|
| 99 |
|
---|
| 100 | </sect2>
|
---|
| 101 |
|
---|
| 102 | <sect2 role="installation">
|
---|
| 103 | <title>Installation of Xulrunner</title>
|
---|
| 104 |
|
---|
| 105 | <para>The configuration of <application>Xulrunner</application> is
|
---|
[dc8a9549] | 106 | accomplished by creating a <filename>mozconfig</filename> file containing
|
---|
| 107 | the desired configuration options. A default <filename>mozconfig</filename>
|
---|
[aed37975] | 108 | is created below. To see the entire list of available configuration options
|
---|
| 109 | (and an abbreviated description of each one), issue
|
---|
[2082307d] | 110 | <command>./configure --help</command>. You should review the entire file
|
---|
[89c9c781] | 111 | and comment or uncomment options as necessary.</para>
|
---|
[aed37975] | 112 |
|
---|
[f0dcb37d] | 113 | <screen><userinput>cat > mozconfig << "EOF"
|
---|
[38216f2] | 114 | # If you have a multicore machine you can speed up the build by running
|
---|
[89c9c781] | 115 | # several jobs at once, but if you have a single core, delete this line:
|
---|
| 116 | mk_add_options MOZ_MAKE_FLAGS="-j4"
|
---|
[aed37975] | 117 |
|
---|
[1555d3d] | 118 | # If you have installed Yasm delete this option:
|
---|
| 119 | ac_add_options --disable-webm
|
---|
| 120 |
|
---|
[7b34d49] | 121 | # If you have installed DBus-Glib delete this option:
|
---|
[89c9c781] | 122 | ac_add_options --disable-dbus
|
---|
[e49ffb5] | 123 |
|
---|
[7b34d49] | 124 | # If you have installed wireless-tools delete this option:
|
---|
[89c9c781] | 125 | ac_add_options --disable-necko-wifi
|
---|
[aed37975] | 126 |
|
---|
[7b34d49] | 127 | # If you have installed libnotify delete this option:
|
---|
| 128 | ac_add_options --disable-libnotify
|
---|
| 129 |
|
---|
[89c9c781] | 130 | # Uncomment these if you have installed them:
|
---|
[d4e85467] | 131 | # ac_add_options --with-system-nspr
|
---|
| 132 | # ac_add_options --with-system-nss
|
---|
[89c9c781] | 133 | # ac_add_options --enable-system-sqlite
|
---|
| 134 | # ac_add_options --with-system-libvpx
|
---|
| 135 | # ac_add_options --enable-startup-notification
|
---|
[7133ec2] | 136 | # ac_add_options --enable-system-hunspell
|
---|
| 137 | # ac_add_options --with-system-libevent
|
---|
[aed37975] | 138 |
|
---|
[a818e3c] | 139 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xulrunner-build-dir
|
---|
[89c9c781] | 140 | ac_add_options --prefix=/usr
|
---|
| 141 | ac_add_options --enable-application=xulrunner
|
---|
[7133ec2] | 142 | ac_add_options --with-pthreads
|
---|
[89c9c781] | 143 | ac_add_options --enable-system-ffi
|
---|
[7133ec2] | 144 | ac_add_options --with-system-jpeg
|
---|
| 145 | ac_add_options --with-system-png
|
---|
[89c9c781] | 146 | ac_add_options --enable-system-cairo
|
---|
[7133ec2] | 147 | ac_add_options --with-system-zlib
|
---|
[89c9c781] | 148 | ac_add_options --enable-shared
|
---|
| 149 | ac_add_options --disable-static
|
---|
| 150 | ac_add_options --disable-debug
|
---|
| 151 | ac_add_options --disable-crashreporter
|
---|
[aed37975] | 152 | ac_add_options --disable-installer
|
---|
| 153 | ac_add_options --disable-updater
|
---|
[38216f2] | 154 | ac_add_options --disable-tests
|
---|
[aed37975] | 155 | EOF</userinput></screen>
|
---|
| 156 |
|
---|
[af689bc3] | 157 | <para>Install <application>Xulrunner</application> by issuing the
|
---|
[aed37975] | 158 | following commands:</para>
|
---|
| 159 |
|
---|
[b7daed2] | 160 | <screen><userinput>sed -i 's#VPX_CODEC_USE_INPUT_PARTITION#VPX_CODEC_USE_INPUT_FRAGMENTS#' configure &&
|
---|
[f0dcb37d] | 161 | sed -i '/Version/aRequires: nspr >= &nspr-version;' xulrunner/installer/libxul-embedding.pc.in &&
|
---|
[89c9c781] | 162 | make -f client.mk</userinput></screen>
|
---|
[aed37975] | 163 |
|
---|
| 164 | <para>This package does not come with a test suite.</para>
|
---|
| 165 |
|
---|
[89c9c781] | 166 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 167 | user:</para>
|
---|
[dc8a9549] | 168 |
|
---|
[89c9c781] | 169 | <screen role="root"><userinput>make -C xulrunner-build-dir install &&
|
---|
| 170 | mkdir -p /usr/lib/mozilla &&
|
---|
[eb148eb] | 171 | rm -rf /usr/lib/xulrunner-&xulrunner-version;/plugins &&
|
---|
[89c9c781] | 172 | ln -sv ../mozilla/plugins /usr/lib/xulrunner-&xulrunner-version; &&
|
---|
| 173 | chown -Rv root:root /usr/{include,lib,share/idl}/xulrunner-*</userinput></screen>
|
---|
[2082307d] | 174 |
|
---|
[89c9c781] | 175 | <para>If you elected to use the included NSPR and NSS (ie, if you have
|
---|
| 176 | <emphasis>not</emphasis> installed <xref linkend="nspr"/> and
|
---|
| 177 | <xref linkend="nss"/>), while still the
|
---|
[2082307d] | 178 | <systemitem class="username">root</systemitem> user, complete the
|
---|
| 179 | installation with the following commands:</para>
|
---|
| 180 |
|
---|
[89c9c781] | 181 | <screen role="root"><userinput>for DL in libnss3.so libnssutil3.so libsmime3.so \
|
---|
| 182 | libssl3.so libsoftokn3.so libplds4.so libplc4.so libnspr4.so
|
---|
| 183 | do ln -sv xulrunner-&xulrunner-version;/${DL} /usr/lib
|
---|
[dc8a9549] | 184 | done &&
|
---|
| 185 | unset DL</userinput></screen>
|
---|
[aed37975] | 186 |
|
---|
| 187 | </sect2>
|
---|
| 188 |
|
---|
| 189 | <sect2 role="commands">
|
---|
| 190 | <title>Command Explanations</title>
|
---|
| 191 |
|
---|
[f0dcb37d] | 192 | <para><command>sed -i 's#VPX_CODEC_USE ...</command>: This fixes
|
---|
| 193 | <application>Xulrunner's</application> <command>configure</command>
|
---|
| 194 | script to properly detect libvpx-v1.0.0. It is not needed if you have
|
---|
| 195 | libvpx-v0.9.7 or earlier installed or if you've not installed
|
---|
| 196 | <xref linkend="libvpx"/>.</para>
|
---|
| 197 |
|
---|
[89c9c781] | 198 | <para><command>sed ... Requires: nspr</command>: If you try to build
|
---|
[af689bc3] | 199 | <application>Yelp</application> without this, the
|
---|
[89c9c781] | 200 | prtypes header from NSPR will not be found. It is arguable whose error this
|
---|
[aed37975] | 201 | is (the code presumably works on earlier geckos), but this fix is unlikely
|
---|
| 202 | to cause any damage in other packages.</para>
|
---|
| 203 |
|
---|
| 204 | <para><command>make -f client.mk ...</command>: Mozilla products are
|
---|
| 205 | packaged to allow the use of a configuration file which can be used to
|
---|
| 206 | pass the configuration settings to the <command>configure</command>
|
---|
| 207 | command. <command>make</command> uses the <filename>client.mk</filename>
|
---|
[89c9c781] | 208 | file to get initial configuration and setup parameters.</para>
|
---|
[aed37975] | 209 |
|
---|
[af689bc3] | 210 | <para><command>for DL in ...</command>: The NSPR and NSS libraries shipped
|
---|
| 211 | with this package are installed into
|
---|
[02d3b95] | 212 | <filename
|
---|
| 213 | class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
|
---|
| 214 | which means they will not be found at runtime. By using symbolic links
|
---|
| 215 | from <filename class="directory">/usr/lib</filename> the libraries will be
|
---|
| 216 | found and the links can be easily changed to point to a newer version
|
---|
| 217 | during an upgrade.</para>
|
---|
[aed37975] | 218 |
|
---|
[89c9c781] | 219 | <para><command>ln -sv ../mozilla/plugins ...</command>: Some packages will
|
---|
| 220 | install browser plugins into
|
---|
[eb148eb] | 221 | <filename class="directory">/usr/lib/mozilla/plugins</filename>.
|
---|
[89c9c781] | 222 | Creating this symlink <application>Xulrunner</application> keeps additional
|
---|
| 223 | plugins in a common directory.</para>
|
---|
[af689bc3] | 224 |
|
---|
| 225 | <note>
|
---|
[89c9c781] | 226 | <para>When you upgrade Xulrunner, remember to update the symlinks.</para>
|
---|
[af689bc3] | 227 | </note>
|
---|
[aed37975] | 228 |
|
---|
| 229 | </sect2>
|
---|
| 230 |
|
---|
| 231 | <sect2 role="content">
|
---|
| 232 | <title>Contents</title>
|
---|
| 233 |
|
---|
| 234 | <segmentedlist>
|
---|
| 235 | <segtitle>Installed Programs</segtitle>
|
---|
| 236 | <segtitle>Installed Libraries</segtitle>
|
---|
| 237 | <segtitle>Installed Directories</segtitle>
|
---|
| 238 |
|
---|
| 239 | <seglistitem>
|
---|
[f40ee79] | 240 | <seg>xulrunner, and optionally nspr-config</seg>
|
---|
[aed37975] | 241 | <seg>Numerous libraries, browser components, plugins, extensions, and
|
---|
| 242 | helper modules installed in <filename
|
---|
[eb148eb] | 243 | class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename></seg>
|
---|
[aed37975] | 244 | <seg>/etc/gre.d, /usr/include/xulrunner-&xulrunner-version;,
|
---|
[dc8a9549] | 245 | /usr/lib/xulrunner-&xulrunner-version;,
|
---|
| 246 | /usr/lib/xulrunner-devel-&xulrunner-version;, and
|
---|
| 247 | /usr/share/idl/xulrunner-&xulrunner-version;</seg>
|
---|
[aed37975] | 248 | </seglistitem>
|
---|
| 249 | </segmentedlist>
|
---|
| 250 |
|
---|
| 251 | <variablelist>
|
---|
| 252 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 253 | <?dbfo list-presentation="list"?>
|
---|
| 254 | <?dbhtml list-presentation="table"?>
|
---|
| 255 |
|
---|
| 256 | <varlistentry id="xulrunner-prog">
|
---|
| 257 | <term><command>xulrunner</command></term>
|
---|
| 258 | <listitem>
|
---|
| 259 | <para>is a shell script, useful for identifying the version
|
---|
| 260 | installed.</para>
|
---|
| 261 | <indexterm zone="xulrunner xulrunner-prog">
|
---|
| 262 | <primary sortas="b-xulrunner">xulrunner</primary>
|
---|
| 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
| 267 | </variablelist>
|
---|
| 268 |
|
---|
| 269 | </sect2>
|
---|
| 270 |
|
---|
| 271 | </sect1>
|
---|