[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 |
|
---|
[eb148eb] | 7 | <!--
|
---|
[c2fb1f2] | 8 | <!ENTITY xulrunner-download-http "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
[eb148eb] | 9 | -->
|
---|
| 10 | <!ENTITY xulrunner-download-http " ">
|
---|
[c2fb1f2] | 11 | <!ENTITY xulrunner-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
[dc8a9549] | 12 | <!-- md5sum and size should match firefox, but the buildsize and time will differ -->
|
---|
[f246e3b9] | 13 | <!ENTITY xulrunner-md5sum "d8d0c8c79660752b02d9e9ab69a68f94">
|
---|
| 14 | <!ENTITY xulrunner-size "70.8 MB">
|
---|
[eb148eb] | 15 | <!ENTITY xulrunner-buildsize "2.6 GB (440 MB installed)">
|
---|
[89c9c781] | 16 | <!ENTITY xulrunner-time "22 SBU">
|
---|
[aed37975] | 17 | ]>
|
---|
| 18 |
|
---|
| 19 | <sect1 id="xulrunner" xreflabel="Xulrunner-&xulrunner-version;">
|
---|
| 20 | <?dbhtml filename="xulrunner.html" ?>
|
---|
| 21 |
|
---|
| 22 | <sect1info>
|
---|
| 23 | <othername>$LastChangedBy$</othername>
|
---|
| 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 |
|
---|
| 36 | <para><application>Xulrunner</application> is a runtime environment for XUL
|
---|
[89c9c781] | 37 | applications, and forms the major part of the
|
---|
| 38 | <application>Mozilla</application> codebase. In particular, it provides the
|
---|
| 39 | gecko engine together with pkgconfig files so that applications such as
|
---|
| 40 | <application>Yelp</application> can find and use it. However, be aware that
|
---|
| 41 | Gnome applications are transitioning to <application>Webkit</application>
|
---|
| 42 | instead of gecko.</para>
|
---|
| 43 |
|
---|
| 44 | &lfs70_checked;
|
---|
[76ae9a2] | 45 |
|
---|
[aed37975] | 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download (HTTP): <ulink url="&xulrunner-download-http;"/></para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download (FTP): <ulink url="&xulrunner-download-ftp;"/></para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download MD5 sum: &xulrunner-md5sum;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Download size: &xulrunner-size;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[89c9c781] | 61 | <para>Estimated disk space required: &xulrunner-buildsize;</para>
|
---|
[aed37975] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[89c9c781] | 64 | <para>Estimated build time: &xulrunner-time;</para>
|
---|
[aed37975] | 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect3">Xulrunner Dependencies</bridgehead>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[89c9c781] | 71 | <para role="required"><xref linkend="alsa-lib"/>, <xref linkend="gtk2"/>,
|
---|
[1555d3d] | 72 | <xref linkend="libidl"/> and <xref linkend="zip"/></para>
|
---|
[89c9c781] | 73 |
|
---|
| 74 | <para>Note: <application>libjpeg</application> and
|
---|
| 75 | <application>libpng</application> (patched for apng support) should have
|
---|
| 76 | been installed before <application>gdk-pixbuf</application> and should
|
---|
[eb148eb] | 77 | exist on your system. If for some strange reason you haven't installed
|
---|
[89c9c781] | 78 | them, you should remove the <option>--with-system-jpeg</option> and
|
---|
| 79 | <option>--with-system-png</option> options from the
|
---|
[dc8a9549] | 80 | <filename>mozconfig</filename> file created below.</para>
|
---|
[aed37975] | 81 |
|
---|
[1555d3d] | 82 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[1c6fdeb] | 83 | <para role="recommended"><xref linkend="yasm"/> or
|
---|
[793932fd] | 84 | <xref linkend="libvpx"/>.</para>
|
---|
[1555d3d] | 85 |
|
---|
[aed37975] | 86 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 87 | <para role="optional"><xref linkend="dbus-glib"/>,
|
---|
[89c9c781] | 88 | <xref linkend="startup-notification"/>, <xref linkend="sqlite"/>,
|
---|
| 89 | <ulink url="http://www.webmproject.org/code/">libvpx</ulink>,
|
---|
[dc8a9549] | 90 | <ulink url="http://sourceforge.net/projects/hunspell/">Hunspell</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 |
|
---|
| 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | <sect2 role="installation">
|
---|
| 105 | <title>Installation of Xulrunner</title>
|
---|
| 106 |
|
---|
| 107 | <para>The configuration of <application>Xulrunner</application> is
|
---|
[dc8a9549] | 108 | accomplished by creating a <filename>mozconfig</filename> file containing
|
---|
| 109 | the desired configuration options. A default <filename>mozconfig</filename>
|
---|
[aed37975] | 110 | is created below. To see the entire list of available configuration options
|
---|
| 111 | (and an abbreviated description of each one), issue
|
---|
[2082307d] | 112 | <command>./configure --help</command>. You should review the entire file
|
---|
[89c9c781] | 113 | and comment or uncomment options as necessary.</para>
|
---|
[aed37975] | 114 |
|
---|
[dc8a9549] | 115 | <screen><?dbfo keep-together="auto"?><userinput>cat > mozconfig << "EOF"
|
---|
[89c9c781] | 116 | <literal># If you have a multicore machine you can speed up the build by running
|
---|
| 117 | # several jobs at once, but if you have a single core, delete this line:
|
---|
| 118 | mk_add_options MOZ_MAKE_FLAGS="-j4"
|
---|
[aed37975] | 119 |
|
---|
[1555d3d] | 120 | # If you have installed Yasm delete this option:
|
---|
| 121 | ac_add_options --disable-webm
|
---|
| 122 |
|
---|
[7b34d49] | 123 | # If you have installed DBus-Glib delete this option:
|
---|
[89c9c781] | 124 | ac_add_options --disable-dbus
|
---|
[e49ffb5] | 125 |
|
---|
[7b34d49] | 126 | # If you have installed wireless-tools delete this option:
|
---|
[89c9c781] | 127 | ac_add_options --disable-necko-wifi
|
---|
[aed37975] | 128 |
|
---|
[7b34d49] | 129 | # If you have installed libnotify delete this option:
|
---|
| 130 | ac_add_options --disable-libnotify
|
---|
| 131 |
|
---|
[89c9c781] | 132 | # Uncomment these if you have installed them:
|
---|
[d4e85467] | 133 | # ac_add_options --with-system-nspr
|
---|
| 134 | # ac_add_options --with-system-nss
|
---|
[89c9c781] | 135 | # ac_add_options --enable-system-sqlite
|
---|
| 136 | # ac_add_options --enable-system-lcms
|
---|
| 137 | # ac_add_options --with-system-libvpx
|
---|
| 138 | # ac_add_options --enable-startup-notification
|
---|
[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
|
---|
| 143 | ac_add_options --enable-pthreads
|
---|
| 144 | ac_add_options --enable-system-ffi
|
---|
| 145 | ac_add_options --enable-system-jpeg
|
---|
| 146 | ac_add_options --enable-system-png
|
---|
| 147 | ac_add_options --enable-system-cairo
|
---|
| 148 | ac_add_options --enable-system-zlib
|
---|
| 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
|
---|
[89c9c781] | 155 | ac_add_options --disable-tests</literal>
|
---|
[aed37975] | 156 | EOF</userinput></screen>
|
---|
| 157 |
|
---|
[af689bc3] | 158 | <para>Install <application>Xulrunner</application> by issuing the
|
---|
[aed37975] | 159 | following commands:</para>
|
---|
| 160 |
|
---|
[eb148eb] | 161 | <screen><userinput>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 |
|
---|
[89c9c781] | 192 | <para><command>sed ... Requires: nspr</command>: If you try to build
|
---|
[af689bc3] | 193 | <application>Yelp</application> without this, the
|
---|
[89c9c781] | 194 | prtypes header from NSPR will not be found. It is arguable whose error this
|
---|
[aed37975] | 195 | is (the code presumably works on earlier geckos), but this fix is unlikely
|
---|
| 196 | to cause any damage in other packages.</para>
|
---|
| 197 |
|
---|
| 198 | <para><command>make -f client.mk ...</command>: Mozilla products are
|
---|
| 199 | packaged to allow the use of a configuration file which can be used to
|
---|
| 200 | pass the configuration settings to the <command>configure</command>
|
---|
| 201 | command. <command>make</command> uses the <filename>client.mk</filename>
|
---|
[89c9c781] | 202 | file to get initial configuration and setup parameters.</para>
|
---|
[aed37975] | 203 |
|
---|
[af689bc3] | 204 | <para><command>for DL in ...</command>: The NSPR and NSS libraries shipped
|
---|
| 205 | with this package are installed into
|
---|
[eb148eb] | 206 | <filename class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
|
---|
[aed37975] | 207 | which means they will not be found at runtime. By using symbolic links from
|
---|
[af689bc3] | 208 | <filename class="directory">/usr/lib</filename> the libraries will be found
|
---|
| 209 | and the links can be easily changed to point to a newer version during an
|
---|
| 210 | upgrade.</para>
|
---|
[aed37975] | 211 |
|
---|
[89c9c781] | 212 | <para><command>ln -sv ../mozilla/plugins ...</command>: Some packages will
|
---|
| 213 | install browser plugins into
|
---|
[eb148eb] | 214 | <filename class="directory">/usr/lib/mozilla/plugins</filename>.
|
---|
[89c9c781] | 215 | Creating this symlink <application>Xulrunner</application> keeps additional
|
---|
| 216 | plugins in a common directory.</para>
|
---|
[af689bc3] | 217 |
|
---|
| 218 | <note>
|
---|
[89c9c781] | 219 | <para>When you upgrade Xulrunner, remember to update the symlinks.</para>
|
---|
[af689bc3] | 220 | </note>
|
---|
[aed37975] | 221 |
|
---|
| 222 | </sect2>
|
---|
| 223 |
|
---|
| 224 | <sect2 role="content">
|
---|
| 225 | <title>Contents</title>
|
---|
| 226 |
|
---|
| 227 | <segmentedlist>
|
---|
| 228 | <segtitle>Installed Programs</segtitle>
|
---|
| 229 | <segtitle>Installed Libraries</segtitle>
|
---|
| 230 | <segtitle>Installed Directories</segtitle>
|
---|
| 231 |
|
---|
| 232 | <seglistitem>
|
---|
[f40ee79] | 233 | <seg>xulrunner, and optionally nspr-config</seg>
|
---|
[aed37975] | 234 | <seg>Numerous libraries, browser components, plugins, extensions, and
|
---|
| 235 | helper modules installed in <filename
|
---|
[eb148eb] | 236 | class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename></seg>
|
---|
[aed37975] | 237 | <seg>/etc/gre.d, /usr/include/xulrunner-&xulrunner-version;,
|
---|
[dc8a9549] | 238 | /usr/lib/xulrunner-&xulrunner-version;,
|
---|
| 239 | /usr/lib/xulrunner-devel-&xulrunner-version;, and
|
---|
| 240 | /usr/share/idl/xulrunner-&xulrunner-version;</seg>
|
---|
[aed37975] | 241 | </seglistitem>
|
---|
| 242 | </segmentedlist>
|
---|
| 243 |
|
---|
| 244 | <variablelist>
|
---|
| 245 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 246 | <?dbfo list-presentation="list"?>
|
---|
| 247 | <?dbhtml list-presentation="table"?>
|
---|
| 248 |
|
---|
| 249 | <varlistentry id="xulrunner-prog">
|
---|
| 250 | <term><command>xulrunner</command></term>
|
---|
| 251 | <listitem>
|
---|
| 252 | <para>is a shell script, useful for identifying the version
|
---|
| 253 | installed.</para>
|
---|
| 254 | <indexterm zone="xulrunner xulrunner-prog">
|
---|
| 255 | <primary sortas="b-xulrunner">xulrunner</primary>
|
---|
| 256 | </indexterm>
|
---|
| 257 | </listitem>
|
---|
| 258 | </varlistentry>
|
---|
| 259 |
|
---|
| 260 | </variablelist>
|
---|
| 261 |
|
---|
| 262 | </sect2>
|
---|
| 263 |
|
---|
| 264 | </sect1>
|
---|