source: xsoft/graphweb/firefox.xml@ 89abecc

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 89abecc was b4647e21, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Typo fix. Xsoft.

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

  • Property mode set to 100644
File size: 10.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY firefox-download-http "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
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 "5704a8c36de84b408e069afb0c5bc1df">
10 <!ENTITY firefox-size "32.0 MB">
11 <!ENTITY firefox-buildsize "545 MB">
12 <!ENTITY firefox-time "10.3 SBU">
13]>
14
15<!--
16
17Devs:
18
19Always check the browser/config/mozconfig file in the source tree for
20any changes to the options passed to configure. This file shows the
21default build used by Mozilla. BLFS adds to this, but the values here
22should be in our setup.
23
24-->
25
26<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
27 <?dbhtml filename="firefox.html" ?>
28
29 <sect1info>
30 <othername>$LastChangedBy$</othername>
31 <date>$Date$</date>
32 <keywordset>
33 <keyword role="package">firefox-&firefox-version;-source.tar</keyword>
34 <keyword role="ftpdir">firefox</keyword>
35 </keywordset>
36 </sect1info>
37
38 <title>Firefox-&firefox-version;</title>
39
40 <indexterm zone="firefox">
41 <primary sortas="a-Firefox">Firefox</primary>
42 </indexterm>
43
44 <sect2 role="package">
45 <title>Introduction to Firefox</title>
46
47 <para><application>Firefox</application> is a stand-alone browser
48 based on the <application>Mozilla</application> codebase.</para>
49
50 <bridgehead renderas="sect3">Package Information</bridgehead>
51 <itemizedlist spacing="compact">
52 <listitem>
53 <para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
54 </listitem>
55 <listitem>
56 <para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
57 </listitem>
58 <listitem>
59 <para>Download MD5 sum: &firefox-md5sum;</para>
60 </listitem>
61 <listitem>
62 <para>Download size: &firefox-size;</para>
63 </listitem>
64 <listitem>
65 <para>Estimated disk space required: &firefox-buildsize;</para>
66 </listitem>
67 <listitem>
68 <para>Estimated build time: &firefox-time;</para>
69 </listitem>
70 </itemizedlist>
71
72 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
73 <itemizedlist spacing="compact">
74 <listitem>
75 <para>Required patch: <ulink
76 url="&patch-root;/firefox-&firefox-version;-gcc4-2.patch"/></para>
77 </listitem>
78 </itemizedlist>
79
80 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
81
82 <bridgehead renderas="sect4">Required</bridgehead>
83 <para role="required"><xref linkend="gtk2"/>,
84 <xref linkend="libidl"/> and
85 <xref linkend="zip"/></para>
86
87 <bridgehead renderas="sect4">Optional</bridgehead>
88 <para role="optional"><xref linkend="libjpeg"/>,
89 <xref linkend="unzip"/>,
90 <xref linkend="gnome-vfs"/> and
91 <xref linkend="libgnome"/> (to build the gnomevfs extension),
92 <xref linkend="mitkrb"/> or <xref linkend="heimdal"/>
93 (for the GSSAPI libraries to build the negotiateauth extension),
94 <xref linkend="doxygen"/>,
95 <ulink url="http://xprint.mozdev.org/">Xprint</ulink>,
96 <ulink url="http://perens.com/FreeSoftware/">Electric Fence</ulink></para>
97
98 </sect2>
99
100 <sect2 role="installation">
101 <title>Installation of Firefox</title>
102
103 <para>The configuration of <application>Firefox</application> is very
104 similar to <xref linkend="mozilla"/> and hence the options are not
105 discussed. Refer to the <xref linkend="mozilla"/> instructions for
106 explanations and additional configuration information.</para>
107
108 <para><application>Firefox</application> default behavior when invoked
109 with a URL parameter is to open a new browser window. If you would rather
110 <application>Firefox</application> open a new tab in an existing browser
111 window, issue the following command:</para>
112
113<screen><userinput>sed -i 's|openURL(${_optLast}|&amp;, new-tab|' browser/app/mozilla.in</userinput></screen>
114
115 <para>Compile and install <application>Firefox</application> by
116 running the following commands:</para>
117
118<screen><userinput>export MOZILLA_OFFICIAL="1" &amp;&amp;
119export BUILD_OFFICIAL="1" &amp;&amp;
120export MOZ_PHOENIX="1" &amp;&amp;
121
122sed -i 's| dist_bin="$moz_libdir"|\
123&amp;\n run_moz="$dist_bin/run-mozilla.sh"|' browser/app/mozilla.in &amp;&amp;
124
125patch -Np1 -i ../firefox-&firefox-version;-gcc4-2.patch &amp;&amp;
126./configure --prefix=/usr \
127 --with-default-mozilla-five-home=/usr/lib/firefox-&firefox-version; \
128 --with-user-appdir=.firefox \
129 --with-system-zlib \
130 --with-system-png \
131 --enable-application=browser \
132 --enable-default-toolkit=gtk2 \
133 --enable-extensions=cookie,xml-rpc,xmlextras,pref,\
134transformiix,universalchardet,webservices,inspector,\
135gnomevfs,negotiateauth \
136 --enable-crypto \
137 --enable-xft \
138 --enable-xinerama \
139 --enable-optimize \
140 --enable-reorder \
141 --enable-strip \
142 --enable-cpp-rtti \
143 --enable-single-profile \
144 --disable-freetype2 \
145 --disable-accessibility \
146 --disable-debug \
147 --disable-tests \
148 --disable-logging \
149 --disable-pedantic \
150 --disable-installer \
151 --disable-mailnews \
152 --disable-ldap \
153 --disable-composer \
154 --disable-profilesharing &amp;&amp;
155make</userinput></screen>
156
157 <para>You should add the <option>--with-system-jpeg</option> switch
158 to the <command>configure</command> script if you have
159 <application>libjpeg</application> installed.</para>
160
161 <para>This package does not come with a test suite.</para>
162
163 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
164
165<screen role="root"><userinput>make install &amp;&amp;
166install -v -m755 -d /usr/include/firefox-&firefox-version;/nss &amp;&amp;
167cp -v -Lf dist/private/nss/*.h dist/public/nss/*.h \
168 /usr/include/firefox-&firefox-version;/nss</userinput></screen>
169
170 <para>To enable multi-user operation, execute the following as the
171 <systemitem class="username">root</systemitem> user:</para>
172
173<screen role="root"><userinput>cd /usr/lib/firefox-&firefox-version; &amp;&amp;
174export LD_LIBRARY_PATH="$PWD" &amp;&amp;
175export MOZILLA_FIVE_HOME="$PWD" &amp;&amp;
176./regxpcom &amp;&amp;
177./regchrome &amp;&amp;
178touch `find . -name *.rdf`</userinput></screen>
179
180 <note>
181 <para>You should run <command>/usr/bin/firefox</command> once as the
182 <systemitem class="username">root</systemitem> user (or any user with
183 write privileges) to create some necessary additional files in the
184 <filename class='directory'>/usr</filename> hierarchy.</para>
185 </note>
186
187 <para>Lastly, unset the build variables from the unprivileged user's
188 environment:</para>
189
190<screen><userinput>unset MOZILLA_OFFICIAL &amp;&amp;
191unset BUILD_OFFICIAL &amp;&amp;
192unset MOZ_PHOENIX</userinput></screen>
193
194 </sect2>
195
196 <sect2 role="commands">
197 <title>Command Explanations</title>
198
199 <para><command>sed -i '...' browser/app/mozilla.in</command>: This command
200 fixes an issue where <application>Firefox</application> wants to call the
201 profile manager instead of just invoking another copy of itself.</para>
202
203 </sect2>
204
205 <sect2 role="configuration">
206 <title>Configuring Firefox</title>
207
208 <para>No specific configuration is required as long as the
209 <command>firefox</command> script is in the user's path. If
210 <application>Firefox</application> is installed in a non-standard location,
211 then make a symlink to the <command>firefox</command> script from
212 <filename class="directory">/usr/bin</filename>.</para>
213
214 <para>Many applications look for <command>netscape</command> when they
215 need to open a browser. You may make the following symlink for convenience
216 (as the <systemitem class="username">root</systemitem> user).</para>
217
218<screen role="root"><userinput>ln -v -sf firefox /usr/bin/netscape</userinput></screen>
219
220 <para>For installing various <application>Firefox</application> plugins,
221 refer to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's
222 PluginDoc Project</ulink>. If you have <xref linkend="jdk"/> already
223 installed, create the following link as the
224 <systemitem class="username">root</systemitem> user to utilize the
225 <application>JAVA</application> plugin: </para>
226
227<screen role="root"><userinput>ln -v -s $JAVA_HOME/jre/plugin/i386/ns7/libjavaplugin_oji.so \
228 /usr/lib/firefox-&firefox-version;/plugins</userinput></screen>
229
230 </sect2>
231
232 <sect2 role="content">
233 <title>Contents</title>
234
235 <segmentedlist>
236 <segtitle>Installed Programs</segtitle>
237 <segtitle>Installed Libraries</segtitle>
238 <segtitle>Installed Directories</segtitle>
239
240 <seglistitem>
241 <seg>firefox and firefox-config</seg>
242 <seg>Numerous libraries, browser components, plugins, extensions, and
243 helper modules installed in <filename
244 class='directory'>/usr/lib/firefox-&firefox-version;</filename></seg>
245 <seg>/usr/bin/defaults, /usr/include/firefox-&firefox-version;,
246 /usr/lib/firefox-&firefox-version;, and
247 /usr/share/idl/firefox-&firefox-version;</seg>
248 </seglistitem>
249 </segmentedlist>
250
251 <variablelist>
252 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
253 <?dbfo list-presentation="list"?>
254 <?dbhtml list-presentation="table"?>
255
256 <varlistentry id="firefox-prog">
257 <term><command>firefox</command></term>
258 <listitem>
259 <para>is the next-generation browser from Mozilla.</para>
260 <indexterm zone="firefox firefox-prog">
261 <primary sortas="b-firefox">firefox</primary>
262 </indexterm>
263 </listitem>
264 </varlistentry>
265
266 <varlistentry id="firefox-config">
267 <term><command>firefox-config</command></term>
268 <listitem>
269 <para>determines the compile and linker flags that should be
270 used to compile and link programs that use
271 <application>Firefox</application> libraries and browser
272 components.</para>
273 <indexterm zone="firefox firefox-config">
274 <primary sortas="b-firefox-config">firefox-config</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 </variablelist>
280
281 </sect2>
282
283</sect1>
Note: See TracBrowser for help on using the repository browser.