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