source: xsoft/graphweb/mozilla.xml@ 5cd0959d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 5cd0959d was 5cd0959d, checked in by Archaic <archaic@…>, 20 years ago

Resetting keywords

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

  • Property mode set to 100644
File size: 15.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY mozilla-download-http "http://ftp.mozilla.org/pub/mozilla/releases/mozilla&mozilla-version;/src/mozilla-source-&mozilla-version;.tar.bz2">
8 <!ENTITY mozilla-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla&mozilla-version;/src/mozilla-source-&mozilla-version;.tar.bz2">
9 <!ENTITY mozilla-size "34 MB">
10 <!ENTITY mozilla-buildsize "700 MB">
11 <!ENTITY mozilla-time "10.37 SBU">
12
13 <!ENTITY enigmail-version "0.85.0">
14 <!ENTITY ipc-version "1.0.5">
15]>
16
17<sect1 id="mozilla" xreflabel="Mozilla-&mozilla-version;">
18<sect1info>
19<othername>$LastChangedBy$</othername>
20<date>$Date$</date>
21</sect1info>
22<?dbhtml filename="mozilla.html" ?>
23<title>Mozilla-&mozilla-version;</title>
24
25<sect2>
26<title>Introduction to <application>Mozilla</application></title>
27
28<para><application>Mozilla</application> is a browser suite, the Open Source
29sibling of <application>Netscape</application>. It includes the browser,
30composer, mail and news clients, a calendar client and an
31<acronym>IRC</acronym> client.</para>
32
33<para>The <application>Mozilla</application> project also hosts two subprojects
34that aim to satisfy the needs of users who don't need the complete browser
35suite or like to have separate applications for browsing and e-mail. These
36subprojects are
37<ulink url="http://www.mozilla.org/products/firefox/">Mozilla Firefox</ulink>,
38(a stand-alone browser based on the
39<application>Mozilla</application> source code) and <ulink
40url="http://www.mozilla.org/projects/thunderbird/">Mozilla Thunderbird</ulink>,
41(a stand-alone mail client based on the <application>Mozilla</application>
42source code). The build instructions for these two applications are discussed
43in separate sections:</para>
44
45<itemizedlist>
46<listitem><para><xref linkend="firefox"/></para></listitem>
47<listitem><para><xref linkend="thunderbird"/></para></listitem>
48</itemizedlist>
49
50<sect3><title>Package information</title>
51<itemizedlist spacing='compact'>
52<listitem><para>Download (HTTP): <ulink
53url="&mozilla-download-http;"/></para></listitem>
54<listitem><para>Download (FTP): <ulink
55url="&mozilla-download-ftp;"/></para></listitem>
56<listitem><para>Download size: &mozilla-size;</para></listitem>
57<listitem><para>Estimated Disk space required:
58&mozilla-buildsize;</para></listitem>
59<listitem><para>Estimated build time:
60&mozilla-time;</para></listitem></itemizedlist>
61</sect3>
62
63<sect3><title>Additional downloads</title>
64<itemizedlist spacing='compact'>
65<listitem><para>Required Patch: <ulink
66url="&patch-root;/mozilla-&mozilla-version;-freetype_fix-1.patch"/></para>
67</listitem></itemizedlist>
68
69<para>To enable the <application>Enigmail</application> extension to the
70<application>Mozilla</application> and <application>Thunderbird</application>
71mail clients, you'll need to download the two tarballs below. The
72<application>Enigmail</application> extension allows users to access the
73authentication and encryption features provided by the
74<application>GnuPG</application> package.</para>
75
76<itemizedlist spacing='compact'>
77<!-- <listitem><para><ulink url="http://enigmail.mozdev.org/">Enigmail Extension
78(Version &enigmail-version;)</ulink>
79(Useful only if Mozilla Mail is built)</para></listitem>
80<listitem><para><ulink url="http://enigmail.mozdev.org/">Inter Process
81Communicaton Extension (Version &ipc-version;)</ulink>
82(Needed for Enigmail)</ulink></para></listitem> -->
83
84<listitem><para><ulink
85url="http://downloads.mozdev.org/enigmail/src/enigmail-&enigmail-version;.tar.gz"/>
86</para></listitem>
87<listitem><para><ulink
88url="http://downloads.mozdev.org/enigmail/src/ipc-&ipc-version;.tar.gz"/>
89</para></listitem>
90</itemizedlist>
91</sect3>
92
93<sect3><title><application>Mozilla</application> dependencies</title>
94<sect4><title>Required</title>
95<para><xref linkend="zip"/>, <xref linkend="GTK2"/>, <xref linkend="libIDL"/>,
96<xref linkend="libmng"/> and <xref linkend="which"/></para></sect4>
97<sect4><title>Recommended</title>
98<para><xref linkend="gnupg"/> (for Enigmail extension)</para></sect4>
99<sect4><title>Optional</title>
100<para><xref linkend="gnome-vfs"/>, <xref linkend="libart_lgpl"/>,
101<xref linkend="heimdal"/> or <xref linkend="mitkrb"/>
102(for the GSSAPI libraries),
103<ulink url="http://www.hpl.hp.com/personal/Hans_Boehm/gc/">GC</ulink> and
104<ulink url="http://www.stack.nl/~dimitri/doxygen/">doxygen</ulink>
105</para></sect4>
106</sect3>
107
108</sect2>
109
110<sect2>
111<title>Installation of <application>Mozilla</application></title>
112
113<!--
114<note>
115<para>According to the financial institutions, the following hack makes your
116browser insecure. You have been warned. Many sites use an MS-IE specific tag
117(autocomplete=off) to prevent autocomplete from working in some forms. This
118tag is now supported in <application>Mozilla</application> to appease
119the financial institutions. As per
120the requirements of the financial institutions, they will not even accept a
121solution where this a preference option. However our opinion is that it should
122be in the hands of the user. To enable autocomplete to bypass
123this restriction, we need to make a slight modification in the code.</para>
124
125<para>Open the file <filename>extensions/wallet/src/wallet.cpp</filename> in
126the <application>Mozilla</application> source tree and search for the line:
127<screen>#define WALLET_DONT_CACHE_ALL_PASSWORDS</screen>
128Then delete or comment out the line. Now, if anyone tells you MS-IE is user
129friendly, give them this example!</para>
130</note>
131-->
132
133<warning><para>Do not install <application>Mozilla</application>,
134<application>Mozilla Firefox</application> and
135<application>Mozilla Thunderbird</application> with a single prefix since they
136install identically named files. The <acronym>BLFS</acronym> Book installs
137<application>Mozilla</application> in <filename>/usr</filename> while
138<application>Mozilla Firefox</application> and
139<application>Mozilla Thunderbird</application> are installed in
140<filename>/opt</filename>.</para></warning>
141
142<para>Compile <application>Mozilla</application> by running the following
143commands:</para>
144
145<screen><userinput><command>export MOZILLA_OFFICIAL="1" &amp;&amp;
146export BUILD_OFFICIAL="1" &amp;&amp;
147patch -Np1 -i ../mozilla-&mozilla-version;-freetype_fix-1.patch &amp;&amp;
148./configure --prefix=/usr \
149 --with-default-mozilla-five-home=/usr/lib/mozilla \
150 --enable-default-toolkit=gtk2 \
151 --with-x --with-system-zlib \
152 --with-system-jpeg --with-system-png --with-system-mng \
153 --enable-xft --enable-crypto \
154 --disable-accessibility \
155 --disable-tests --disable-debug \
156 --disable-logging --enable-reorder \
157 --enable-strip --disable-pedantic \
158 --enable-cpp-rtti --enable-extensions=all &amp;&amp;
159make</command></userinput></screen>
160
161<para>If you're building the <application>Mozilla</application> mail and news
162clients and plan to install the <application>Enigmail</application>
163extension, execute the following steps:</para>
164
165<screen><userinput><command>tar zxf ../enigmail-&enigmail-version;.tar.gz -C extensions &amp;&amp;
166tar zxf ../ipc-&ipc-version;.tar.gz -C extensions &amp;&amp;
167build/autoconf/make-makefile extensions/ipc extensions/enigmail &amp;&amp;
168make -C extensions/ipc &amp;&amp;
169make -C extensions/enigmail &amp;&amp;
170make -C extensions/enigmail/build xpi &amp;&amp;
171make -C extensions/enigmail/package xpi</command></userinput></screen>
172
173<para>Install <application>Mozilla</application> as follows:</para>
174
175<screen><userinput><command>make install &amp;&amp;
176install -d /usr/include/mozilla-&mozilla-version;/nss &amp;&amp;
177cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
178 /usr/include/mozilla-&mozilla-version;/nss &amp;&amp;
179ln -nsf mozilla-&mozilla-version; /usr/include/mozilla &amp;&amp;
180ln -nsf mozilla-&mozilla-version; /usr/lib/mozilla</command></userinput></screen>
181
182<para>Some libraries installed by <application>Mozilla</application> are also
183needed by other packages. These libraries should be in
184<filename>/usr/lib</filename> so that other packages can link against them.
185Move them as follows:</para>
186
187<screen><userinput><command>for i in lib{nspr4,plc4,plds4,nss3,smime3,softokn3,ssl3}.so libsoftokn3.chk
188do
189 mv /usr/lib/mozilla-&mozilla-version;/$i /usr/lib/
190 ln -sf ../$i /usr/lib/mozilla-&mozilla-version;/
191done</command></userinput></screen>
192
193<para>Install the <application>Enigmail</application> extension as
194follows:</para>
195
196<screen><userinput><command>make -C extensions/ipc install &amp;&amp;
197make -C extensions/enigmail install</command></userinput></screen>
198
199<para>To enable multi-user operation, execute the following:</para>
200
201<screen><userinput><command>cd /usr/lib/mozilla-&mozilla-version; &amp;&amp;
202export LD_LIBRARY_PATH="/usr/lib/mozilla-&mozilla-version;" &amp;&amp;
203export MOZILLA_FIVE_HOME="/usr/lib/mozilla-&mozilla-version;" &amp;&amp;
204./regxpcom &amp;&amp;
205./regchrome &amp;&amp;
206touch `find /usr/lib/mozilla-&mozilla-version; -name *.rdf`</command></userinput></screen>
207
208</sect2>
209
210<sect2>
211<title>Optional Extra Switches</title>
212
213<para>Each of these switches can be added to the configure line in order to
214have the described effect on the <application>Mozilla</application>
215compile.</para>
216
217<para><option>--enable-elf-dynstr-gc</option>: Removes un-referenced
218strings from <acronym>ELF</acronym> shared objects generated during the build.
219Note that this option breaks the build on alpha.</para>
220
221<para><option>--disable-mailnews</option>: Disable the mail and news
222clients.</para>
223
224<para><option>--disable-ldap</option>: Disable <acronym>LDAP</acronym>
225support, recommended if mail is disabled.</para>
226
227<para><option>--enable-calendar</option>: Build the calendar client.</para>
228
229<para><option>--enable-xterm-updates</option>: This option is for enabling
230the <command>xterm</command> window title with the current command when
231compiling.</para>
232
233<para><option>--enable-plaintext-editor-only</option>: Disable support
234for <acronym>HTML</acronym> editing. Do not use this switch if you are
235building the mail-news component.</para>
236
237</sect2>
238
239<sect2>
240<title>Command explanations</title>
241
242<para><screen><command>export MOZILLA_OFFICIAL="1" &amp;&amp;
243export BUILD_OFFICIAL="1"</command></screen>
244Set some variables that affect what and how the package is built. These two
245exports specify a distribution is being built.</para>
246
247<!--
248<para> The last export specifies that we
249are ok with the <acronym>LGPL</acronym> versioned libart.</para>
250-->
251
252<para><parameter>--prefix=/usr</parameter>: Previously
253<application>Mozilla</application> did not support the <command>make
254install</command> option. Hence, the package was installed in
255<filename>/opt</filename>. The package now supports
256"<command>make install</command>" and follows the <acronym>FHS</acronym>
257guidelines for installation. Therefore the book now recommends installation
258in a system wide prefix such as <filename>/usr</filename>.</para>
259
260<para><screen><option>--enable-default-toolkit=gtk2</option></screen>
261Use the gtk2 toolkit.</para>
262
263<para><screen><option>--with-system-zlib --with-system-jpeg \
264--with-system-png --with-system-mng</option></screen>
265Use the system installed versions of these packages.</para>
266
267<para><option>--enable-xft</option>: Enable Xft support. You need
268<application>fontconfig</application> or the latest
269<application>XFree86</application> version to enable Xft.</para>
270
271<para><option>--enable-crypto</option>: Enable the Personal
272Security Manager to enable <acronym>SSL</acronym> connections.</para>
273
274<para><screen><option>--disable-jsd --disable-accessibility \
275--disable-tests --disable-debug \
276--disable-dtd-debug \
277--disable-logging --enable-reorder \
278--enable-strip \
279--enable-cpp-rtti</option></screen>
280Various options that affect what components are built and some optimization
281options. You can pick and choose from these options. More information on them
282can be found in the <application>Mozilla</application>
283<command>configure</command> script help. Not all options are used in the
284instructions given above.</para>
285
286<para><option>--enable-extensions=...</option>: Enables extensions. If you
287want, you can disable all extensions other than the browser by changing this
288switch to
289<parameter>--enable-extensions="default,-venkman,-inspector,-irc"</parameter>.
290For a short description of the various extensions available with the
291<application>Mozilla</application> source, see
292<ulink
293url="http://linuxfromscratch.org/~tushar/downloads/mozilla-extensions.txt"/>.
294</para>
295
296<para><screen><command>install -d /usr/include/mozilla-&mozilla-version;/nss
297cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
298 /usr/include/mozilla-&mozilla-version;/nss</command></screen>
299Copy the nss headers that are not copied by make install.</para>
300
301<!--
302<para><userinput>install -d /usr/lib/mozilla-&mozilla-version;/openoffice</userinput> :
303Make a directory to store static libraries that openoffice needs during compilation.
304These libraries are not installed by default.</para>
305-->
306
307<para><command>ln -nsf mozilla-&mozilla-version; ...</command>:
308<application>Mozilla</application> installs headers and libraries in version
309specific directories. This command makes symbolic links so that applications
310depending on <application>Mozilla</application> (such as
311<application>OpenOffice</application>, <application>Galeon</application>,
312etc.) don't need to know which version of <application>Mozilla</application>
313is installed.</para>
314
315<para><screen><command>export LD_LIBRARY_PATH="/usr/lib/mozilla-&mozilla-version;" &amp;&amp;
316export MOZILLA_FIVE_HOME="/usr/lib/mozilla-&mozilla-version;" &amp;&amp;
317./regxpcom &amp;&amp;
318./regchrome &amp;&amp;
319touch `find /usr/lib/mozilla-${VERSION} -name *.rdf`</command>
320</screen>
321Create the required component registries to enable multi-user installs. These
322steps should be preformed by the root user each time a
323<application>Mozilla</application> add-on is installed. This will allow normal
324users to run <command>mozilla</command>.</para>
325
326</sect2>
327
328<sect2>
329<title>Configuring <application>Mozilla</application></title>
330
331<para>No specific configuration is required as long as the
332<command>mozilla</command> binary is in the path for the user. If
333<application>Mozilla</application> is installed in a non-standard location,
334then make a symlink to the <command>mozilla</command> binary from
335<filename class="directory">/usr/bin</filename>. The same thing applies for
336<application>Mozilla Firefox</application> and
337<application>Mozilla Thunderbird</application>.</para>
338
339<para>Many applications look for <command>netscape</command> when they need to
340open a browser. You may make the following symlink for convenience.</para>
341
342<screen><userinput><command>ln -sf mozilla /usr/bin/netscape</command></userinput></screen>
343
344<para>For installing various <application>Mozilla</application> plugins, refer
345to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's PluginDoc
346Project</ulink>.</para>
347
348</sect2>
349
350<sect2>
351<title>Contents</title>
352
353<para>The <application>Mozilla</application> package contains
354<command>mozilla</command> and the <application>Mozilla</application>
355libraries and plugins. The various components such as composer and mail-news
356can be accessed from the menu after <command>mozilla</command> starts or
357via command-line switches to the <command>mozilla</command> binary.
358</para>
359
360</sect2>
361
362</sect1>
Note: See TracBrowser for help on using the repository browser.