[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 -->
|
---|
[c1ae13c] | 12 | <!ENTITY xulrunner-md5sum "4b07acf47857aff72776d805409cdd1b">
|
---|
| 13 | <!ENTITY xulrunner-size "75 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 |
|
---|
[c1ae13c] | 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>
|
---|
[89c9c781] | 42 |
|
---|
[4c77a949] | 43 | &lfs71_checked;
|
---|
[76ae9a2] | 44 |
|
---|
[aed37975] | 45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 46 | <itemizedlist spacing="compact">
|
---|
| 47 | <listitem>
|
---|
[c1ae13c] | 48 | <para>
|
---|
| 49 | Download (HTTP): <ulink url="&xulrunner-download-http;"/>
|
---|
| 50 | </para>
|
---|
[aed37975] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[c1ae13c] | 53 | <para>
|
---|
| 54 | Download (FTP): <ulink url="&xulrunner-download-ftp;"/>
|
---|
| 55 | </para>
|
---|
[aed37975] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[c1ae13c] | 58 | <para>
|
---|
| 59 | Download MD5 sum: &xulrunner-md5sum;
|
---|
| 60 | </para>
|
---|
[aed37975] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[c1ae13c] | 63 | <para>
|
---|
| 64 | Download size: &xulrunner-size;
|
---|
| 65 | </para>
|
---|
[aed37975] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[c1ae13c] | 68 | <para>
|
---|
| 69 | Estimated disk space required: &xulrunner-buildsize;
|
---|
| 70 | </para>
|
---|
[aed37975] | 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
[c1ae13c] | 73 | <para>
|
---|
| 74 | Estimated build time: &xulrunner-time;
|
---|
| 75 | </para>
|
---|
[aed37975] | 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
| 78 |
|
---|
[1265b05] | 79 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 80 | <itemizedlist spacing="compact">
|
---|
| 81 | <listitem>
|
---|
| 82 | <para>
|
---|
| 83 | Required patch if you're using <application>GCC-4.7</application>:
|
---|
| 84 | <ulink url="&patch-root;/xulrunner-&xulrunner-version;_gcc-4.7-1.patch"/>
|
---|
| 85 | </para>
|
---|
| 86 | </listitem>
|
---|
| 87 | </itemizedlist>
|
---|
| 88 |
|
---|
[aed37975] | 89 | <bridgehead renderas="sect3">Xulrunner Dependencies</bridgehead>
|
---|
| 90 |
|
---|
| 91 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[c1ae13c] | 92 | <para role="required">
|
---|
| 93 | <xref linkend="alsa-lib"/>,
|
---|
| 94 | <xref linkend="gtk2"/>,
|
---|
| 95 | <xref linkend="zip"/> and
|
---|
| 96 | <xref linkend="unzip"/>.
|
---|
| 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <para>
|
---|
| 100 | Note: <application>libjpeg</application> and
|
---|
| 101 | <application>libpng</application> (patched for apng support) should have
|
---|
| 102 | been installed before <application>gdk-pixbuf</application> and should
|
---|
| 103 | exist on your system. If for some strange reason you haven't installed
|
---|
| 104 | them, you should remove the <option>--with-system-jpeg</option> and
|
---|
| 105 | <option>--with-system-png</option> options from the
|
---|
| 106 | <filename>mozconfig</filename> file created below.
|
---|
| 107 | </para>
|
---|
[aed37975] | 108 |
|
---|
[1555d3d] | 109 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[c1ae13c] | 110 | <para role="recommended">
|
---|
| 111 | <xref linkend="yasm"/> or <xref linkend="libvpx"/>
|
---|
| 112 | (to allow <application>Xulrunner</application> to play webm videos).
|
---|
| 113 | </para>
|
---|
[1555d3d] | 114 |
|
---|
[aed37975] | 115 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c1ae13c] | 116 | <para role="optional">
|
---|
| 117 | <xref linkend="dbus-glib"/>,
|
---|
| 118 | <xref linkend="startup-notification"/>,
|
---|
| 119 | <xref linkend="sqlite"/>,
|
---|
| 120 | <ulink url="http://sourceforge.net/projects/hunspell/">Hunspell</ulink>,
|
---|
| 121 | <ulink url="http://libevent.org/">Libevent</ulink>,
|
---|
| 122 | <xref linkend="doxygen"/>,
|
---|
| 123 | <xref linkend="gnome-vfs"/> and <xref linkend="libgnomeui"/> (for
|
---|
| 124 | integration with the old version of <application>Gnome</application>),
|
---|
| 125 | <xref linkend="libnotify"/>,
|
---|
| 126 | <xref linkend="nspr"/>,
|
---|
| 127 | <xref linkend="nss"/>,
|
---|
| 128 | <xref linkend="wireless_tools"/>,
|
---|
| 129 | <ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
|
---|
| 130 | the jemalloc code) and
|
---|
| 131 | <xref linkend="wget"/>
|
---|
| 132 | </para>
|
---|
| 133 |
|
---|
| 134 | <para condition="html" role="usernotes">
|
---|
| 135 | User Notes: <ulink url="&blfs-wiki;/xulrunner"/>
|
---|
| 136 | </para>
|
---|
[aed37975] | 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2 role="installation">
|
---|
| 140 | <title>Installation of Xulrunner</title>
|
---|
| 141 |
|
---|
[c1ae13c] | 142 | <para>
|
---|
| 143 | The configuration of <application>Xulrunner</application> is accomplished
|
---|
| 144 | by creating a <filename>mozconfig</filename> file containing the desired
|
---|
| 145 | configuration options. A default <filename>mozconfig</filename> is created
|
---|
| 146 | below. To see the entire list of available configuration options (and an
|
---|
| 147 | abbreviated description of each one), issue <command>./configure
|
---|
| 148 | --help</command>. You should review the entire file and comment or
|
---|
| 149 | uncomment options as necessary.
|
---|
| 150 | </para>
|
---|
[aed37975] | 151 |
|
---|
[f0dcb37d] | 152 | <screen><userinput>cat > mozconfig << "EOF"
|
---|
[38216f2] | 153 | # If you have a multicore machine you can speed up the build by running
|
---|
[89c9c781] | 154 | # several jobs at once, but if you have a single core, delete this line:
|
---|
| 155 | mk_add_options MOZ_MAKE_FLAGS="-j4"
|
---|
[aed37975] | 156 |
|
---|
[1555d3d] | 157 | # If you have installed Yasm delete this option:
|
---|
| 158 | ac_add_options --disable-webm
|
---|
| 159 |
|
---|
[7b34d49] | 160 | # If you have installed DBus-Glib delete this option:
|
---|
[89c9c781] | 161 | ac_add_options --disable-dbus
|
---|
[e49ffb5] | 162 |
|
---|
[7b34d49] | 163 | # If you have installed wireless-tools delete this option:
|
---|
[89c9c781] | 164 | ac_add_options --disable-necko-wifi
|
---|
[aed37975] | 165 |
|
---|
[7b34d49] | 166 | # If you have installed libnotify delete this option:
|
---|
| 167 | ac_add_options --disable-libnotify
|
---|
| 168 |
|
---|
[89c9c781] | 169 | # Uncomment these if you have installed them:
|
---|
[d4e85467] | 170 | # ac_add_options --with-system-nspr
|
---|
| 171 | # ac_add_options --with-system-nss
|
---|
[89c9c781] | 172 | # ac_add_options --enable-system-sqlite
|
---|
| 173 | # ac_add_options --with-system-libvpx
|
---|
| 174 | # ac_add_options --enable-startup-notification
|
---|
[7133ec2] | 175 | # ac_add_options --enable-system-hunspell
|
---|
| 176 | # ac_add_options --with-system-libevent
|
---|
[aed37975] | 177 |
|
---|
[a818e3c] | 178 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xulrunner-build-dir
|
---|
[89c9c781] | 179 | ac_add_options --prefix=/usr
|
---|
| 180 | ac_add_options --enable-application=xulrunner
|
---|
[7133ec2] | 181 | ac_add_options --with-pthreads
|
---|
[89c9c781] | 182 | ac_add_options --enable-system-ffi
|
---|
[7133ec2] | 183 | ac_add_options --with-system-jpeg
|
---|
| 184 | ac_add_options --with-system-png
|
---|
[89c9c781] | 185 | ac_add_options --enable-system-cairo
|
---|
[7133ec2] | 186 | ac_add_options --with-system-zlib
|
---|
[89c9c781] | 187 | ac_add_options --enable-shared
|
---|
| 188 | ac_add_options --disable-static
|
---|
| 189 | ac_add_options --disable-debug
|
---|
| 190 | ac_add_options --disable-crashreporter
|
---|
[aed37975] | 191 | ac_add_options --disable-installer
|
---|
| 192 | ac_add_options --disable-updater
|
---|
[38216f2] | 193 | ac_add_options --disable-tests
|
---|
[aed37975] | 194 | EOF</userinput></screen>
|
---|
| 195 |
|
---|
[c1ae13c] | 196 | <para>
|
---|
| 197 | Install <application>Xulrunner</application> by issuing the following
|
---|
| 198 | commands:
|
---|
| 199 | </para>
|
---|
[aed37975] | 200 |
|
---|
[1265b05] | 201 | <screen><userinput>patch -p1 < ../xulrunner-&xulrunner-version;_gcc-4.7-1.patch &&
|
---|
| 202 | sed -i 's#VPX_CODEC_USE_INPUT_PARTITION#VPX_CODEC_USE_INPUT_FRAGMENTS#' configure &&
|
---|
[793d016] | 203 | if pkg-config --atleast-version &nspr-version; nspr
|
---|
| 204 | then sed -i '/Version/aRequires: nspr >= &nspr-version;' xulrunner/installer/libxul-embedding.pc.in
|
---|
| 205 | else sed -i '/Version/aRequires: mozilla-nspr >= &nspr-version;' xulrunner/installer/libxul-embedding.pc.in
|
---|
| 206 | fi &&
|
---|
[89c9c781] | 207 | make -f client.mk</userinput></screen>
|
---|
[aed37975] | 208 |
|
---|
[c1ae13c] | 209 | <para>
|
---|
| 210 | This package does not come with a test suite.
|
---|
| 211 | </para>
|
---|
[aed37975] | 212 |
|
---|
[c1ae13c] | 213 | <para>
|
---|
| 214 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 215 | </para>
|
---|
[dc8a9549] | 216 |
|
---|
[89c9c781] | 217 | <screen role="root"><userinput>make -C xulrunner-build-dir install &&
|
---|
| 218 | mkdir -p /usr/lib/mozilla &&
|
---|
[eb148eb] | 219 | rm -rf /usr/lib/xulrunner-&xulrunner-version;/plugins &&
|
---|
[89c9c781] | 220 | ln -sv ../mozilla/plugins /usr/lib/xulrunner-&xulrunner-version; &&
|
---|
[1265b05] | 221 | chown -Rv root:root /usr/{include,lib,share/idl}/xulrunner-* &&
|
---|
[16efe57] | 222 | for library in /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib/*.so
|
---|
[1265b05] | 223 | do ln -sfv ${library#/usr/lib/} /usr${library#*sdk}
|
---|
| 224 | done</userinput></screen>
|
---|
[aed37975] | 225 | </sect2>
|
---|
| 226 |
|
---|
| 227 | <sect2 role="commands">
|
---|
| 228 | <title>Command Explanations</title>
|
---|
| 229 |
|
---|
[c1ae13c] | 230 | <para>
|
---|
| 231 | <command>sed -i 's#VPX_CODEC_USE_INPUT_PARTITION ...</command>: This fixes
|
---|
| 232 | <application>Xulrunner's</application> <command>configure</command>
|
---|
| 233 | script to properly detect <xref linkend="libvpx"/>. It is not needed if
|
---|
| 234 | you have libvpx-v0.9.7 or earlier installed or if you've not installed
|
---|
| 235 | <application>Libvpx</application>.
|
---|
[1265b05] | 236 | </para>
|
---|
[c1ae13c] | 237 |
|
---|
| 238 | <para>
|
---|
[793d016] | 239 | <command>if pkg-config --atleast-version &nspr-version; nspr;
|
---|
| 240 | then sed -i '/Version/aRequires: nspr >= &nspr-version;'
|
---|
| 241 | xulrunner/installer/libxul-embedding.pc.in;
|
---|
| 242 | else sed -i '/Version/aRequires: mozilla-nspr >= &nspr-version;'
|
---|
| 243 | xulrunner/installer/libxul-embedding.pc.in;
|
---|
| 244 | fi</command>: This uses <command>pkg-config</command> to see if
|
---|
| 245 | <xref linkend="nspr"/> is installed and then adds a line to require
|
---|
| 246 | <application>nspr</application> or <application>mozilla-nspr</application>
|
---|
| 247 | to <filename>libxul-embedding.pc</filename>. If you try to build some
|
---|
| 248 | other applications without this, the prtypes header from NSPR will not be
|
---|
| 249 | found.
|
---|
[c1ae13c] | 250 | </para>
|
---|
| 251 |
|
---|
| 252 | <para>
|
---|
| 253 | <command>make -f client.mk ...</command>: Mozilla products are packaged to
|
---|
| 254 | allow the use of a configuration file which can be used to pass the
|
---|
| 255 | configuration settings to the <command>configure</command> command.
|
---|
| 256 | <command>make</command> uses the <filename>client.mk</filename> file to
|
---|
| 257 | get initial configuration and setup parameters.
|
---|
| 258 | </para>
|
---|
| 259 |
|
---|
| 260 | <para>
|
---|
| 261 | <command>ln -sv ../mozilla/plugins ...</command>: Some packages will
|
---|
| 262 | install browser plugins into
|
---|
| 263 | <filename class="directory">/usr/lib/mozilla/plugins</filename>.
|
---|
| 264 | Creating this symlink <application>Xulrunner</application> keeps
|
---|
| 265 | additional plugins in a common directory.
|
---|
| 266 | </para>
|
---|
| 267 |
|
---|
| 268 | <para>
|
---|
[1265b05] | 269 | <command>for library in
|
---|
[16efe57] | 270 | /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib/*.so; do ln -sfv
|
---|
[1265b05] | 271 | ${library#/usr/lib/} /usr${library#*sdk}; done</command>: The libraries
|
---|
| 272 | shipped with this package are installed into
|
---|
| 273 | <filename class="directory">/usr/lib/xulrunner-devel-&xulrunner-version;</filename>
|
---|
| 274 | which means they will not be found at runtime. These commands make
|
---|
[16efe57] | 275 | relative symbolic links to the shared libraries from
|
---|
[1265b05] | 276 | <filename class="directory">/usr/lib</filename>.
|
---|
[c1ae13c] | 277 | </para>
|
---|
[aed37975] | 278 | </sect2>
|
---|
| 279 |
|
---|
| 280 | <sect2 role="content">
|
---|
| 281 | <title>Contents</title>
|
---|
| 282 |
|
---|
| 283 | <segmentedlist>
|
---|
| 284 | <segtitle>Installed Programs</segtitle>
|
---|
| 285 | <segtitle>Installed Libraries</segtitle>
|
---|
| 286 | <segtitle>Installed Directories</segtitle>
|
---|
| 287 |
|
---|
| 288 | <seglistitem>
|
---|
[f40ee79] | 289 | <seg>xulrunner, and optionally nspr-config</seg>
|
---|
[aed37975] | 290 | <seg>Numerous libraries, browser components, plugins, extensions, and
|
---|
| 291 | helper modules installed in <filename
|
---|
[eb148eb] | 292 | class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename></seg>
|
---|
[aed37975] | 293 | <seg>/etc/gre.d, /usr/include/xulrunner-&xulrunner-version;,
|
---|
[dc8a9549] | 294 | /usr/lib/xulrunner-&xulrunner-version;,
|
---|
| 295 | /usr/lib/xulrunner-devel-&xulrunner-version;, and
|
---|
| 296 | /usr/share/idl/xulrunner-&xulrunner-version;</seg>
|
---|
[aed37975] | 297 | </seglistitem>
|
---|
| 298 | </segmentedlist>
|
---|
| 299 |
|
---|
| 300 | <variablelist>
|
---|
| 301 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 302 | <?dbfo list-presentation="list"?>
|
---|
| 303 | <?dbhtml list-presentation="table"?>
|
---|
| 304 |
|
---|
| 305 | <varlistentry id="xulrunner-prog">
|
---|
| 306 | <term><command>xulrunner</command></term>
|
---|
| 307 | <listitem>
|
---|
[c1ae13c] | 308 | <para>
|
---|
| 309 | is a shell script, useful for identifying the version installed.
|
---|
| 310 | </para>
|
---|
[aed37975] | 311 | <indexterm zone="xulrunner xulrunner-prog">
|
---|
| 312 | <primary sortas="b-xulrunner">xulrunner</primary>
|
---|
| 313 | </indexterm>
|
---|
| 314 | </listitem>
|
---|
| 315 | </varlistentry>
|
---|
| 316 | </variablelist>
|
---|
| 317 | </sect2>
|
---|
| 318 | </sect1>
|
---|