source: xsoft/graphweb/firefox.xml@ b09ed46a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b09ed46a was b09ed46a, checked in by Fernando de Oliveira <fernando@…>, 8 years ago
  • hicolor-icon-theme-0.15 URL broken: ◦ Resolving icon-theme.freedesktop.org (icon-theme.freedesktop.org)... failed:

Name or service not known.

◦ Now:

http://pkgs.fedoraproject.org/repo/pkgs/hicolor-icon-theme/hicolor-icon-theme-0.15.tar.xz/6aa2b3993a883d85017c7cc0cfc0fb73/hicolor-icon-theme-0.15.tar.xz

◦ If someone knows a better working URL, please replace it.

  • Update to firefox-44.0.1.
  • Update to libgcrypt-1.6.5.
  • Update to unrarsrc-5.3.11 (unrar-5.3.11).
  • Update to xorg-server-1.18.1.
  • Update to freetype-2.6.3 and freetype-doc-2.6.3.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16928 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 13.4 KB
Line 
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
7 <!ENTITY firefox-download-http "&mozilla-http;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.xz">
8<!-- 550 Permission denied.
9 <!ENTITY firefox-download-ftp "&mozilla-ftp;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2"> -->
10 <!ENTITY firefox-download-ftp " ">
11 <!ENTITY firefox-md5sum "66d4810df0b5a6095e2276256bf17675">
12 <!ENTITY firefox-size "174 MB">
13 <!ENTITY firefox-buildsize "4.4 GB (79 MB installed)">
14 <!ENTITY firefox-time "10 SBU (with parallelism=4)">
15]>
16
17<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
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
34 <para>
35 <application>Firefox</application> is a stand-alone browser based on the
36 <application>Mozilla</application> codebase.
37 </para>
38
39 &lfs78_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&firefox-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&firefox-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &firefox-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &firefox-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &firefox-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &firefox-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <note>
76 <para>
77 The tarball <emphasis>firefox-&firefox-version;.source.tar.xz</emphasis>
78 will untar to <emphasis>firefox-&firefox-version;</emphasis> directory.
79 </para>
80 </note>
81
82 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
83
84 <bridgehead renderas="sect4">Required</bridgehead>
85 <para role="required">
86 <xref linkend="alsa-lib"/>,
87 <xref linkend="gtk2"/>,
88 <xref linkend="nss"/>,
89 <xref linkend="unzip"/>,
90 <xref linkend="yasm"/>, and
91 <xref linkend="zip"/>
92 </para>
93
94 <bridgehead renderas="sect4">Recommended</bridgehead>
95 <para role="recommended">
96 <xref linkend="icu"/>,
97 <xref linkend="libevent"/>,
98 <xref linkend="libvpx"/>, and
99 <xref linkend="sqlite"/>
100 </para>
101
102 <note>
103 <para>
104 If you don't install recommended dependencies, then internal copies of
105 those packages will be used. They might be tested to work, but they can
106 be out of date or contain security holes.
107 </para>
108 </note>
109
110 <note>
111 <para>
112 With <application>Firefox-31.0</application> and later versions, you
113 must have installed <application>Openssl</application> before
114 <application>Python 2</application> or the build system will quickly
115 fail with output including "ImportError: cannot import name
116 HTTPSHandler". If you are in any doubt about this (e.g. upgrading from
117 an older version of Firefox), check if
118 <filename>/usr/lib/python&python2-majorver;/lib-dynload/_ssl.so</filename>
119 exists. If it does not, reinstall <xref linkend="python2"/> (after
120 installing <xref linkend="openssl"/>). The latest version of any
121 <emphasis>currently maintained</emphasis> version of Openssl should be
122 satisfactory if already installed.
123 </para>
124 </note>
125
126 <bridgehead renderas="sect4">Optional</bridgehead>
127 <para role="optional">
128 <xref linkend="curl"/>,
129 <xref linkend="dbus-glib"/>,
130 <xref linkend="doxygen"/>,
131 <xref linkend="GConf"/>,
132 <xref linkend="ffmpeg"/> (runtime) or
133 <xref linkend="gst10-plugins-base"/> (with
134 <xref linkend="gst10-plugins-good"/> and
135 <xref linkend="gst10-libav"/> at runtime),
136 <xref linkend="libwebp"/>,
137 <xref linkend="openjdk"/>,
138 <xref linkend="pulseaudio"/>,
139 <xref linkend="startup-notification"/>,
140 <xref linkend="valgrind"/>,
141 <xref linkend="wget"/>,
142 <xref linkend="wireless_tools"/>,
143 <ulink url="https://hunspell.github.io/">Hunspell</ulink>,
144 <ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink>, and
145 <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>, and
146 <ulink url="https://www.rust-lang.org/">Rust</ulink>
147 </para>
148
149 <para condition="html" role="usernotes">
150 User Notes: <ulink url="&blfs-wiki;/firefox"/>
151 </para>
152 </sect2>
153
154 <sect2 role="installation">
155 <title>Installation of Firefox</title>
156
157 <para>
158 The configuration of <application>Firefox</application> is accomplished
159 by creating a <filename>mozconfig</filename> file containing the desired
160 configuration options. A default <filename>mozconfig</filename> is
161 created below. To see the entire list of available configuration options
162 (and an abbreviated description of each one), issue <command>./configure
163 --help</command>. You may also wish to review the entire file and
164 uncomment any other desired options. Create the file by issuing the
165 following command:
166 </para>
167
168<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
169<literal># If you have a multicore machine, all cores will be used by default.
170# If desired, you can reduce the number of cores used, e.g. to 1, by
171# uncommenting the next line and setting a valid number of CPU cores.
172#mk_add_options MOZ_MAKE_FLAGS="-j1"
173
174# If you have installed DBus-Glib comment out this line:
175ac_add_options --disable-dbus
176
177# If you have installed dbus-glib, and you have installed (or will install)
178# wireless-tools, and you wish to use geolocation web services, comment out
179# this line
180ac_add_options --disable-necko-wifi
181
182# GStreamer is necessary for H.264 video playback in HTML5 Video Player if
183# FFmpeg is not found at runtime;
184# to be enabled, also remember to set "media.gstreamer.enabled" to "true"
185# in about:config. If you have GStreamer 1.x.y, comment out this line and
186# uncomment the following one:
187ac_add_options --disable-gstreamer
188#ac_add_options --enable-gstreamer=1.0
189
190# Uncomment these lines if you have installed optional dependencies:
191#ac_add_options --enable-system-hunspell
192#ac_add_options --enable-startup-notification
193
194# Comment out following option if you have PulseAudio installed
195ac_add_options --disable-pulseaudio
196
197# If you have installed GConf, comment out this line
198ac_add_options --disable-gconf
199
200# Comment out following options if you have not installed
201# recommended dependencies:
202ac_add_options --enable-system-sqlite
203ac_add_options --with-system-libevent
204ac_add_options --with-system-libvpx
205ac_add_options --with-system-nspr
206ac_add_options --with-system-nss
207ac_add_options --with-system-icu
208
209# The BLFS editors recommend not changing anything below this line:
210ac_add_options --prefix=/usr
211ac_add_options --enable-application=browser
212
213ac_add_options --disable-crashreporter
214ac_add_options --disable-updater
215ac_add_options --disable-tests
216
217ac_add_options --enable-optimize
218ac_add_options --enable-strip
219ac_add_options --enable-install-strip
220
221ac_add_options --enable-gio
222ac_add_options --enable-official-branding
223ac_add_options --enable-safe-browsing
224ac_add_options --enable-url-classifier
225
226# From firefox-40, using system cairo causes firefox to crash
227# frequently when it is doing background rendering in a tab.
228# Apparently fixed at firefox-44.0.1
229ac_add_options --enable-system-cairo
230ac_add_options --enable-system-ffi
231ac_add_options --enable-system-pixman
232
233ac_add_options --with-pthreads
234
235ac_add_options --with-system-bz2
236ac_add_options --with-system-jpeg
237ac_add_options --with-system-png
238ac_add_options --with-system-zlib
239
240mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
241EOF</userinput></screen>
242
243 <para>
244 Compile <application>Firefox</application> by issuing the following
245 commands:
246 </para>
247
248 <note><para>
249 If you are compiling <application>Firefox</application> in chroot, make
250 sure you have <envar>$SHELL</envar> environment variable set or prepend
251 <envar>SHELL=/bin/sh</envar>.
252 </para></note>
253
254<screen><userinput>make -f client.mk</userinput></screen>
255
256 <para>
257 This package does not come with a test suite.
258 </para>
259
260 <para>
261 Now, as the <systemitem class="username">root</systemitem> user:
262 </para>
263
264<screen role="root"><userinput>make -f client.mk install INSTALL_SDK= &amp;&amp;
265chown -R 0:0 /usr/lib/firefox-&firefox-version; &amp;&amp;
266
267mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
268ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userinput></screen>
269
270 </sect2>
271
272 <sect2 role="commands">
273 <title>Command Explanations</title>
274
275 <para>
276 <command>make -f client.mk ...</command>: Mozilla products are packaged to
277 allow the use of a configuration file which can be used to pass the
278 configuration settings to the <command>configure</command> command.
279 <command>make</command> uses the <filename>client.mk</filename> file to
280 get initial configuration and setup parameters.
281 </para>
282
283 <para>
284 <command>make -C firefox-build-dir install</command>: This runs
285 <command>make install</command> in firefox-build-dir.
286 </para>
287
288 <para>
289 <command>ln -sfv ... /usr/bin/firefox</command>: This puts a symbolic link
290 to the <command>firefox</command> executable in your <envar>PATH</envar>
291 variable.
292 </para>
293
294 <para>
295 <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
296 that <filename class="directory">/usr/lib/mozilla/plugins</filename>
297 exists.
298 </para>
299
300 <para>
301 <command>ln -sv ... /usr/lib/firefox-&firefox-version;/browser</command>:
302 This command creates a symbolic link to <filename
303 class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
304 needed, as <application>Firefox</application> checks <filename
305 class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
306 symbolic link is made to keep all the plugins installed in one folder.
307 </para>
308
309 </sect2>
310
311 <sect2 role="configuration">
312 <title>Configuring Firefox</title>
313
314 <para>
315 If you did not add the <option>--disable-webm</option> option to your
316 <filename>mozconfig</filename>, your <application>Firefox</application>
317 can play most YouTube videos without the need for the flash plugin. To
318 enable this, go to <ulink url="http://www.youtube.com/html5"/> and click
319 on 'Join the HTML5 Trial' (needs cookies enabled).
320 </para>
321
322 <para>
323 If you use a desktop environment like <application>Gnome</application> or
324 <application>KDE</application> you may like to create a
325 <filename>firefox.desktop</filename> file so that
326 <application>Firefox</application> appears in the panel's menus. If you
327 didn't enable startup-notification in your mozconfig change the
328 StartupNotify line to false. As the
329 <systemitem class="username">root</systemitem> user:
330 </para>
331
332<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
333mkdir -pv /usr/share/pixmaps &amp;&amp;
334
335cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
336<literal>[Desktop Entry]
337Encoding=UTF-8
338Name=Firefox Web Browser
339Comment=Browse the World Wide Web
340GenericName=Web Browser
341Exec=firefox %u
342Terminal=false
343Type=Application
344Icon=firefox
345Categories=GNOME;GTK;Network;WebBrowser;
346MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
347StartupNotify=true</literal>
348EOF
349
350ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
351 /usr/share/pixmaps/firefox.png</userinput></screen>
352
353 </sect2>
354
355 <sect2 role="content">
356 <title>Contents</title>
357
358 <segmentedlist>
359 <segtitle>Installed Programs</segtitle>
360 <segtitle>Installed Libraries</segtitle>
361 <segtitle>Installed Directory</segtitle>
362
363 <seglistitem>
364 <seg>
365 firefox
366 </seg>
367 <seg>
368 Numerous libraries, browser components, plugins, extensions, and
369 helper modules installed in /usr/lib/firefox-&firefox-version;
370 </seg>
371 <seg>
372 /usr/lib/firefox-&firefox-version;
373 </seg>
374 </seglistitem>
375 </segmentedlist>
376
377 <variablelist>
378 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
379 <?dbfo list-presentation="list"?>
380 <?dbhtml list-presentation="table"?>
381
382 <varlistentry id="firefox-prog">
383 <term><command>firefox</command></term>
384 <listitem>
385 <para>
386 is a <application>GTK+ 2</application> internet browser that uses the
387 Mozilla Gecko rendering engine.
388 </para>
389 <indexterm zone="firefox firefox-prog">
390 <primary sortas="b-firefox">firefox</primary>
391 </indexterm>
392 </listitem>
393 </varlistentry>
394
395 </variablelist>
396
397 </sect2>
398
399</sect1>
Note: See TracBrowser for help on using the repository browser.