[f939f05] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[f939f05] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[0bcaa9a6] | 7 | <!ENTITY firefox-download-http "&mozilla-http;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.xz">
|
---|
[8dfc5c3] | 8 | <!ENTITY firefox-download-ftp " ">
|
---|
[855a40e8] | 9 | <!ENTITY firefox-md5sum "18586d62f24671fa15f4a5dd7b19c09c">
|
---|
[13e9ee0c] | 10 | <!ENTITY firefox-size "239 MB">
|
---|
[a0d558d] | 11 | <!ENTITY firefox-buildsize "7.2 GB (148 MB installed) without tests">
|
---|
[13e9ee0c] | 12 | <!ENTITY firefox-time "20 SBU (with parallelism=4) without tests">
|
---|
[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>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Firefox-&firefox-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="firefox">
|
---|
| 26 | <primary sortas="a-Firefox">Firefox</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Firefox</title>
|
---|
| 31 |
|
---|
[c1ae13c] | 32 | <para>
|
---|
| 33 | <application>Firefox</application> is a stand-alone browser based on the
|
---|
| 34 | <application>Mozilla</application> codebase.
|
---|
| 35 | </para>
|
---|
[b81991e1] | 36 |
|
---|
[0280ecc] | 37 | &lfs81_checked;
|
---|
[76ae9a2] | 38 |
|
---|
[b81991e1] | 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
[c1ae13c] | 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&firefox-download-http;"/>
|
---|
| 44 | </para>
|
---|
[b81991e1] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[c1ae13c] | 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&firefox-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
[b81991e1] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[c1ae13c] | 52 | <para>
|
---|
| 53 | Download MD5 sum: &firefox-md5sum;
|
---|
| 54 | </para>
|
---|
[b81991e1] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[c1ae13c] | 57 | <para>
|
---|
| 58 | Download size: &firefox-size;
|
---|
| 59 | </para>
|
---|
[b81991e1] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[c1ae13c] | 62 | <para>
|
---|
| 63 | Estimated disk space required: &firefox-buildsize;
|
---|
| 64 | </para>
|
---|
[b81991e1] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[c1ae13c] | 67 | <para>
|
---|
| 68 | Estimated build time: &firefox-time;
|
---|
| 69 | </para>
|
---|
[b81991e1] | 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
[a0d558d] | 73 | <note>
|
---|
| 74 | <para>
|
---|
| 75 | The build times for this version of firefox (using stylo, the new CSS
|
---|
| 76 | rendering code) seem to vary widely between different machines. On one
|
---|
| 77 | old Intel i3 the build took 33 SBU. The reason for this is not understood.
|
---|
| 78 | A build with stylo disabled is typically 1 or 2 SBU quicker and needs
|
---|
| 79 | 0.8GB less disk space.
|
---|
| 80 | </para>
|
---|
| 81 | </note>
|
---|
| 82 |
|
---|
[14de4227] | 83 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 84 | <itemizedlist spacing="compact">
|
---|
| 85 | <listitem>
|
---|
| 86 | <para>
|
---|
| 87 | Optional patch to allow system versions of <xref linkend="graphite2"/>
|
---|
[ecffcbbc] | 88 | and <xref linkend="harfbuzz"/>:
|
---|
[ef82450c] | 89 | <ulink url="&patch-root;/firefox-&firefox-version;-system_graphite2_harfbuzz-1.patch"/>
|
---|
[14de4227] | 90 | </para>
|
---|
| 91 | </listitem>
|
---|
| 92 | </itemizedlist>
|
---|
| 93 |
|
---|
[f06c692] | 94 | <note>
|
---|
| 95 | <para>
|
---|
| 96 | The tarball <emphasis>firefox-&firefox-version;.source.tar.xz</emphasis>
|
---|
| 97 | will untar to <emphasis>firefox-&firefox-version;</emphasis> directory.
|
---|
[37bf7b1] | 98 | It will also reset the permissions of the current directory to 0755 if you
|
---|
[765c2a7] | 99 | have permission to do that. If you do this in a directory where
|
---|
[37bf7b1] | 100 | the sticky bit is set, such
|
---|
[dc9a18a] | 101 | as <filename class="directory">/tmp</filename> it will end with error
|
---|
| 102 | messages:
|
---|
| 103 | </para>
|
---|
| 104 |
|
---|
| 105 | <literallayout>tar: .: Cannot utime: Operation not permitted
|
---|
| 106 | tar: .: Cannot change mode to rwxr-xr-t: Operation not permitted
|
---|
| 107 | tar: Exiting with failure status due to previous errors
|
---|
| 108 | </literallayout>
|
---|
| 109 |
|
---|
| 110 | <para>
|
---|
| 111 | This does finish with non-zero status, but it does
|
---|
| 112 | <emphasis>NOT</emphasis> mean there is a real problem.
|
---|
| 113 | Do not untar as the <systemitem class="username">root</systemitem> user
|
---|
| 114 | in a directory where the sticky bit is set - that will unset it.
|
---|
[f06c692] | 115 | </para>
|
---|
| 116 | </note>
|
---|
| 117 |
|
---|
[b81991e1] | 118 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
| 119 |
|
---|
| 120 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[c1ae13c] | 121 | <para role="required">
|
---|
[14de4227] | 122 | <xref linkend="autoconf213"/>,
|
---|
[ac105103] | 123 | both <xref linkend="gtk3"/> and
|
---|
[be0bd12] | 124 | <xref linkend="gtk2"/>,
|
---|
[59a6b63] | 125 | <xref linkend="nss"/>,
|
---|
[be0bd12] | 126 | <xref linkend="pulseaudio"/>
|
---|
[81b3e7fd] | 127 | (or
|
---|
[0603be6f] | 128 | <xref linkend="alsa-lib"/> if you edit the mozconfig;
|
---|
[be0bd12] | 129 | now deprecated by mozilla),
|
---|
[4c6edac] | 130 | <xref linkend="rust"/>,
|
---|
[59a6b63] | 131 | <xref linkend="unzip"/>,
|
---|
[479e03a] | 132 | <xref linkend="yasm"/>, and
|
---|
| 133 | <xref linkend="zip"/>
|
---|
[c1ae13c] | 134 | </para>
|
---|
| 135 |
|
---|
[1555d3d] | 136 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[c1ae13c] | 137 | <para role="recommended">
|
---|
[7bf10b1] | 138 | <xref linkend="icu"/>,
|
---|
[0e37869] | 139 | <xref linkend="libevent"/>,
|
---|
[a0d558d] | 140 | <xref linkend="libvpx"/>,
|
---|
| 141 | <package>clang</package> from <xref linkend="llvm"/> (for stylo), and
|
---|
[a30a874] | 142 | <xref linkend="sqlite"/>
|
---|
[c1ae13c] | 143 | </para>
|
---|
[1555d3d] | 144 |
|
---|
[0e37869] | 145 | <note>
|
---|
| 146 | <para>
|
---|
[b9f61df] | 147 | If you don't install recommended dependencies, then internal copies of
|
---|
| 148 | those packages will be used. They might be tested to work, but they can
|
---|
| 149 | be out of date or contain security holes.
|
---|
[0e37869] | 150 | </para>
|
---|
| 151 | </note>
|
---|
| 152 |
|
---|
[5be3a74] | 153 | <note>
|
---|
| 154 | <para>
|
---|
[204c71d5] | 155 | With <application>Firefox-31.0</application> and later versions, you
|
---|
| 156 | must have installed <application>Openssl</application> before
|
---|
[b9f61df] | 157 | <application>Python 2</application> or the build system will quickly
|
---|
[5be3a74] | 158 | fail with output including "ImportError: cannot import name
|
---|
[0c3e9be8] | 159 | HTTPSHandler". If you are in any doubt about this (e.g. upgrading from
|
---|
| 160 | an older version of Firefox), check if
|
---|
| 161 | <filename>/usr/lib/python&python2-majorver;/lib-dynload/_ssl.so</filename>
|
---|
| 162 | exists. If it does not, reinstall <xref linkend="python2"/> (after
|
---|
[44204a0] | 163 | installing <xref linkend="openssl"/>). The latest version of any
|
---|
[0c3e9be8] | 164 | <emphasis>currently maintained</emphasis> version of Openssl should be
|
---|
[59a6b63] | 165 | satisfactory if already installed.
|
---|
[5be3a74] | 166 | </para>
|
---|
| 167 | </note>
|
---|
| 168 |
|
---|
[b81991e1] | 169 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c1ae13c] | 170 | <para role="optional">
|
---|
[6c64623f] | 171 | <xref linkend="curl"/>,
|
---|
[c1ae13c] | 172 | <xref linkend="dbus-glib"/>,
|
---|
| 173 | <xref linkend="doxygen"/>,
|
---|
[d525da9c] | 174 | <xref linkend="GConf"/>,
|
---|
[babf0a0] | 175 | <xref role="runtime" linkend="ffmpeg"/> (runtime, to play mov, mp3 or mp4 files),
|
---|
[9d2268bb] | 176 | <xref linkend="libwebp"/>,
|
---|
[26fa7d2] | 177 | <xref linkend="openjdk"/>,
|
---|
[0e37869] | 178 | <xref linkend="startup-notification"/>,
|
---|
[566fcae] | 179 | <xref linkend="valgrind"/>,
|
---|
[6000a3e] | 180 | <xref linkend="wget"/>,
|
---|
[73b06df] | 181 | <xref linkend="wireless_tools"/>,
|
---|
[b09ed46a] | 182 | <ulink url="https://hunspell.github.io/">Hunspell</ulink>,
|
---|
[7090d94] | 183 | <phrase revision="sysv"><ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink></phrase>
|
---|
| 184 | <phrase revision="systemd"><xref linkend="liboauth"/></phrase>,
|
---|
[14de4227] | 185 | <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>,
|
---|
| 186 | and (with the patch)
|
---|
| 187 | <xref linkend="graphite2"/> and
|
---|
| 188 | <xref linkend="harfbuzz"/>
|
---|
[c1ae13c] | 189 | </para>
|
---|
| 190 |
|
---|
| 191 | <para condition="html" role="usernotes">
|
---|
| 192 | User Notes: <ulink url="&blfs-wiki;/firefox"/>
|
---|
| 193 | </para>
|
---|
[b81991e1] | 194 | </sect2>
|
---|
| 195 |
|
---|
| 196 | <sect2 role="installation">
|
---|
| 197 | <title>Installation of Firefox</title>
|
---|
| 198 |
|
---|
[f72a04a] | 199 | <para>
|
---|
[b9f61df] | 200 | The configuration of <application>Firefox</application> is accomplished
|
---|
| 201 | by creating a <filename>mozconfig</filename> file containing the desired
|
---|
| 202 | configuration options. A default <filename>mozconfig</filename> is
|
---|
| 203 | created below. To see the entire list of available configuration options
|
---|
[a0d558d] | 204 | (and an abbreviated description of some of them), issue <command>./configure
|
---|
[c1ae13c] | 205 | --help</command>. You may also wish to review the entire file and
|
---|
[b9f61df] | 206 | uncomment any other desired options. Create the file by issuing the
|
---|
| 207 | following command:
|
---|
[c1ae13c] | 208 | </para>
|
---|
[5a13c45] | 209 |
|
---|
[0e37869] | 210 | <screen><userinput>cat > mozconfig << "EOF"
|
---|
[dcb0fe6] | 211 | <literal># If you have a multicore machine, all cores will be used by default.
|
---|
[a0d558d] | 212 | # You can change the number of non-rust jobs by setting a valid number
|
---|
| 213 | # of cores in this option, but when rust crates are being compiled
|
---|
| 214 | # jobs will be scheduled for all the online CPU cores.
|
---|
[dcb0fe6] | 215 | #mk_add_options MOZ_MAKE_FLAGS="-j1"
|
---|
| 216 |
|
---|
[7090d94] | 217 | # If you have installed dbus-glib, comment out this line:
|
---|
[74eaf91] | 218 | ac_add_options --disable-dbus
|
---|
[aed37975] | 219 |
|
---|
[32cca2cd] | 220 | # If you have installed dbus-glib, and you have installed (or will install)
|
---|
| 221 | # wireless-tools, and you wish to use geolocation web services, comment out
|
---|
| 222 | # this line
|
---|
[6d1bf0e] | 223 | ac_add_options --disable-necko-wifi
|
---|
| 224 |
|
---|
[ad5a97d] | 225 | # API Keys for geolocation APIs - necko-wifi (above) is required for MLS
|
---|
| 226 | # Uncomment the following line if you wish to use Mozilla Location Service
|
---|
| 227 | #ac_add_options --with-mozilla-api-keyfile=$PWD/mozilla-key
|
---|
| 228 |
|
---|
| 229 | # Uncomment the following line if you wish to use Google's geolocaton API
|
---|
| 230 | # (needed for use with saved maps with Google Maps)
|
---|
| 231 | #ac_add_options --with-google-api-keyfile=$PWD/google-key
|
---|
| 232 |
|
---|
[48ae92a] | 233 | # Uncomment these lines if you have installed optional dependencies:
|
---|
[0e37869] | 234 | #ac_add_options --enable-system-hunspell
|
---|
| 235 | #ac_add_options --enable-startup-notification
|
---|
[495ebe07] | 236 |
|
---|
[81b3e7fd] | 237 | # Uncomment the following option if you have not installed PulseAudio
|
---|
| 238 | #ac_add_options --disable-pulseaudio
|
---|
| 239 | # and uncomment this if you installed alsa-lib instead of PulseAudio
|
---|
| 240 | #ac_add_options --enable-alsa
|
---|
[89cdb63d] | 241 |
|
---|
| 242 | # If you have installed GConf, comment out this line
|
---|
| 243 | ac_add_options --disable-gconf
|
---|
| 244 |
|
---|
[e29a0b1] | 245 | # Stylo is the new CSS code, including the rust 'style'
|
---|
[a0d558d] | 246 | # package. It is enabled by default but requires clang.
|
---|
| 247 | # Uncomment this if you do not wish to use stylo.
|
---|
| 248 | #ac_add_options --disable-stylo
|
---|
[e29a0b1] | 249 |
|
---|
[0e37869] | 250 | # Comment out following options if you have not installed
|
---|
| 251 | # recommended dependencies:
|
---|
| 252 | ac_add_options --enable-system-sqlite
|
---|
| 253 | ac_add_options --with-system-libevent
|
---|
| 254 | ac_add_options --with-system-libvpx
|
---|
| 255 | ac_add_options --with-system-nspr
|
---|
| 256 | ac_add_options --with-system-nss
|
---|
[7bf10b1] | 257 | ac_add_options --with-system-icu
|
---|
[0e37869] | 258 |
|
---|
[14de4227] | 259 | # If you are going to apply the patch for system graphite
|
---|
| 260 | # and system harfbuzz, uncomment these lines:
|
---|
| 261 | #ac_add_options --with-system-graphite2
|
---|
| 262 | #ac_add_options --with-system-harfbuzz
|
---|
| 263 |
|
---|
| 264 | # Stripping is now enabled by default.
|
---|
| 265 | # Uncomment these lines if you need to run a debugger:
|
---|
| 266 | #ac_add_options --disable-strip
|
---|
| 267 | #ac_add_options --disable-install-strip
|
---|
| 268 |
|
---|
[7251b1d] | 269 | # The BLFS editors recommend not changing anything below this line:
|
---|
[495ebe07] | 270 | ac_add_options --prefix=/usr
|
---|
[0e37869] | 271 | ac_add_options --enable-application=browser
|
---|
[495ebe07] | 272 |
|
---|
[5f5dcc2] | 273 | ac_add_options --disable-crashreporter
|
---|
| 274 | ac_add_options --disable-updater
|
---|
[57a8df2] | 275 | # enabling the tests will use a lot more space and significantly
|
---|
| 276 | # increase the build time, for no obvious benefit.
|
---|
[0e37869] | 277 | ac_add_options --disable-tests
|
---|
| 278 |
|
---|
[f067fa94] | 279 | # Optimization for size is broken with gcc7
|
---|
[98484411] | 280 | ac_add_options --enable-optimize="-O2"
|
---|
[0e37869] | 281 |
|
---|
| 282 | ac_add_options --enable-official-branding
|
---|
| 283 |
|
---|
[e29a0b1] | 284 | # From firefox-40, using system cairo caused firefox to crash
|
---|
| 285 | # frequently when it was doing background rendering in a tab.
|
---|
| 286 | # This appears to again work in firefox-56
|
---|
| 287 | ac_add_options --enable-system-cairo
|
---|
[41f2e90] | 288 | ac_add_options --enable-system-ffi
|
---|
[0e37869] | 289 | ac_add_options --enable-system-pixman
|
---|
| 290 |
|
---|
[5f5dcc2] | 291 | ac_add_options --with-pthreads
|
---|
[0e37869] | 292 |
|
---|
| 293 | ac_add_options --with-system-bz2
|
---|
[a0ace670] | 294 | ac_add_options --with-system-jpeg
|
---|
| 295 | ac_add_options --with-system-png
|
---|
| 296 | ac_add_options --with-system-zlib
|
---|
[aed37975] | 297 |
|
---|
[4def8b6] | 298 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
|
---|
[0e37869] | 299 | EOF</userinput></screen>
|
---|
[b9b7146] | 300 |
|
---|
[c1ae13c] | 301 | <para>
|
---|
| 302 | Compile <application>Firefox</application> by issuing the following
|
---|
| 303 | commands:
|
---|
| 304 | </para>
|
---|
[9572e88] | 305 |
|
---|
[14de4227] | 306 | <para>
|
---|
| 307 | If you have installed system versions of graphite2 and harfbuzz and wish
|
---|
| 308 | firefox to use those instead of its shipped versions, apply the patch and
|
---|
| 309 | uncomment the appropriate entries in the <filename>mozconfig</filename>
|
---|
[346e269] | 310 | file.
|
---|
[14de4227] | 311 | </para>
|
---|
| 312 |
|
---|
[0a4a5cd] | 313 | <screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-system_graphite2_harfbuzz-1.patch</userinput></screen>
|
---|
[14de4227] | 314 |
|
---|
[ad5a97d] | 315 | <para>
|
---|
| 316 | If the geolocation APIs are needed:
|
---|
| 317 | </para>
|
---|
| 318 |
|
---|
[e5c8de01] | 319 | <note>
|
---|
| 320 | <para>
|
---|
| 321 | <!-- Taken from Arch Linux - an immensely helpful link - Thanks -->
|
---|
| 322 | The Google and Mozilla API Keys below are specific to LFS. If using
|
---|
| 323 | these instructions for another distro, or if you intend to distribute
|
---|
| 324 | binary copies of the software using these instructions, please obtain
|
---|
| 325 | your own keys following the instructions located at
|
---|
| 326 | <ulink url="http://www.chromium.org/developers/how-tos/api-keys"/> and
|
---|
| 327 | <ulink url="https://location.services.mozilla.com/api"/> respectively.
|
---|
| 328 | <!-- BLFS Devs, register an account at Google with your
|
---|
| 329 | @linuxfromscratch.org email address, and I'll make you an administrator
|
---|
| 330 | for the 'Google APIs for LFS' project (where the API and OAuth keys
|
---|
| 331 | were created for use in the book).-->
|
---|
| 332 | </para>
|
---|
| 333 | </note>
|
---|
| 334 |
|
---|
[ad5a97d] | 335 | <screen><userinput>echo "AIzaSyDxKL42zsPjbke5O8_rPVpVrLrJ8aeE9rQ" > google-key
|
---|
| 336 | echo "d2284a20-0505-4927-a809-7ffaf4d91e55" > mozilla-key</userinput></screen>
|
---|
| 337 |
|
---|
[8b3a8979] | 338 | <note><para>
|
---|
[9572e88] | 339 | If you are compiling <application>Firefox</application> in chroot, make
|
---|
| 340 | sure you have <envar>$SHELL</envar> environment variable set or prepend
|
---|
[566fcae] | 341 | <envar>SHELL=/bin/sh</envar>.
|
---|
[8b3a8979] | 342 | </para></note>
|
---|
[9516a4f] | 343 |
|
---|
[a0d558d] | 344 | <!-- the BINDGEN_CFLAGS are to work around
|
---|
| 345 | https://bugzilla.mozilla.org/show_bug.cgi?id=1341234
|
---|
| 346 | which is reported to be fixed in ff58 -->
|
---|
| 347 | <screen><userinput>export BINDGEN_CFLAGS=$(pkg-config --cflags nspr pixman-1) &&
|
---|
| 348 | make -f client.mk &&
|
---|
| 349 | unset BINDGEN_CFLAGS</userinput></screen>
|
---|
[bccbdaea] | 350 |
|
---|
[0e37869] | 351 | <para>
|
---|
[57a8df2] | 352 | The <filename>mozconfig</filename> above disables the tests because
|
---|
| 353 | they use a lot more time and disk space for no obvious benefit. If
|
---|
[ecffcbbc] | 354 | you have nevertheless enabled them, you can run the tests by executing
|
---|
| 355 | <command>./mach gtest</command>. This will require a network connection,
|
---|
| 356 | and to be run from within an Xorg session - there is a popup dialog
|
---|
| 357 | when it fails to connect to ALSA (that does not create a failed test).
|
---|
| 358 | One or two tests will fail. To see the details of the failure(s) you
|
---|
| 359 | will need to log the output from that command so that you can review it.
|
---|
[0e37869] | 360 | </para>
|
---|
[01ce75f8] | 361 |
|
---|
[495ebe07] | 362 | <para>
|
---|
[b9f61df] | 363 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[c1ae13c] | 364 | </para>
|
---|
[5a13c45] | 365 |
|
---|
[da67029] | 366 | <screen role="root"><userinput>make -f client.mk install INSTALL_SDK= &&
|
---|
[89cdb63d] | 367 | chown -R 0:0 /usr/lib/firefox-&firefox-version; &&
|
---|
[5ee1266] | 368 |
|
---|
| 369 | mkdir -pv /usr/lib/mozilla/plugins &&
|
---|
[a5708ba] | 370 | ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userinput></screen>
|
---|
[aee479c] | 371 | <!--
|
---|
[a5708ba] | 372 | <para>
|
---|
| 373 | Set environment variables back to their values:
|
---|
| 374 | </para>
|
---|
| 375 |
|
---|
| 376 | <screen><userinput>export CFLAGS=$CFLAGS_HOLD &&
|
---|
[6c4bb8f] | 377 | export CXXFLAGS=$CXXFLAGS_HOLD &&
|
---|
| 378 | unset CFLAGS_HOLD CXXFLAGS_HOLD</userinput></screen>
|
---|
[aee479c] | 379 | -->
|
---|
[01ce75f8] | 380 |
|
---|
[b81991e1] | 381 | </sect2>
|
---|
| 382 |
|
---|
[361df3e] | 383 | <sect2 role="commands">
|
---|
| 384 | <title>Command Explanations</title>
|
---|
[7d09fcb9] | 385 |
|
---|
[a0d558d] | 386 | <para>
|
---|
| 387 | <command>export BINDGEN_CFLAGS=$(pkg-config --cflags nspr pixman-1)</command>:
|
---|
| 388 | This works around a bug in the style rust package to allow it to find the
|
---|
| 389 | system headers for <package>nspr</package> and <package>pixman</package>.
|
---|
| 390 | </para>
|
---|
| 391 |
|
---|
[c1ae13c] | 392 | <para>
|
---|
| 393 | <command>make -f client.mk ...</command>: Mozilla products are packaged to
|
---|
| 394 | allow the use of a configuration file which can be used to pass the
|
---|
| 395 | configuration settings to the <command>configure</command> command.
|
---|
| 396 | <command>make</command> uses the <filename>client.mk</filename> file to
|
---|
| 397 | get initial configuration and setup parameters.
|
---|
| 398 | </para>
|
---|
| 399 |
|
---|
| 400 | <para>
|
---|
[ec64d28] | 401 | <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
|
---|
[c1ae13c] | 402 | that <filename class="directory">/usr/lib/mozilla/plugins</filename>
|
---|
| 403 | exists.
|
---|
| 404 | </para>
|
---|
| 405 |
|
---|
| 406 | <para>
|
---|
[24da103] | 407 | <command>ln -sv ... /usr/lib/firefox-&firefox-version;/browser</command>:
|
---|
| 408 | This command creates a symbolic link to <filename
|
---|
| 409 | class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
|
---|
| 410 | needed, as <application>Firefox</application> checks <filename
|
---|
| 411 | class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
|
---|
| 412 | symbolic link is made to keep all the plugins installed in one folder.
|
---|
[c1ae13c] | 413 | </para>
|
---|
[fa1bc3e] | 414 |
|
---|
[b81991e1] | 415 | </sect2>
|
---|
| 416 |
|
---|
[88cec02] | 417 | <sect2 role="configuration">
|
---|
| 418 | <title>Configuring Firefox</title>
|
---|
| 419 |
|
---|
[c1ae13c] | 420 | <para>
|
---|
| 421 | If you use a desktop environment like <application>Gnome</application> or
|
---|
| 422 | <application>KDE</application> you may like to create a
|
---|
| 423 | <filename>firefox.desktop</filename> file so that
|
---|
| 424 | <application>Firefox</application> appears in the panel's menus. If you
|
---|
| 425 | didn't enable startup-notification in your mozconfig change the
|
---|
| 426 | StartupNotify line to false. As the
|
---|
| 427 | <systemitem class="username">root</systemitem> user:
|
---|
| 428 | </para>
|
---|
[31de6e7] | 429 |
|
---|
[eb5f847a] | 430 | <screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
---|
[0e37869] | 431 | mkdir -pv /usr/share/pixmaps &&
|
---|
[74f73ede] | 432 |
|
---|
[c099902d] | 433 | cat > /usr/share/applications/firefox.desktop << "EOF" &&
|
---|
[fcd66369] | 434 | <literal>[Desktop Entry]
|
---|
[31de6e7] | 435 | Encoding=UTF-8
|
---|
[0e37869] | 436 | Name=Firefox Web Browser
|
---|
| 437 | Comment=Browse the World Wide Web
|
---|
| 438 | GenericName=Web Browser
|
---|
| 439 | Exec=firefox %u
|
---|
| 440 | Terminal=false
|
---|
[31de6e7] | 441 | Type=Application
|
---|
| 442 | Icon=firefox
|
---|
[0e37869] | 443 | Categories=GNOME;GTK;Network;WebBrowser;
|
---|
| 444 | MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
|
---|
[fcd66369] | 445 | StartupNotify=true</literal>
|
---|
[31de6e7] | 446 | EOF
|
---|
[74f73ede] | 447 |
|
---|
[376c8c0] | 448 | ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
|
---|
[0e37869] | 449 | /usr/share/pixmaps/firefox.png</userinput></screen>
|
---|
| 450 |
|
---|
[88cec02] | 451 | </sect2>
|
---|
| 452 |
|
---|
[b81991e1] | 453 | <sect2 role="content">
|
---|
| 454 | <title>Contents</title>
|
---|
| 455 |
|
---|
| 456 | <segmentedlist>
|
---|
| 457 | <segtitle>Installed Programs</segtitle>
|
---|
| 458 | <segtitle>Installed Libraries</segtitle>
|
---|
[c5f005b] | 459 | <segtitle>Installed Directory</segtitle>
|
---|
[b81991e1] | 460 |
|
---|
| 461 | <seglistitem>
|
---|
[0e37869] | 462 | <seg>
|
---|
| 463 | firefox
|
---|
| 464 | </seg>
|
---|
[c1ae13c] | 465 | <seg>
|
---|
| 466 | Numerous libraries, browser components, plugins, extensions, and
|
---|
[dbc7eaed] | 467 | helper modules installed in /usr/lib/firefox-&firefox-version;
|
---|
[c1ae13c] | 468 | </seg>
|
---|
[7498751] | 469 | <seg>
|
---|
[7e1afc9] | 470 | /usr/lib/firefox-&firefox-version; and /usr/lib/mozilla
|
---|
[7498751] | 471 | </seg>
|
---|
[b81991e1] | 472 | </seglistitem>
|
---|
| 473 | </segmentedlist>
|
---|
| 474 |
|
---|
| 475 | <variablelist>
|
---|
| 476 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 477 | <?dbfo list-presentation="list"?>
|
---|
| 478 | <?dbhtml list-presentation="table"?>
|
---|
| 479 |
|
---|
| 480 | <varlistentry id="firefox-prog">
|
---|
| 481 | <term><command>firefox</command></term>
|
---|
| 482 | <listitem>
|
---|
[c1ae13c] | 483 | <para>
|
---|
[7e1afc9] | 484 | is a <application>GTK+-3</application> internet browser that uses
|
---|
| 485 | the Mozilla Gecko rendering engine.
|
---|
[c1ae13c] | 486 | </para>
|
---|
[b81991e1] | 487 | <indexterm zone="firefox firefox-prog">
|
---|
| 488 | <primary sortas="b-firefox">firefox</primary>
|
---|
| 489 | </indexterm>
|
---|
| 490 | </listitem>
|
---|
| 491 | </varlistentry>
|
---|
[0e37869] | 492 |
|
---|
[b81991e1] | 493 | </variablelist>
|
---|
[0e37869] | 494 |
|
---|
[b81991e1] | 495 | </sect2>
|
---|
[0e37869] | 496 |
|
---|
[4d37129] | 497 | </sect1>
|
---|