commit mozilla instructions from Tushar

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@251 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Mark Hymers 2002-09-22 00:51:05 +00:00
parent 22d378f06d
commit 2aaa7e552f
8 changed files with 233 additions and 3 deletions

View File

@ -10,6 +10,9 @@ page in Chapter 1 for details on who wrote what.</para>
<itemizedlist>
<listitem><para>September 21st, 2002 [markh]: Xsoft: Committed Tushar's
mozilla instructions.</para></listitem>
<listitem><para>September 21st, 2002 [larry]: Converted leading spaces
to &nbsp in qt instructions. Change libld to libdl in bootdisk and
changed /mnt/lib to /mnt/loop1/lib.</para></listitem>

View File

@ -1,8 +1,11 @@
<sect1 id="mozilla" xreflabel="mozilla">
<sect1 id="mozilla" xreflabel="mozilla-&mozilla-version;">
<?dbhtml filename="mozilla.html" dir="xsoft"?>
<title>mozilla</title>
<title>mozilla-&mozilla-version;</title>
<para>TO BE DONE</para>
&mozilla-intro;
&mozilla-inst;
&mozilla-exp;
&mozilla-desc;
</sect1>

View File

@ -0,0 +1,13 @@
<sect2>
<title>Configuring openoffice</title>
<para>No specific configuration is required as long as the mozilla binary is
in the path for the user. If you have installed mozilla in a non-standard
location such as &mozilla-prefix;, then make a sym-link to the mozilla binary
from /usr/bin.</para>
<para>For installing various mozilla plugins, refer to the above mentioned
URL for the mozilla hint.</para>
</sect2>

View File

@ -0,0 +1,9 @@
<sect2>
<title>Contents</title>
<para>The openoffice package contains <userinput>mozilla</userinput>.The various
components such as composer, mail-news can be accessed from the menu after
mozilla starts or via command line switches to the mozilla binary.
</para>
</sect2>

View File

