source: xsoft/graphweb/seamonkey.xml@ 793b567

12.2 gimp3 lazarus trunk xry111/for-12.3 xry111/spidermonkey128
Last change on this file since 793b567 was 83875ca, checked in by Xi Ruoyao <xry111@…>, 5 months ago

seamonkey: Patch to unbreak building with ICU-75.1

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