source: xsoft/graphweb/seamonkey.xml@ 525ba58

ken/TL2024 lazarus trunk xry111/llvm18
Last change on this file since 525ba58 was 525ba58, checked in by Xi Ruoyao <xry111@…>, 3 months ago

Update to SeaMonkey-2.53.18.1 (#19420)

  • Property mode set to 100644
File size: 17.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 seamonkey-download-http "https://archive.seamonkey-project.org/releases/&seamonkey-version;/source/seamonkey-&seamonkey-version;.source.tar.xz">
8 <!ENTITY seamonkey-download-ftp " ">
9 <!ENTITY seamonkey-md5sum "1431db903ed8f3361225146fb3ab0dc7">
10 <!ENTITY seamonkey-size "241 MB">
11 <!ENTITY seamonkey-buildsize "4.2 GB (159 MB installed)">
12 <!ENTITY seamonkey-time "11 SBU (with parallelism=4)">
13]>
14
15<sect1 id="seamonkey" xreflabel="seamonkey-&seamonkey-version;">
16 <?dbhtml filename="seamonkey.html" ?>
17
18
19 <title>Seamonkey-&seamonkey-version;</title>
20
21 <indexterm zone="seamonkey">
22 <primary sortas="a-seamonkey">seamonkey</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Seamonkey</title>
27
28 <para>
29 <application>Seamonkey</application> is a browser suite, a descendant
30 of <application>Netscape</application>. It includes the browser,
31 composer, mail and news clients, and an IRC client.
32 </para>
33
34 <para>
35 It is the community-driven follow-on to the Mozilla Application Suite,
36 created after Mozilla decided to focus on separate applications for
37 browsing and e-mail. Those applications are
38 <xref linkend="firefox"/> and <xref linkend="thunderbird"/>.
39 </para>
40
41 &lfs121_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&seamonkey-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&seamonkey-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &seamonkey-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &seamonkey-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &seamonkey-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &seamonkey-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <!--
78 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
79 <itemizedlist spacing="compact">
80 <listitem>
81 <para>
82 Required patch:
83 <ulink url="&patch-root;/seamonkey-&seamonkey-version;-consolidated_fixes-1.patch"/>
84 </para>
85 </listitem>
86 <listitem>
87 <para>
88 Required Python module:
89 <ulink url="&pymodules-dl;/s/setuptools/setuptools-&setuptools-version;.tar.gz"/>
90 </para>
91 <para>
92 This module has already been installed in LFS, but now we need
93 to rebuild its wheel package for the SeaMonkey build system.
94 </para>
95 </listitem>
96 </itemizedlist>
97 -->
98
99 <note>
100 <para>
101 The tarball
102 <emphasis>seamonkey-&seamonkey-version;.source.tar.xz</emphasis> will
103 untar to <emphasis>seamonkey-&seamonkey-version;</emphasis> directory.
104 </para>
105 </note>
106
107 <bridgehead renderas="sect3">Seamonkey Dependencies</bridgehead>
108
109 <bridgehead renderas="sect4">Required</bridgehead>
110 <para role="required">
111 <!--xref linkend="autoconf213"/-->
112 <xref linkend="cbindgen"/>,
113 <xref linkend="gtk3"/>,
114 <xref linkend="nodejs"/>,
115 <xref linkend="python311"/>,
116 <xref linkend="unzip"/>,
117 <xref linkend="yasm"/>, and
118 <xref linkend="zip"/>
119 </para>
120
121 <bridgehead renderas="sect4">Recommended</bridgehead>
122 <para role="recommended">
123 <xref linkend="icu"/>,
124 <xref linkend="libevent"/>,
125 <!--<xref linkend="libvpx"/>, Causes build failures similar to Firefox -->
126 <xref linkend="libwebp"/>,
127 <xref linkend="llvm"/> (with clang),
128 <xref linkend="nasm"/>,
129 <xref linkend="nspr"/>,
130 <xref linkend="nss"/>, and
131 <xref linkend="pulseaudio"/>
132 <!-- <xref linkend="sqlite"/> system version no longer supported -->
133 </para>
134<!--
135 <bridgehead renderas="sect4">Optional</bridgehead>
136 <para role="optional">
137 <xref linkend="sqlite"/> (not recommended due to potential
138 security concerns)
139 </para>
140-->
141 <note>
142 <para>
143 If you don't install recommended dependencies, then internal copies of
144 those packages will be used. They might be tested to work, but they can
145 be out of date or contain security holes.
146 </para>
147 </note>
148
149 <bridgehead renderas="sect4">Optional</bridgehead>
150 <para role="optional">
151 <xref linkend="alsa-lib"/>,
152 <xref linkend="dbus-glib"/>,
153 <xref linkend="startup-notification"/>,
154 <xref linkend="valgrind"/>,
155 <xref linkend="wget"/>,
156 <xref linkend="wireless_tools"/>,
157 <ulink url="https://hunspell.sourceforge.net/">Hunspell</ulink>,
158 <ulink url="https://gitlab.gnome.org/Archive/gconf">Gconf</ulink>, and
159 <ulink url="https://facebook.github.io/watchman/">Watchman</ulink>
160 </para>
161
162 </sect2>
163
164 <sect2 role="installation">
165 <title>Installation of Seamonkey</title>
166
167 <para>
168 The configuration of <application>Seamonkey</application> is accomplished
169 by creating a <filename>mozconfig</filename> file containing the desired
170 configuration options. A default <filename>mozconfig</filename> file is
171 created below. To see the entire list of available configuration options
172 (and an abbreviated description of each one), issue
173 <command>./configure --help</command>. You may also wish to review the
174 entire file and uncomment any other desired options. Create the file by
175 issuing the following command:
176 </para>
177
178<screen><?dbfo keep-together="auto"?><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
179<literal># If you have a multicore machine, all cores will be used
180
181# If you have installed DBus-Glib comment out this line:
182ac_add_options --disable-dbus
183
184# If you have installed dbus-glib, and you have installed (or will install)
185# wireless-tools, and you wish to use geolocation web services, comment out
186# this line
187ac_add_options --disable-necko-wifi
188
189# Uncomment these lines if you have installed optional dependencies:
190#ac_add_options --enable-system-hunspell
191#ac_add_options --enable-startup-notification
192
193# Uncomment the following option if you have not installed PulseAudio
194#ac_add_options --disable-pulseaudio
195# and uncomment this if you installed alsa-lib instead of PulseAudio
196#ac_add_options --enable-alsa
197
198# Comment out the following option if you have gconf installed
199ac_add_options --disable-gconf
200
201# Comment out following options if you have not installed
202# recommended dependencies:
203ac_add_options --with-system-icu
204ac_add_options --with-system-libevent
205ac_add_options --with-system-nspr
206ac_add_options --with-system-nss
207ac_add_options --with-system-webp
208
209# Disabling debug symbols makes the build much smaller and a little
210# faster. Comment this if you need to run a debugger. Note: This is
211# required for compilation on i686.
212ac_add_options --disable-debug-symbols
213<!-- With Firefox ESR 128 we'd replace the following part with
214"- -enable-elf-hack=relr", or remove it if relr becomes the default.
215But I've no idea if SeaMonkey will have this change backported. -->
216# The elf-hack is reported to cause failed installs (after successful builds)
217# on some machines. It is supposed to improve startup time and it shrinks
218# libxul.so by a few MB. With recent Binutils releases the linker already
219# supports a much safer and generic way for this.
220ac_add_options --disable-elf-hack
221ac_add_options --enable-linker=bfd
222export LDFLAGS="$LDFLAGS -Wl,-z,pack-relative-relocs"
223
224# Seamonkey has some additional features that are not turned on by default,
225# such as an IRC client, calendar, and DOM Inspector. The DOM Inspector
226# aids with designing web pages. Comment these options if you do not
227# desire these features.
228ac_add_options --enable-calendar
229ac_add_options --enable-dominspector
230ac_add_options --enable-irc
231
232# The BLFS editors recommend not changing anything below this line:
233ac_add_options --prefix=/usr
234ac_add_options --enable-application=comm/suite
235
236ac_add_options --disable-crashreporter
237ac_add_options --disable-updater
238ac_add_options --disable-tests
239
240# The Rust code for SIMD optimization is much more outdated than
241# Firefox and Thunderbird, so it does not build with recent Rustc.
242ac_add_options --disable-rust-simd
243
244ac_add_options --enable-strip
245ac_add_options --enable-install-strip
246
247# You cannot distribute the binary if you do this.
248ac_add_options --enable-official-branding
249
250# The option to use system cairo was removed in 2.53.9.
251ac_add_options --enable-system-ffi
252ac_add_options --enable-system-pixman
253
254ac_add_options --with-system-bz2
255ac_add_options --with-system-jpeg
256ac_add_options --with-system-png
257ac_add_options --with-system-zlib
258
259export CC=clang CXX=clang++</literal>
260EOF</userinput></screen>
261
262 <note>
263 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
264 href="../../xincludes/mozshm.xml"/>
265 </note>
266
267<!-- Restore when no longer using Python 3.11. We may want to restore the patch
268 at that point as well, which includes the 'distro' and 'ICU' changes. -renodr
269 <para>
270 First, fix several problems that occur with Python-3.12 and ICU-74.
271 If you are not using ICU-74 and Python-3.12, do not apply this patch.
272 </para>
273
274<screen><userinput>patch -Np1 -i ../seamonkey-&seamonkey-version;-consolidated_fixes-1.patch</userinput></screen>
275
276 <para>
277 Next, if you are using Python-3.12, reinstall the setuptools package for
278 Seamonkey, and update it's vendored copy of pip:
279 </para>
280
281<screen><userinput>ln -sv /usr/lib/python&python3-majorver;/ensurepip/_bundled/pip-*.whl \
282 third_party/python/virtualenv/virtualenv_support &amp;&amp;
283
284tar xf ../setuptools-&setuptools-version;.tar.gz &amp;&amp;
285pip3 wheel - -no-build-isolation - -no-deps - -no-cache-dir \
286 $PWD/setuptools-&setuptools-version; \
287 -w third_party/python/virtualenv/virtualenv_support</userinput></screen>
288-->
289
290 <para>
291 First, if you are building with system ICU, adapt the line break mapping
292 for ICU-74 and later:
293 </para>
294
295<screen><userinput remap="pre">(for i in {43..47}; do
296 sed '/ZWJ/s/$/,CLASS_CHARACTER/' -i intl/lwbrk/LineBreaker.cpp || exit $?
297done)</userinput></screen>
298
299 <para>
300 Next, fix a problem with the bundled 'distro' python module:
301 </para>
302
303<screen><userinput remap="pre">sed -e '1012 s/stderr=devnull/stderr=subprocess.DEVNULL/' \
304 -e '1013 s/OSError/(OSError, subprocess.CalledProcessError)/' \
305 -i third_party/python/distro/distro.py</userinput></screen>
306
307 <para>
308 Compile <application>Seamonkey</application> by running the following
309 commands:
310 </para>
311
312<screen><userinput>export PATH_PY311=/opt/python3.11/bin:$PATH &amp;&amp;
313PATH=$PATH_PY311 AUTOCONF=true ./mach build</userinput></screen>
314
315 <para>
316 This package does not come with a test suite.
317 </para>
318
319 <para>
320 Install <application>Seamonkey</application> by issuing the following
321 commands as the <systemitem class="username">root</systemitem> user:
322 </para>
323
324 <note>
325 <para>
326 If <command>sudo</command> or <command>su</command> is invoked for
327 opening a shell running as the &root; user, ensure
328 <envar>PATH_PY311</envar> is correctly passed or the
329 following command will fail. For <command>sudo</command>, use the
330 <option>--preserve-env=PATH_PY311</option> option.
331 For <command>su</command>, do <emphasis>not</emphasis> use the
332 <option>-</option> or <option>--login</option> options.
333 </para>
334 </note>
335
336<screen role="root"><userinput>PATH=$PATH_PY311 ./mach install &amp;&amp;
337chown -R 0:0 /usr/lib/seamonkey &amp;&amp;
338
339cp -v $(find -name seamonkey.1 | head -n1) /usr/share/man/man1</userinput></screen>
340
341 <para>
342 Finally, unset the <envar>PATH_PY311</envar> variable:
343 </para>
344
345<screen><userinput>unset $PATH_PY311</userinput></screen>
346
347 </sect2>
348
349 <sect2 role="commands">
350 <title>Command Explanations</title>
351
352 <para>
353 <command>export CC=clang CXX=clang++</command>:
354 With the introduction of <application>gcc-12</application>, many
355 more warnings are generated when compiling mozilla applications
356 and that results in a much slower, and larger, build. Furthermore,
357 building with GCC on i?86 is currently broken.
358 Although upstream mozilla code defaults to using
359 <application>llvm</application> unless overridden, the older configure
360 code in <application>Seamonkey</application> defaults to gcc.
361 </para>
362
363<!--
364 <para>
365 <command>AUTOCONF=true ./mach configure</command>: This validates
366 the supplied dependencies and the <filename>mozconfig</filename>.
367 The building system always checks for an old version (2.13) of
368 autoconf, but it's not really needed because the necessary
369 <command>configure</command> scripts are already shipped in the
370 tarball and we've not modified the <filename>configure.in</filename>
371 files. So we pass <envar>AUTOCONF=true</envar> so the building system
372 will skip the checking for autoconf-2.13 and allow building this
373 package without autoconf-2.13 installed.
374 </para>
375-->
376
377 <para>
378 <option>./mach build --verbose</option>: Use this alternative if you
379 need details of which files are being compiled, together with any C or
380 C++ flags being used. But do not add '--verbose' to the install command,
381 it is not accepted there.
382 </para>
383
384 <para>
385 <option>./mach build -jN</option>: The build should, by default, use
386 all the online CPU cores. If using all the cores causes the build to swap
387 because you have insufficient memory, using fewer cores can be faster.
388 </para>
389
390 </sect2>
391
392 <sect2 role="configuration">
393 <title>Configuring Seamonkey</title>
394
395 <para>
396 For installing various <application>Seamonkey</application> add-ons, refer
397 to <ulink url="https://addons.thunderbird.net/en-US/seamonkey/">Add-ons
398 for Seamonkey</ulink>.
399 </para>
400
401 <para>
402 Along with using the <quote>Preferences</quote> menu to configure
403 <application>Seamonkey</application>'s options and preferences to suit
404 individual tastes, finer grain control of many options is only available
405 using a tool not available from the general menu system. To access this
406 tool, you'll need to open a browser window and enter
407 <systemitem role="url">about:config</systemitem> in the address bar. This
408 will display a list of the configuration preferences and information
409 related to each one. You can use the <quote>Search:</quote> bar to enter
410 search criteria and narrow down the listed items. Changing a preference
411 can be done using two methods. One, if the preference has a boolean value
412 (True/False), simply double-click on the preference to toggle the value
413 and two, for other preferences simply right-click on the desired line,
414 choose <quote>Modify</quote> from the menu and change the value. Creating
415 new preference items is accomplished in the same way, except choose
416 <quote>New</quote> from the menu and provide the desired data into the
417 fields when prompted.
418 </para>
419
420 <para>
421 If you use a desktop environment like <application>Gnome</application> or
422 <application>KDE</application> you may wish to create a
423 <filename>seamonkey.desktop</filename> file so that
424 <application>Seamonkey</application> appears in the panel's menus. If you
425 didn't enable <application>Startup-Notification</application> in your
426 mozconfig change the StartupNotify line to false. As the
427 <systemitem class="username">root</systemitem> user:
428 </para>
429
430<screen role="root"><userinput>mkdir -pv /usr/share/{applications,pixmaps} &amp;&amp;
431
432cat &gt; /usr/share/applications/seamonkey.desktop &lt;&lt; "EOF"
433<literal>[Desktop Entry]
434Encoding=UTF-8
435Type=Application
436Name=Seamonkey
437Comment=The Mozilla Suite
438Icon=seamonkey
439Exec=seamonkey
440Categories=Network;GTK;Application;Email;Browser;WebBrowser;News;
441StartupNotify=true
442Terminal=false</literal>
443EOF
444
445ln -sfv /usr/lib/seamonkey/chrome/icons/default/default128.png \
446 /usr/share/pixmaps/seamonkey.png</userinput></screen>
447 </sect2>
448
449 <sect2 role="content">
450 <title>Contents</title>
451
452 <segmentedlist>
453 <segtitle>Installed Programs</segtitle>
454 <segtitle>Installed Libraries</segtitle>
455 <segtitle>Installed Directory</segtitle>
456
457 <seglistitem>
458 <seg>seamonkey</seg>
459 <seg>
460 Numerous libraries, browser, and email/newsgroup components, plugins,
461 extensions, and helper modules installed in
462 <filename class="directory">/usr/lib/seamonkey</filename>
463 </seg>
464 <seg>
465 /usr/lib/seamonkey
466 </seg>
467 </seglistitem>
468 </segmentedlist>
469
470 <variablelist>
471 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
472 <?dbfo list-presentation="list"?>
473 <?dbhtml list-presentation="table"?>
474
475 <varlistentry id="seamonkey-prog">
476 <term><command>seamonkey</command></term>
477 <listitem>
478 <para>
479 is the Mozilla browser/email/newsgroup/chat client suite
480 </para>
481 <indexterm zone="seamonkey seamonkey-prog">
482 <primary sortas="b-seamonkey">seamonkey</primary>
483 </indexterm>
484 </listitem>
485 </varlistentry>
486 </variablelist>
487 </sect2>
488
489</sect1>
Note: See TracBrowser for help on using the repository browser.