source: xsoft/graphweb/seamonkey.xml@ 3dcc5df

lazarus trunk
Last change on this file since 3dcc5df was 7f44495, checked in by Xi Ruoyao <xry111@…>, 3 months ago

firefox, seamonkey: Remove "--disable-debug-symbols needed for 32-bit"

We added this because of a NASM bug. When I checked its status for
NASM 2.16.02 I found it had been fixed for NASM >= 2.16.

Note that --disable-debug-symbols is still used so we won't produce
stupidly large binaries. Just change a comment.

Link: https://bugzilla.nasm.us/show_bug.cgi?id=3392807

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