[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">
|
---|
[d74762c] | 13 | <!ENTITY xulrunner-md5sum "c8feb2c55294aa679e8755ac24844933">
|
---|
[1b356a9d] | 14 | <!ENTITY xulrunner-size "124 MB">
|
---|
| 15 | <!ENTITY xulrunner-buildsize "3.5 GB (93 MB installed)">
|
---|
[a9d7abf] | 16 | <!ENTITY xulrunner-time "34 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 |
|
---|
[911d9698] | 44 | &lfs74_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">
|
---|
[0e37869] | 92 | <xref linkend="libevent"/>,
|
---|
| 93 | <xref linkend="libvpx"/>,
|
---|
| 94 | <xref linkend="nspr"/>,
|
---|
| 95 | <xref linkend="nss"/>,
|
---|
| 96 | <xref linkend="sqlite"/> and
|
---|
| 97 | <xref linkend="yasm"/>
|
---|
[c1ae13c] | 98 | </para>
|
---|
[1555d3d] | 99 |
|
---|
[0e37869] | 100 | <note>
|
---|
| 101 | <para>
|
---|
| 102 | If you don't install recommended dependencies,
|
---|
| 103 | then internal copies of those packages will
|
---|
| 104 | be used. They might be tested to work, but
|
---|
| 105 | they can be out of date or contain security
|
---|
| 106 | holes.
|
---|
| 107 | </para>
|
---|
| 108 | </note>
|
---|
| 109 |
|
---|
[aed37975] | 110 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c1ae13c] | 111 | <para role="optional">
|
---|
[23d3543c] | 112 | <xref linkend="curl"/>,
|
---|
[c1ae13c] | 113 | <xref linkend="dbus-glib"/>,
|
---|
| 114 | <xref linkend="doxygen"/>,
|
---|
[db73840] | 115 | <xref linkend="gst-plugins-good"/> and
|
---|
| 116 | <xref linkend="gst-ffmpeg"/>,
|
---|
[0e37869] | 117 | <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
|
---|
[c1ae13c] | 118 | <xref linkend="libnotify"/>,
|
---|
[0e37869] | 119 | <xref linkend="startup-notification"/>,
|
---|
| 120 | <xref linkend="wget"/> and
|
---|
| 121 | <xref linkend="wireless_tools"/>
|
---|
[c1ae13c] | 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"
|
---|
[d2a469d2] | 143 | # If you have a multicore machine, firefox will now use all the cores by
|
---|
| 144 | # default. Exceptionally, you can reduce the number of cores, e.g. to 1,
|
---|
| 145 | # by uncommenting the next line and setting a valid number of CPU cores.
|
---|
| 146 | #mk_add_options MOZ_MAKE_FLAGS="-j1"
|
---|
[aed37975] | 147 |
|
---|
[0e37869] | 148 | # If you have installed DBus-Glib comment out this line:
|
---|
[89c9c781] | 149 | ac_add_options --disable-dbus
|
---|
[e49ffb5] | 150 |
|
---|
[0e37869] | 151 | # If you have installed wireless-tools comment out this line:
|
---|
[89c9c781] | 152 | ac_add_options --disable-necko-wifi
|
---|
[aed37975] | 153 |
|
---|
[0e37869] | 154 | # If you have installed libnotify comment out this line:
|
---|
[7b34d49] | 155 | ac_add_options --disable-libnotify
|
---|
| 156 |
|
---|
[686a89a3] | 157 | # GStreamer is necessary for H.264 video playback in HTML5 Video Player;
|
---|
| 158 | # to be enabled, also remember to set "media.gstreamer.enabled" to "true"
|
---|
[48ae92a] | 159 | # in about:config. If you have installed GStreamer comment out this line:
|
---|
| 160 | ac_add_options --disable-gstreamer
|
---|
| 161 |
|
---|
| 162 | # Uncomment these lines if you have installed optional dependencies:
|
---|
[0e37869] | 163 | #ac_add_options --enable-system-hunspell
|
---|
| 164 | #ac_add_options --enable-startup-notification
|
---|
| 165 |
|
---|
[3bbe37d] | 166 | # Uncomment this line if you compiled Cairo with --enable-tee switch and want
|
---|
| 167 | # to use it instead of the bundled one:
|
---|
| 168 | #ac_add_options --enable-system-cairo
|
---|
| 169 |
|
---|
[0e37869] | 170 | # If you have not installed Yasm then uncomment this line:
|
---|
| 171 | #ac_add_options --disable-webm
|
---|
| 172 |
|
---|
| 173 | # Comment out following options if you have not installed
|
---|
| 174 | # recommended dependencies:
|
---|
| 175 | ac_add_options --enable-system-sqlite
|
---|
| 176 | ac_add_options --with-system-libevent
|
---|
| 177 | ac_add_options --with-system-libvpx
|
---|
| 178 | ac_add_options --with-system-nspr
|
---|
| 179 | ac_add_options --with-system-nss
|
---|
| 180 |
|
---|
| 181 | # It is recommended not to touch anything below this line
|
---|
| 182 | ac_add_options --prefix=/usr
|
---|
| 183 | ac_add_options --enable-application=xulrunner
|
---|
[aed37975] | 184 |
|
---|
[5f5dcc2] | 185 | ac_add_options --disable-crashreporter
|
---|
| 186 | ac_add_options --disable-installer
|
---|
| 187 | ac_add_options --disable-updater
|
---|
[0e37869] | 188 | ac_add_options --disable-debug
|
---|
| 189 | ac_add_options --disable-tests
|
---|
| 190 | ac_add_options --disable-mochitest
|
---|
| 191 |
|
---|
| 192 | ac_add_options --enable-optimize
|
---|
| 193 | ac_add_options --enable-strip
|
---|
| 194 | ac_add_options --enable-install-strip
|
---|
| 195 |
|
---|
[89c9c781] | 196 | ac_add_options --enable-system-ffi
|
---|
[0e37869] | 197 | ac_add_options --enable-system-pixman
|
---|
| 198 |
|
---|
| 199 | ac_add_options --enable-shared-js
|
---|
[5f5dcc2] | 200 | ac_add_options --with-pthreads
|
---|
[0e37869] | 201 |
|
---|
| 202 | ac_add_options --with-system-bz2
|
---|
[7133ec2] | 203 | ac_add_options --with-system-jpeg
|
---|
| 204 | ac_add_options --with-system-png
|
---|
| 205 | ac_add_options --with-system-zlib
|
---|
[0e37869] | 206 |
|
---|
| 207 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xulrunner-build-dir
|
---|
[aed37975] | 208 | EOF</userinput></screen>
|
---|
| 209 |
|
---|
[ab2b8ce] | 210 | <note>
|
---|
| 211 | <para>
|
---|
| 212 | <application>Xulrunner</application>'s build uses large amount of
|
---|
| 213 | memory. On some systems, the RAM/Swap combination needs 6 GB available.
|
---|
| 214 | </para>
|
---|
| 215 | </note>
|
---|
| 216 |
|
---|
[8b3a8979] | 217 | <para>
|
---|
[ab2b8ce] | 218 | Build <application>Xulrunner</application> by issuing the following
|
---|
[c1ae13c] | 219 | commands:
|
---|
| 220 | </para>
|
---|
[aed37975] | 221 |
|
---|
[8b3a8979] | 222 | <note><para>
|
---|
| 223 | If you are compiling <application>Xulrunner</application> in chroot,
|
---|
| 224 | prepend <envar>SHELL=/bin/bash</envar> to the first make command below.
|
---|
| 225 | </para></note>
|
---|
| 226 |
|
---|
[c836c280] | 227 | <screen><userinput>make -f client.mk</userinput></screen>
|
---|
[a949fa4] | 228 |
|
---|
[c1ae13c] | 229 | <para>
|
---|
| 230 | This package does not come with a test suite.
|
---|
| 231 | </para>
|
---|
[aed37975] | 232 |
|
---|
[c1ae13c] | 233 | <para>
|
---|
[ab2b8ce] | 234 | Install, as the <systemitem class="username">root</systemitem> user:
|
---|
[c1ae13c] | 235 | </para>
|
---|
[dc8a9549] | 236 |
|
---|
[0e37869] | 237 | <screen role="root"><userinput>make -C xulrunner-build-dir install &&
|
---|
| 238 |
|
---|
| 239 | mkdir -pv /usr/lib/mozilla/plugins &&
|
---|
| 240 | rm -rf /usr/lib/xulrunner-&xulrunner-version;/plugins &&
|
---|
| 241 | ln -sv ../mozilla/plugins /usr/lib/xulrunner-&xulrunner-version; &&
|
---|
| 242 |
|
---|
[d2a469d2] | 243 | chmod -v 755 /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/bin/xpcshell &&
|
---|
[a4857b3] | 244 |
|
---|
[d2a469d2] | 245 | for library in libmozalloc.so libmozjs.so libxul.so; do
|
---|
[0e37869] | 246 | ln -sfv ../../../xulrunner-&xulrunner-version;/$library \
|
---|
| 247 | /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib/$library
|
---|
| 248 | ln -sfv xulrunner-&xulrunner-version;/$library /usr/lib/$library
|
---|
[9ade4e9d] | 249 | done
|
---|
| 250 |
|
---|
[0e37869] | 251 | ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/run-mozilla.sh \
|
---|
| 252 | /usr/lib/xulrunner-&xulrunner-version;
|
---|
| 253 | ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/xpcshell \
|
---|
| 254 | /usr/lib/xulrunner-&xulrunner-version;</userinput></screen>
|
---|
| 255 |
|
---|
[aed37975] | 256 | </sect2>
|
---|
| 257 |
|
---|
| 258 | <sect2 role="commands">
|
---|
| 259 | <title>Command Explanations</title>
|
---|
| 260 |
|
---|
[c1ae13c] | 261 | <para>
|
---|
| 262 | <command>make -f client.mk ...</command>: Mozilla products are packaged to
|
---|
| 263 | allow the use of a configuration file which can be used to pass the
|
---|
| 264 | configuration settings to the <command>configure</command> command.
|
---|
| 265 | <command>make</command> uses the <filename>client.mk</filename> file to
|
---|
| 266 | get initial configuration and setup parameters.
|
---|
| 267 | </para>
|
---|
| 268 |
|
---|
| 269 | <para>
|
---|
[0e37869] | 270 | <command>ln -sfv ../mozilla/plugins ...</command>: Some packages will
|
---|
[c1ae13c] | 271 | install browser plugins into
|
---|
| 272 | <filename class="directory">/usr/lib/mozilla/plugins</filename>.
|
---|
| 273 | Creating this symlink <application>Xulrunner</application> keeps
|
---|
| 274 | additional plugins in a common directory.
|
---|
| 275 | </para>
|
---|
| 276 |
|
---|
| 277 | <para>
|
---|
[d2a469d2] | 278 | <command>for library in libmozalloc.so libmozjs.so libxul.so ...
|
---|
[0e37869] | 279 | </command>: The libraries shipped with this package are installed into
|
---|
[b9b7146] | 280 | <filename class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
|
---|
[1265b05] | 281 | which means they will not be found at runtime. These commands make
|
---|
[16efe57] | 282 | relative symbolic links to the shared libraries from
|
---|
[0e37869] | 283 | <filename class="directory">/usr/lib</filename>. They will also replace duplicate
|
---|
| 284 | libraries that are installed in
|
---|
| 285 | <filename class="directory">/usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib</filename>
|
---|
| 286 | with symlinks in order to save some space.
|
---|
[c1ae13c] | 287 | </para>
|
---|
[9ade4e9d] | 288 |
|
---|
| 289 | <para>
|
---|
[0e37869] | 290 | <command>ln -sfv ../xulrunner-devel-&xulrunner-version;/sdk/bin/ ...</command>
|
---|
| 291 | The <filename>run-mozilla.sh</filename> and <filename>xpcshell</filename> files
|
---|
| 292 | have been moved in this version, but the code which installs
|
---|
| 293 | <application>Firefox</application> (when linked to xulrunner) was not updated.
|
---|
| 294 | These symlinks allow<application>Firefox</application> to install when built against
|
---|
| 295 | <application>Xulrunner</application>.
|
---|
[9ade4e9d] | 296 | </para>
|
---|
| 297 |
|
---|
[aed37975] | 298 | </sect2>
|
---|
| 299 |
|
---|
| 300 | <sect2 role="content">
|
---|
| 301 | <title>Contents</title>
|
---|
| 302 |
|
---|
| 303 | <segmentedlist>
|
---|
| 304 | <segtitle>Installed Programs</segtitle>
|
---|
| 305 | <segtitle>Installed Libraries</segtitle>
|
---|
| 306 | <segtitle>Installed Directories</segtitle>
|
---|
| 307 |
|
---|
| 308 | <seglistitem>
|
---|
[0e37869] | 309 | <seg>
|
---|
| 310 | xulrunner
|
---|
| 311 | </seg>
|
---|
| 312 | <seg>
|
---|
| 313 | Numerous libraries, browser components, plugins, extensions, and
|
---|
| 314 | helper modules installed in <filename
|
---|
| 315 | class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
|
---|
| 316 | </seg>
|
---|
| 317 | <seg>
|
---|
| 318 | /usr/include/xulrunner-&xulrunner-version;,
|
---|
| 319 | /usr/lib/xulrunner-&xulrunner-version;,
|
---|
| 320 | /usr/lib/xulrunner-devel-&xulrunner-version; and
|
---|
| 321 | /usr/share/idl/xulrunner-&xulrunner-version;
|
---|
| 322 | </seg>
|
---|
[aed37975] | 323 | </seglistitem>
|
---|
| 324 | </segmentedlist>
|
---|
| 325 |
|
---|
| 326 | <variablelist>
|
---|
| 327 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 328 | <?dbfo list-presentation="list"?>
|
---|
| 329 | <?dbhtml list-presentation="table"?>
|
---|
| 330 |
|
---|
| 331 | <varlistentry id="xulrunner-prog">
|
---|
| 332 | <term><command>xulrunner</command></term>
|
---|
| 333 | <listitem>
|
---|
[c1ae13c] | 334 | <para>
|
---|
[0e37869] | 335 | is a shell script used for identifying the installed version
|
---|
| 336 | and running <application>Xulrunner</application> applications.
|
---|
[c1ae13c] | 337 | </para>
|
---|
[aed37975] | 338 | <indexterm zone="xulrunner xulrunner-prog">
|
---|
| 339 | <primary sortas="b-xulrunner">xulrunner</primary>
|
---|
| 340 | </indexterm>
|
---|
| 341 | </listitem>
|
---|
| 342 | </varlistentry>
|
---|
[0e37869] | 343 |
|
---|
[aed37975] | 344 | </variablelist>
|
---|
[0e37869] | 345 |
|
---|
[aed37975] | 346 | </sect2>
|
---|
[0e37869] | 347 |
|
---|
[aed37975] | 348 | </sect1>
|
---|