@ -0,0 +1,55 @@
<sect2>
<title>Command explanations</title>
<para><userinput>export MOZILLA_OFFICIAL="1" &amp;&amp;
export BUILD_OFFICIAL="1" &amp;&amp;
export MOZ_INTERNAL_LIBART_LGPL="1"</userinput>
Set some variables that affect what and how it is built. The first two exports
specify that we are building a distribution. The last export specifies that we
are ok with the LGPL versioned libart.</para>
<para><screen><userinput>--with-system-zlib --with-system-jpeg \
--with-system-png --with-system-mng"</userinput></screen>
Use the system versions for these packages.</para>
<para><userinput>--enable-xft</userinput>: Enable the Xft
support.</para>
<para><userinput>--enable-crypto</userinput>: Enable the Personal
Security Manager to enable SSL connections.</para>
<para><screen><userinput>--disable-jsd --disable-accessibility \
--disable-tests --disable-debug \
--enable-optimize=-O3 --disable-dtd-debug \
--disable-logging --enable-reorder \
--enable-strip --enable-elf-dynstr-gc \
--enable-cpp-rtt</userinput></screen>
Disable all debugging options and enable all optimization options. You can
pick and choose from these options. More information on them can be found
in the mozilla configure script help.</para>
<para><userinput>--enable-extensions=all</userinput>: Enables all of the
extensions. If you want, you can disable all extensions other than the
browser by changing this switch to
<userinput>--enable-extensions="default,-venkman,-inspector,-irc"</userinput>.</para>
<para><userinput>--enable-svg</userinput>: Enable SVG (Scalable Vector
Graphics) support.</para>
<para><screen><userinput>install -d &mozilla-prefix;/include/mozilla-&mozilla-version;/security
cp -Lf dist/private/security/*.h dist/public/security/*.h \
&mozilla-prefix;/include/mozilla-&mozilla-version;/security</userinput></screen>
Copy the nss headers that are not copied by make install.</para>
<para><userinput>ln -sf mozilla /usr/X11R6/bin/netscape</userinput>: Since
many applications expect the browser to be named netscape, make a symbolic
link for convenience.</para>
<para><screen><userinput>export LD_LIBRARY_PATH="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &amp;&amp;
export MOZILLA_FIVE_HOME="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &amp;&amp;
./regxpcom &amp;&amp;
./regchrome &amp;&amp;
touch `find &mozilla-prefix;/lib/mozilla-${VERSION} -name *.rdf`</userinput></screen>
Create the required component registries to enable multi-user installs.</para>
</sect2>

View File

@ -0,0 +1,95 @@
<sect2>
<title>Installation of mozilla</title>
<para>Install mozilla by running the following commands (don't forget to
bunzip2 the patch file first):</para>
<para><screen><userinput>export MOZILLA_OFFICIAL="1" &amp;&amp;
export BUILD_OFFICIAL="1" &amp;&amp;
export MOZ_INTERNAL_LIBART_LGPL="1" &amp;&amp;
echo "MOZILLA_OFFICIAL=1" >> .mozconfig &amp;&amp;
echo "mk_add_options MOZILLA_OFFICIAL=1" >> .mozconfig &amp;&amp;
echo "BUILD_OFFICIAL=1" >> .mozconfig &amp;&amp;
echo "mk_add_options BUILD_OFFICIAL=1" >> .mozconfig &amp;&amp;
echo "MOZ_INTERNAL_LIBART_LGPL=1" >> .mozconfig &amp;&amp;
echo "mk_add_options MOZ_INTERNAL_LIBART_LGPL=1" >> .mozconfig &amp;&amp;
cd extensions &amp;&amp;
rm -rf spellcheck &amp;&amp;
tar -xjf ../mozilla-&mozilla-version;-spellchecker.tar.bz2 &amp;&amp;
cd .. &amp;&amp;
patch -Np1 -i mozilla-&mozilla-version;.patch &amp;&amp;
./configure --prefix=&mozilla-prefix; \
--enable-default-mozilla-five-home \
--with-x --with-system-zlib \
--with-system-jpeg --with-system-png --with-system-mng \
--enable-xft --enable-crypto \
--enable-java-supplement \
--disable-jsd --disable-accessibility \
--disable-tests --disable-debug \
--enable-optimize=-O3 --disable-dtd-debug \
--disable-logging --enable-reorder \
--enable-strip --enable-elf-dynstr-gc \
--enable-cpp-rtti --enable-extensions=all \
--enable-svg
make &amp;&amp;
make install &amp;&amp;
install -d &mozilla-prefix;/include/mozilla-&mozilla-version;/security &amp;&amp;
cp -Lf dist/private/security/*.h dist/public/security/*.h \
&mozilla-prefix;/include/mozilla-&mozilla-version;/security &amp;&amp;
ln -sf mozilla /usr/X11R6/bin/netscape &amp;&amp;
cd &mozilla-prefix;/lib/mozilla-&mozilla-version; &amp;&amp;
export LD_LIBRARY_PATH="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &amp;&amp;
export MOZILLA_FIVE_HOME="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &amp;&amp;
./regxpcom &amp;&amp;
./regchrome &amp;&amp;
touch `find &mozilla-prefix;/lib/mozilla-&mozilla-version; -name *.rdf`</userinput></screen></para>
</sect2>
<sect2>
<title>Optional Extra Switches</title>
<para>Each of these switches can be added to the configure line in order to
have the described effect on the mozilla compile.</para>
<para><userinput>--disable-mailnews</userinput>: Disable the mail and news
clients.</para>
<para><userinput>--disable-ldap</userinput>: Disable LDAP Support,
recommended if mail is disabled.</para>
<para><userinput>--enable-calendar</userinput>: Build the calendar client.
(Warning, this option is not yet stable).</para>
<para><userinput>--enable-xterm-updates</userinput>: This option is
for enabling the xterm title with the current command when compiling.</para>
<para><userinput>--enable-plaintext-editor-only</userinput>: Disable support
for HTML editing.</para>
<para><userinput>--enable-default-toolkit=gtk2</userinput>: In theory
mozilla now supports both gtk 1.2 and gtk 2.0. To enable gtk2 support, use
this option. People have however had problems getting a usable gtk2
built even with this and patches. There is also support for other toolkits
available but this support is known to be unstable. If you want to try one,
we suggest doing a normal build first and then only trying the other
toolkits when you know you can get a standard build to work.</para>
<para>According to the financial institutions, the following hack makes your
browser insecure. You have been warned. Many sites use an MS-IE specific tag
(autocomplete=off) to prevent autocomplete from working in some forms. This
tag is now supported in mozilla to appease the financial institutions. As per
the requirements of the financial institutions, they will not even accept a
solution where this a preference option. However our opinion is that it should
be in the hands of the user. To enable autocomplete to bypass
this restriction, we need to make a slight modification in the code.</para>
<para>Open the file <filename>extensions/wallet/src/wallet.cpp</filename> in
the mozilla source tree and search for the line:
<screen>#define WALLET_DONT_CACHE_ALL_PASSWORDS</screen>
Then delete or comment out the line. If anyone tells you MS-IE is user
friendly, give them this example! Note that unlike the patch referred to in
the hint, the patch on the BLFS website does not contain this hack so you
will need to enable it manually if you want it use it.</para>
</sect2>

View File

@ -0,0 +1,39 @@
<sect2>
<title>Introduction to mozilla</title>
<screen>
Download location (HTTP): <ulink url="&mozilla-download-http;"/>
Download location (FTP): <ulink url="&mozilla-download-ftp;"/>
Version used: &mozilla-version;
Package size: &mozilla-size;
Estimated Disk space required: &mozilla-buildsize;
Estimated Build time: &mozilla-buildtime;
Estimated Install size: &mozilla-installsize;</screen>
<para>Mozilla is a browser suite, the opensource sibling of
Netscape. It includes the browser, composer, mail client and an IRC client. A
calendar component is also being built but it is not yet integrated into the
stable mozilla releases.</para>
<screen>mozilla depends on:
<xref linkend="freetype2"/>, <xref linkend="xfree86"/>, <xref linkend="zip"/>,
<xref linkend="GLib"/>, <xref linkend="GTK"/>,
<xref linkend="ORBit"/>, <xref linkend="lcms"/>,
<xref linkend="libjpeg"/>, <xref linkend="libmng"/>,
<xref linkend="libpng"/>.</screen>
<para>Download the patch for various minor fixes to the build.
<screen><ulink url="&file-root;/mozilla-1.1.patch.bz2"/></screen></para>
<para>Download the spellchecker (a Mozdev project). The above patch also enables
building of the spellcheker.
<screen><ulink url="&file-root;/mozilla-1.1-spellchecker.tar.bz2"/></screen>
</para>
<para>If you have difficulties in building mozilla, check out the mozilla
hint for detailed information at <ulink url="http://tushar.lfsforum.org"/>.
Individual patches are also available at the same location. The instructions
that follow install the entire suite. To select specific components, refer
the hint.</para>
</sect2>

View File

@ -1 +1,14 @@
<!ENTITY mozilla SYSTEM "../mozilla.xml">
<!ENTITY mozilla-intro SYSTEM "mozilla-intro.xml">
<!ENTITY mozilla-inst SYSTEM "mozilla-inst.xml">
<!ENTITY mozilla-exp SYSTEM "mozilla-exp.xml">
<!ENTITY mozilla-desc SYSTEM "mozilla-desc.xml">
<!ENTITY mozilla-config SYSTEM "mozilla-config.xml">
<!ENTITY mozilla-buildsize "550 MB">
<!ENTITY mozilla-version "1.1">
<!ENTITY mozilla-prefix "/opt/mozilla">
<!ENTITY mozilla-download-http "http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.1/src/mozilla-source-1.1.tar.gz">
<!ENTITY mozilla-download-ftp "ftp://ftp.mozilla.org/pub/mozilla/releases/mozilla1.1/src/mozilla-source-1.1.tar.gz">
<!ENTITY mozilla-size "39 MB">
<!ENTITY mozilla-buildtime "2 Hrs (850 MHz)">
<!ENTITY mozilla-installsize "65 MB">