source: xsoft/graphweb/mozilla/mozilla-inst.xml@ 904004f

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 v5_0 v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 904004f was 904004f, checked in by Tushar Teredesai <tushar@…>, 21 years ago

Fixed mozilla patch commands

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

  • Property mode set to 100644
File size: 5.2 KB
Line 
1<sect2>
2<title>Installation of <application>Mozilla</application></title>
3
4<note>
5<para>According to the financial institutions, the following hack makes your
6browser insecure. You have been warned. Many sites use an MS-IE specific tag
7(autocomplete=off) to prevent autocomplete from working in some forms. This
8tag is now supported in <application>Mozilla</application> to appease the financial institutions. As per
9the requirements of the financial institutions, they will not even accept a
10solution where this a preference option. However our opinion is that it should
11be in the hands of the user. To enable autocomplete to bypass
12this restriction, we need to make a slight modification in the code.</para>
13
14<para>Open the file <filename>extensions/wallet/src/wallet.cpp</filename> in
15the <application>Mozilla</application> source tree and search for the line:
16<screen>#define WALLET_DONT_CACHE_ALL_PASSWORDS</screen>
17Then delete or comment out the line. Now, if anyone tells you MS-IE is user
18friendly, give them this example!</para>
19</note>
20
21<para>Install <application>Mozilla</application> by running the following
22commands:</para>
23
24<screen><userinput><command>export MOZILLA_OFFICIAL="1" &amp;&amp;
25export BUILD_OFFICIAL="1" &amp;&amp;
26./configure --prefix=/usr \
27 --enable-default-mozilla-five-home \
28 --enable-toolkit-gtk2 --enable-default-toolkit=gtk2 \
29 --with-x --with-system-zlib \
30 --with-system-jpeg --with-system-png --with-system-mng \
31 --enable-xft --enable-crypto \
32 --enable-java-supplement \
33 --disable-accessibility \
34 --disable-tests --disable-debug \
35 --disable-logging --enable-reorder \
36 --enable-strip --disable-pedantic \
37 --enable-cpp-rtti --enable-extensions=all &amp;&amp;
38make &amp;&amp;
39make install &amp;&amp;
40install -d /usr/include/mozilla-&mozilla-version;/nss &amp;&amp;
41cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
42 /usr/include/mozilla-&mozilla-version;/nss &amp;&amp;
43ln -nsf mozilla-&mozilla-version; /usr/include/mozilla &amp;&amp;
44ln -nsf mozilla-&mozilla-version; /usr/lib/mozilla &amp;&amp;
45cd /usr/lib/mozilla-&mozilla-version; &amp;&amp;
46export LD_LIBRARY_PATH="/usr/lib/mozilla-&mozilla-version;" &amp;&amp;
47export MOZILLA_FIVE_HOME="/usr/lib/mozilla-&mozilla-version;" &amp;&amp;
48./regxpcom &amp;&amp;
49./regchrome &amp;&amp;
50touch `find /usr/lib/mozilla-&mozilla-version; -name *.rdf`</command></userinput></screen>
51
52</sect2>
53
54<sect2>
55<title>Optional Extra Switches</title>
56
57<para>Each of these switches can be added to the configure line in order to
58have the described effect on the <application>Mozilla</application> compile.</para>
59
60<para><option>--enable-elf-dynstr-gc</option>: Removes un-referenced
61strings from <acronym>ELF</acronym> shared objects generated during the build.
62Note that this option breaks build on alpha.</para>
63
64<para><option>--disable-mailnews</option>: Disable the mail and news
65clients.</para>
66
67<para><option>--disable-ldap</option>: Disable <acronym>LDAP</acronym>
68Support, recommended if mail is disabled.</para>
69
70<para><option>--enable-calendar</option>: Build the calendar client.
71You will need to download the calendar source via
72<application><acronym>CVS</acronym></application> since it is not included
73with the release source.
74(Warning, this option is not yet stable).</para>
75
76<para><option>--enable-xterm-updates</option>: This option is
77for enabling the <command>xterm</command> title with the current command when
78compiling.</para>
79
80<para><option>--enable-plaintext-editor-only</option>: Disable support
81for <acronym>HTML</acronym> editing. Do not use this switch if you are building
82the mail-news component.</para>
83
84</sect2>
85
86<sect2>
87<title>Additional build notes for <application>Mozilla Firebird</application> &firebird-version;</title>
88
89<para>Add the following env variable (The variable is named Phoenix since
90that was the original name for the <application>Mozilla
91Firebird</application> project):</para>
92
93<screen><userinput><command>export MOZ_PHOENIX="1"</command></userinput></screen>
94
95<para>Make sure that the following switches are passed to
96<command>./configure</command>: <option>--disable-calendar</option> and
97<option>--disable-mailnews</option>.</para>
98
99<para>We recommend installing in a separate prefix
100such as <parameter>--prefix=/opt/firebird-&firebird-version;</parameter>
101to prevent clashes with
102an installed <application>Mozilla</application>.</para>
103
104<para>The <application>Mozilla Firebird</application> executable is
105<command>MozillaFirebird</command>.</para>
106
107</sect2>
108
109<sect2>
110<title>Additional build notes for <application>Mozilla Thunderbird</application> &thunderbird-version;</title>
111
112<para>Add the following env variable:</para>
113
114<screen><userinput><command>export MOZ_THUNDERBIRD="1"</command></userinput></screen>
115
116<para>Make sure that the following switches is passed to
117<command>./configure</command>: <option>--disable-calendar</option>.</para>
118
119<para>We recommend installing in a separate prefix
120such as
121<parameter>--prefix=/opt/thunderbird-&thunderbird-version;</parameter>
122to prevent clashes with
123an installed <application>Mozilla</application>.</para>
124
125<para>The <application>Mozilla Thunderbird</application> executable is
126<command>thunderbird</command>.</para>
127
128</sect2>
Note: See TracBrowser for help on using the repository browser.