[f939f05] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[f939f05] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[3f810bf2] | 7 | <!ENTITY firefox-download-http "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
|
---|
[5a13c45] | 8 | <!ENTITY firefox-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
|
---|
| 9 | <!ENTITY firefox-md5sum "fa915ddcadecda30ed3e13694f26a779">
|
---|
| 10 | <!ENTITY firefox-size "34.4 MB">
|
---|
| 11 | <!ENTITY firefox-buildsize "568 MB">
|
---|
| 12 | <!ENTITY firefox-time "15.8 SBU">
|
---|
[f939f05] | 13 | ]>
|
---|
| 14 |
|
---|
[ffe47ca2] | 15 | <sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
|
---|
[b81991e1] | 16 | <?dbhtml filename="firefox.html" ?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[d1f23e0] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">firefox-&firefox-version;-source.tar</keyword>
|
---|
[b4647e21] | 23 | <keyword role="ftpdir">firefox</keyword>
|
---|
[d1f23e0] | 24 | </keywordset>
|
---|
[b81991e1] | 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>Firefox-&firefox-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="firefox">
|
---|
| 30 | <primary sortas="a-Firefox">Firefox</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to Firefox</title>
|
---|
| 35 |
|
---|
| 36 | <para><application>Firefox</application> is a stand-alone browser
|
---|
| 37 | based on the <application>Mozilla</application> codebase.</para>
|
---|
| 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum: &firefox-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download size: &firefox-size;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated disk space required: &firefox-buildsize;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated build time: &firefox-time;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | </itemizedlist>
|
---|
| 60 |
|
---|
| 61 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
| 62 |
|
---|
| 63 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[d1f23e0] | 64 | <para role="required"><xref linkend="gtk2"/>,
|
---|
[b81991e1] | 65 | <xref linkend="libidl"/> and
|
---|
| 66 | <xref linkend="zip"/></para>
|
---|
| 67 |
|
---|
[5a13c45] | 68 | <para>Note: <application>libjpeg</application> should have been installed
|
---|
| 69 | before <application>GTK+</application> and should exist on your system. If
|
---|
| 70 | for some reason you haven't installed <application>libjpeg</application>,
|
---|
| 71 | you should remove the <option>--with-system-jpeg</option> option from the
|
---|
| 72 | <filename>.mozconfig</filename> file created below.</para>
|
---|
| 73 |
|
---|
[b81991e1] | 74 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[5a13c45] | 75 | <para role="optional"><xref linkend="unzip"/> and
|
---|
| 76 | <xref linkend="libgnomeui"/> (to build the gnomevfs extension)</para>
|
---|
[b81991e1] | 77 |
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2 role="installation">
|
---|
| 81 | <title>Installation of Firefox</title>
|
---|
| 82 |
|
---|
[5a13c45] | 83 | <!-- This is now obsolete (I'm almost certain). During the next update
|
---|
| 84 | of Firefox, please remove everything contained in this comment if
|
---|
| 85 | there's been no mention to reactivate this. -Randy
|
---|
[b81991e1] | 86 |
|
---|
[361df3e] | 87 | <para><application>Firefox</application> default behavior when invoked
|
---|
| 88 | with a URL parameter is to open a new browser window. If you would rather
|
---|
| 89 | <application>Firefox</application> open a new tab in an existing browser
|
---|
| 90 | window, issue the following command:</para>
|
---|
| 91 |
|
---|
[519bbf6] | 92 | <screen><userinput>sed -i 's|openURL(${_optLast}|&, new-tab|' browser/app/mozilla.in</userinput></screen>
|
---|
[5a13c45] | 93 | -->
|
---|
| 94 |
|
---|
| 95 | <para>The configuration of <application>Firefox</application> is
|
---|
| 96 | accomplished by creating a <filename>.mozconfig</filename> file containing
|
---|
| 97 | the desired configuration options. A default <filename>.mozconfig</filename>
|
---|
| 98 | is created below. To see the entire list of available configuration options
|
---|
| 99 | (and an abbreviated description of each one), issue
|
---|
| 100 | <command>./configure --help</command>. If you are going to build the
|
---|
| 101 | <application>OpenOffice</application> package and you want to use this
|
---|
| 102 | <application>Firefox</application> installation as the default
|
---|
| 103 | <application>Mozilla</application> source, ensure you uncomment the
|
---|
| 104 | <option>--enable-ldap</option> option from the default file created below.
|
---|
| 105 | You may also wish to review the entire file and uncomment any other desired
|
---|
| 106 | options. If you would prefer to download the file instead of creating it by
|
---|
| 107 | typing or cut-and-pasting, here is the URL: <ulink
|
---|
| 108 | url="http://anduin.linuxfromscratch.org/files/BLFS/firefox-&firefox-version;-mozconfig"/>
|
---|
| 109 | (the file must be installed in the
|
---|
| 110 | <filename class='directory'>mozilla</filename> directory and named
|
---|
| 111 | <filename>.mozconfig</filename>). Create the file by issuing the following
|
---|
| 112 | command:</para>
|
---|
| 113 |
|
---|
| 114 | <screen><userinput>cat > .mozconfig << "EOF"
|
---|
| 115 | <literal># This file contains the options used in the Firefox build. You may
|
---|
| 116 | # need to specify additional options for your specific build needs.
|
---|
| 117 | # Use the information provided by running './configure --help' to
|
---|
| 118 | # help you determine if you need to add any additional options.
|
---|
| 119 | # Some additional options can be added by uncommenting the examples
|
---|
| 120 | # in this file or adding options by inserting a line containing
|
---|
| 121 | # 'ac_add_options --some-option-you-need'.
|
---|
| 122 |
|
---|
| 123 |
|
---|
| 124 | # Use the default settings specified in the source tree
|
---|
| 125 | . $topsrcdir/browser/config/mozconfig
|
---|
| 126 |
|
---|
| 127 | # Create an object directory and specify to build the package in that
|
---|
| 128 | # directory. If desired, modify the location of the object directory
|
---|
| 129 | # to a directory inside the source tree by removing '../' from the
|
---|
| 130 | # line below.
|
---|
| 131 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../firefox-build
|
---|
| 132 |
|
---|
| 133 | # Specify the installation prefix. If you would prefer Firefox
|
---|
| 134 | # installed in a different prefix, modify the line below to fit
|
---|
| 135 | # your needs. You'll also need to modify some of the instructions in
|
---|
| 136 | # the BLFS book to point to your desired prefix.
|
---|
| 137 | ac_add_options --prefix=/usr
|
---|
| 138 |
|
---|
| 139 | # These options are used so that the Firefox binaries are linked to
|
---|
| 140 | # the system-installed copies of the specified libraries instead of
|
---|
| 141 | # the source tree code which may not be the most recent versions.
|
---|
| 142 | ac_add_options --with-system-zlib
|
---|
| 143 | ac_add_options --with-system-png
|
---|
| 144 | ac_add_options --with-system-jpeg
|
---|
| 145 | ac_add_options --enable-system-cairo
|
---|
| 146 |
|
---|
| 147 | # This option causes the installed binaries to have the official
|
---|
| 148 | # Firefox name embedded in them. Due to license restrictions, you
|
---|
| 149 | # may not distribute binaries created using this option.
|
---|
| 150 | ac_add_options --enable-official-branding
|
---|
| 151 |
|
---|
| 152 | # This option specifies to include support for rendering the HTML
|
---|
| 153 | # <canvas></canvas> tag in the Firefox browser.
|
---|
| 154 | ac_add_options --enable-canvas
|
---|
| 155 |
|
---|
| 156 | # This option is used so that the debugging symbols are removed from
|
---|
| 157 | # the installed binaries during the installation process. Comment out
|
---|
| 158 | # this option if you may have a need to retain the debugging symbols
|
---|
| 159 | # in the installed binaries. Note that this can substantially
|
---|
| 160 | # increase the size of the installed binaries.
|
---|
| 161 | ac_add_options --enable-strip
|
---|
| 162 |
|
---|
| 163 | # This option is added so that test libraries and programs are not
|
---|
| 164 | # built. These would only be required for debugging purposes.
|
---|
| 165 | ac_add_options --disable-tests
|
---|
| 166 |
|
---|
| 167 | # This option is added so that the Mozilla Installer program is not
|
---|
| 168 | # built or installed. The program is not required for a BLFS
|
---|
| 169 | # installation of Firefox.
|
---|
| 170 | ac_add_options --disable-installer
|
---|
| 171 |
|
---|
| 172 | # This option is used to disable the a11y support in the Firefox
|
---|
| 173 | # binaries. Comment out this option if you require a11y support.
|
---|
| 174 | ac_add_options --disable-accessibility
|
---|
| 175 |
|
---|
| 176 | # This option is used to enable source tree included LDAP support in
|
---|
| 177 | # the Firefox binaries.
|
---|
| 178 | ###################################################################
|
---|
| 179 | #
|
---|
| 180 | # NOTE: You must uncomment this option if there is any chance of
|
---|
| 181 | # compiling the OpenOffice package from source code using this copy
|
---|
| 182 | # of Firefox for your Mozilla support.
|
---|
| 183 | #
|
---|
| 184 | ###################################################################
|
---|
| 185 | #ac_add_options --enable-ldap
|
---|
| 186 |
|
---|
| 187 | # This option is used to enable support for rendering SVG files in the
|
---|
| 188 | # Firefox browser. Uncomment the line below to enable the option.
|
---|
| 189 | #ac_add_options --enable-svg
|
---|
| 190 |
|
---|
| 191 | # Uncomment this option if you desire support for dual-monitor
|
---|
| 192 | # display of Firefox using the X-Window Xinerama libraries.
|
---|
| 193 | #ac_add_options --enable-xinerama
|
---|
| 194 |
|
---|
| 195 | # This option identifies the default binary directory of the Firefox
|
---|
| 196 | # installation and is used to locate Firefox's installed files. This
|
---|
| 197 | # option is not required for end-user browsing, and is only used for
|
---|
| 198 | # development purposes.
|
---|
| 199 | #ac_add_options --with-default-mozilla-five-home=/usr/lib/firefox-&firefox-version;</literal>
|
---|
| 200 |
|
---|
| 201 | EOF</userinput></screen>
|
---|
| 202 |
|
---|
| 203 | <para>Compile <application>Firefox</application> by issuing the
|
---|
[27706cc] | 204 | following commands:</para>
|
---|
[5a13c45] | 205 |
|
---|
[27706cc] | 206 | <screen><userinput>sed -i "s/ enum/& xptinfo_enum_1/" \
|
---|
| 207 | xpcom/reflect/xptinfo/public/xptinfo.h &&
|
---|
| 208 | make -f client.mk build</userinput></screen>
|
---|
[bccbdaea] | 209 |
|
---|
[b81991e1] | 210 | <para>This package does not come with a test suite.</para>
|
---|
[4a8e9f7] | 211 |
|
---|
[5a13c45] | 212 | <para>Now, as the <systemitem class="username">root</systemitem> user,
|
---|
| 213 | install the package:</para>
|
---|
| 214 |
|
---|
| 215 | <screen role="root"><userinput>make -f client.mk install &&
|
---|
| 216 |
|
---|
| 217 | install -v -m755 -d /usr/lib/firefox-&firefox-version;/chrome/icons/default &&
|
---|
| 218 | ln -v -s ../../../icons/default.xpm \
|
---|
| 219 | /usr/lib/firefox-&firefox-version;/chrome/icons/default &&
|
---|
[e3c939cc] | 220 |
|
---|
[361df3e] | 221 | install -v -m755 -d /usr/include/firefox-&firefox-version;/nss &&
|
---|
[5a13c45] | 222 | cp -v -Lf ../firefox-build/dist/{private,public}/nss/*.h \
|
---|
| 223 | /usr/include/firefox-&firefox-version;/nss &&
|
---|
| 224 |
|
---|
| 225 | chown -v -R root:root \
|
---|
| 226 | /usr/lib/firefox-&firefox-version;/extensions/inspector@mozilla.org/*</userinput></screen>
|
---|
| 227 |
|
---|
| 228 | <para>If you enabled LDAP support in the <application>Firefox</application>
|
---|
| 229 | build, install some additional interface headers as the
|
---|
| 230 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 231 |
|
---|
| 232 | <screen role="root"><userinput>install -v -m644 ../firefox-build/dist/public/ldap-private/* \
|
---|
| 233 | /usr/include/firefox-&firefox-version;/ldap</userinput></screen>
|
---|
| 234 |
|
---|
| 235 | <!-- This appears to not be required any longer. The regchrome program
|
---|
| 236 | is not built any longer, and multi-user access to Firefox appears
|
---|
| 237 | to work fine without running regxpcom and touching the files. -Randy
|
---|
[ffe47ca2] | 238 |
|
---|
[b81991e1] | 239 | <para>To enable multi-user operation, execute the following as the
|
---|
| 240 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[f939f05] | 241 |
|
---|
[b81991e1] | 242 | <screen role="root"><userinput>cd /usr/lib/firefox-&firefox-version; &&
|
---|
[f939f05] | 243 | export LD_LIBRARY_PATH="$PWD" &&
|
---|
| 244 | export MOZILLA_FIVE_HOME="$PWD" &&
|
---|
| 245 | ./regxpcom &&
|
---|
| 246 | ./regchrome &&
|
---|
[b81991e1] | 247 | touch `find . -name *.rdf`</userinput></screen>
|
---|
[f939f05] | 248 |
|
---|
[5a13c45] | 249 | -->
|
---|
| 250 |
|
---|
[b81991e1] | 251 | <note>
|
---|
| 252 | <para>You should run <command>/usr/bin/firefox</command> once as the
|
---|
| 253 | <systemitem class="username">root</systemitem> user (or any user with
|
---|
| 254 | write privileges) to create some necessary additional files in the
|
---|
| 255 | <filename class='directory'>/usr</filename> hierarchy.</para>
|
---|
| 256 | </note>
|
---|
[82539b8b] | 257 |
|
---|
[b81991e1] | 258 | </sect2>
|
---|
| 259 |
|
---|
[361df3e] | 260 | <sect2 role="commands">
|
---|
| 261 | <title>Command Explanations</title>
|
---|
| 262 |
|
---|
[27706cc] | 263 | <para><command>sed -i "s/ enum/& xptinfo_enum_1/" ...</command>:
|
---|
| 264 | This command is used to fix an anonymous enum in an external/public
|
---|
| 265 | interface header file.</para>
|
---|
| 266 |
|
---|
[5a13c45] | 267 | <para><command>install -v -m755 -d .../chrome/icons/default</command> and
|
---|
| 268 | <command>ln -v -s ../../../icons/default.xpm ...</command>: These two
|
---|
| 269 | commands are used to create a symlink in the required directory so that
|
---|
| 270 | the proper icon is displayed in the taskbar and when
|
---|
| 271 | <application>Firefox</application> windows are minimized.</para>
|
---|
| 272 |
|
---|
| 273 | <para><command>install -v -m755 -d /usr/include/firefox-&firefox-version;/nss</command>
|
---|
| 274 | and <command>cp -v -Lf ../firefox-build/dist/{private,public}/nss/*.h ...</command>:
|
---|
| 275 | These commands are used to install the Mozilla Network Security Services
|
---|
| 276 | (NSS) interface headers to a system-wide location.</para>
|
---|
| 277 |
|
---|
| 278 | <para><command>chown -v -R root:root ...</command>: This command changes
|
---|
| 279 | the ownership of some installed files to more appropriate user:group
|
---|
| 280 | names.</para>
|
---|
[361df3e] | 281 |
|
---|
| 282 | </sect2>
|
---|
| 283 |
|
---|
[b81991e1] | 284 | <sect2 role="configuration">
|
---|
| 285 | <title>Configuring Firefox</title>
|
---|
| 286 |
|
---|
| 287 | <para>No specific configuration is required as long as the
|
---|
| 288 | <command>firefox</command> script is in the user's path. If
|
---|
| 289 | <application>Firefox</application> is installed in a non-standard location,
|
---|
[5a13c45] | 290 | then make a symlink to the <command>firefox</command> script in the
|
---|
| 291 | <filename class="directory">/usr/bin</filename> directory.</para>
|
---|
[b81991e1] | 292 |
|
---|
| 293 | <para>Many applications look for <command>netscape</command> when they
|
---|
| 294 | need to open a browser. You may make the following symlink for convenience
|
---|
| 295 | (as the <systemitem class="username">root</systemitem> user).</para>
|
---|
| 296 |
|
---|
| 297 | <screen role="root"><userinput>ln -v -sf firefox /usr/bin/netscape</userinput></screen>
|
---|
| 298 |
|
---|
| 299 | <para>For installing various <application>Firefox</application> plugins,
|
---|
| 300 | refer to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's
|
---|
| 301 | PluginDoc Project</ulink>. If you have <xref linkend="jdk"/> already
|
---|
| 302 | installed, create the following link as the
|
---|
[5a13c45] | 303 | <systemitem class="username">root</systemitem> user to utilize the installed
|
---|
| 304 | <application>Java</application> plugin: </para>
|
---|
[b81991e1] | 305 |
|
---|
| 306 | <screen role="root"><userinput>ln -v -s $JAVA_HOME/jre/plugin/i386/ns7/libjavaplugin_oji.so \
|
---|
| 307 | /usr/lib/firefox-&firefox-version;/plugins</userinput></screen>
|
---|
| 308 |
|
---|
[5a13c45] | 309 | <para>Some packages install Mozilla plugins into the default system-wide
|
---|
| 310 | directory <filename class='directory'>/usr/lib/mozilla/plugins</filename>.
|
---|
| 311 | If desired, issue the following commands as the
|
---|
| 312 | <systemitem class="username">root</systemitem> user to link any plugins
|
---|
| 313 | you may have installed to the <application>Firefox</application> plugin
|
---|
| 314 | directory.</para>
|
---|
| 315 |
|
---|
| 316 | <screen role="root"><userinput>if [ -f /usr/lib/mozilla/plugins/* ]; then
|
---|
| 317 | for PLUGIN_FILE in $(ls /usr/lib/mozilla/plugins/*)
|
---|
| 318 | do
|
---|
| 319 | ln -v -s ../../mozilla/plugins/$(basename $PLUGIN_FILE) \
|
---|
| 320 | /usr/lib/firefox-&firefox-version;/plugins
|
---|
| 321 | done
|
---|
| 322 | fi</userinput></screen>
|
---|
| 323 |
|
---|
[b81991e1] | 324 | </sect2>
|
---|
| 325 |
|
---|
| 326 | <sect2 role="content">
|
---|
| 327 | <title>Contents</title>
|
---|
| 328 |
|
---|
| 329 | <segmentedlist>
|
---|
| 330 | <segtitle>Installed Programs</segtitle>
|
---|
| 331 | <segtitle>Installed Libraries</segtitle>
|
---|
| 332 | <segtitle>Installed Directories</segtitle>
|
---|
| 333 |
|
---|
| 334 | <seglistitem>
|
---|
| 335 | <seg>firefox and firefox-config</seg>
|
---|
| 336 | <seg>Numerous libraries, browser components, plugins, extensions, and
|
---|
| 337 | helper modules installed in <filename
|
---|
| 338 | class='directory'>/usr/lib/firefox-&firefox-version;</filename></seg>
|
---|
[5a13c45] | 339 | <seg>/usr/include/firefox-&firefox-version;,
|
---|
[b81991e1] | 340 | /usr/lib/firefox-&firefox-version;, and
|
---|
| 341 | /usr/share/idl/firefox-&firefox-version;</seg>
|
---|
| 342 | </seglistitem>
|
---|
| 343 | </segmentedlist>
|
---|
| 344 |
|
---|
| 345 | <variablelist>
|
---|
| 346 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 347 | <?dbfo list-presentation="list"?>
|
---|
| 348 | <?dbhtml list-presentation="table"?>
|
---|
| 349 |
|
---|
| 350 | <varlistentry id="firefox-prog">
|
---|
| 351 | <term><command>firefox</command></term>
|
---|
| 352 | <listitem>
|
---|
[5a13c45] | 353 | <para>is a shell script that sets up the environment and
|
---|
| 354 | calls the <filename>firefox-bin</filename> binary.</para>
|
---|
[b81991e1] | 355 | <indexterm zone="firefox firefox-prog">
|
---|
| 356 | <primary sortas="b-firefox">firefox</primary>
|
---|
| 357 | </indexterm>
|
---|
| 358 | </listitem>
|
---|
| 359 | </varlistentry>
|
---|
| 360 |
|
---|
| 361 | <varlistentry id="firefox-config">
|
---|
| 362 | <term><command>firefox-config</command></term>
|
---|
| 363 | <listitem>
|
---|
| 364 | <para>determines the compile and linker flags that should be
|
---|
| 365 | used to compile and link programs that use
|
---|
| 366 | <application>Firefox</application> libraries and browser
|
---|
| 367 | components.</para>
|
---|
| 368 | <indexterm zone="firefox firefox-config">
|
---|
| 369 | <primary sortas="b-firefox-config">firefox-config</primary>
|
---|
| 370 | </indexterm>
|
---|
| 371 | </listitem>
|
---|
| 372 | </varlistentry>
|
---|
| 373 |
|
---|
| 374 | </variablelist>
|
---|
| 375 |
|
---|
| 376 | </sect2>
|
---|
[4d37129] | 377 |
|
---|
| 378 | </sect1>
|
---|