[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 |
|
---|
[1b356a9d] | 7 | <!-- <!ENTITY xulrunner-download-http
|
---|
| 8 | "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">-->
|
---|
[0d7900a] | 9 | <!ENTITY xulrunner-download-http
|
---|
[1b356a9d] | 10 | "http:///ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
[9ce4c50c] | 11 | <!ENTITY xulrunner-download-ftp
|
---|
[0e37869] | 12 | "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
---|
[5be3a74] | 13 | <!ENTITY xulrunner-md5sum "499b70a9f08a2291d528e87eaf8804a3">
|
---|
| 14 | <!ENTITY xulrunner-size "141 MB">
|
---|
| 15 | <!-- measured on LFS-7.5 x86_64 -->
|
---|
| 16 | <!ENTITY xulrunner-buildsize "4.9 GB (103 MB installed)">
|
---|
| 17 | <!ENTITY xulrunner-time "46 SBU">
|
---|
[aed37975] | 18 | ]>
|
---|
| 19 |
|
---|
| 20 | <sect1 id="xulrunner" xreflabel="Xulrunner-&xulrunner-version;">
|
---|
| 21 | <?dbhtml filename="xulrunner.html" ?>
|
---|
| 22 |
|
---|
| 23 | <sect1info>
|
---|
| 24 | <othername>$LastChangedBy$</othername>
|
---|
| 25 | <date>$Date$</date>
|
---|
| 26 | </sect1info>
|
---|
| 27 |
|
---|
| 28 | <title>Xulrunner-&xulrunner-version;</title>
|
---|
| 29 |
|
---|
| 30 | <indexterm zone="xulrunner">
|
---|
| 31 | <primary sortas="a-Xulrunner">Xulrunner</primary>
|
---|
| 32 | </indexterm>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="package">
|
---|
| 35 | <title>Introduction to Xulrunner</title>
|
---|
| 36 |
|
---|
[c1ae13c] | 37 | <para>
|
---|
| 38 | <application>Xulrunner</application> is a runtime environment for XUL
|
---|
| 39 | applications, and forms the major part of the
|
---|
| 40 | <application>Mozilla</application> codebase. In particular, it provides
|
---|
| 41 | the Gecko engine together with pkgconfig files so that other applications
|
---|
| 42 | can find and use it.
|
---|
| 43 | </para>
|
---|
[89c9c781] | 44 |
|
---|
[629e499] | 45 | &lfs75_checked;
|
---|
[76ae9a2] | 46 |
|
---|
[aed37975] | 47 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 48 | <itemizedlist spacing="compact">
|
---|
| 49 | <listitem>
|
---|
[c1ae13c] | 50 | <para>
|
---|
| 51 | Download (HTTP): <ulink url="&xulrunner-download-http;"/>
|
---|
| 52 | </para>
|
---|
[aed37975] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[c1ae13c] | 55 | <para>
|
---|
| 56 | Download (FTP): <ulink url="&xulrunner-download-ftp;"/>
|
---|
| 57 | </para>
|
---|
[aed37975] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[c1ae13c] | 60 | <para>
|
---|
| 61 | Download MD5 sum: &xulrunner-md5sum;
|
---|
| 62 | </para>
|
---|
[aed37975] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[c1ae13c] | 65 | <para>
|
---|
| 66 | Download size: &xulrunner-size;
|
---|
| 67 | </para>
|
---|
[aed37975] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[c1ae13c] | 70 | <para>
|
---|
| 71 | Estimated disk space required: &xulrunner-buildsize;
|
---|
| 72 | </para>
|
---|
[aed37975] | 73 | </listitem>
|
---|
| 74 | <listitem>
|
---|
[c1ae13c] | 75 | <para>
|
---|
| 76 | Estimated build time: &xulrunner-time;
|
---|
| 77 | </para>
|
---|
[aed37975] | 78 | </listitem>
|
---|
| 79 | </itemizedlist>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect3">Xulrunner Dependencies</bridgehead>
|
---|
| 82 |
|
---|
| 83 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[c1ae13c] | 84 | <para role="required">
|
---|
| 85 | <xref linkend="alsa-lib"/>,
|
---|
| 86 | <xref linkend="gtk2"/>,
|
---|
| 87 | <xref linkend="zip"/> and
|
---|
[0e37869] | 88 | <xref linkend="unzip"/>
|
---|
[c1ae13c] | 89 | </para>
|
---|
| 90 |
|
---|
[1555d3d] | 91 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[c1ae13c] | 92 | <para role="recommended">
|
---|
[7bf10b1] | 93 | <xref linkend="icu"/>,
|
---|
[0e37869] | 94 | <xref linkend="libevent"/>,
|
---|
| 95 | <xref linkend="libvpx"/>,
|
---|
| 96 | <xref linkend="nspr"/>,
|
---|
| 97 | <xref linkend="nss"/>,
|
---|
| 98 | <xref linkend="sqlite"/> and
|
---|
| 99 | <xref linkend="yasm"/>
|
---|
[c1ae13c] | 100 | </para>
|
---|
[1555d3d] | 101 |
|
---|
[0e37869] | 102 | <note>
|
---|
| 103 | <para>
|
---|
| 104 | If you don't install recommended dependencies,
|
---|
| 105 | then internal copies of those packages will
|
---|
| 106 | be used. They might be tested to work, but
|
---|
| 107 | they can be out of date or contain security
|
---|
| 108 | holes.
|
---|
| 109 | </para>
|
---|
| 110 | </note>
|
---|
| 111 |
|
---|
[5be3a74] | 112 | <note>
|
---|
| 113 | <para>
|
---|
[204c71d5] | 114 | With <application>Firefox-31.0</application> and later versions, you
|
---|
| 115 | must have installed <application>Openssl</application> before
|
---|
[5be3a74] | 116 | <application>Python 2</application>, or the build system will quickly
|
---|
| 117 | fail with output including "ImportError: cannot import name
|
---|
| 118 | HTTPSHandler". If you are in any doubt about this (e.g. upgrading
|
---|
[204c71d5] | 119 | from an older version of Xulrunner), check if
|
---|
[5be3a74] | 120 | <filename>/usr/lib/python2.7/lib-dynload/_ssl.so</filename> exists.
|
---|
| 121 | If it does not, reinstall <xref linkend="python2"/> (after
|
---|
| 122 | installing <xref linkend="openssl"/> - the latest version of any
|
---|
[204c71d5] | 123 | <emphasis>currently maintained</emphasis> version of Openssl should
|
---|
[5be3a74] | 124 | be satisfactory if already installed - if that package has not already
|
---|
| 125 | been installed).
|
---|
| 126 | </para>
|
---|
| 127 | </note>
|
---|
| 128 |
|
---|
[aed37975] | 129 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c1ae13c] | 130 | <para role="optional">
|
---|
[23d3543c] | 131 | <xref linkend="curl"/>,
|
---|
[c1ae13c] | 132 | <xref linkend="dbus-glib"/>,
|
---|
| 133 | <xref linkend="doxygen"/>,
|
---|
[7bf10b1] | 134 | <xref linkend="gst-plugins-base"/> (with
|
---|
[db73840] | 135 | <xref linkend="gst-plugins-good"/> and
|
---|
[c011125] | 136 | <xref linkend="gst-ffmpeg"/> at runtime), or
|
---|
| 137 | <xref linkend="gst10-plugins-base"/> (with
|
---|
| 138 | <xref linkend="gst10-plugins-good"/> and
|
---|
| 139 | <xref linkend="gst10-libav"/> at runtime),
|
---|
[0e37869] | 140 | <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
|
---|
[c1ae13c] | 141 | <xref linkend="libnotify"/>,
|
---|
[26fa7d2] | 142 | <xref linkend="openjdk"/>,
|
---|
| 143 | <xref linkend="pulseaudio"/>,
|
---|
[0e37869] | 144 | <xref linkend="startup-notification"/>,
|
---|
| 145 | <xref linkend="wget"/> and
|
---|
| 146 | <xref linkend="wireless_tools"/>
|
---|
[c1ae13c] | 147 | </para>
|
---|
| 148 |
|
---|
| 149 | <para condition="html" role="usernotes">
|
---|
| 150 | User Notes: <ulink url="&blfs-wiki;/xulrunner"/>
|
---|
| 151 | </para>
|
---|
[aed37975] | 152 | </sect2>
|
---|
| 153 |
|
---|
| 154 | <sect2 role="installation">
|
---|
| 155 | <title>Installation of Xulrunner</title>
|
---|
| 156 |
|
---|
[c1ae13c] | 157 | <para>
|
---|
| 158 | The configuration of <application>Xulrunner</application> is accomplished
|
---|
| 159 | by creating a <filename>mozconfig</filename> file containing the desired
|
---|
| 160 | configuration options. A default <filename>mozconfig</filename> is created
|
---|
| 161 | below. To see the entire list of available configuration options (and an
|
---|
| 162 | abbreviated description of each one), issue <command>./configure
|
---|
| 163 | --help</command>. You should review the entire file and comment or
|
---|
| 164 | uncomment options as necessary.
|
---|
| 165 | </para>
|
---|
[aed37975] | 166 |
|
---|
[f0dcb37d] | 167 | <screen><userinput>cat > mozconfig << "EOF"
|
---|
[d2a469d2] | 168 | # If you have a multicore machine, firefox will now use all the cores by
|
---|
| 169 | # default. Exceptionally, you can reduce the number of cores, e.g. to 1,
|
---|
| 170 | # by uncommenting the next line and setting a valid number of CPU cores.
|
---|
| 171 | #mk_add_options MOZ_MAKE_FLAGS="-j1"
|
---|
[aed37975] | 172 |
|
---|
[0e37869] | 173 | # If you have installed DBus-Glib comment out this line:
|
---|
[89c9c781] | 174 | ac_add_options --disable-dbus
|
---|
[e49ffb5] | 175 |
|
---|
[32cca2cd] | 176 | # If you have installed dbus-glib, and you have installed (or will install)
|
---|
| 177 | # wireless-tools, and you wish to use geolocation web services, comment out
|
---|
| 178 | # this line
|
---|
[89c9c781] | 179 | ac_add_options --disable-necko-wifi
|
---|
[aed37975] | 180 |
|
---|
[0e37869] | 181 | # If you have installed libnotify comment out this line:
|
---|
[7b34d49] | 182 | ac_add_options --disable-libnotify
|
---|
| 183 |
|
---|
[686a89a3] | 184 | # GStreamer is necessary for H.264 video playback in HTML5 Video Player;
|
---|
| 185 | # to be enabled, also remember to set "media.gstreamer.enabled" to "true"
|
---|
[c011125] | 186 | # in about:config. If you have GStreamer 0.x.y, uncomment this line:
|
---|
| 187 | #ac_add_options --enable-gstreamer
|
---|
| 188 | # or uncomment this line, if you have GStreamer 1.x.y
|
---|
| 189 | #ac_add_options --enable-gstreamer=1.0
|
---|
[48ae92a] | 190 |
|
---|
| 191 | # Uncomment these lines if you have installed optional dependencies:
|
---|
[0e37869] | 192 | #ac_add_options --enable-system-hunspell
|
---|
| 193 | #ac_add_options --enable-startup-notification
|
---|
| 194 |
|
---|
[27fd492b] | 195 | # Comment out following option if you have PulseAudio installed
|
---|
| 196 | ac_add_options --disable-pulseaudio
|
---|
| 197 |
|
---|
[0e37869] | 198 | # If you have not installed Yasm then uncomment this line:
|
---|
| 199 | #ac_add_options --disable-webm
|
---|
| 200 |
|
---|
| 201 | # Comment out following options if you have not installed
|
---|
| 202 | # recommended dependencies:
|
---|
| 203 | ac_add_options --enable-system-sqlite
|
---|
| 204 | ac_add_options --with-system-libevent
|
---|
| 205 | ac_add_options --with-system-libvpx
|
---|
| 206 | ac_add_options --with-system-nspr
|
---|
| 207 | ac_add_options --with-system-nss
|
---|
[7bf10b1] | 208 | ac_add_options --with-system-icu
|
---|
[0e37869] | 209 |
|
---|
[7251b1d] | 210 | # The BLFS editors recommend not changing anything below this line:
|
---|
[0e37869] | 211 | ac_add_options --prefix=/usr
|
---|
| 212 | ac_add_options --enable-application=xulrunner
|
---|
[aed37975] | 213 |
|
---|
[5f5dcc2] | 214 | ac_add_options --disable-crashreporter
|
---|
| 215 | ac_add_options --disable-updater
|
---|
[0e37869] | 216 | ac_add_options --disable-tests
|
---|
| 217 |
|
---|
| 218 | ac_add_options --enable-optimize
|
---|
| 219 | ac_add_options --enable-strip
|
---|
| 220 | ac_add_options --enable-install-strip
|
---|
| 221 |
|
---|
[7251b1d] | 222 | ac_add_options --enable-system-cairo
|
---|
[89c9c781] | 223 | ac_add_options --enable-system-ffi
|
---|
[0e37869] | 224 | ac_add_options --enable-system-pixman
|
---|
| 225 |
|
---|
[f7ddfa0e] | 226 | ac_add_options --enable-shared-js
|
---|
[5f5dcc2] | 227 | ac_add_options --with-pthreads
|
---|
[0e37869] | 228 |
|
---|
| 229 | ac_add_options --with-system-bz2
|
---|
[7133ec2] | 230 | ac_add_options --with-system-jpeg
|
---|
| 231 | ac_add_options --with-system-png
|
---|
| 232 | ac_add_options --with-system-zlib
|
---|
[0e37869] | 233 |
|
---|
| 234 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xulrunner-build-dir
|
---|
[aed37975] | 235 | EOF</userinput></screen>
|
---|
| 236 |
|
---|
[ab2b8ce] | 237 | <note>
|
---|
| 238 | <para>
|
---|
| 239 | <application>Xulrunner</application>'s build uses large amount of
|
---|
| 240 | memory. On some systems, the RAM/Swap combination needs 6 GB available.
|
---|
| 241 | </para>
|
---|
| 242 | </note>
|
---|
| 243 |
|
---|
[8b3a8979] | 244 | <para>
|
---|
[ab2b8ce] | 245 | Build <application>Xulrunner</application> by issuing the following
|
---|
[c1ae13c] | 246 | commands:
|
---|
| 247 | </para>
|
---|
[aed37975] | 248 |
|
---|
[8b3a8979] | 249 | <note><para>
|
---|
| 250 | If you are compiling <application>Xulrunner</application> in chroot,
|
---|
| 251 | prepend <envar>SHELL=/bin/bash</envar> to the first make command below.
|
---|
| 252 | </para></note>
|
---|
| 253 |
|
---|
[f7ddfa0e] | 254 | <screen><userinput>sed -i '/^template class/s/JS::WeakMapPtr/JS_PUBLIC_API(&)/' \
|
---|
| 255 | js/src/vm/WeakMapPtr.cpp &&
|
---|
| 256 | make -f client.mk</userinput></screen>
|
---|
[a949fa4] | 257 |
|
---|
[c1ae13c] | 258 | <para>
|
---|
| 259 | This package does not come with a test suite.
|
---|
| 260 | </para>
|
---|
[aed37975] | 261 |
|
---|
[c1ae13c] | 262 | <para>
|
---|
[ab2b8ce] | 263 | Install, as the <systemitem class="username">root</systemitem> user:
|
---|
[c1ae13c] | 264 | </para>
|
---|
[dc8a9549] | 265 |
|
---|
[0e37869] | 266 | <screen role="root"><userinput>make -C xulrunner-build-dir install &&
|
---|
| 267 |
|
---|
| 268 | mkdir -pv /usr/lib/mozilla/plugins &&
|
---|
| 269 | rm -rf /usr/lib/xulrunner-&xulrunner-version;/plugins &&
|
---|
| 270 | ln -sv ../mozilla/plugins /usr/lib/xulrunner-&xulrunner-version; &&
|
---|
| 271 |
|
---|
[d2a469d2] | 272 | chmod -v 755 /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/bin/xpcshell &&
|
---|
[a4857b3] | 273 |
|
---|
[d2a469d2] | 274 | for library in libmozalloc.so libmozjs.so libxul.so; do
|
---|
[0e37869] | 275 | ln -sfv ../../../xulrunner-&xulrunner-version;/$library \
|
---|
| 276 | /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib/$library
|
---|
| 277 | ln -sfv xulrunner-&xulrunner-version;/$library /usr/lib/$library
|
---|
[9ade4e9d] | 278 | done
|
---|
| 279 |
|
---|
[0e37869] | 280 | ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/run-mozilla.sh \
|
---|
| 281 | /usr/lib/xulrunner-&xulrunner-version;
|
---|
| 282 | ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/xpcshell \
|
---|
| 283 | /usr/lib/xulrunner-&xulrunner-version;</userinput></screen>
|
---|
| 284 |
|
---|
[aed37975] | 285 | </sect2>
|
---|
| 286 |
|
---|
| 287 | <sect2 role="commands">
|
---|
| 288 | <title>Command Explanations</title>
|
---|
| 289 |
|
---|
[f7ddfa0e] | 290 | <para>
|
---|
| 291 | <command>sed -i ... js/src/vm/WeakMapPtr.cpp</command>: Fixes build with
|
---|
| 292 | <command>ac_add_options --enable-shared-js</command>.
|
---|
| 293 | </para>
|
---|
| 294 |
|
---|
[c1ae13c] | 295 | <para>
|
---|
| 296 | <command>make -f client.mk ...</command>: Mozilla products are packaged to
|
---|
| 297 | allow the use of a configuration file which can be used to pass the
|
---|
| 298 | configuration settings to the <command>configure</command> command.
|
---|
| 299 | <command>make</command> uses the <filename>client.mk</filename> file to
|
---|
| 300 | get initial configuration and setup parameters.
|
---|
| 301 | </para>
|
---|
| 302 |
|
---|
| 303 | <para>
|
---|
[0e37869] | 304 | <command>ln -sfv ../mozilla/plugins ...</command>: Some packages will
|
---|
[c1ae13c] | 305 | install browser plugins into
|
---|
| 306 | <filename class="directory">/usr/lib/mozilla/plugins</filename>.
|
---|
| 307 | Creating this symlink <application>Xulrunner</application> keeps
|
---|
| 308 | additional plugins in a common directory.
|
---|
| 309 | </para>
|
---|
| 310 |
|
---|
| 311 | <para>
|
---|
[d2a469d2] | 312 | <command>for library in libmozalloc.so libmozjs.so libxul.so ...
|
---|
[0e37869] | 313 | </command>: The libraries shipped with this package are installed into
|
---|
[b9b7146] | 314 | <filename class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
|
---|
[1265b05] | 315 | which means they will not be found at runtime. These commands make
|
---|
[16efe57] | 316 | relative symbolic links to the shared libraries from
|
---|
[0e37869] | 317 | <filename class="directory">/usr/lib</filename>. They will also replace duplicate
|
---|
| 318 | libraries that are installed in
|
---|
| 319 | <filename class="directory">/usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib</filename>
|
---|
| 320 | with symlinks in order to save some space.
|
---|
[c1ae13c] | 321 | </para>
|
---|
[9ade4e9d] | 322 |
|
---|
| 323 | <para>
|
---|
[0e37869] | 324 | <command>ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/ ...</command>
|
---|
| 325 | The <filename>run-mozilla.sh</filename> and <filename>xpcshell</filename> files
|
---|
| 326 | have been moved in this version, but the code which installs
|
---|
| 327 | <application>Firefox</application> (when linked to xulrunner) was not updated.
|
---|
| 328 | These symlinks allow<application>Firefox</application> to install when built against
|
---|
| 329 | <application>Xulrunner</application>.
|
---|
[9ade4e9d] | 330 | </para>
|
---|
| 331 |
|
---|
[aed37975] | 332 | </sect2>
|
---|
| 333 |
|
---|
| 334 | <sect2 role="content">
|
---|
| 335 | <title>Contents</title>
|
---|
| 336 |
|
---|
| 337 | <segmentedlist>
|
---|
| 338 | <segtitle>Installed Programs</segtitle>
|
---|
| 339 | <segtitle>Installed Libraries</segtitle>
|
---|
| 340 | <segtitle>Installed Directories</segtitle>
|
---|
| 341 |
|
---|
| 342 | <seglistitem>
|
---|
[0e37869] | 343 | <seg>
|
---|
| 344 | xulrunner
|
---|
| 345 | </seg>
|
---|
| 346 | <seg>
|
---|
| 347 | Numerous libraries, browser components, plugins, extensions, and
|
---|
| 348 | helper modules installed in <filename
|
---|
| 349 | class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
|
---|
| 350 | </seg>
|
---|
| 351 | <seg>
|
---|
| 352 | /usr/include/xulrunner-&xulrunner-version;,
|
---|
| 353 | /usr/lib/xulrunner-&xulrunner-version;,
|
---|
| 354 | /usr/lib/xulrunner-devel-&xulrunner-version; and
|
---|
| 355 | /usr/share/idl/xulrunner-&xulrunner-version;
|
---|
| 356 | </seg>
|
---|
[aed37975] | 357 | </seglistitem>
|
---|
| 358 | </segmentedlist>
|
---|
| 359 |
|
---|
| 360 | <variablelist>
|
---|
| 361 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 362 | <?dbfo list-presentation="list"?>
|
---|
| 363 | <?dbhtml list-presentation="table"?>
|
---|
| 364 |
|
---|
| 365 | <varlistentry id="xulrunner-prog">
|
---|
| 366 | <term><command>xulrunner</command></term>
|
---|
| 367 | <listitem>
|
---|
[c1ae13c] | 368 | <para>
|
---|
[0e37869] | 369 | is a shell script used for identifying the installed version
|
---|
| 370 | and running <application>Xulrunner</application> applications.
|
---|
[c1ae13c] | 371 | </para>
|
---|
[aed37975] | 372 | <indexterm zone="xulrunner xulrunner-prog">
|
---|
| 373 | <primary sortas="b-xulrunner">xulrunner</primary>
|
---|
| 374 | </indexterm>
|
---|
| 375 | </listitem>
|
---|
| 376 | </varlistentry>
|
---|
[0e37869] | 377 |
|
---|
[aed37975] | 378 | </variablelist>
|
---|
[0e37869] | 379 |
|
---|
[aed37975] | 380 | </sect2>
|
---|
[0e37869] | 381 |
|
---|
[aed37975] | 382 | </sect1>
|
---|