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