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