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