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