[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 |
|
---|
[0d7900a] | 7 | <!ENTITY xulrunner-download-http
|
---|
[0e37869] | 8 | "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
[9ce4c50c] | 9 | <!ENTITY xulrunner-download-ftp
|
---|
[0e37869] | 10 | "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
[0c7d410] | 11 | <!ENTITY xulrunner-md5sum "b822ff4b2348410587dec563235d9320">
|
---|
[31ab0f7] | 12 | <!ENTITY xulrunner-size "96 MB">
|
---|
| 13 | <!ENTITY xulrunner-buildsize "3.9 GB (121 MB installed)">
|
---|
[0e37869] | 14 | <!ENTITY xulrunner-time "29 SBU">
|
---|
[aed37975] | 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <sect1 id="xulrunner" xreflabel="Xulrunner-&xulrunner-version;">
|
---|
| 18 | <?dbhtml filename="xulrunner.html" ?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>Xulrunner-&xulrunner-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="xulrunner">
|
---|
| 28 | <primary sortas="a-Xulrunner">Xulrunner</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to Xulrunner</title>
|
---|
| 33 |
|
---|
[c1ae13c] | 34 | <para>
|
---|
| 35 | <application>Xulrunner</application> is a runtime environment for XUL
|
---|
| 36 | applications, and forms the major part of the
|
---|
| 37 | <application>Mozilla</application> codebase. In particular, it provides
|
---|
| 38 | the Gecko engine together with pkgconfig files so that other applications
|
---|
| 39 | can find and use it.
|
---|
| 40 | </para>
|
---|
[89c9c781] | 41 |
|
---|
[bf85b79] | 42 | &lfs72_checked;
|
---|
[76ae9a2] | 43 |
|
---|
[aed37975] | 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
[c1ae13c] | 47 | <para>
|
---|
| 48 | Download (HTTP): <ulink url="&xulrunner-download-http;"/>
|
---|
| 49 | </para>
|
---|
[aed37975] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[c1ae13c] | 52 | <para>
|
---|
| 53 | Download (FTP): <ulink url="&xulrunner-download-ftp;"/>
|
---|
| 54 | </para>
|
---|
[aed37975] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[c1ae13c] | 57 | <para>
|
---|
| 58 | Download MD5 sum: &xulrunner-md5sum;
|
---|
| 59 | </para>
|
---|
[aed37975] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[c1ae13c] | 62 | <para>
|
---|
| 63 | Download size: &xulrunner-size;
|
---|
| 64 | </para>
|
---|
[aed37975] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[c1ae13c] | 67 | <para>
|
---|
| 68 | Estimated disk space required: &xulrunner-buildsize;
|
---|
| 69 | </para>
|
---|
[aed37975] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[c1ae13c] | 72 | <para>
|
---|
| 73 | Estimated build time: &xulrunner-time;
|
---|
| 74 | </para>
|
---|
[aed37975] | 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect3">Xulrunner Dependencies</bridgehead>
|
---|
| 79 |
|
---|
| 80 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[c1ae13c] | 81 | <para role="required">
|
---|
| 82 | <xref linkend="alsa-lib"/>,
|
---|
| 83 | <xref linkend="gtk2"/>,
|
---|
| 84 | <xref linkend="zip"/> and
|
---|
[0e37869] | 85 | <xref linkend="unzip"/>
|
---|
[c1ae13c] | 86 | </para>
|
---|
| 87 |
|
---|
[1555d3d] | 88 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[c1ae13c] | 89 | <para role="recommended">
|
---|
[0e37869] | 90 | <xref linkend="libevent"/>,
|
---|
| 91 | <xref linkend="libvpx"/>,
|
---|
| 92 | <xref linkend="nspr"/>,
|
---|
| 93 | <xref linkend="nss"/>,
|
---|
| 94 | <xref linkend="sqlite"/> and
|
---|
| 95 | <xref linkend="yasm"/>
|
---|
[c1ae13c] | 96 | </para>
|
---|
[1555d3d] | 97 |
|
---|
[0e37869] | 98 | <note>
|
---|
| 99 | <para>
|
---|
| 100 | If you don't install recommended dependencies,
|
---|
| 101 | then internal copies of those packages will
|
---|
| 102 | be used. They might be tested to work, but
|
---|
| 103 | they can be out of date or contain security
|
---|
| 104 | holes.
|
---|
| 105 | </para>
|
---|
| 106 | </note>
|
---|
| 107 |
|
---|
[aed37975] | 108 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c1ae13c] | 109 | <para role="optional">
|
---|
| 110 | <xref linkend="dbus-glib"/>,
|
---|
| 111 | <xref linkend="doxygen"/>,
|
---|
[0e37869] | 112 | <xref linkend="gnome-vfs"/> and <xref linkend="libgnomeui"/>
|
---|
| 113 | (for integration with the old version of <application>GNOME</application>),
|
---|
| 114 | <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
|
---|
[c1ae13c] | 115 | <xref linkend="libnotify"/>,
|
---|
[0e37869] | 116 | <xref linkend="startup-notification"/>,
|
---|
| 117 | <xref linkend="wget"/> and
|
---|
| 118 | <xref linkend="wireless_tools"/>
|
---|
[c1ae13c] | 119 | </para>
|
---|
| 120 |
|
---|
| 121 | <para condition="html" role="usernotes">
|
---|
| 122 | User Notes: <ulink url="&blfs-wiki;/xulrunner"/>
|
---|
| 123 | </para>
|
---|
[aed37975] | 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2 role="installation">
|
---|
| 127 | <title>Installation of Xulrunner</title>
|
---|
| 128 |
|
---|
[c1ae13c] | 129 | <para>
|
---|
| 130 | The configuration of <application>Xulrunner</application> is accomplished
|
---|
| 131 | by creating a <filename>mozconfig</filename> file containing the desired
|
---|
| 132 | configuration options. A default <filename>mozconfig</filename> is created
|
---|
| 133 | below. To see the entire list of available configuration options (and an
|
---|
| 134 | abbreviated description of each one), issue <command>./configure
|
---|
| 135 | --help</command>. You should review the entire file and comment or
|
---|
| 136 | uncomment options as necessary.
|
---|
| 137 | </para>
|
---|
[aed37975] | 138 |
|
---|
[f0dcb37d] | 139 | <screen><userinput>cat > mozconfig << "EOF"
|
---|
[38216f2] | 140 | # If you have a multicore machine you can speed up the build by running
|
---|
[0e37869] | 141 | # several jobs at once by uncommenting the following line and setting the
|
---|
| 142 | # value to number of CPU cores:
|
---|
| 143 | #mk_add_options MOZ_MAKE_FLAGS="-j4"
|
---|
[aed37975] | 144 |
|
---|
[0e37869] | 145 | # If you have installed DBus-Glib comment out this line:
|
---|
[89c9c781] | 146 | ac_add_options --disable-dbus
|
---|
[e49ffb5] | 147 |
|
---|
[0e37869] | 148 | # If you have installed wireless-tools comment out this line:
|
---|
[89c9c781] | 149 | ac_add_options --disable-necko-wifi
|
---|
[aed37975] | 150 |
|
---|
[0e37869] | 151 | # If you have installed libnotify comment out this line:
|
---|
[7b34d49] | 152 | ac_add_options --disable-libnotify
|
---|
| 153 |
|
---|
[0e37869] | 154 | # Uncomment these lines if you have installed optional dependencies:
|
---|
| 155 | #ac_add_options --enable-system-hunspell
|
---|
| 156 | #ac_add_options --enable-startup-notification
|
---|
| 157 |
|
---|
| 158 | # If you have not installed Yasm then uncomment this line:
|
---|
| 159 | #ac_add_options --disable-webm
|
---|
| 160 |
|
---|
| 161 | # Comment out following options if you have not installed
|
---|
| 162 | # recommended dependencies:
|
---|
| 163 | ac_add_options --enable-system-sqlite
|
---|
| 164 | ac_add_options --with-system-libevent
|
---|
| 165 | ac_add_options --with-system-libvpx
|
---|
| 166 | ac_add_options --with-system-nspr
|
---|
| 167 | ac_add_options --with-system-nss
|
---|
| 168 |
|
---|
| 169 | # It is recommended not to touch anything below this line
|
---|
| 170 | ac_add_options --prefix=/usr
|
---|
| 171 | ac_add_options --enable-application=xulrunner
|
---|
[aed37975] | 172 |
|
---|
[5f5dcc2] | 173 | ac_add_options --disable-crashreporter
|
---|
| 174 | ac_add_options --disable-installer
|
---|
| 175 | ac_add_options --disable-updater
|
---|
[0e37869] | 176 | ac_add_options --disable-debug
|
---|
| 177 | ac_add_options --disable-tests
|
---|
| 178 | ac_add_options --disable-mochitest
|
---|
| 179 |
|
---|
| 180 | ac_add_options --enable-optimize
|
---|
| 181 | ac_add_options --enable-strip
|
---|
| 182 | ac_add_options --enable-install-strip
|
---|
| 183 |
|
---|
[89c9c781] | 184 | ac_add_options --enable-system-ffi
|
---|
[0e37869] | 185 | ac_add_options --enable-system-pixman
|
---|
| 186 |
|
---|
| 187 | ac_add_options --enable-shared-js
|
---|
[5f5dcc2] | 188 | ac_add_options --with-pthreads
|
---|
[0e37869] | 189 |
|
---|
| 190 | ac_add_options --with-system-bz2
|
---|
[7133ec2] | 191 | ac_add_options --with-system-jpeg
|
---|
| 192 | ac_add_options --with-system-png
|
---|
| 193 | ac_add_options --with-system-zlib
|
---|
[0e37869] | 194 |
|
---|
| 195 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xulrunner-build-dir
|
---|
[aed37975] | 196 | EOF</userinput></screen>
|
---|
| 197 |
|
---|
[c1ae13c] | 198 | <para>
|
---|
| 199 | Install <application>Xulrunner</application> by issuing the following
|
---|
| 200 | commands:
|
---|
| 201 | </para>
|
---|
[aed37975] | 202 |
|
---|
[a38269c] | 203 | <screen><userinput>make -f client.mk</userinput></screen>
|
---|
[a949fa4] | 204 |
|
---|
[c1ae13c] | 205 | <para>
|
---|
| 206 | This package does not come with a test suite.
|
---|
| 207 | </para>
|
---|
[aed37975] | 208 |
|
---|
[c1ae13c] | 209 | <para>
|
---|
| 210 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 211 | </para>
|
---|
[dc8a9549] | 212 |
|
---|
[0e37869] | 213 | <screen role="root"><userinput>make -C xulrunner-build-dir install &&
|
---|
| 214 |
|
---|
| 215 | mkdir -pv /usr/lib/mozilla/plugins &&
|
---|
| 216 | rm -rf /usr/lib/xulrunner-&xulrunner-version;/plugins &&
|
---|
| 217 | ln -sv ../mozilla/plugins /usr/lib/xulrunner-&xulrunner-version; &&
|
---|
| 218 |
|
---|
| 219 | chmod -v 755 /usr/lib/xulrunner-&xulrunner-version;/libxpcom.so \
|
---|
| 220 | /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/bin/xpcshell &&
|
---|
[a4857b3] | 221 |
|
---|
[0e37869] | 222 | for library in libmozalloc.so libmozjs.so libxpcom.so libxul.so; do
|
---|
| 223 | ln -sfv ../../../xulrunner-&xulrunner-version;/$library \
|
---|
| 224 | /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib/$library
|
---|
| 225 | ln -sfv xulrunner-&xulrunner-version;/$library /usr/lib/$library
|
---|
[9ade4e9d] | 226 | done
|
---|
| 227 |
|
---|
[0e37869] | 228 | ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/run-mozilla.sh \
|
---|
| 229 | /usr/lib/xulrunner-&xulrunner-version;
|
---|
| 230 | ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/xpcshell \
|
---|
| 231 | /usr/lib/xulrunner-&xulrunner-version;</userinput></screen>
|
---|
| 232 |
|
---|
[aed37975] | 233 | </sect2>
|
---|
| 234 |
|
---|
| 235 | <sect2 role="commands">
|
---|
| 236 | <title>Command Explanations</title>
|
---|
| 237 |
|
---|
[c1ae13c] | 238 | <para>
|
---|
| 239 | <command>make -f client.mk ...</command>: Mozilla products are packaged to
|
---|
| 240 | allow the use of a configuration file which can be used to pass the
|
---|
| 241 | configuration settings to the <command>configure</command> command.
|
---|
| 242 | <command>make</command> uses the <filename>client.mk</filename> file to
|
---|
| 243 | get initial configuration and setup parameters.
|
---|
| 244 | </para>
|
---|
| 245 |
|
---|
| 246 | <para>
|
---|
[0e37869] | 247 | <command>ln -sfv ../mozilla/plugins ...</command>: Some packages will
|
---|
[c1ae13c] | 248 | install browser plugins into
|
---|
| 249 | <filename class="directory">/usr/lib/mozilla/plugins</filename>.
|
---|
| 250 | Creating this symlink <application>Xulrunner</application> keeps
|
---|
| 251 | additional plugins in a common directory.
|
---|
| 252 | </para>
|
---|
| 253 |
|
---|
| 254 | <para>
|
---|
[0e37869] | 255 | <command>for library in libmozalloc.so libmozjs.so libxpcom.so libxul.so ...
|
---|
| 256 | </command>: The libraries shipped with this package are installed into
|
---|
[b9b7146] | 257 | <filename class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
|
---|
[1265b05] | 258 | which means they will not be found at runtime. These commands make
|
---|
[16efe57] | 259 | relative symbolic links to the shared libraries from
|
---|
[0e37869] | 260 | <filename class="directory">/usr/lib</filename>. They will also replace duplicate
|
---|
| 261 | libraries that are installed in
|
---|
| 262 | <filename class="directory">/usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib</filename>
|
---|
| 263 | with symlinks in order to save some space.
|
---|
[c1ae13c] | 264 | </para>
|
---|
[9ade4e9d] | 265 |
|
---|
| 266 | <para>
|
---|
[0e37869] | 267 | <command>ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/ ...</command>
|
---|
| 268 | The <filename>run-mozilla.sh</filename> and <filename>xpcshell</filename> files
|
---|
| 269 | have been moved in this version, but the code which installs
|
---|
| 270 | <application>Firefox</application> (when linked to xulrunner) was not updated.
|
---|
| 271 | These symlinks allow<application>Firefox</application> to install when built against
|
---|
| 272 | <application>Xulrunner</application>.
|
---|
[9ade4e9d] | 273 | </para>
|
---|
| 274 |
|
---|
[aed37975] | 275 | </sect2>
|
---|
| 276 |
|
---|
| 277 | <sect2 role="content">
|
---|
| 278 | <title>Contents</title>
|
---|
| 279 |
|
---|
| 280 | <segmentedlist>
|
---|
| 281 | <segtitle>Installed Programs</segtitle>
|
---|
| 282 | <segtitle>Installed Libraries</segtitle>
|
---|
| 283 | <segtitle>Installed Directories</segtitle>
|
---|
| 284 |
|
---|
| 285 | <seglistitem>
|
---|
[0e37869] | 286 | <seg>
|
---|
| 287 | xulrunner
|
---|
| 288 | </seg>
|
---|
| 289 | <seg>
|
---|
| 290 | Numerous libraries, browser components, plugins, extensions, and
|
---|
| 291 | helper modules installed in <filename
|
---|
| 292 | class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
|
---|
| 293 | </seg>
|
---|
| 294 | <seg>
|
---|
| 295 | /usr/include/xulrunner-&xulrunner-version;,
|
---|
| 296 | /usr/lib/xulrunner-&xulrunner-version;,
|
---|
| 297 | /usr/lib/xulrunner-devel-&xulrunner-version; and
|
---|
| 298 | /usr/share/idl/xulrunner-&xulrunner-version;
|
---|
| 299 | </seg>
|
---|
[aed37975] | 300 | </seglistitem>
|
---|
| 301 | </segmentedlist>
|
---|
| 302 |
|
---|
| 303 | <variablelist>
|
---|
| 304 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 305 | <?dbfo list-presentation="list"?>
|
---|
| 306 | <?dbhtml list-presentation="table"?>
|
---|
| 307 |
|
---|
| 308 | <varlistentry id="xulrunner-prog">
|
---|
| 309 | <term><command>xulrunner</command></term>
|
---|
| 310 | <listitem>
|
---|
[c1ae13c] | 311 | <para>
|
---|
[0e37869] | 312 | is a shell script used for identifying the installed version
|
---|
| 313 | and running <application>Xulrunner</application> applications.
|
---|
[c1ae13c] | 314 | </para>
|
---|
[aed37975] | 315 | <indexterm zone="xulrunner xulrunner-prog">
|
---|
| 316 | <primary sortas="b-xulrunner">xulrunner</primary>
|
---|
| 317 | </indexterm>
|
---|
| 318 | </listitem>
|
---|
| 319 | </varlistentry>
|
---|
[0e37869] | 320 |
|
---|
[aed37975] | 321 | </variablelist>
|
---|
[0e37869] | 322 |
|
---|
[aed37975] | 323 | </sect2>
|
---|
[0e37869] | 324 |
|
---|
[aed37975] | 325 | </sect1>
|
---|