[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 " ">
|
---|
[e628b536] | 9 | <!ENTITY firefox-md5sum "dfa830ac99156ece5e580c82d1abdead">
|
---|
| 10 | <!ENTITY firefox-size "247 MB">
|
---|
[5c2b024] | 11 | <!-- NB with stylo, much of the build uses rust, and therefore cargo files.
|
---|
[9da4cc6f] | 12 | But the extra cached cargo files, if any, seem to be minimal -->
|
---|
[e628b536] | 13 | <!ENTITY firefox-buildsize "9.5 GB (142 MB installed) without tests">
|
---|
| 14 | <!ENTITY firefox-time "25 SBU (with parallelism=4) without tests">
|
---|
[f939f05] | 15 | ]>
|
---|
| 16 |
|
---|
[ffe47ca2] | 17 | <sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
|
---|
[b81991e1] | 18 | <?dbhtml filename="firefox.html" ?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>Firefox-&firefox-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="firefox">
|
---|
| 28 | <primary sortas="a-Firefox">Firefox</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to Firefox</title>
|
---|
| 33 |
|
---|
[c1ae13c] | 34 | <para>
|
---|
| 35 | <application>Firefox</application> is a stand-alone browser based on the
|
---|
| 36 | <application>Mozilla</application> codebase.
|
---|
| 37 | </para>
|
---|
[b81991e1] | 38 |
|
---|
[b96dc68] | 39 | &lfs83_checked;
|
---|
[76ae9a2] | 40 |
|
---|
[b81991e1] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[c1ae13c] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&firefox-download-http;"/>
|
---|
| 46 | </para>
|
---|
[b81991e1] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[c1ae13c] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&firefox-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[b81991e1] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[c1ae13c] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &firefox-md5sum;
|
---|
| 56 | </para>
|
---|
[b81991e1] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[c1ae13c] | 59 | <para>
|
---|
| 60 | Download size: &firefox-size;
|
---|
| 61 | </para>
|
---|
[b81991e1] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[c1ae13c] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &firefox-buildsize;
|
---|
| 66 | </para>
|
---|
[b81991e1] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[c1ae13c] | 69 | <para>
|
---|
| 70 | Estimated build time: &firefox-time;
|
---|
| 71 | </para>
|
---|
[b81991e1] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
[14de4227] | 75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 76 | <itemizedlist spacing="compact">
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>
|
---|
| 79 | Optional patch to allow system versions of <xref linkend="graphite2"/>
|
---|
[ecffcbbc] | 80 | and <xref linkend="harfbuzz"/>:
|
---|
[ef82450c] | 81 | <ulink url="&patch-root;/firefox-&firefox-version;-system_graphite2_harfbuzz-1.patch"/>
|
---|
[14de4227] | 82 | </para>
|
---|
| 83 | </listitem>
|
---|
| 84 | </itemizedlist>
|
---|
| 85 |
|
---|
[f06c692] | 86 | <note>
|
---|
| 87 | <para>
|
---|
[8d0bc761] | 88 | Extracting the tarball
|
---|
| 89 | will reset the permissions of the current directory to 0755 if you
|
---|
[765c2a7] | 90 | have permission to do that. If you do this in a directory where
|
---|
[37bf7b1] | 91 | the sticky bit is set, such
|
---|
[dc9a18a] | 92 | as <filename class="directory">/tmp</filename> it will end with error
|
---|
| 93 | messages:
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <literallayout>tar: .: Cannot utime: Operation not permitted
|
---|
| 97 | tar: .: Cannot change mode to rwxr-xr-t: Operation not permitted
|
---|
| 98 | tar: Exiting with failure status due to previous errors
|
---|
| 99 | </literallayout>
|
---|
| 100 |
|
---|
| 101 | <para>
|
---|
| 102 | This does finish with non-zero status, but it does
|
---|
| 103 | <emphasis>NOT</emphasis> mean there is a real problem.
|
---|
| 104 | Do not untar as the <systemitem class="username">root</systemitem> user
|
---|
| 105 | in a directory where the sticky bit is set - that will unset it.
|
---|
[f06c692] | 106 | </para>
|
---|
[8d0bc761] | 107 |
|
---|
| 108 | <para>
|
---|
[406e5ffe] | 109 | As with other large packages which use C++ (or rust), the SBU times
|
---|
| 110 | to build this vary more widely than you might expect. Also, almost 6GB
|
---|
| 111 | of real memory is used during the final link and the SBUs can increase
|
---|
| 112 | significantly if the machine has to swap to do this.
|
---|
[8d0bc761] | 113 | </para>
|
---|
| 114 |
|
---|
[e628b536] | 115 | <para>
|
---|
| 116 | The mach build system (Python scripts) can be somewhat unreliable: if
|
---|
| 117 | the build fails and reports an Error, it can still return a status of
|
---|
| 118 | success, causing a scripted build to try to install (which does not rerun
|
---|
| 119 | the build), fail during the preparations for installing, but still exit
|
---|
| 120 | with a status of success. Also, on occasion it may limit itself to only
|
---|
| 121 | running one set of jobs - that will make the build take about 3 times as
|
---|
| 122 | long as running with four sets of jobs.
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
[8d0bc761] | 125 | <para>
|
---|
| 126 | Although upstream prefer to use <application>PulseAudio</application>,
|
---|
| 127 | for the moment <application>Alsa</application> can still be used. Both
|
---|
| 128 | may need runtime configuration to get sound working.
|
---|
| 129 | </para>
|
---|
[f06c692] | 130 | </note>
|
---|
| 131 |
|
---|
[b81991e1] | 132 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
| 133 |
|
---|
| 134 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[c1ae13c] | 135 | <para role="required">
|
---|
[14de4227] | 136 | <xref linkend="autoconf213"/>,
|
---|
[9da4cc6f] | 137 | <application>Clang</application> (from <xref linkend="llvm"/>),
|
---|
[ac105103] | 138 | both <xref linkend="gtk3"/> and
|
---|
[9da4cc6f] | 139 | <xref linkend="gtk2"/>,
|
---|
[326f830] | 140 | <xref linkend="libnotify"/>,
|
---|
[59a6b63] | 141 | <xref linkend="nss"/>,
|
---|
[be0bd12] | 142 | <xref linkend="pulseaudio"/>
|
---|
[81b3e7fd] | 143 | (or
|
---|
[9da4cc6f] | 144 | <xref linkend="alsa-lib"/> if you edit the mozconfig;
|
---|
[326f830] | 145 | now deprecated by mozilla), in either case please read the
|
---|
| 146 | Configuration Information,
|
---|
[4c6edac] | 147 | <xref linkend="rust"/>,
|
---|
[59a6b63] | 148 | <xref linkend="unzip"/>,
|
---|
[479e03a] | 149 | <xref linkend="yasm"/>, and
|
---|
| 150 | <xref linkend="zip"/>
|
---|
[c1ae13c] | 151 | </para>
|
---|
| 152 |
|
---|
[1555d3d] | 153 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[c1ae13c] | 154 | <para role="recommended">
|
---|
[7bf10b1] | 155 | <xref linkend="icu"/>,
|
---|
[0e37869] | 156 | <xref linkend="libevent"/>,
|
---|
[9da4cc6f] | 157 | <xref linkend="libvpx"/>, and
|
---|
[a30a874] | 158 | <xref linkend="sqlite"/>
|
---|
[c1ae13c] | 159 | </para>
|
---|
[1555d3d] | 160 |
|
---|
[0e37869] | 161 | <note>
|
---|
| 162 | <para>
|
---|
[b9f61df] | 163 | If you don't install recommended dependencies, then internal copies of
|
---|
| 164 | those packages will be used. They might be tested to work, but they can
|
---|
| 165 | be out of date or contain security holes.
|
---|
[0e37869] | 166 | </para>
|
---|
| 167 | </note>
|
---|
[8d0bc761] | 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"/>,
|
---|
[7090d94] | 182 | <phrase revision="sysv"><ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink></phrase>
|
---|
| 183 | <phrase revision="systemd"><xref linkend="liboauth"/></phrase>,
|
---|
[14de4227] | 184 | <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>,
|
---|
| 185 | and (with the patch)
|
---|
| 186 | <xref linkend="graphite2"/> and
|
---|
| 187 | <xref linkend="harfbuzz"/>
|
---|
[c1ae13c] | 188 | </para>
|
---|
| 189 |
|
---|
| 190 | <para condition="html" role="usernotes">
|
---|
| 191 | User Notes: <ulink url="&blfs-wiki;/firefox"/>
|
---|
| 192 | </para>
|
---|
[b81991e1] | 193 | </sect2>
|
---|
| 194 |
|
---|
| 195 | <sect2 role="installation">
|
---|
| 196 | <title>Installation of Firefox</title>
|
---|
| 197 |
|
---|
[f72a04a] | 198 | <para>
|
---|
[b9f61df] | 199 | The configuration of <application>Firefox</application> is accomplished
|
---|
| 200 | by creating a <filename>mozconfig</filename> file containing the desired
|
---|
| 201 | configuration options. A default <filename>mozconfig</filename> is
|
---|
| 202 | created below. To see the entire list of available configuration options
|
---|
[888e303] | 203 | (and an abbreviated description of some of them), issue <command>./mach
|
---|
| 204 | configure && ./configure --help | less</command>. You may also
|
---|
| 205 | wish to review the entire file and uncomment any other desired options.
|
---|
| 206 | Create the file by issuing the following command:
|
---|
[c1ae13c] | 207 | </para>
|
---|
[5a13c45] | 208 |
|
---|
[0e37869] | 209 | <screen><userinput>cat > mozconfig << "EOF"
|
---|
[dcb0fe6] | 210 | <literal># If you have a multicore machine, all cores will be used by default.
|
---|
[a0d558d] | 211 | # You can change the number of non-rust jobs by setting a valid number
|
---|
| 212 | # of cores in this option, but when rust crates are being compiled
|
---|
[8d0bc761] | 213 | # jobs will be scheduled for all the available CPU cores.
|
---|
[dcb0fe6] | 214 | #mk_add_options MOZ_MAKE_FLAGS="-j1"
|
---|
| 215 |
|
---|
[7090d94] | 216 | # If you have installed dbus-glib, comment out this line:
|
---|
[74eaf91] | 217 | ac_add_options --disable-dbus
|
---|
[aed37975] | 218 |
|
---|
[32cca2cd] | 219 | # If you have installed dbus-glib, and you have installed (or will install)
|
---|
| 220 | # wireless-tools, and you wish to use geolocation web services, comment out
|
---|
| 221 | # this line
|
---|
[6d1bf0e] | 222 | ac_add_options --disable-necko-wifi
|
---|
| 223 |
|
---|
[ad5a97d] | 224 | # API Keys for geolocation APIs - necko-wifi (above) is required for MLS
|
---|
| 225 | # Uncomment the following line if you wish to use Mozilla Location Service
|
---|
| 226 | #ac_add_options --with-mozilla-api-keyfile=$PWD/mozilla-key
|
---|
| 227 |
|
---|
| 228 | # Uncomment the following line if you wish to use Google's geolocaton API
|
---|
| 229 | # (needed for use with saved maps with Google Maps)
|
---|
| 230 | #ac_add_options --with-google-api-keyfile=$PWD/google-key
|
---|
| 231 |
|
---|
[b6e52eed] | 232 | # Uncomment this line if you have installed startup-notification:
|
---|
[0e37869] | 233 | #ac_add_options --enable-startup-notification
|
---|
[495ebe07] | 234 |
|
---|
[81b3e7fd] | 235 | # Uncomment the following option if you have not installed PulseAudio
|
---|
| 236 | #ac_add_options --disable-pulseaudio
|
---|
| 237 | # and uncomment this if you installed alsa-lib instead of PulseAudio
|
---|
| 238 | #ac_add_options --enable-alsa
|
---|
[89cdb63d] | 239 |
|
---|
| 240 | # If you have installed GConf, comment out this line
|
---|
| 241 | ac_add_options --disable-gconf
|
---|
| 242 |
|
---|
[ece04000] | 243 | # From firefox-61, the stylo CSS code can no-longer be disabled
|
---|
[e29a0b1] | 244 |
|
---|
[0e37869] | 245 | # Comment out following options if you have not installed
|
---|
| 246 | # recommended dependencies:
|
---|
| 247 | ac_add_options --enable-system-sqlite
|
---|
| 248 | ac_add_options --with-system-libevent
|
---|
| 249 | ac_add_options --with-system-libvpx
|
---|
| 250 | ac_add_options --with-system-nspr
|
---|
| 251 | ac_add_options --with-system-nss
|
---|
[7bf10b1] | 252 | ac_add_options --with-system-icu
|
---|
[0e37869] | 253 |
|
---|
[14de4227] | 254 | # If you are going to apply the patch for system graphite
|
---|
| 255 | # and system harfbuzz, uncomment these lines:
|
---|
| 256 | #ac_add_options --with-system-graphite2
|
---|
| 257 | #ac_add_options --with-system-harfbuzz
|
---|
| 258 |
|
---|
| 259 | # Stripping is now enabled by default.
|
---|
| 260 | # Uncomment these lines if you need to run a debugger:
|
---|
| 261 | #ac_add_options --disable-strip
|
---|
| 262 | #ac_add_options --disable-install-strip
|
---|
| 263 |
|
---|
[7251b1d] | 264 | # The BLFS editors recommend not changing anything below this line:
|
---|
[495ebe07] | 265 | ac_add_options --prefix=/usr
|
---|
[0e37869] | 266 | ac_add_options --enable-application=browser
|
---|
[495ebe07] | 267 |
|
---|
[5f5dcc2] | 268 | ac_add_options --disable-crashreporter
|
---|
| 269 | ac_add_options --disable-updater
|
---|
[57a8df2] | 270 | # enabling the tests will use a lot more space and significantly
|
---|
| 271 | # increase the build time, for no obvious benefit.
|
---|
[0e37869] | 272 | ac_add_options --disable-tests
|
---|
| 273 |
|
---|
[9da4cc6f] | 274 | # Optimization for size is broken with gcc7 and later
|
---|
[98484411] | 275 | ac_add_options --enable-optimize="-O2"
|
---|
[0e37869] | 276 |
|
---|
| 277 | ac_add_options --enable-official-branding
|
---|
| 278 |
|
---|
[9da4cc6f] | 279 | # From firefox-61 system cairo is not supported
|
---|
| 280 |
|
---|
[41f2e90] | 281 | ac_add_options --enable-system-ffi
|
---|
[0e37869] | 282 | ac_add_options --enable-system-pixman
|
---|
| 283 |
|
---|
[e628b536] | 284 | # From firefox-62 --with-pthreads is not recognized
|
---|
[0e37869] | 285 |
|
---|
| 286 | ac_add_options --with-system-bz2
|
---|
[a0ace670] | 287 | ac_add_options --with-system-jpeg
|
---|
| 288 | ac_add_options --with-system-png
|
---|
| 289 | ac_add_options --with-system-zlib
|
---|
[aed37975] | 290 |
|
---|
[4def8b6] | 291 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
|
---|
[0e37869] | 292 | EOF</userinput></screen>
|
---|
[b9b7146] | 293 |
|
---|
[c1ae13c] | 294 | <para>
|
---|
| 295 | Compile <application>Firefox</application> by issuing the following
|
---|
| 296 | commands:
|
---|
| 297 | </para>
|
---|
[9572e88] | 298 |
|
---|
[14de4227] | 299 | <para>
|
---|
| 300 | If you have installed system versions of graphite2 and harfbuzz and wish
|
---|
| 301 | firefox to use those instead of its shipped versions, apply the patch and
|
---|
| 302 | uncomment the appropriate entries in the <filename>mozconfig</filename>
|
---|
[346e269] | 303 | file.
|
---|
[14de4227] | 304 | </para>
|
---|
| 305 |
|
---|
[0a4a5cd] | 306 | <screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-system_graphite2_harfbuzz-1.patch</userinput></screen>
|
---|
[14de4227] | 307 |
|
---|
[ad5a97d] | 308 | <para>
|
---|
| 309 | If the geolocation APIs are needed:
|
---|
| 310 | </para>
|
---|
| 311 |
|
---|
[e5c8de01] | 312 | <note>
|
---|
| 313 | <para>
|
---|
| 314 | <!-- Taken from Arch Linux - an immensely helpful link - Thanks -->
|
---|
| 315 | The Google and Mozilla API Keys below are specific to LFS. If using
|
---|
| 316 | these instructions for another distro, or if you intend to distribute
|
---|
| 317 | binary copies of the software using these instructions, please obtain
|
---|
| 318 | your own keys following the instructions located at
|
---|
| 319 | <ulink url="http://www.chromium.org/developers/how-tos/api-keys"/> and
|
---|
| 320 | <ulink url="https://location.services.mozilla.com/api"/> respectively.
|
---|
| 321 | <!-- BLFS Devs, register an account at Google with your
|
---|
| 322 | @linuxfromscratch.org email address, and I'll make you an administrator
|
---|
| 323 | for the 'Google APIs for LFS' project (where the API and OAuth keys
|
---|
| 324 | were created for use in the book).-->
|
---|
| 325 | </para>
|
---|
| 326 | </note>
|
---|
| 327 |
|
---|
[ad5a97d] | 328 | <screen><userinput>echo "AIzaSyDxKL42zsPjbke5O8_rPVpVrLrJ8aeE9rQ" > google-key
|
---|
| 329 | echo "d2284a20-0505-4927-a809-7ffaf4d91e55" > mozilla-key</userinput></screen>
|
---|
| 330 |
|
---|
[8b3a8979] | 331 | <note><para>
|
---|
[9572e88] | 332 | If you are compiling <application>Firefox</application> in chroot, make
|
---|
| 333 | sure you have <envar>$SHELL</envar> environment variable set or prepend
|
---|
[566fcae] | 334 | <envar>SHELL=/bin/sh</envar>.
|
---|
[8b3a8979] | 335 | </para></note>
|
---|
[9516a4f] | 336 |
|
---|
[3bdfc9fd] | 337 | <para>
|
---|
| 338 | Invoke the Python script to compile the package:
|
---|
| 339 | </para>
|
---|
| 340 |
|
---|
[700fd47] | 341 | <screen><userinput>./mach build</userinput></screen>
|
---|
[3bdfc9fd] | 342 |
|
---|
[0e37869] | 343 | <para>
|
---|
[57a8df2] | 344 | The <filename>mozconfig</filename> above disables the tests because
|
---|
| 345 | they use a lot more time and disk space for no obvious benefit. If
|
---|
[ecffcbbc] | 346 | you have nevertheless enabled them, you can run the tests by executing
|
---|
| 347 | <command>./mach gtest</command>. This will require a network connection,
|
---|
| 348 | and to be run from within an Xorg session - there is a popup dialog
|
---|
| 349 | when it fails to connect to ALSA (that does not create a failed test).
|
---|
| 350 | One or two tests will fail. To see the details of the failure(s) you
|
---|
| 351 | will need to log the output from that command so that you can review it.
|
---|
[0e37869] | 352 | </para>
|
---|
[01ce75f8] | 353 |
|
---|
[495ebe07] | 354 | <para>
|
---|
[b9f61df] | 355 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[c1ae13c] | 356 | </para>
|
---|
[5a13c45] | 357 |
|
---|
[326f830] | 358 | <screen role="root"><userinput>./mach install &&
|
---|
[5ee1266] | 359 |
|
---|
[326f830] | 360 | mkdir -pv /usr/lib/mozilla/plugins &&
|
---|
[8d0bc761] | 361 | ln -sfv ../../mozilla/plugins /usr/lib/firefox/browser/</userinput></screen>
|
---|
[aee479c] | 362 | <!--
|
---|
[a5708ba] | 363 | <para>
|
---|
| 364 | Set environment variables back to their values:
|
---|
| 365 | </para>
|
---|
| 366 |
|
---|
| 367 | <screen><userinput>export CFLAGS=$CFLAGS_HOLD &&
|
---|
[6c4bb8f] | 368 | export CXXFLAGS=$CXXFLAGS_HOLD &&
|
---|
| 369 | unset CFLAGS_HOLD CXXFLAGS_HOLD</userinput></screen>
|
---|
[aee479c] | 370 | -->
|
---|
[01ce75f8] | 371 |
|
---|
[b81991e1] | 372 | </sect2>
|
---|
| 373 |
|
---|
[361df3e] | 374 | <sect2 role="commands">
|
---|
| 375 | <title>Command Explanations</title>
|
---|
[7d09fcb9] | 376 |
|
---|
[a0d558d] | 377 | <para>
|
---|
[326f830] | 378 | <command>./mach build</command>: <application>Firefox</application>
|
---|
| 379 | now uses this <application>python2</application> script to run the
|
---|
| 380 | build and install.
|
---|
[a0d558d] | 381 | </para>
|
---|
| 382 |
|
---|
[c1ae13c] | 383 | <para>
|
---|
[326f830] | 384 | <option>./mach build --verbose</option>: Use this alternative if you
|
---|
| 385 | need details of which files are being compiled, together with any C or
|
---|
| 386 | C++ flags being used.
|
---|
[c1ae13c] | 387 | </para>
|
---|
| 388 |
|
---|
| 389 | <para>
|
---|
[8d0bc761] | 390 | <command>mkdir -pv /usr/lib/mozilla/plugins</command>: This ensures
|
---|
| 391 | that <filename class="directory">/usr/lib/mozilla/plugins/</filename>
|
---|
[c1ae13c] | 392 | exists.
|
---|
| 393 | </para>
|
---|
| 394 |
|
---|
| 395 | <para>
|
---|
[8d0bc761] | 396 | <command>ln -sv ... /usr/lib/firefox/browser</command>:
|
---|
[24da103] | 397 | This command creates a symbolic link to <filename
|
---|
| 398 | class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
|
---|
| 399 | needed, as <application>Firefox</application> checks <filename
|
---|
| 400 | class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
|
---|
| 401 | symbolic link is made to keep all the plugins installed in one folder.
|
---|
[c1ae13c] | 402 | </para>
|
---|
[fa1bc3e] | 403 |
|
---|
[b81991e1] | 404 | </sect2>
|
---|
| 405 |
|
---|
[88cec02] | 406 | <sect2 role="configuration">
|
---|
| 407 | <title>Configuring Firefox</title>
|
---|
| 408 |
|
---|
[c1ae13c] | 409 | <para>
|
---|
| 410 | If you use a desktop environment like <application>Gnome</application> or
|
---|
| 411 | <application>KDE</application> you may like to create a
|
---|
| 412 | <filename>firefox.desktop</filename> file so that
|
---|
| 413 | <application>Firefox</application> appears in the panel's menus. If you
|
---|
| 414 | didn't enable startup-notification in your mozconfig change the
|
---|
| 415 | StartupNotify line to false. As the
|
---|
| 416 | <systemitem class="username">root</systemitem> user:
|
---|
| 417 | </para>
|
---|
[31de6e7] | 418 |
|
---|
[eb5f847a] | 419 | <screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
---|
[0e37869] | 420 | mkdir -pv /usr/share/pixmaps &&
|
---|
[74f73ede] | 421 |
|
---|
[c099902d] | 422 | cat > /usr/share/applications/firefox.desktop << "EOF" &&
|
---|
[fcd66369] | 423 | <literal>[Desktop Entry]
|
---|
[31de6e7] | 424 | Encoding=UTF-8
|
---|
[0e37869] | 425 | Name=Firefox Web Browser
|
---|
| 426 | Comment=Browse the World Wide Web
|
---|
| 427 | GenericName=Web Browser
|
---|
| 428 | Exec=firefox %u
|
---|
| 429 | Terminal=false
|
---|
[31de6e7] | 430 | Type=Application
|
---|
| 431 | Icon=firefox
|
---|
[0e37869] | 432 | Categories=GNOME;GTK;Network;WebBrowser;
|
---|
| 433 | MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
|
---|
[fcd66369] | 434 | StartupNotify=true</literal>
|
---|
[31de6e7] | 435 | EOF
|
---|
[74f73ede] | 436 |
|
---|
[888e303] | 437 | ln -sfv /usr/lib/firefox/browser/chrome/icons/default/default128.png \
|
---|
[0e37869] | 438 | /usr/share/pixmaps/firefox.png</userinput></screen>
|
---|
| 439 |
|
---|
[326f830] | 440 | <sect3><title>Configuration Information</title>
|
---|
| 441 |
|
---|
| 442 | <para>
|
---|
| 443 | The application settings for firefox are accessible by keying
|
---|
| 444 | <command>about:config</command> in the address bar.
|
---|
| 445 | </para>
|
---|
| 446 |
|
---|
| 447 | <para>
|
---|
| 448 | With this version of <application>firefox</application>, getting
|
---|
| 449 | working sound can be a problem. Although upstream prefers pulseaudio,
|
---|
| 450 | on balance using <application>Alsa</application> may be easier.
|
---|
| 451 | </para>
|
---|
| 452 |
|
---|
| 453 | <para>
|
---|
| 454 | If you enabled <application>Alsa</application> for sound, you may need
|
---|
| 455 | to alter one variable to get working sound. If you run
|
---|
| 456 | <command>firefox</command> from a term and try to play something with
|
---|
| 457 | sound you might encounter error messages like:
|
---|
| 458 | </para>
|
---|
| 459 |
|
---|
| 460 | <para>
|
---|
| 461 | <literal>Sandbox: seccomp sandbox violation: pid 3941, tid 4030,
|
---|
| 462 | syscall 16, args 48 2147767296 139909894784796 0 0 0.</literal>
|
---|
| 463 | </para>
|
---|
| 464 |
|
---|
| 465 | <para>
|
---|
| 466 | That was on x86_64, on i686 the syscall number is 54. To allow this
|
---|
| 467 | syscall, in <command>about:config</command> change
|
---|
| 468 | <command>security.sandbox.content.syscall_whitelist</command> to 16
|
---|
| 469 | (or 54 if using i686).
|
---|
| 470 | </para>
|
---|
| 471 |
|
---|
| 472 | <para>
|
---|
| 473 | If you use <command>pulseaudio</command> in a Desktop Environment, it
|
---|
| 474 | might already be started by that DE. But if it is not, although
|
---|
| 475 | firefox-57 managed to start it, firefox-58 does not. If you run
|
---|
| 476 | <command>firefox</command> from a term, trying to play sound will
|
---|
| 477 | encounter error messages warning <literal>Can't get cubeb
|
---|
| 478 | context!</literal>
|
---|
| 479 | </para>
|
---|
| 480 |
|
---|
| 481 | <para>
|
---|
| 482 | The fix for this is to close firefox, start pulseaudio to check it
|
---|
| 483 | does start (if not, read the information on Configuring in <xref
|
---|
| 484 | linkend="pulseaudio"/>) and restart firefox to check it is working.
|
---|
| 485 | If it now works, add the following to your <filename>~/.xinitrc</filename>:
|
---|
| 486 | <phrase revision="sysv">
|
---|
| 487 | <literal>pulseaudio --verbose --log-target=syslog&</literal></phrase>
|
---|
| 488 | <phrase revision="systemd">
|
---|
| 489 | <literal>pulseaudio --verbose --log-target=journald&</literal></phrase>
|
---|
| 490 | (unfortunately, on some systems this does not work).
|
---|
| 491 | </para>
|
---|
| 492 |
|
---|
| 493 | <para>
|
---|
| 494 | You may wish to use multiple profiles within firefox. To do that, invoke
|
---|
| 495 | firefox as <command>firefox --ProfileManager</command>. You can also
|
---|
| 496 | check which profile is currently in use from
|
---|
| 497 | <command>about:profiles</command>.
|
---|
| 498 | </para>
|
---|
| 499 |
|
---|
| 500 | </sect3>
|
---|
[88cec02] | 501 | </sect2>
|
---|
| 502 |
|
---|
[b81991e1] | 503 | <sect2 role="content">
|
---|
| 504 | <title>Contents</title>
|
---|
| 505 |
|
---|
| 506 | <segmentedlist>
|
---|
| 507 | <segtitle>Installed Programs</segtitle>
|
---|
| 508 | <segtitle>Installed Libraries</segtitle>
|
---|
[c5f005b] | 509 | <segtitle>Installed Directory</segtitle>
|
---|
[b81991e1] | 510 |
|
---|
| 511 | <seglistitem>
|
---|
[0e37869] | 512 | <seg>
|
---|
| 513 | firefox
|
---|
| 514 | </seg>
|
---|
[c1ae13c] | 515 | <seg>
|
---|
| 516 | Numerous libraries, browser components, plugins, extensions, and
|
---|
[8d0bc761] | 517 | helper modules installed in /usr/lib/firefox
|
---|
[c1ae13c] | 518 | </seg>
|
---|
[7498751] | 519 | <seg>
|
---|
[54814bdd] | 520 | /usr/lib/firefox and /usr/lib/mozilla
|
---|
[7498751] | 521 | </seg>
|
---|
[b81991e1] | 522 | </seglistitem>
|
---|
| 523 | </segmentedlist>
|
---|
| 524 |
|
---|
| 525 | <variablelist>
|
---|
| 526 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 527 | <?dbfo list-presentation="list"?>
|
---|
| 528 | <?dbhtml list-presentation="table"?>
|
---|
| 529 |
|
---|
| 530 | <varlistentry id="firefox-prog">
|
---|
| 531 | <term><command>firefox</command></term>
|
---|
| 532 | <listitem>
|
---|
[c1ae13c] | 533 | <para>
|
---|
[7e1afc9] | 534 | is a <application>GTK+-3</application> internet browser that uses
|
---|
| 535 | the Mozilla Gecko rendering engine.
|
---|
[c1ae13c] | 536 | </para>
|
---|
[b81991e1] | 537 | <indexterm zone="firefox firefox-prog">
|
---|
| 538 | <primary sortas="b-firefox">firefox</primary>
|
---|
| 539 | </indexterm>
|
---|
| 540 | </listitem>
|
---|
| 541 | </varlistentry>
|
---|
[0e37869] | 542 |
|
---|
[b81991e1] | 543 | </variablelist>
|
---|
[0e37869] | 544 |
|
---|
[b81991e1] | 545 | </sect2>
|
---|
[0e37869] | 546 |
|
---|
[4d37129] | 547 | </sect1>
|
---|