Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package seamonkey for openSUSE:Factory 
checked in at 2026-11-20 14:46:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/seamonkey (Old)
 and      /work/SRC/openSUSE:Factory/.seamonkey.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "seamonkey"

Fri Nov 20 14:46:51 2026 rev:48 rq:1398848 version:2.53.24

Changes:
--------
--- /work/SRC/openSUSE:Factory/seamonkey/seamonkey.changes      2026-11-17 
17:20:31.769944359 +0100
+++ /work/SRC/openSUSE:Factory/.seamonkey.new.1251/seamonkey.changes    
2026-11-20 14:49:56.250534709 +0100
@@ -1,0 +2,16 @@
+Wed Nov 18 17:56:59 UTC 2026 - Tristan Miller <[email protected]>
+
+- add patches from Gentoo allowing for builds with Python 3.13:
+  7000_py312_1857516.patch 7001_py312_1777414.patch
+  7003_py312_1755530.patch 7004_py312_1858062.patch
+  7005_py312_1752927.patch 7006_py312_1858065.patch
+  7007_py312_1766085.patch 7008_py312_1787628.patch
+  7009_py312_misc.patch 7010_py312_virtualenv.patch
+  7011_py312_setuptools.patch 7012_py312_remove_python_check.patch
+  7013_py312_1875052.patch 7014_py312_make_dafsa_fix.patch
+  7015_py312_regexp_warnings.patch 7016_py313_1677422.patch
+  7017_py313_virtualenv_pipes.patch 7018_py312_missing_packages.patch
+  7019_py314_1969769.patch
+- remove obsolete seamonkey-2.53.20-mach-use-python-311.patch
+
+-------------------------------------------------------------------

Old:
----
  seamonkey-2.53.20-mach-use-python-311.patch

New:
----
  7000_py312_1857516.patch
  7001_py312_1777414.patch
  7003_py312_1755530.patch
  7004_py312_1858062.patch
  7005_py312_1752927.patch
  7006_py312_1858065.patch
  7007_py312_1766085.patch
  7008_py312_1787628.patch
  7009_py312_misc.patch
  7010_py312_virtualenv.patch
  7011_py312_setuptools.patch
  7012_py312_remove_python_check.patch
  7013_py312_1875052.patch
  7014_py312_make_dafsa_fix.patch
  7015_py312_regexp_warnings.patch
  7016_py313_1677422.patch
  7017_py313_virtualenv_pipes.patch
  7018_py312_missing_packages.patch
  7019_py314_1969769.patch

----------(Old B)----------
  Old:  7019_py314_1969769.patch
- remove obsolete seamonkey-2.53.20-mach-use-python-311.patch
----------(Old E)----------

----------(New B)----------
  New:- add patches from Gentoo allowing for builds with Python 3.13:
  7000_py312_1857516.patch 7001_py312_1777414.patch
  7003_py312_1755530.patch 7004_py312_1858062.patch
  New:- add patches from Gentoo allowing for builds with Python 3.13:
  7000_py312_1857516.patch 7001_py312_1777414.patch
  7003_py312_1755530.patch 7004_py312_1858062.patch
  New:  7000_py312_1857516.patch 7001_py312_1777414.patch
  7003_py312_1755530.patch 7004_py312_1858062.patch
  7005_py312_1752927.patch 7006_py312_1858065.patch
  New:  7000_py312_1857516.patch 7001_py312_1777414.patch
  7003_py312_1755530.patch 7004_py312_1858062.patch
  7005_py312_1752927.patch 7006_py312_1858065.patch
  New:  7003_py312_1755530.patch 7004_py312_1858062.patch
  7005_py312_1752927.patch 7006_py312_1858065.patch
  7007_py312_1766085.patch 7008_py312_1787628.patch
  New:  7003_py312_1755530.patch 7004_py312_1858062.patch
  7005_py312_1752927.patch 7006_py312_1858065.patch
  7007_py312_1766085.patch 7008_py312_1787628.patch
  New:  7005_py312_1752927.patch 7006_py312_1858065.patch
  7007_py312_1766085.patch 7008_py312_1787628.patch
  7009_py312_misc.patch 7010_py312_virtualenv.patch
  New:  7005_py312_1752927.patch 7006_py312_1858065.patch
  7007_py312_1766085.patch 7008_py312_1787628.patch
  7009_py312_misc.patch 7010_py312_virtualenv.patch
  New:  7007_py312_1766085.patch 7008_py312_1787628.patch
  7009_py312_misc.patch 7010_py312_virtualenv.patch
  7011_py312_setuptools.patch 7012_py312_remove_python_check.patch
  New:  7007_py312_1766085.patch 7008_py312_1787628.patch
  7009_py312_misc.patch 7010_py312_virtualenv.patch
  7011_py312_setuptools.patch 7012_py312_remove_python_check.patch
  New:  7009_py312_misc.patch 7010_py312_virtualenv.patch
  7011_py312_setuptools.patch 7012_py312_remove_python_check.patch
  7013_py312_1875052.patch 7014_py312_make_dafsa_fix.patch
  New:  7009_py312_misc.patch 7010_py312_virtualenv.patch
  7011_py312_setuptools.patch 7012_py312_remove_python_check.patch
  7013_py312_1875052.patch 7014_py312_make_dafsa_fix.patch
  New:  7011_py312_setuptools.patch 7012_py312_remove_python_check.patch
  7013_py312_1875052.patch 7014_py312_make_dafsa_fix.patch
  7015_py312_regexp_warnings.patch 7016_py313_1677422.patch
  New:  7011_py312_setuptools.patch 7012_py312_remove_python_check.patch
  7013_py312_1875052.patch 7014_py312_make_dafsa_fix.patch
  7015_py312_regexp_warnings.patch 7016_py313_1677422.patch
  New:  7013_py312_1875052.patch 7014_py312_make_dafsa_fix.patch
  7015_py312_regexp_warnings.patch 7016_py313_1677422.patch
  7017_py313_virtualenv_pipes.patch 7018_py312_missing_packages.patch
  New:  7013_py312_1875052.patch 7014_py312_make_dafsa_fix.patch
  7015_py312_regexp_warnings.patch 7016_py313_1677422.patch
  7017_py313_virtualenv_pipes.patch 7018_py312_missing_packages.patch
  New:  7015_py312_regexp_warnings.patch 7016_py313_1677422.patch
  7017_py313_virtualenv_pipes.patch 7018_py312_missing_packages.patch
  7019_py314_1969769.patch
  New:  7015_py312_regexp_warnings.patch 7016_py313_1677422.patch
  7017_py313_virtualenv_pipes.patch 7018_py312_missing_packages.patch
  7019_py314_1969769.patch
  New:  7017_py313_virtualenv_pipes.patch 7018_py312_missing_packages.patch
  7019_py314_1969769.patch
- remove obsolete seamonkey-2.53.20-mach-use-python-311.patch
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ seamonkey.spec ++++++
--- /var/tmp/diff_new_pack.4A5Ya7/_old  2026-11-20 14:49:58.544631650 +0100
+++ /var/tmp/diff_new_pack.4A5Ya7/_new  2026-11-20 14:49:58.545631692 +0100
@@ -80,7 +80,6 @@
 Patch4:         seamonkey-2.53.7.1-man-page.patch
 Patch5:         seamonkey-2.53.20-boo1237231.patch
 Patch6:         seamonkey-2.53.17.1-bmo531915.patch
-Patch8:         seamonkey-2.53.20-mach-use-python-311.patch
 Patch9:         seamonkey-2.53.21-bmo1862601.patch
 Patch10:        seamonkey-2.53.21-bmo1927380.patch
 Patch11:        seamonkey-2.53.20-system-av1.patch
@@ -91,6 +90,27 @@
 Patch17:        seamonkey-2.53.24-rust_version.patch
 Patch18:        seamonkey-2.53.24-rust_u2fhid.patch
 
+# Python patches from Gentoo: 
https://github.com/BioMike/gentoo-seamonkey-patches/releases/tag/2.53.24-r1
+Patch7000:      7000_py312_1857516.patch
+Patch7001:      7001_py312_1777414.patch
+Patch7003:      7003_py312_1755530.patch
+Patch7004:      7004_py312_1858062.patch
+Patch7005:      7005_py312_1752927.patch
+Patch7006:      7006_py312_1858065.patch
+Patch7007:      7007_py312_1766085.patch
+Patch7008:      7008_py312_1787628.patch
+Patch7009:      7009_py312_misc.patch
+Patch7010:      7010_py312_virtualenv.patch
+Patch7011:      7011_py312_setuptools.patch
+Patch7012:      7012_py312_remove_python_check.patch
+Patch7013:      7013_py312_1875052.patch
+Patch7014:      7014_py312_make_dafsa_fix.patch
+Patch7015:      7015_py312_regexp_warnings.patch
+Patch7016:      7016_py313_1677422.patch
+Patch7017:      7017_py313_virtualenv_pipes.patch
+Patch7018:      7018_py312_missing_packages.patch
+Patch7019:      7019_py314_1969769.patch
+
 BuildRequires:  Mesa-devel
 BuildRequires:  alsa-devel
 BuildRequires:  autoconf213
@@ -113,7 +133,7 @@
 %endif
 BuildRequires:  makeinfo
 BuildRequires:  memory-constraints
-BuildRequires:  python311-base
+BuildRequires:  %{pythons} >= 3.11
 BuildRequires:  startup-notification-devel
 BuildRequires:  unzip
 BuildRequires:  translate-suse-desktop
@@ -276,7 +296,6 @@
 %patch -P 4 -p1
 %patch -P 5 -p1
 %patch -P 6 -p1
-%patch -P 8 -p1
 
 %if %{with system_icu}
 %patch -P 9 -p1
@@ -294,6 +313,34 @@
 %patch -P 17 -p1
 %patch -P 18 -p1
 
+%if %python_version_nodots >= 312
+%patch -P 7000 -p1
+%patch -P 7001 -p1
+%patch -P 7003 -p1
+%patch -P 7004 -p1
+%patch -P 7005 -p1
+%patch -P 7006 -p1
+%patch -P 7007 -p1
+%patch -P 7008 -p1
+%patch -P 7009 -p1
+%patch -P 7010 -p1
+%patch -P 7011 -p1
+%patch -P 7012 -p1
+%patch -P 7013 -p1
+%patch -P 7014 -p1
+%patch -P 7015 -p1
+%endif
+%if %python_version_nodots >= 313
+%patch -P 7016 -p1
+%patch -P 7017 -p1
+%endif
+%if %python_version_nodots >= 312
+%patch -P 7018 -p1
+%endif
+%if %python_version_nodots >= 314
+%patch -P 7019 -p1
+%endif
+
 %define with_sys()   ac_add_options --with%%{!?with_system_%1:out}-system-%1
 %define endis_sys()  ac_add_options 
--%%{?with_system_%1:enable}%%{!?with_system_%1:disable}-system-%1
 %define endis()      ac_add_options 
--%%{?with_%1:enable}%%{!?with_%1:disable}-%1

++++++ 7000_py312_1857516.patch ++++++
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/dom/bindings/mozwebidlcodegen/test/test_mozwebidlcodegen.py
 seamonkey-2.53.24/dom/bindings/mozwebidlcodegen/test/test_mozwebidlcodegen.py
--- 
seamonkey-2.53.24.orig/dom/bindings/mozwebidlcodegen/test/test_mozwebidlcodegen.py
  2026-05-30 15:08:55.000000000 +0200
+++ 
seamonkey-2.53.24/dom/bindings/mozwebidlcodegen/test/test_mozwebidlcodegen.py   
    2026-08-22 21:02:47.608168953 +0200
@@ -4,7 +4,6 @@
 
 from __future__ import unicode_literals
 
-import imp
 import io
 import json
 import os
@@ -20,7 +19,7 @@
     WebIDLCodegenManagerState,
 )
 
-from mozfile import NamedTemporaryFile
+from mozfile import NamedTemporaryFile, load_source
 
 from mozunit import (
     MockedOpen,
@@ -245,7 +244,7 @@
         with NamedTemporaryFile('wt') as fh:
             fh.write('# Original content')
             fh.flush()
-            mod = imp.load_source('mozwebidlcodegen.fakemodule', fh.name)
+            mod = load_source("mozwebidlcodegen.fakemodule", fh.name)
             mod.__file__ = fake_path
 
             args = self._get_manager_args()
diff '--color=auto' -urN seamonkey-2.53.24.orig/netwerk/dns/prepare_tlds.py 
seamonkey-2.53.24/netwerk/dns/prepare_tlds.py
--- seamonkey-2.53.24.orig/netwerk/dns/prepare_tlds.py  2026-05-30 
14:18:44.000000000 +0200
+++ seamonkey-2.53.24/netwerk/dns/prepare_tlds.py       2026-08-22 
21:02:47.622169559 +0200
@@ -4,11 +4,11 @@
 
 import codecs
 import encodings.idna
-import imp
-import os
 import re
 import sys
 
+from make_dafsa import words_to_bin, words_to_cxx
+
 """
 Processes a file containing effective TLD data.  See the following URL for a
 description of effective TLDs and of the file format that this script
@@ -20,7 +20,6 @@
 
 def getEffectiveTLDs(path):
   file = codecs.open(path, "r", "UTF-8")
-  entries = []
   domains = set()
   for line in file:
     # line always contains a line terminator unless the file is empty
diff '--color=auto' -urN seamonkey-2.53.24.orig/python/mach/mach/main.py 
seamonkey-2.53.24/python/mach/mach/main.py
--- seamonkey-2.53.24.orig/python/mach/mach/main.py     2026-05-30 
15:08:55.000000000 +0200
+++ seamonkey-2.53.24/python/mach/mach/main.py  2026-08-22 21:02:47.634170078 
+0200
@@ -10,16 +10,18 @@
 import argparse
 import codecs
 import errno
-import imp
 import logging
 import os
 import sys
 import traceback
+import types
 import uuid
 from collections.abc import Iterable
 
 from six import string_types
 
+from mozfile import load_source
+
 from .base import (
     CommandContext,
     MachError,
@@ -246,13 +248,13 @@
             # Ensure parent module is present otherwise we'll (likely) get
             # an error due to unknown parent.
             if 'mach.commands' not in sys.modules:
-                mod = imp.new_module('mach.commands')
+                mod = types.ModuleType("mach.commands")
                 sys.modules['mach.commands'] = mod
 
             module_name = 'mach.commands.%s' % uuid.uuid4().hex
 
         try:
-            imp.load_source(module_name, path)
+            load_source(module_name, str(path))
         except IOError as e:
             if e.errno != errno.ENOENT:
                 raise
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mach/mach/test/test_entry_point.py 
seamonkey-2.53.24/python/mach/mach/test/test_entry_point.py
--- seamonkey-2.53.24.orig/python/mach/mach/test/test_entry_point.py    
2026-05-30 14:18:44.000000000 +0200
+++ seamonkey-2.53.24/python/mach/mach/test/test_entry_point.py 2026-08-22 
21:02:47.636235761 +0200
@@ -4,9 +4,9 @@
 from __future__ import absolute_import
 from __future__ import unicode_literals
 
-import imp
 import os
 import sys
+import types
 
 from mach.base import MachError
 from mach.test.conftest import TestBase
@@ -41,7 +41,7 @@
         # Ensure parent module is present otherwise we'll (likely) get
         # an error due to unknown parent.
         if 'mach.commands' not in sys.modules:
-            mod = imp.new_module('mach.commands')
+            mod = types.ModuleType("mach.commands")
             sys.modules['mach.commands'] = mod
 
         mock.return_value = [Entry([self.provider_dir])]
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/mach_commands.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/mach_commands.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozbuild/mach_commands.py    
2026-07-19 19:08:19.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/mach_commands.py 2026-08-22 
21:02:47.644170511 +0200
@@ -25,6 +25,7 @@
     SettingsProvider,
     SubCommand,
 )
+from mozfile import load_source
 
 from mozbuild.base import (
     BinaryNotFoundException,
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/testing/marionette/harness/marionette_harness/marionette_test/testcases.py
 
seamonkey-2.53.24/testing/marionette/harness/marionette_harness/marionette_test/testcases.py
--- 
seamonkey-2.53.24.orig/testing/marionette/harness/marionette_harness/marionette_test/testcases.py
   2026-05-30 15:08:56.000000000 +0200
+++ 
seamonkey-2.53.24/testing/marionette/harness/marionette_harness/marionette_test/testcases.py
        2026-08-22 21:02:47.645791182 +0200
@@ -4,7 +4,7 @@
 
 from __future__ import absolute_import
 
-import imp
+
 import os
 import re
 import sys
@@ -21,6 +21,7 @@
     TimeoutException,
     UnresponsiveInstanceException
 )
+from mozfile import load_source
 from mozlog import get_default_logger
 
 
@@ -330,21 +331,20 @@
     @classmethod
     def add_tests_to_suite(cls, mod_name, filepath, suite, testloader, 
marionette,
                            fixtures, testvars, **kwargs):
-        # since we use imp.load_source to load test modules, if a module
-        # is loaded with the same name as another one the module would just be
-        # reloaded.
+        # since load_source caches modules, if a module is loaded with the same
+        # name as another one the module would just be reloaded.
         #
-        # We may end up by finding too many test in a module then since
-        # reload() only update the module dict (so old keys are still there!)
-        # see https://docs.python.org/2/library/functions.html#reload
+        # We may end up by finding too many test in a module then since 
reload()
+        # only update the module dict (so old keys are still there!) see
+        # https://docs.python.org/2/library/functions.html#reload
         #
-        # we get rid of that by removing the module from sys.modules,
-        # so we ensure that it will be fully loaded by the
-        # imp.load_source call.
+        # we get rid of that by removing the module from sys.modules, so we
+        # ensure that it will be fully loaded by the imp.load_source call.
+
         if mod_name in sys.modules:
             del sys.modules[mod_name]
 
-        test_mod = imp.load_source(mod_name, filepath)
+        test_mod = load_source(mod_name, filepath)
 
         for name in dir(test_mod):
             obj = getattr(test_mod, name)
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/testing/mochitest/mach_commands.py 
seamonkey-2.53.24/testing/mochitest/mach_commands.py
--- seamonkey-2.53.24.orig/testing/mochitest/mach_commands.py   2026-05-30 
15:08:56.000000000 +0200
+++ seamonkey-2.53.24/testing/mochitest/mach_commands.py        2026-08-22 
21:04:56.549496631 +0200
@@ -17,6 +17,7 @@
     MachCommandConditions as conditions,
     MozbuildObject,
 )
+from mozfile import load_source
 
 from mach.decorators import (
     CommandArgument,
@@ -104,11 +105,8 @@
         """
         # runtests.py is ambiguous, so we load the file/module manually.
         if 'mochitest' not in sys.modules:
-            import imp
             path = os.path.join(command_context.mochitest_dir, 'runtests.py')
-            with open(path, 'r') as fh:
-                imp.load_module('mochitest', fh, path,
-                                ('.py', 'r', imp.PY_SOURCE))
+            load_source("mochitest", path)
 
         import mochitest
 
@@ -159,14 +157,11 @@
     with warnings.catch_warnings():
         warnings.simplefilter('ignore')
 
-        import imp
         path = os.path.join(build_obj.topobjdir, mochitest_dir, 'runtests.py')
         if not os.path.exists(path):
             path = os.path.join(here, "runtests.py")
 
-        with open(path, 'r') as fh:
-            imp.load_module('mochitest', fh, path,
-                            ('.py', 'r', imp.PY_SOURCE))
+        load_source("mochitest", path)
 
         from mochitest_options import MochitestArgumentParser
 
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/testing/mozbase/mozfile/mozfile/mozfile.py 
seamonkey-2.53.24/testing/mozbase/mozfile/mozfile/mozfile.py
--- seamonkey-2.53.24.orig/testing/mozbase/mozfile/mozfile/mozfile.py   
2026-05-30 15:08:56.000000000 +0200
+++ seamonkey-2.53.24/testing/mozbase/mozfile/mozfile/mozfile.py        
2026-08-22 21:02:47.646677047 +0200
@@ -26,6 +26,7 @@
     "extract",
     "is_url",
     "load",
+    "load_source",
     "copy_contents",
     "match",
     "move",
@@ -575,6 +576,20 @@
     return urllib.request.urlopen(resource)
 
 
+
+# see https://docs.python.org/3/whatsnew/3.12.html#imp
+def load_source(modname, filename):
+    import importlib.machinery
+    import importlib.util
+
+    loader = importlib.machinery.SourceFileLoader(modname, filename)
+    spec = importlib.util.spec_from_file_location(modname, filename, 
loader=loader)
+    module = importlib.util.module_from_spec(spec)
+    sys.modules[module.__name__] = module
+    loader.exec_module(module)
+    return module
+
+
 # We can't depend on mozpack.path here, so copy the 'match' function over.
 
 re_cache = {}
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/testing/mozharness/scripts/desktop_unittest.py 
seamonkey-2.53.24/testing/mozharness/scripts/desktop_unittest.py
--- seamonkey-2.53.24.orig/testing/mozharness/scripts/desktop_unittest.py       
2026-05-30 15:08:56.000000000 +0200
+++ seamonkey-2.53.24/testing/mozharness/scripts/desktop_unittest.py    
2026-08-22 21:06:20.792495491 +0200
@@ -17,7 +17,6 @@
 import copy
 import shutil
 import glob
-import imp
 
 from datetime import datetime, timedelta
 
@@ -25,6 +24,7 @@
 here = os.path.abspath(os.path.dirname(__file__))
 sys.path.insert(1, os.path.dirname(here))
 
+from mozfile import load_source
 from mozharness.base.errors import BaseErrorList
 from mozharness.base.log import INFO
 from mozharness.base.script import PreScriptAction
@@ -882,7 +882,7 @@
                                                      log_obj=self.log_obj)
 
                 if suite_category == "reftest":
-                    ref_formatter = imp.load_source(
+                    ref_formatter = load_source(
                         "ReftestFormatter",
                         os.path.abspath(
                             os.path.join(dirs["abs_reftest_dir"], 
"output.py")))
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/tools/moztreedocs/mach_commands.py 
seamonkey-2.53.24/tools/moztreedocs/mach_commands.py
--- seamonkey-2.53.24.orig/tools/moztreedocs/mach_commands.py   2026-05-30 
15:08:56.000000000 +0200
+++ seamonkey-2.53.24/tools/moztreedocs/mach_commands.py        2026-08-22 
21:08:02.731880953 +0200
@@ -24,6 +24,7 @@
     CommandArgument,
     SubCommand,
 )
+from mozfile import load_source
 
 here = os.path.abspath(os.path.dirname(__file__))
 topsrcdir = os.path.abspath(os.path.dirname(os.path.dirname(here)))
@@ -204,11 +205,8 @@
 
 @memoize
 def _read_project_properties():
-    import imp
     path = os.path.normpath(self.manager.conf_py_path)
-    with open(path, 'r') as fh:
-        conf = imp.load_module('doc_conf', fh, path,
-                               ('.py', 'r', imp.PY_SOURCE))
+    conf = load_source("doc_conf", path)
 
     # Prefer the Mozilla project name, falling back to Sphinx's
     # default variable if it isn't defined.

++++++ 7001_py312_1777414.patch ++++++
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/build/common_virtualenv_packages.txt 
seamonkey-2.53.23/build/common_virtualenv_packages.txt
--- seamonkey-2.53.23.orig/build/common_virtualenv_packages.txt 2025-11-15 
21:08:07.000000000 +0100
+++ seamonkey-2.53.23/build/common_virtualenv_packages.txt      2026-01-10 
21:30:16.012900125 +0100
@@ -58,6 +58,7 @@
 pth:third_party/python/importlib_metadata
 pth:third_party/python/jsmin
 pth:third_party/python/json-e
+pth:third_party/python/looseversion
 pth:third_party/python/mock-1.0.0
 pth:third_party/python/more_itertools
 pth:third_party/python/packaging
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/dom/canvas/test/webgl-conf/checkout/closure-library/closure/bin/calcdeps.py
 
seamonkey-2.53.23/dom/canvas/test/webgl-conf/checkout/closure-library/closure/bin/calcdeps.py
--- 
seamonkey-2.53.23.orig/dom/canvas/test/webgl-conf/checkout/closure-library/closure/bin/calcdeps.py
  2025-11-15 21:08:08.000000000 +0100
+++ 
seamonkey-2.53.23/dom/canvas/test/webgl-conf/checkout/closure-library/closure/bin/calcdeps.py
       2026-01-10 21:41:38.677875529 +0100
@@ -25,15 +25,7 @@
 required for compilation.
 """
 
-
-
-
-
-try:
-  import distutils.version
-except ImportError:
-  # distutils is not available in all environments
-  distutils = None
+from looseversion import LooseVersion
 
 import logging
 import optparse
@@ -574,8 +566,7 @@
       sys.exit(1)
 
     # User friendly version check.
-    if distutils and not (distutils.version.LooseVersion(GetJavaVersion()) >
-        distutils.version.LooseVersion('1.6')):
+    if not LooseVersion(GetJavaVersion()) > LooseVersion('1.6'):
       logging.error('Closure Compiler requires Java 1.6 or higher.')
       logging.error('Please visit http://www.java.com/getjava')
       sys.exit(1)
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/python/mozbuild/mozbuild/configure/util.py 
seamonkey-2.53.23/python/mozbuild/mozbuild/configure/util.py
--- seamonkey-2.53.23.orig/python/mozbuild/mozbuild/configure/util.py   
2025-11-15 21:08:17.000000000 +0100
+++ seamonkey-2.53.23/python/mozbuild/mozbuild/configure/util.py        
2026-01-10 21:53:17.926554871 +0100
@@ -14,7 +14,7 @@
 import sys
 from collections import deque
 from contextlib import contextmanager
-from distutils.version import LooseVersion
+from looseversion import LooseVersion
 
 
 def getpreferredencoding():
@@ -34,7 +34,7 @@
 
 
 class Version(LooseVersion):
-    '''A simple subclass of distutils.version.LooseVersion.
+    '''A simple subclass of looseversion.LooseVersion.
     Adds attributes for `major`, `minor`, `patch` for the first three
     version components so users can easily pull out major/minor
     versions, like:
@@ -54,31 +54,6 @@
             itertools.takewhile(lambda x: isinstance(x, int), self.version),
             (0, 0, 0)))[:3]
 
-    def _cmp(self, other):
-        # LooseVersion checks isinstance(StringType), so work around it.
-        if six.PY2 and isinstance(other, six.text_type):
-            other = other.encode('ascii')
-        if six.PY2:
-            return LooseVersion.__cmp__(self, other)
-        return LooseVersion._cmp(self, other)
-
-    # These method definitions can be deleted when we remove support for Python
-    # 2.
-    def __eq__(self, other):
-        return self._cmp(other) == 0
-
-    def __lt__(self, other):
-        return self._cmp(other) < 0
-
-    def __le__(self, other):
-        return self._cmp(other) <= 0
-
-    def __gt__(self, other):
-        return self._cmp(other) > 0
-
-    def __ge__(self, other):
-        return self._cmp(other) >= 0
-
 
 class ConfigureOutputHandler(logging.Handler):
     '''A logging handler class that sends info messages to stdout and other
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/python/mozbuild/mozbuild/vendor/vendor_rust.py 
seamonkey-2.53.23/python/mozbuild/mozbuild/vendor/vendor_rust.py
--- seamonkey-2.53.23.orig/python/mozbuild/mozbuild/vendor/vendor_rust.py       
2025-11-15 21:08:17.000000000 +0100
+++ seamonkey-2.53.23/python/mozbuild/mozbuild/vendor/vendor_rust.py    
2026-01-10 21:43:24.602371449 +0100
@@ -12,7 +12,7 @@
 import re
 import subprocess
 import sys
-from distutils.version import LooseVersion
+from looseversion import LooseVersion
 
 import mozpack.path as mozpath
 from mozbuild.base import (
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/python/mozrelease/mozrelease/versions.py 
seamonkey-2.53.23/python/mozrelease/mozrelease/versions.py
--- seamonkey-2.53.23.orig/python/mozrelease/mozrelease/versions.py     
2025-11-15 21:08:17.000000000 +0100
+++ seamonkey-2.53.23/python/mozrelease/mozrelease/versions.py  2026-01-10 
21:43:56.770736821 +0100
@@ -4,7 +4,8 @@
 
 from __future__ import absolute_import
 
-from distutils.version import StrictVersion, LooseVersion
+from distutils.version import StrictVersion
+from looseversion import LooseVersion
 import re
 
 
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/testing/mozharness/scripts/release/update-verify-config-creator.py
 
seamonkey-2.53.23/testing/mozharness/scripts/release/update-verify-config-creator.py
--- 
seamonkey-2.53.23.orig/testing/mozharness/scripts/release/update-verify-config-creator.py
   2025-11-15 21:08:19.000000000 +0100
+++ 
seamonkey-2.53.23/testing/mozharness/scripts/release/update-verify-config-creator.py
        2026-01-10 21:46:20.575840569 +0100
@@ -1,4 +1,4 @@
-from distutils.version import LooseVersion
+from looseversion import LooseVersion
 import json
 import math
 import os
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/third_party/python/looseversion/looseversion-1.0.1.dist-info/LICENSE
 
seamonkey-2.53.23/third_party/python/looseversion/looseversion-1.0.1.dist-info/LICENSE
--- 
seamonkey-2.53.23.orig/third_party/python/looseversion/looseversion-1.0.1.dist-info/LICENSE
 1970-01-01 01:00:00.000000000 +0100
+++ 
seamonkey-2.53.23/third_party/python/looseversion/looseversion-1.0.1.dist-info/LICENSE
      2026-01-10 21:31:56.433162415 +0100
@@ -0,0 +1,48 @@
+PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
+--------------------------------------------
+
+1. This LICENSE AGREEMENT is between the Python Software Foundation
+("PSF"), and the Individual or Organization ("Licensee") accessing and
+otherwise using this software ("Python") in source or binary form and
+its associated documentation.
+
+2. Subject to the terms and conditions of this License Agreement, PSF hereby
+grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
+analyze, test, perform and/or display publicly, prepare derivative works,
+distribute, and otherwise use Python alone or in any derivative version,
+provided, however, that PSF's License Agreement and PSF's notice of copyright,
+i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 
2010,
+2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Python 
Software Foundation;
+All Rights Reserved" are retained in Python alone or in any derivative version
+prepared by Licensee.
+
+3. In the event Licensee prepares a derivative work that is based on
+or incorporates Python or any part thereof, and wants to make
+the derivative work available to others as provided herein, then
+Licensee hereby agrees to include in any such work a brief summary of
+the changes made to Python.
+
+4. PSF is making Python available to Licensee on an "AS IS"
+basis.  PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
+DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
+FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
+INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
+FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
+A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
+OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+6. This License Agreement will automatically terminate upon a material
+breach of its terms and conditions.
+
+7. Nothing in this License Agreement shall be deemed to create any
+relationship of agency, partnership, or joint venture between PSF and
+Licensee.  This License Agreement does not grant permission to use PSF
+trademarks or trade name in a trademark sense to endorse or promote
+products or services of Licensee, or any third party.
+
+8. By copying, installing or otherwise using Python, Licensee
+agrees to be bound by the terms and conditions of this License
+Agreement.
\ Geen regeleindeteken (LF) aan einde van bestand
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/third_party/python/looseversion/looseversion-1.0.1.dist-info/METADATA
 
seamonkey-2.53.23/third_party/python/looseversion/looseversion-1.0.1.dist-info/METADATA
--- 
seamonkey-2.53.23.orig/third_party/python/looseversion/looseversion-1.0.1.dist-info/METADATA
        1970-01-01 01:00:00.000000000 +0100
+++ 
seamonkey-2.53.23/third_party/python/looseversion/looseversion-1.0.1.dist-info/METADATA
     2026-01-10 21:33:02.714975718 +0100
@@ -0,0 +1,56 @@
+Metadata-Version: 2.1
+Name: looseversion
+Version: 1.0.1
+Summary: Version numbering for anarchists and software realists
+Home-page: https://github.com/effigies/looseversion
+Author: Chris Markiewicz
+Author-email: [email protected]
+License: PSF-2.0
+Classifier: Programming Language :: Python :: 3
+Classifier: Development Status :: 6 - Mature
+Classifier: License :: OSI Approved :: Python Software Foundation License
+Requires-Python: >=3
+Description-Content-Type: text/markdown
+License-File: LICENSE
+
+# looseversion - Version numbering for anarchists and software realists
+
+A backwards/forwards-compatible fork of `distutils.version.LooseVersion`,
+for times when PEP-440 isn't what you need.
+
+The goal of this package is to be a drop-in replacement for the original 
`LooseVersion`.
+It implements an identical interface and comparison logic to `LooseVersion`.
+The only major change is that a `looseversion.LooseVersion` is comparable to a
+`distutils.version.LooseVersion`, which means tools should not need to worry 
whether
+all dependencies that use LooseVersion have migrated.
+
+If you are simply comparing versions of Python packages, consider moving to
+[packaging.version.Version](https://packaging.pypa.io/en/latest/version.html#packaging.version.Version),
+which follows [PEP-440](https://peps.python.org/pep-0440).
+`LooseVersion` is better suited to interacting with heterogeneous version 
schemes that
+do not follow PEP-440.
+
+## Installation
+
+### From PyPI
+
+```
+pip install looseversion
+```
+
+### From source
+
+```
+git clone https://github.com/effigies/looseversion.git
+pip install looseversion/
+```
+
+## Usage
+
+```Python
+>>> from looseversion import LooseVersion
+>>> LooseVersion("1.0.0") < LooseVersion("2.0.0")
+True
+>>> LooseVersion("1.0.0") < "2"
+True
+```
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/third_party/python/looseversion/looseversion-1.0.1.dist-info/RECORD
 
seamonkey-2.53.23/third_party/python/looseversion/looseversion-1.0.1.dist-info/RECORD
--- 
seamonkey-2.53.23.orig/third_party/python/looseversion/looseversion-1.0.1.dist-info/RECORD
  1970-01-01 01:00:00.000000000 +0100
+++ 
seamonkey-2.53.23/third_party/python/looseversion/looseversion-1.0.1.dist-info/RECORD
       2026-01-10 21:33:29.484111918 +0100
@@ -0,0 +1,6 @@
+looseversion.py,sha256=ZcTnLvMPdx3yVGbgcaUuwK3-s40QkaOR0_usF_VbrHU,8029
+looseversion-1.0.1.dist-info/LICENSE,sha256=9PgMmBYfVjIATURxO1y5XkABRbQMvAKX8fUMJ7VL79s,2490
+looseversion-1.0.1.dist-info/METADATA,sha256=-c48feSKsGGyLOWaWQfPNMawhA6OGKNoy5PjUhLlCk8,1757
+looseversion-1.0.1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
+looseversion-1.0.1.dist-info/top_level.txt,sha256=gZsH8AUlCFqOEpKD_foyCUB2uKao5ePwjMqWWO7hpoM,13
+looseversion-1.0.1.dist-info/RECORD,,
\ Geen regeleindeteken (LF) aan einde van bestand
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/third_party/python/looseversion/looseversion-1.0.1.dist-info/top_level.txt
 
seamonkey-2.53.23/third_party/python/looseversion/looseversion-1.0.1.dist-info/top_level.txt
--- 
seamonkey-2.53.23.orig/third_party/python/looseversion/looseversion-1.0.1.dist-info/top_level.txt
   1970-01-01 01:00:00.000000000 +0100
+++ 
seamonkey-2.53.23/third_party/python/looseversion/looseversion-1.0.1.dist-info/top_level.txt
        2026-01-10 21:34:16.494107242 +0100
@@ -0,0 +1 @@
+looseversion
\ Geen regeleindeteken (LF) aan einde van bestand
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/third_party/python/looseversion/looseversion-1.0.1.dist-info/WHEEL
 
seamonkey-2.53.23/third_party/python/looseversion/looseversion-1.0.1.dist-info/WHEEL
--- 
seamonkey-2.53.23.orig/third_party/python/looseversion/looseversion-1.0.1.dist-info/WHEEL
   1970-01-01 01:00:00.000000000 +0100
+++ 
seamonkey-2.53.23/third_party/python/looseversion/looseversion-1.0.1.dist-info/WHEEL
        2026-01-10 21:33:53.829145235 +0100
@@ -0,0 +1,4 @@
+Wheel-Version: 1.0
+Generator: bdist_wheel (0.37.1)
+Root-Is-Purelib: true
+Tag: py3-none-any
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/third_party/python/looseversion/looseversion.py 
seamonkey-2.53.23/third_party/python/looseversion/looseversion.py
--- seamonkey-2.53.23.orig/third_party/python/looseversion/looseversion.py      
1970-01-01 01:00:00.000000000 +0100
+++ seamonkey-2.53.23/third_party/python/looseversion/looseversion.py   
2026-01-10 21:37:39.068705432 +0100
@@ -0,0 +1,204 @@
+"""Provides classes to represent module version numbers (one class for
+each style of version numbering).  There are currently two such classes
+implemented: StrictVersion and LooseVersion.
+
+Every version number class implements the following interface:
+  * the 'parse' method takes a string and parses it to some internal
+    representation; if the string is an invalid version number,
+    'parse' raises a ValueError exception
+  * the class constructor takes an optional string argument which,
+    if supplied, is passed to 'parse'
+  * __str__ reconstructs the string that was passed to 'parse' (or
+    an equivalent string -- ie. one that will generate an equivalent
+    version number instance)
+  * __repr__ generates Python code to recreate the version number instance
+  * _cmp compares the current instance with either another instance
+    of the same class or a string (which will be parsed to an instance
+    of the same class, thus must follow the same rules)
+"""
+
+import sys
+import re
+
+
+# The rules according to Greg Stein:
+# 1) a version number has 1 or more numbers separated by a period or by
+#    sequences of letters. If only periods, then these are compared
+#    left-to-right to determine an ordering.
+# 2) sequences of letters are part of the tuple for comparison and are
+#    compared lexicographically
+# 3) recognize the numeric components may have leading zeroes
+#
+# The LooseVersion class below implements these rules: a version number
+# string is split up into a tuple of integer and string components, and
+# comparison is a simple tuple comparison.  This means that version
+# numbers behave in a predictable and obvious way, but a way that might
+# not necessarily be how people *want* version numbers to behave.  There
+# wouldn't be a problem if people could stick to purely numeric version
+# numbers: just split on period and compare the numbers as tuples.
+# However, people insist on putting letters into their version numbers;
+# the most common purpose seems to be:
+#   - indicating a "pre-release" version
+#     ('alpha', 'beta', 'a', 'b', 'pre', 'p')
+#   - indicating a post-release patch ('p', 'pl', 'patch')
+# but of course this can't cover all version number schemes, and there's
+# no way to know what a programmer means without asking him.
+#
+# The problem is what to do with letters (and other non-numeric
+# characters) in a version number.  The current implementation does the
+# obvious and predictable thing: keep them as strings and compare
+# lexically within a tuple comparison.  This has the desired effect if
+# an appended letter sequence implies something "post-release":
+# eg. "0.99" < "0.99pl14" < "1.0", and "5.001" < "5.001m" < "5.002".
+#
+# However, if letters in a version number imply a pre-release version,
+# the "obvious" thing isn't correct.  Eg. you would expect that
+# "1.5.1" < "1.5.2a2" < "1.5.2", but under the tuple/lexical comparison
+# implemented here, this just isn't so.
+#
+# Two possible solutions come to mind.  The first is to tie the
+# comparison algorithm to a particular set of semantic rules, as has
+# been done in the StrictVersion class above.  This works great as long
+# as everyone can go along with bondage and discipline.  Hopefully a
+# (large) subset of Python module programmers will agree that the
+# particular flavour of bondage and discipline provided by StrictVersion
+# provides enough benefit to be worth using, and will submit their
+# version numbering scheme to its domination.  The free-thinking
+# anarchists in the lot will never give in, though, and something needs
+# to be done to accommodate them.
+#
+# Perhaps a "moderately strict" version class could be implemented that
+# lets almost anything slide (syntactically), and makes some heuristic
+# assumptions about non-digits in version number strings.  This could
+# sink into special-case-hell, though; if I was as talented and
+# idiosyncratic as Larry Wall, I'd go ahead and implement a class that
+# somehow knows that "1.2.1" < "1.2.2a2" < "1.2.2" < "1.2.2pl3", and is
+# just as happy dealing with things like "2g6" and "1.13++".  I don't
+# think I'm smart enough to do it right though.
+#
+# In any case, I've coded the test suite for this module (see
+# ../test/test_version.py) specifically to fail on things like comparing
+# "1.2a2" and "1.2".  That's not because the *code* is doing anything
+# wrong, it's because the simple, obvious design doesn't match my
+# complicated, hairy expectations for real-world version numbers.  It
+# would be a snap to fix the test suite to say, "Yep, LooseVersion does
+# the Right Thing" (ie. the code matches the conception).  But I'd rather
+# have a conception that matches common notions about version numbers.
+
+
+class LooseVersion:
+
+    """Version numbering for anarchists and software realists.
+    Implements the standard interface for version number classes as
+    described above.  A version number consists of a series of numbers,
+    separated by either periods or strings of letters.  When comparing
+    version numbers, the numeric components will be compared
+    numerically, and the alphabetic components lexically.  The following
+    are all valid version numbers, in no particular order:
+
+        1.5.1
+        1.5.2b2
+        161
+        3.10a
+        8.02
+        3.4j
+        1996.07.12
+        3.2.pl0
+        3.1.1.6
+        2g6
+        11g
+        0.960923
+        2.2beta29
+        1.13++
+        5.5.kw
+        2.0b1pl0
+
+    In fact, there is no such thing as an invalid version number under
+    this scheme; the rules for comparison are simple and predictable,
+    but may not always give the results you want (for some definition
+    of "want").
+    """
+
+    component_re = re.compile(r"(\d+ | [a-z]+ | \.)", re.VERBOSE)
+
+    def __init__(self, vstring=None):
+        if vstring:
+            self.parse(vstring)
+
+    def __eq__(self, other):
+        c = self._cmp(other)
+        if c is NotImplemented:
+            return c
+        return c == 0
+
+    def __lt__(self, other):
+        c = self._cmp(other)
+        if c is NotImplemented:
+            return c
+        return c < 0
+
+    def __le__(self, other):
+        c = self._cmp(other)
+        if c is NotImplemented:
+            return c
+        return c <= 0
+
+    def __gt__(self, other):
+        c = self._cmp(other)
+        if c is NotImplemented:
+            return c
+        return c > 0
+
+    def __ge__(self, other):
+        c = self._cmp(other)
+        if c is NotImplemented:
+            return c
+        return c >= 0
+
+    def parse(self, vstring):
+        # I've given up on thinking I can reconstruct the version string
+        # from the parsed tuple -- so I just store the string here for
+        # use by __str__
+        self.vstring = vstring
+        components = [x for x in self.component_re.split(vstring) if x and x 
!= "."]
+        for i, obj in enumerate(components):
+            try:
+                components[i] = int(obj)
+            except ValueError:
+                pass
+
+        self.version = components
+
+    def __str__(self):
+        return self.vstring
+
+    def __repr__(self):
+        return "LooseVersion ('%s')" % str(self)
+
+    def _cmp(self, other):
+        other = self._coerce(other)
+        if other is NotImplemented:
+            return NotImplemented
+
+        if self.version == other.version:
+            return 0
+        if self.version < other.version:
+            return -1
+        if self.version > other.version:
+            return 1
+
+    @staticmethod
+    def _coerce(other):
+        if isinstance(other, LooseVersion):
+            return other
+        elif isinstance(other, str):
+            return LooseVersion(other)
+        elif "distutils" in sys.modules:
+            # Using this check to avoid importing distutils and suppressing 
the warning
+            try:
+                from distutils.version import LooseVersion as deprecated
+            except ImportError:
+                return NotImplemented
+            if isinstance(other, deprecated):
+                return LooseVersion(str(other))
+        return NotImplemented
\ Geen regeleindeteken (LF) aan einde van bestand
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/third_party/python/requirements.in 
seamonkey-2.53.23/third_party/python/requirements.in
--- seamonkey-2.53.23.orig/third_party/python/requirements.in   2025-11-15 
21:08:20.000000000 +0100
+++ seamonkey-2.53.23/third_party/python/requirements.in        2026-01-10 
21:38:25.582679693 +0100
@@ -27,6 +27,7 @@
 fluent.syntax==0.18.1
 jsmin==2.1.0
 json-e==2.7.0
+looseversion==1.0.1
 packaging==21.0
 pathspec==0.8
 pip-tools==5.5.0
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/third_party/python/requirements.txt 
seamonkey-2.53.23/third_party/python/requirements.txt
--- seamonkey-2.53.23.orig/third_party/python/requirements.txt  2025-11-15 
21:08:20.000000000 +0100
+++ seamonkey-2.53.23/third_party/python/requirements.txt       2026-01-10 
21:38:54.719916410 +0100
@@ -92,6 +92,9 @@
 json-e==2.7.0 \
     
--hash=sha256:d8c1ec3f5bbc7728c3a504ebe58829f283c64eca230871e4eefe974b4cdaae4a
     # via -r requirements-mach-vendor-python.in
+looseversion==1.0.1; python_version >= "3" \
+    
--hash=sha256:a205beabd0ffd40488edb9ccb3a39134510fc7c0c2847a25079f559e59c004ac \
+    
--hash=sha256:b339dfde67680e9c5c2e96673e52bee9f94d2f0e1b8f4cbfd86d32311e86b952
 more-itertools==4.3.0 \
     
--hash=sha256:c187a73da93e7a8acc0001572aebc7e3c69daf7bf6881a2cea10650bd4420092 \
     
--hash=sha256:c476b5d3a34e12d40130bc2f935028b5f636df8f372dc2c1c01dc19681b2039e \

++++++ 7003_py312_1755530.patch ++++++
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/testing/mozbase/mozinfo/mozinfo/string_version.py 
seamonkey-2.53.23/testing/mozbase/mozinfo/mozinfo/string_version.py
--- seamonkey-2.53.23.orig/testing/mozbase/mozinfo/mozinfo/string_version.py    
2025-11-15 21:08:19.000000000 +0100
+++ seamonkey-2.53.23/testing/mozbase/mozinfo/mozinfo/string_version.py 
2026-01-10 22:23:32.679581349 +0100
@@ -4,42 +4,67 @@
 
 from __future__ import absolute_import
 
-from distutils.version import LooseVersion
+import re
+import six
 
 
-class StringVersion(str):
+class StringVersion(six.text_type):
     """
     A string version that can be compared with comparison operators.
     """
 
+    # Pick out numeric and non-numeric parts (a match group for each type).
+    pat = re.compile(r'(\d+)|([^\d.]+)')
+
     def __init__(self, vstring):
         super(StringVersion, self).__init__()
-        self.version = LooseVersion(vstring)
+
+        # We'll use unicode internally.
+        # This check is mainly for python2 strings (which are bytes).
+        if isinstance(vstring, bytes):
+            vstring = vstring.decode("ascii")
+
+        self.vstring = vstring
+
+        # Store parts as strings to ease comparisons.
+        self.version = []
+        parts = self.pat.findall(vstring)
+        # Pad numeric parts with leading zeros for ordering.
+        for i, obj in enumerate(parts):
+            if obj[0]:
+                self.version.append(obj[0].zfill(8))
+            else:
+                self.version.append(obj[1])
+
+    def __str__(self):
+        return self.vstring
 
     def __repr__(self):
-        return "StringVersion ('%s')" % self
+        return "StringVersion ('%s')" % str(self)
 
-    def __to_version(self, other):
+    def _cmp(self, other):
         if not isinstance(other, StringVersion):
             other = StringVersion(other)
-        return other.version
 
-    # rich comparison methods
+        if self.version == other.version:
+            return 0
+        if self.version < other.version:
+            return -1
+        if self.version > other.version:
+            return 1
+
+    # operator overloads
+    def __eq__(self, other):
+        return self._cmp(other) == 0
 
     def __lt__(self, other):
-        return self.version < self.__to_version(other)
+        return self._cmp(other) < 0
 
     def __le__(self, other):
-        return self.version <= self.__to_version(other)
-
-    def __eq__(self, other):
-        return self.version == self.__to_version(other)
-
-    def __ne__(self, other):
-        return self.version != self.__to_version(other)
+        return self._cmp(other) <= 0
 
     def __gt__(self, other):
-        return self.version > self.__to_version(other)
+        return self._cmp(other) > 0
 
     def __ge__(self, other):
-        return self.version >= self.__to_version(other)
+        return self._cmp(other) >= 0
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/testing/mozbase/mozinfo/tests/test.py 
seamonkey-2.53.23/testing/mozbase/mozinfo/tests/test.py
--- seamonkey-2.53.23.orig/testing/mozbase/mozinfo/tests/test.py        
2025-11-15 21:08:19.000000000 +0100
+++ seamonkey-2.53.23/testing/mozbase/mozinfo/tests/test.py     2026-01-10 
22:24:18.050507103 +0100
@@ -151,6 +151,21 @@
         self.assertLessEqual(version, '11')
         self.assertLessEqual('10.10', version)
 
+        # Can have non-numeric versions (Bug 1654915)
+        self.assertNotEqual(version, mozinfo.StringVersion('Testing'))
+        self.assertNotEqual(mozinfo.StringVersion('Testing'), version)
+        self.assertEqual(mozinfo.StringVersion(''), '')
+        self.assertEqual('', mozinfo.StringVersion(''))
+
+        a = mozinfo.StringVersion('1.2.5a')
+        b = mozinfo.StringVersion('1.2.5b')
+        self.assertLess(a, b)
+        self.assertGreater(b, a)
+
+        # Make sure we can compare against unicode (for python 2).
+        self.assertEqual(a, u'1.2.5a')
+        self.assertEqual(u'1.2.5a', a)
+
     def test_to_string(self):
         self.assertEqual('10.10', str(mozinfo.StringVersion('10.10')))
 

++++++ 7004_py312_1858062.patch ++++++
diff '--color=auto' -urN seamonkey-2.53.24.orig/python/mozboot/mozboot/base.py 
seamonkey-2.53.24/python/mozboot/mozboot/base.py
--- seamonkey-2.53.24.orig/python/mozboot/mozboot/base.py       2026-05-30 
15:08:55.000000000 +0200
+++ seamonkey-2.53.24/python/mozboot/mozboot/base.py    2026-08-22 
22:01:51.241950586 +0200
@@ -159,13 +159,6 @@
         to the user, if necessary.
         '''
 
-    def suggest_install_distutils(self):
-        '''Called if distutils.{sysconfig,spawn} can't be imported.'''
-        print(
-            "Does your distro require installing another package for 
distutils?",
-            file=sys.stderr,
-        )
-
     def suggest_install_pip3(self):
         '''Called if pip3 can't be found.'''
         print("Try installing pip3 with your system's package manager.",
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozboot/mozboot/bootstrap.py 
seamonkey-2.53.24/python/mozboot/mozboot/bootstrap.py
--- seamonkey-2.53.24.orig/python/mozboot/mozboot/bootstrap.py  2026-05-30 
15:08:55.000000000 +0200
+++ seamonkey-2.53.24/python/mozboot/mozboot/bootstrap.py       2026-08-22 
22:00:14.532985406 +0200
@@ -360,24 +360,6 @@
 
     def _validate_python_environment(self):
         valid = True
-        try:
-            # distutils is singled out here because some distros (namely 
Ubuntu)
-            # include it in a separate package outside of the main Python
-            # installation.
-            import distutils.sysconfig
-            import distutils.spawn
-            assert (distutils.sysconfig is not None
-                    and distutils.spawn is not None)
-        except ImportError as e:
-            print('ERROR: Could not import package %s' % e.name,
-                  file=sys.stderr)
-            self.instance.suggest_install_distutils()
-            valid = False
-        except AssertionError:
-            print('ERROR: distutils is not behaving as expected.',
-                  file=sys.stderr)
-            self.instance.suggest_install_distutils()
-            valid = False
         pip3 = which('pip3')
         if not pip3:
             print('ERROR: Could not find pip3.', file=sys.stderr)
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozboot/mozboot/debian.py 
seamonkey-2.53.24/python/mozboot/mozboot/debian.py
--- seamonkey-2.53.24.orig/python/mozboot/mozboot/debian.py     2026-05-30 
15:08:55.000000000 +0200
+++ seamonkey-2.53.24/python/mozboot/mozboot/debian.py  2026-08-22 
22:00:14.533456962 +0200
@@ -80,10 +80,6 @@
         if self.distro == 'debian':
             self.packages += self.DEBIAN_PACKAGES
 
-    def suggest_install_distutils(self):
-        print('HINT: Try installing distutils with '
-              '`apt-get install python3-distutils`.', file=sys.stderr)
-
     def suggest_install_pip3(self):
         print("HINT: Try installing pip3 with `apt-get install python3-pip`.",
               file=sys.stderr)
diff '--color=auto' -urN seamonkey-2.53.24.orig/python/mozboot/setup.py 
seamonkey-2.53.24/python/mozboot/setup.py
--- seamonkey-2.53.24.orig/python/mozboot/setup.py      2026-05-30 
14:18:44.000000000 +0200
+++ seamonkey-2.53.24/python/mozboot/setup.py   2026-08-22 22:00:14.533753894 
+0200
@@ -4,7 +4,10 @@
 
 from __future__ import absolute_import, print_function, unicode_literals
 
-from distutils.core import setup
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.core import setup
 
 VERSION = '0.1'
 

++++++ 7005_py312_1752927.patch ++++++
diff '--color=auto' -urN seamonkey-2.53.24.orig/python/mozboot/mozboot/base.py 
seamonkey-2.53.24/python/mozboot/mozboot/base.py
--- seamonkey-2.53.24.orig/python/mozboot/mozboot/base.py       2026-08-22 
22:12:41.377797877 +0200
+++ seamonkey-2.53.24/python/mozboot/mozboot/base.py    2026-08-22 
22:16:06.400867618 +0200
@@ -10,7 +10,7 @@
 import subprocess
 import sys
 
-from distutils.version import LooseVersion
+from packaging.version import Version
 from mozboot import rust
 from mozboot.util import (
     get_mach_virtualenv_binary,
@@ -134,13 +134,13 @@
 # Upgrade Mercurial older than this.
 # This should match the OLDEST_NON_LEGACY_VERSION in
 # version-control-tools/hgext/configwizard/__init__.py.
-MODERN_MERCURIAL_VERSION = LooseVersion('4.9')
+MODERN_MERCURIAL_VERSION = Version("4.9")
 
 # Upgrade rust older than this.
-MODERN_RUST_VERSION = LooseVersion(MINIMUM_RUST_VERSION)
+MODERN_RUST_VERSION = Version(MINIMUM_RUST_VERSION)
 
 # Upgrade nasm older than this.
-MODERN_NASM_VERSION = LooseVersion('2.14')
+MODERN_NASM_VERSION = Version('2.14')
 
 
 class BaseBootstrapper(object):
@@ -484,7 +484,7 @@
         '''Execute the given path, returning the version.
 
         Invokes the path argument with the --version switch
-        and returns a LooseVersion representing the output
+        and returns a Version representing the output
         if successful. If not, returns None.
 
         An optional name argument gives the expected program
@@ -514,7 +514,7 @@
             print('ERROR! Unable to identify %s version.' % name)
             return None
 
-        return LooseVersion(match.group(1))
+        return Version(match.group(1))
 
     def _parse_version(self, path, name=None, env=None):
         return self._parse_version_impl(path, name, env, "--version")
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozboot/mozboot/bootstrap.py 
seamonkey-2.53.24/python/mozboot/mozboot/bootstrap.py
--- seamonkey-2.53.24.orig/python/mozboot/mozboot/bootstrap.py  2026-08-22 
22:12:41.378215974 +0200
+++ seamonkey-2.53.24/python/mozboot/mozboot/bootstrap.py       2026-08-22 
22:16:33.867426868 +0200
@@ -12,7 +12,7 @@
 import sys
 import subprocess
 import time
-from distutils.version import LooseVersion
+from packaging.version import Version
 from mozfile import which
 
 # NOTE: This script is intended to be run with a vanilla Python install.  We
@@ -130,7 +130,7 @@
 
 
 # Version 2.24 changes the "core.commitGraph" setting to be "True" by default.
-MINIMUM_RECOMMENDED_GIT_VERSION = LooseVersion('2.24')
+MINIMUM_RECOMMENDED_GIT_VERSION = Version("2.24")
 OLD_GIT_WARNING = '''
 You are running an older version of git ("{old_version}").
 We recommend upgrading to at least version "{minimum_recommended_version}" to 
improve
@@ -535,14 +535,14 @@
                                               universal_newlines=True))
     if not match:
         raise Exception('Could not find git version')
-    git_version = LooseVersion(match.group(1))
+    git_version = Version(match.group(1))
 
     if git_version < MINIMUM_RECOMMENDED_GIT_VERSION:
         print(OLD_GIT_WARNING.format(
             old_version=git_version,
             minimum_recommended_version=MINIMUM_RECOMMENDED_GIT_VERSION))
 
-    if git_version >= LooseVersion('2.17'):
+    if git_version >= Version("2.17"):
         # "core.untrackedCache" has a bug before 2.17
         subprocess.check_call(
             [git, 'config', 'core.untrackedCache', 'true'], cwd=top_src_dir)
diff '--color=auto' -urN seamonkey-2.53.24.orig/python/mozboot/mozboot/osx.py 
seamonkey-2.53.24/python/mozboot/mozboot/osx.py
--- seamonkey-2.53.24.orig/python/mozboot/mozboot/osx.py        2026-05-30 
15:08:55.000000000 +0200
+++ seamonkey-2.53.24/python/mozboot/mozboot/osx.py     2026-08-22 
22:14:03.390023898 +0200
@@ -14,7 +14,7 @@
 except ImportError:
     from urllib.request import urlopen
 
-from distutils.version import StrictVersion
+from packaging.version import Version
 
 from mozboot.base import BaseBootstrapper
 from mozfile import which
@@ -38,7 +38,7 @@
 
 RE_CLANG_VERSION = re.compile('Apple (?:clang|LLVM) version (\d+\.\d+)')
 
-APPLE_CLANG_MINIMUM_VERSION = StrictVersion('4.2')
+APPLE_CLANG_MINIMUM_VERSION = Version('4.2')
 
 XCODE_REQUIRED = '''
 Xcode is required to build Firefox. Please complete the install of Xcode
@@ -174,9 +174,9 @@
     def __init__(self, version, **kwargs):
         BaseBootstrapper.__init__(self, **kwargs)
 
-        self.os_version = StrictVersion(version)
+        self.os_version = Version(version)
 
-        if self.os_version < StrictVersion('10.6'):
+        if self.os_version < Version("10.6"):
             raise Exception('OS X 10.6 or above is required.')
 
         self.minor_version = version.split('.')[1]

++++++ 7006_py312_1858065.patch ++++++
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/nodeutil.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/nodeutil.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozbuild/nodeutil.py 2026-05-30 
14:18:44.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/nodeutil.py      2026-08-22 
22:19:16.672487444 +0200
@@ -8,16 +8,13 @@
 import subprocess
 import platform
 
-from distutils.version import (
-    StrictVersion,
-)
-
 from mozboot.util import get_state_dir
 from mozfile import which
+from packaging.version import Version
 from six import PY3
 
-NODE_MIN_VERSION = StrictVersion("8.11.0")
-NPM_MIN_VERSION = StrictVersion("5.6.0")
+NODE_MIN_VERSION = Version("12.22.12")
+NPM_MIN_VERSION = Version("6.14.16")
 
 
 def find_node_paths():
@@ -70,7 +67,7 @@
     if not out:
         out = subprocess.check_output([exe, "--version"],
                                       
universal_newlines=PY3).lstrip('v').rstrip()
-    return StrictVersion(out)
+    return Version(out)
 
 
 def find_node_executable(nodejs_exe=os.environ.get('NODEJS'), 
min_version=NODE_MIN_VERSION):
@@ -87,7 +84,7 @@
             return None, None
 
         if version >= min_version:
-            return nodejs_exe, version.version
+            return nodejs_exe, version.release
 
         return None, None
 
@@ -128,6 +125,6 @@
             continue
 
         if version >= min_version:
-            return exe, version.version
+            return exe, version.release
 
     return found_exe, None
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozrelease/mozrelease/versions.py 
seamonkey-2.53.24/python/mozrelease/mozrelease/versions.py
--- seamonkey-2.53.24.orig/python/mozrelease/mozrelease/versions.py     
2026-08-22 22:10:25.142104118 +0200
+++ seamonkey-2.53.24/python/mozrelease/mozrelease/versions.py  2026-08-22 
22:19:16.672836107 +0200
@@ -4,11 +4,60 @@
 
 from __future__ import absolute_import
 
-from distutils.version import StrictVersion
 from looseversion import LooseVersion
 import re
+from packaging.version import InvalidVersion
 
 
+class StrictVersion:
+    def __init__(self, vstring):
+        self.parse(vstring)
+
+    def __repr__(self):
+        return "%s ('%s')" % (self.__class__.__name__, str(self))
+
+    def __eq__(self, other):
+        return self._cmp(other) == 0
+
+    def __lt__(self, other):
+        return self._cmp(other) < 0
+
+    def parse(self, vstring):
+        match = self.version_re.match(vstring)
+        if not match:
+            raise InvalidVersion("invalid version number '%s'" % vstring)
+
+        major, minor, patch, pre, pre_num = match.group(1, 2, 4, 5, 6)
+        self.version = int(major), int(minor), int(patch or 0)
+        self.pre = (pre[0], int(pre_num)) if pre else ()
+
+    def __str__(self):
+        return ".".join(map(str, self.version)) + (
+            "".join(map(str, self.pre)) if self.pre else ""
+        )
+
+    def _cmp(self, other):
+        if isinstance(other, str):
+            other = StrictVersion(other)
+        elif not isinstance(other, StrictVersion):
+            raise NotImplementedError
+
+        if self.version < other.version:
+            return -1
+        elif self.version == other.version:
+            if self.pre == other.pre:
+                return 0
+            elif not self.pre:
+                return 1
+            elif not other.pre:
+                return -1
+            elif self.pre < other.pre:
+                return -1
+            else:
+                return 1
+        else:
+            return 1
+
 class MozillaVersionCompareMixin():
     def __cmp__(self, other):
         # We expect this function to never be called.
@@ -82,12 +131,12 @@
 def MozillaVersion(version):
     try:
         return ModernMozillaVersion(version)
-    except ValueError:
+    except InvalidVersion:
         pass
     try:
         if version.count('.') == 3:
             return AncientMozillaVersion(version)
-    except ValueError:
+    except InvalidVersion:
         pass
     try:
         return LooseModernMozillaVersion(version)
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozrelease/test/test_versions.py 
seamonkey-2.53.24/python/mozrelease/test/test_versions.py
--- seamonkey-2.53.24.orig/python/mozrelease/test/test_versions.py      
2026-05-30 14:18:44.000000000 +0200
+++ seamonkey-2.53.24/python/mozrelease/test/test_versions.py   2026-08-22 
22:19:16.673117478 +0200
@@ -3,7 +3,11 @@
 import mozunit
 import pytest
 
-from mozrelease.versions import MozillaVersion
+from mozrelease.versions import (
+    AncientMozillaVersion,
+    ModernMozillaVersion,
+    MozillaVersion,
+)
 
 
 ALL_VERSIONS = [  # Keep this sorted
@@ -91,6 +95,21 @@
     smaller_version, larger_version = comparable_versions
     assert MozillaVersion(larger_version) > MozillaVersion(smaller_version)
 
+def test_ModernMozillaVersion():
+    """Test properties specific to ModernMozillaVersion"""
+    assert isinstance(MozillaVersion("1.2.4"), ModernMozillaVersion)
+    assert isinstance(MozillaVersion("1.2.4rc3"), ModernMozillaVersion)
+    assert MozillaVersion("1.2rc3") == MozillaVersion("1.2.0rc3")
+
+
+def test_AncientMozillaVersion():
+    """Test properties specific to AncientMozillaVersion"""
+    assert isinstance(MozillaVersion("1.2.0.4"), AncientMozillaVersion)
+    assert isinstance(MozillaVersion("1.2.0.4pre1"), AncientMozillaVersion)
+    assert MozillaVersion("1.2pre1") == MozillaVersion("1.2.0pre1")
+    assert MozillaVersion("1.2.0.4pre1") == MozillaVersion("1.2.4pre1")
+
+
 
 @pytest.mark.parametrize('version', ALL_VERSIONS)
 def test_versions_compare_equal(version):
diff '--color=auto' -urN seamonkey-2.53.24.orig/tools/power/mach_commands.py 
seamonkey-2.53.24/tools/power/mach_commands.py
--- seamonkey-2.53.24.orig/tools/power/mach_commands.py 2026-05-30 
15:08:56.000000000 +0200
+++ seamonkey-2.53.24/tools/power/mach_commands.py      2026-08-22 
22:20:37.476019776 +0200
@@ -4,18 +4,17 @@
 
 from __future__ import print_function
 
-from distutils.version import StrictVersion
-
 from mach.decorators import (
     Command,
     CommandArgument,
 )
+from packaging.version import Version
 
 
 def is_osx_10_10_or_greater(cls):
     import platform
     release = platform.mac_ver()[0]
-    return release and StrictVersion(release) >= StrictVersion('10.10')
+    return release and Version(release) >= Version("10.10")
 
 
 # Get system power consumption and related measurements.

++++++ 7007_py312_1766085.patch ++++++
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/python/mozbuild/mozbuild/doctor.py 
seamonkey-2.53.23/python/mozbuild/mozbuild/doctor.py
--- seamonkey-2.53.23.orig/python/mozbuild/mozbuild/doctor.py   2025-11-15 
21:08:17.000000000 +0100
+++ seamonkey-2.53.23/python/mozbuild/mozbuild/doctor.py        2026-01-11 
14:23:33.630832240 +0100
@@ -12,7 +12,7 @@
 import psutil
 
 from distutils.util import strtobool
-from distutils.version import LooseVersion
+from packaging.version import Version
 
 import mozpack.path as mozpath
 
@@ -26,7 +26,7 @@
 FREESPACE_THRESHOLD = 10
 
 # Latest MozillaBuild version
-LATEST_MOZILLABUILD_VERSION = '1.11.0'
+LATEST_MOZILLABUILD_VERSION = Version("4.0")
 
 DISABLE_LASTACCESS_WIN = '''
 Disable the last access time feature?
@@ -291,7 +291,7 @@
                 version = fh.readline()
             if not version:
                 raise ValueError()
-            if LooseVersion(version) < 
LooseVersion(LATEST_MOZILLABUILD_VERSION):
+            if Version(local_version) < LATEST_MOZILLABUILD_VERSION:
                 status = 'BAD'
                 desc = 'MozillaBuild %s in use, <%s' % (
                     version, LATEST_MOZILLABUILD_VERSION
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/python/mozbuild/mozpack/chrome/flags.py 
seamonkey-2.53.23/python/mozbuild/mozpack/chrome/flags.py
--- seamonkey-2.53.23.orig/python/mozbuild/mozpack/chrome/flags.py      
2025-11-15 21:08:17.000000000 +0100
+++ seamonkey-2.53.23/python/mozbuild/mozpack/chrome/flags.py   2026-01-11 
14:25:29.610783666 +0100
@@ -6,7 +6,7 @@
 
 import re
 import six
-from distutils.version import LooseVersion
+from packaging.version import Version
 from mozpack.errors import errors
 from collections import OrderedDict
 
@@ -160,14 +160,14 @@
         assert(definition.startswith(self.name))
         value = definition[len(self.name):]
         if value.startswith('='):
-            self.values.append(('==', LooseVersion(value[1:])))
+            self.values.append(("==", Version(value[1:])))
         elif len(value) > 1 and value[0] in ['<', '>']:
             if value[1] == '=':
                 if len(value) < 3:
                     return errors.fatal('Malformed flag: %s' % definition)
-                self.values.append((value[0:2], LooseVersion(value[2:])))
+                self.values.append((value[0:2], Version(value[2:])))
             else:
-                self.values.append((value[0], LooseVersion(value[1:])))
+                self.values.append((value[0], Version(value[1:])))
         else:
             return errors.fatal('Malformed flag: %s' % definition)
 
@@ -189,7 +189,7 @@
             flag.matches('1.0') returns True
             flag.matches('0.6') returns False
         '''
-        value = LooseVersion(value)
+        value = Version(value)
         if not self.values:
             return True
         for comparison, val in self.values:
diff '--color=auto' -urN seamonkey-2.53.23.orig/testing/mozbase/versioninfo.py 
seamonkey-2.53.23/testing/mozbase/versioninfo.py
--- seamonkey-2.53.23.orig/testing/mozbase/versioninfo.py       2025-11-15 
21:08:19.000000000 +0100
+++ seamonkey-2.53.23/testing/mozbase/versioninfo.py    2026-01-11 
14:27:20.751412498 +0100
@@ -12,7 +12,7 @@
 from __future__ import absolute_import, print_function
 
 from collections.abc import Iterable
-from distutils.version import StrictVersion
+from packaging.version import Version
 import argparse
 import os
 import subprocess
@@ -47,12 +47,12 @@
             for line in diff.splitlines():
                 if line.startswith('-PACKAGE_VERSION'):
                     try:
-                        minus_version = 
StrictVersion(line.split()[-1].strip('"\''))
+                        minus_version = Version(line.split()[-1].strip("\"'"))
                     except ValueError:
                         pass
                 elif line.startswith('+PACKAGE_VERSION'):
                     try:
-                        plus_version = 
StrictVersion(line.split()[-1].strip('"\''))
+                        plus_version = Version(line.split()[-1].strip("\"'"))
                     except ValueError:
                         break
 
@@ -61,7 +61,7 @@
                         if not v:
                             return rev
 
-                        if StrictVersion(v) == plus_version:
+                        if Version(v) == plus_version:
                             return rev
 
         print("Could not find %s revision for version %s." % (args.module, v 
or 'latest'))
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/tools/lint/eslint/setup_helper.py 
seamonkey-2.53.23/tools/lint/eslint/setup_helper.py
--- seamonkey-2.53.23.orig/tools/lint/eslint/setup_helper.py    2025-11-15 
21:08:22.000000000 +0100
+++ seamonkey-2.53.23/tools/lint/eslint/setup_helper.py 2026-01-11 
14:31:02.326920823 +0100
@@ -12,7 +12,7 @@
 import subprocess
 import sys
 import tempfile
-from distutils.version import LooseVersion, StrictVersion
+from packaging.version import Version
 from filecmp import dircmp
 
 from mozbuild.nodeutil import (find_node_executable, find_npm_executable,
@@ -104,7 +104,7 @@
 
     # If we have an npm version newer than 5.8.0, just use 'ci', as that's much
     # simpler and does exactly what we want.
-    npm_is_older_version = version < StrictVersion("5.8.0").version
+    npm_is_older_version = version < Version("5.8.0").version
 
     if npm_is_older_version:
         cmd = [npm_path, "install"]

++++++ 7008_py312_1787628.patch ++++++
diff '--color=auto' -urN seamonkey-2.53.23.orig/configure.py 
seamonkey-2.53.23/configure.py
--- seamonkey-2.53.23.orig/configure.py 2025-11-15 21:08:07.000000000 +0100
+++ seamonkey-2.53.23/configure.py      2026-01-11 14:51:44.148373998 +0100
@@ -19,6 +19,7 @@
 sys.path.insert(0, os.path.join(base_dir, 'python', 'mozboot'))
 sys.path.insert(0, os.path.join(base_dir, 'python', 'mozbuild'))
 sys.path.insert(0, os.path.join(base_dir, 'third_party', 'python', 'six'))
+sys.path.insert(0, os.path.join(base_dir, "third_party", "python", 
"looseversion"))
 from mozbuild.configure import (
     ConfigureSandbox,
     TRACE,

++++++ 7009_py312_misc.patch ++++++
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/build/moz.configure/init.configure 
seamonkey-2.53.24/build/moz.configure/init.configure
--- seamonkey-2.53.24.orig/build/moz.configure/init.configure   2026-05-30 
15:08:55.000000000 +0200
+++ seamonkey-2.53.24/build/moz.configure/init.configure        2026-08-22 
22:24:08.690797433 +0200
@@ -226,7 +226,7 @@
 @imports('os')
 @imports('sys')
 @imports('subprocess')
-@imports('distutils.sysconfig')
+@imports('sysconfig')
 @imports(_from='mozbuild.configure.util', _import='LineIO')
 @imports(_from='mozbuild.virtualenv', _import='VirtualenvManager')
 @imports(_from='mozbuild.virtualenv', _import='verify_python_version')
@@ -355,7 +355,7 @@
         sys.exit(subprocess.call([python] + sys.argv))
 
     # We are now in the virtualenv
-    if not distutils.sysconfig.get_python_lib():
+    if not sysconfig.get_path('purelib'):
         die('Could not determine python site packages directory')
 
     # We may have set PYTHONEXECUTABLE above, and that affects python
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/pythonutil.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/pythonutil.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozbuild/pythonutil.py       
2026-05-30 14:18:44.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/pythonutil.py    2026-08-22 
22:24:08.691265974 +0200
@@ -9,9 +9,7 @@
 import subprocess
 import sys
 
-from distutils.version import (
-    StrictVersion,
-)
+from packaging.version import Version
 
 
 def iter_modules_in_path(*paths):
@@ -40,7 +38,7 @@
     program = "import sys; print('.'.join(map(str, sys.version_info[0:3])))"
     out = six.ensure_text(subprocess.check_output(
         [exe, '-c', program], universal_newlines=True)).rstrip()
-    return StrictVersion(out)
+    return Version(out)
 
 
 def _find_python_executable(major):
@@ -56,16 +54,17 @@
             raise ValueError('min_version expected a %sx string, got %s' %
                              (prefix, min_version))
 
-        min_version = StrictVersion(min_version)
-        major = min_version.version[0]
+        min_version = Version(min_version)
+        major = min_version.major
 
         if sys.version_info.major == major:
-            our_version = StrictVersion('%s.%s.%s' % (sys.version_info[0:3]))
+            our_version = Version('%s.%s.%s' % (sys.version_info[0:3]))
 
             if our_version >= min_version:
                 # This will potentially return a virtualenv Python. It's 
probably
                 # OK for now...
-                return sys.executable, our_version.version
+                our_out_version = tuple(int(num) for num in 
str(our_version).split('.'))
+                return sys.executable, our_out_version
 
             # Else fall back to finding another binary.
 
@@ -81,7 +80,7 @@
         names = ['python%d' % major]
 
         # Look for `pythonX.Y` down to our minimum version.
-        for minor in range(9, min_version.version[1] - 1, -1):
+        for minor in range(9, min_version.minor - 1, -1):
             names.append('python%d.%d' % (major, minor))
 
         for name in names:
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/virtualenv.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/virtualenv.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozbuild/virtualenv.py       
2026-05-30 15:08:55.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/virtualenv.py    2026-08-22 
22:24:08.691553819 +0200
@@ -324,7 +324,7 @@
         environment is not configured properly, packages could be installed
         into the wrong place. This is how virtualenv's work.
         """
-        import distutils.sysconfig
+        import sysconfig
 
         # We always target the OS X deployment target that Python itself was
         # built with, regardless of what's in the current environment. If we
@@ -346,7 +346,7 @@
         try:
             old_target = os.environ.get('MACOSX_DEPLOYMENT_TARGET', None)
             sysconfig_target = \
-                distutils.sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')
+                sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')
 
             if sysconfig_target is not None:
                 # MACOSX_DEPLOYMENT_TARGET is usually a string (e.g.: 
"10.14.6"), but
@@ -364,7 +364,7 @@
 
             env_requirements = self._requirements()
             if self.populate_local_paths:
-                python_lib = distutils.sysconfig.get_python_lib()
+                python_lib = sysconfig.get_path('purelib')
                 with open(os.path.join(python_lib, PTH_FILENAME), "a") as f:
                     for pth_requirement in env_requirements.pth_requirements:
                         path = os.path.join(self.topsrcdir, 
pth_requirement.path)
@@ -641,7 +641,7 @@
 
 def verify_python_version(log_handle):
     """Ensure the current version of Python is sufficient."""
-    from distutils.version import LooseVersion
+    from looseversion import LooseVersion
 
     major, minor, micro = sys.version_info[:3]
     minimum_python_versions = {2: LooseVersion("2.7.3"), 3: 
LooseVersion("3.6.0")}

++++++ 7010_py312_virtualenv.patch ++++++
++++ 1255 lines (skipped)

++++++ 7011_py312_setuptools.patch ++++++
++++ 108097 lines (skipped)

++++++ 7012_py312_remove_python_check.patch ++++++
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/python/mozbuild/mozbuild/virtualenv.py 
seamonkey-2.53.23/python/mozbuild/mozbuild/virtualenv.py
--- seamonkey-2.53.23.orig/python/mozbuild/mozbuild/virtualenv.py       
2026-01-14 10:21:39.180268741 +0100
+++ seamonkey-2.53.23/python/mozbuild/mozbuild/virtualenv.py    2026-01-14 
10:47:59.748276524 +0100
@@ -692,8 +669,6 @@
 
 
 if __name__ == '__main__':
-    verify_python_version(sys.stdout)
-
     if len(sys.argv) < 2:
         print('Too few arguments', file=sys.stderr)
         sys.exit(1)

++++++ 7013_py312_1875052.patch ++++++
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/config/check_macroassembler_style.py 
seamonkey-2.53.24/config/check_macroassembler_style.py
--- seamonkey-2.53.24.orig/config/check_macroassembler_style.py 2026-05-30 
14:18:36.000000000 +0200
+++ seamonkey-2.53.24/config/check_macroassembler_style.py      2026-08-22 
22:53:16.795072707 +0200
@@ -33,10 +33,10 @@
 all_architecture_names = set(['x86', 'x64', 'arm', 'arm64'])
 all_shared_architecture_names = set(['x86_shared', 'arm', 'arm64'])
 
-reBeforeArg = "(?<=[(,\s])"
-reArgType = "(?P<type>[\w\s:*&]+)"
-reArgName = "(?P<name>\s\w+)"
-reArgDefault = "(?P<default>(?:\s=[^,)]+)?)"
+reBeforeArg = r"(?<=[(,\s])"
+reArgType = r"(?P<type>[\w\s:*&<>]+)"
+reArgName = r"(?P<name>\s\w+)"
+reArgDefault = r"(?P<default>(?:\s=(?:(?:\s[\w:]+\(\))|[^,)]+))?)"
 reAfterArg = "(?=[,)])"
 reMatchArg = re.compile(reBeforeArg + reArgType +
                         reArgName + reArgDefault + reAfterArg)
@@ -50,7 +50,7 @@
     # Normalize spaces.
     signature = re.sub(r'\s+', ' ', signature).strip()
     # Match arguments, and keep only the type.
-    signature = reMatchArg.sub('\g<type>', signature)
+    signature = reMatchArg.sub(r"\g<type>", signature)
     # Remove class name
     signature = signature.replace('MacroAssembler::', '')
 
@@ -61,7 +61,7 @@
 
     if 'DEFINED_ON(' in signature:
         archs = re.sub(
-            r'.*DEFINED_ON\((?P<archs>[^()]*)\).*', '\g<archs>', 
signature).split(',')
+            r".*DEFINED_ON\((?P<archs>[^()]*)\).*", r"\g<archs>", 
signature).split(',')
         archs = [a.strip() for a in archs]
         signature = re.sub(r'\s+DEFINED_ON\([^()]*\)', '', signature)
 
diff '--color=auto' -urN seamonkey-2.53.24.orig/js/src/builtin/embedjs.py 
seamonkey-2.53.24/js/src/builtin/embedjs.py
--- seamonkey-2.53.24.orig/js/src/builtin/embedjs.py    2026-05-30 
15:08:55.000000000 +0200
+++ seamonkey-2.53.24/js/src/builtin/embedjs.py 2026-08-22 22:55:55.592426043 
+0200
@@ -153,7 +153,7 @@
 def messages(jsmsg):
     defines = []
     for line in open(jsmsg):
-        match = re.match("MSG_DEF\((JSMSG_(\w+))", line)
+        match = re.match(r"MSG_DEF\((JSMSG_(\w+))", line)
         if match:
             defines.append("#define %s %i" % (match.group(1), len(defines)))
         else:
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/action/process_define_files.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/action/process_define_files.py
--- 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/action/process_define_files.py  
    2026-05-30 14:18:44.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/action/process_define_files.py   
2026-08-22 22:53:16.795921179 +0200
@@ -37,7 +37,9 @@
         config = PartialConfigEnvironment(mozpath.join(topobjdir, 'js', 'src'))
 
     with open(path, 'r') as input:
-        r = 
re.compile('^\s*#\s*(?P<cmd>[a-z]+)(?:\s+(?P<name>\S+)(?:\s+(?P<value>\S+))?)?',
 re.U)
+        r = re.compile(
+            
r"^\s*#\s*(?P<cmd>[a-z]+)(?:\s+(?P<name>\S+)(?:\s+(?P<value>\S+))?)?", re.U
+        )
         for l in input:
             m = r.match(l)
             if m:
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/configure/__init__.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/configure/__init__.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozbuild/configure/__init__.py       
2026-05-30 15:08:55.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/configure/__init__.py    
2026-08-22 22:53:16.796268307 +0200
@@ -840,7 +840,7 @@
     def wraps(self, func):
         return wraps(func)
 
-    RE_MODULE = re.compile('^[a-zA-Z0-9_\.]+$')
+    RE_MODULE = re.compile(r"^[a-zA-Z0-9_.]+$")
 
     def imports_impl(self, _import, _from=None, _as=None):
         '''Implementation of @imports.
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozversioncontrol/mozversioncontrol/__init__.py 
seamonkey-2.53.24/python/mozversioncontrol/mozversioncontrol/__init__.py
--- 
seamonkey-2.53.24.orig/python/mozversioncontrol/mozversioncontrol/__init__.py   
    2026-05-30 15:08:55.000000000 +0200
+++ seamonkey-2.53.24/python/mozversioncontrol/mozversioncontrol/__init__.py    
2026-08-22 22:53:16.796673984 +0200
@@ -125,7 +125,7 @@
         if self._version:
             return self._version
         info = self._run('--version').strip()
-        match = re.search('version ([^\+\)]+)', info)
+        match = re.search(r"version ([^+)]+)", info)
         if not match:
             raise Exception('Unable to identify tool version.')
 
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/testing/mozbase/manifestparser/manifestparser/expression.py
 seamonkey-2.53.24/testing/mozbase/manifestparser/manifestparser/expression.py
--- 
seamonkey-2.53.24.orig/testing/mozbase/manifestparser/manifestparser/expression.py
  2026-05-30 14:18:45.000000000 +0200
+++ 
seamonkey-2.53.24/testing/mozbase/manifestparser/manifestparser/expression.py   
    2026-08-22 22:53:16.796977512 +0200
@@ -190,7 +190,7 @@
 
 
 class ExpressionParser(object):
-    """
+    r"""
     A parser for a simple expression language.
 
     The expression language can be described as follows::
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/toolkit/library/dependentlibs.py 
seamonkey-2.53.24/toolkit/library/dependentlibs.py
--- seamonkey-2.53.24.orig/toolkit/library/dependentlibs.py     2026-05-30 
14:18:47.000000000 +0200
+++ seamonkey-2.53.24/toolkit/library/dependentlibs.py  2026-08-22 
22:53:16.797344800 +0200
@@ -24,7 +24,7 @@
                             universal_newlines=True)
     deps = []
     for line in proc.stdout:
-        match = re.match('\s+DLL Name: (\S+)', line)
+        match = re.match(r"\s+DLL Name: (\S+)", line)
         if match:
             deps.append(match.group(1))
     proc.wait()
@@ -47,7 +47,7 @@
             # 0x00000001 (NEEDED)             Shared library: [libname]
             # or with BSD readelf:
             # 0x00000001 NEEDED               Shared library: [libname]
-            match = re.search('\[(.*)\]', tmp[3])
+            match = re.search(r"\[(.*)\]", tmp[3])
             if match:
                 deps.append(match.group(1))
     proc.wait()

++++++ 7014_py312_make_dafsa_fix.patch ++++++
diff '--color=auto' -urN seamonkey-2.53.23.orig/netwerk/dns/prepare_tlds.py 
seamonkey-2.53.23/netwerk/dns/prepare_tlds.py
--- seamonkey-2.53.23.orig/netwerk/dns/prepare_tlds.py  2026-01-14 
11:27:37.086575350 +0100
+++ seamonkey-2.53.23/netwerk/dns/prepare_tlds.py       2026-01-14 
12:43:25.296604790 +0100
@@ -4,10 +4,11 @@
 
 import codecs
 import encodings.idna
+import os
 import re
 import sys
 
-from make_dafsa import words_to_bin, words_to_cxx
+from mozfile import load_source
 
 """
 Processes a file containing effective TLD data.  See the following URL for a
@@ -107,9 +108,7 @@
   tld_dir = os.path.dirname(effective_tld_filename)
   make_dafsa_py = os.path.join(tld_dir, '../../xpcom/ds/make_dafsa.py')
   sys.path.append(os.path.dirname(make_dafsa_py))
-  with open(make_dafsa_py, 'r') as fh:
-    make_dafsa = imp.load_module('script', fh, make_dafsa_py,
-                                 ('.py', 'r', imp.PY_SOURCE))
+  make_dafsa = load_source("make_dafsa", make_dafsa_py)
 
   def typeEnum(etld):
     """

++++++ 7015_py312_regexp_warnings.patch ++++++
diff '--color=auto' -urN seamonkey-2.53.24.orig/python/mozboot/mozboot/base.py 
seamonkey-2.53.24/python/mozboot/mozboot/base.py
--- seamonkey-2.53.24.orig/python/mozboot/mozboot/base.py       2026-08-22 
22:18:42.710836737 +0200
+++ seamonkey-2.53.24/python/mozboot/mozboot/base.py    2026-08-22 
23:02:24.270469487 +0200
@@ -509,7 +509,7 @@
             # path and move on.
             return None
 
-        match = re.search(name + ' ([a-z0-9\.]+)', process.stdout)
+        match = re.search(name + r' ([a-z0-9\.]+)', process.stdout)
         if not match:
             print('ERROR! Unable to identify %s version.' % name)
             return None
diff '--color=auto' -urN seamonkey-2.53.24.orig/python/mozboot/mozboot/osx.py 
seamonkey-2.53.24/python/mozboot/mozboot/osx.py
--- seamonkey-2.53.24.orig/python/mozboot/mozboot/osx.py        2026-08-22 
22:18:42.711637608 +0200
+++ seamonkey-2.53.24/python/mozboot/mozboot/osx.py     2026-08-22 
23:02:24.270872177 +0200
@@ -36,7 +36,7 @@
     '7': 
'https://distfiles.macports.org/MacPorts/MacPorts-2.5.4-10.7-Lion.pkg',
     '6': 
'https://distfiles.macports.org/MacPorts/MacPorts-2.5.4-10.6-SnowLeopard.pkg', }
 
-RE_CLANG_VERSION = re.compile('Apple (?:clang|LLVM) version (\d+\.\d+)')
+RE_CLANG_VERSION = re.compile(r'Apple (?:clang|LLVM) version (\d+\.\d+)')
 
 APPLE_CLANG_MINIMUM_VERSION = Version('4.2')
 
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/backend/recursivemake.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/backend/recursivemake.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozbuild/backend/recursivemake.py    
2026-05-30 15:08:55.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/backend/recursivemake.py 
2026-08-22 23:02:24.271333246 +0200
@@ -164,7 +164,7 @@
 
 
 def make_quote(s):
-    return s.replace('#', '\#').replace('$', '$$')
+    return s.replace("#", r"\#").replace("$", "$$")
 
 
 class BackendMakeFile(object):
@@ -996,7 +996,7 @@
                     for t in ('XPI_PKGNAME', 'INSTALL_EXTENSION_ID', 'tools'):
                         if t not in content:
                             continue
-                        if t == 'tools' and not re.search('(?:^|\s)tools.*::', 
content, re.M):
+                        if t == 'tools' and not 
re.search(r'(?:^|\s)tools.*::', content, re.M):
                             continue
                         if objdir == self.environment.topobjdir:
                             continue
@@ -1005,7 +1005,7 @@
 
                     # Directories with a Makefile containing a check target
                     # can't be skipped and must run during the 'check' tier.
-                    if re.search('(?:^|\s)check.*::', content, re.M):
+                    if re.search(r'(?:^|\s)check.*::', content, re.M):
                         self._no_skip['check'].add(mozpath.relpath(objdir,
                                                                    
self.environment.topobjdir))
 
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/configure/__init__.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/configure/__init__.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozbuild/configure/__init__.py       
2026-08-22 23:00:56.185723973 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/configure/__init__.py    
2026-08-22 23:02:24.271878240 +0200
@@ -840,7 +840,7 @@
     def wraps(self, func):
         return wraps(func)
 
-    RE_MODULE = re.compile(r"^[a-zA-Z0-9_.]+$")
+    RE_MODULE = re.compile("^[a-zA-Z0-9_.]+$")
 
     def imports_impl(self, _import, _from=None, _as=None):
         '''Implementation of @imports.
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/frontend/context.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/frontend/context.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozbuild/frontend/context.py 
2026-05-30 15:08:55.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/frontend/context.py      
2026-08-22 23:02:24.272498064 +0200
@@ -1908,7 +1908,7 @@
                                   """Names of example WebIDL interfaces to 
build as part of the build.
 
         Names in this list correspond to WebIDL interface names defined in
-        WebIDL files included in the build from one of the \*WEBIDL_FILES
+        WebIDL files included in the build from one of the *WEBIDL_FILES
         variables.
         """),
 
diff '--color=auto' -urN seamonkey-2.53.24.orig/python/mozbuild/mozbuild/jar.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/jar.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozbuild/jar.py      2026-05-30 
14:18:44.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/jar.py   2026-08-22 
23:02:24.273106227 +0200
@@ -98,8 +98,8 @@
 
 class JarManifestParser(object):
 
-    ignore = re.compile('\s*(\#.*)?$')
-    jarline = re.compile('''
+    ignore = re.compile(r"\s*(#.*)?$")
+    jarline = re.compile(r'''
         (?:
             (?:\[(?P<base>[\w\d.\-\_\\\/{}@]+)\]\s*)? # optional [base/path]
             (?P<jarfile>[\w\d.\-\_\\\/{}]+).jar\:    # filename.jar:
@@ -107,12 +107,12 @@
             (?:\s*(\#.*)?)                           # comment
         )\s*$                                        # whitespaces
         ''', re.VERBOSE)
-    relsrcline = re.compile('relativesrcdir\s+(?P<relativesrcdir>.+?):')
-    regline = re.compile('\%\s+(.*)$')
-    entryre = '(?P<optPreprocess>\*)?(?P<optOverwrite>\+?)\s+'
+    relsrcline = re.compile(r'relativesrcdir\s+(?P<relativesrcdir>.+?):')
+    regline = re.compile(r'\%\s+(.*)$')
+    entryre = r'(?P<optPreprocess>\*)?(?P<optOverwrite>\+?)\s+'
     entryline = re.compile(
-        entryre + ('(?P<output>[\w\d.\-\_\\\/\+\@]+)\s*'
-                   
'(\((?P<locale>\%?)(?P<source>[\w\d.\-\_\\\/\@\*]+)\))?\s*$')
+        entryre + (r'(?P<output>[\w\d.\-\_\\\/\+\@]+)\s*'
+                   
r'(\((?P<locale>\%?)(?P<source>[\w\d.\-\_\\\/\@\*]+)\))?\s*$')
         )
 
     def __init__(self):
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/mozconfig.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/mozconfig.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozbuild/mozconfig.py        
2026-05-30 15:08:55.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/mozconfig.py     2026-08-22 
23:02:24.273473053 +0200
@@ -60,7 +60,7 @@
 class MozconfigLoader(object):
     """Handles loading and parsing of mozconfig files."""
 
-    RE_MAKE_VARIABLE = re.compile('''
+    RE_MAKE_VARIABLE = re.compile(r'''
         ^\s*                    # Leading whitespace
         (?P<var>[a-zA-Z_0-9]+)  # Variable name
         \s* [?:]?= \s*          # Assignment operator surrounded by optional
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/preprocessor.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/preprocessor.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozbuild/preprocessor.py     
2026-05-30 14:18:44.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/preprocessor.py  2026-08-22 
23:02:24.273821016 +0200
@@ -1,7 +1,7 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
-"""
+r"""
 This is a very primitive line based preprocessor, for times when using
 a C preprocessor isn't an option.
 
@@ -134,7 +134,7 @@
         # unary
         rv.append(self.__get_unary())
         self.__ignore_whitespace()
-        if not re.match('[=!]=', self.content):
+        if not re.match(r'[=!]=', self.content):
             # no equality needed, short cut to our prime unary
             return rv[0]
         # append operator
@@ -150,7 +150,7 @@
         Production: '!'? value
         """
         # eat whitespace right away, too
-        not_ws = re.match('!\s*', self.content)
+        not_ws = re.match(r'!\s*', self.content)
         if not not_ws:
             return self.__get_value()
         rv = Expression.__AST('not')
@@ -160,24 +160,24 @@
         return rv
 
     def __get_value(self):
-        """
+        r"""
         Production: ( [0-9]+ | 'defined(' \w+ ')' | \w+ )
         Note that the order is important, and the expression is kind-of
         ambiguous as \w includes 0-9. One could make it unambiguous by
         removing 0-9 from the first char of a string literal.
         """
         rv = None
-        m = re.match('defined\s*\(\s*(\w+)\s*\)', self.content)
+        m = re.match(r'defined\s*\(\s*(\w+)\s*\)', self.content)
         if m:
             word_len = m.end()
             rv = Expression.__ASTLeaf('defined', m.group(1))
         else:
-            word_len = re.match('[0-9]*', self.content).end()
+            word_len = re.match(r'[0-9]*', self.content).end()
             if word_len:
                 value = int(self.content[:word_len])
                 rv = Expression.__ASTLeaf('int', value)
             else:
-                word_len = re.match('\w*', self.content).end()
+                word_len = re.match(r'\w*', self.content).end()
                 if word_len:
                     rv = Expression.__ASTLeaf('string', 
self.content[:word_len])
                 else:
@@ -187,7 +187,7 @@
         return rv
 
     def __ignore_whitespace(self):
-        ws_len = re.match('\s*', self.content).end()
+        ws_len = re.match(r'\s*', self.content).end()
         self.__strip(ws_len)
         return
 
@@ -355,7 +355,7 @@
             self.cmds[cmd] = (level, getattr(self, 'do_' + cmd))
         self.out = sys.stdout
         self.setMarker(marker)
-        self.varsubst = re.compile('@(?P<VAR>\w+)@', re.U)
+        self.varsubst = re.compile(r'@(?P<VAR>\w+)@', re.U)
         self.includes = set()
         self.silenceMissingDirectiveWarnings = False
         if defines:
@@ -385,7 +385,7 @@
         """
         self.marker = aMarker
         if aMarker:
-            self.instruction = 
re.compile('\s*{0}(?P<cmd>[a-z]+)(?:\s+(?P<args>.*?))?\s*$'
+            self.instruction = 
re.compile(r'\s*{0}(?P<cmd>[a-z]+)(?:\s+(?P<args>.*?))?\s*$'
                                           .format(aMarker))
             self.comment = re.compile(aMarker, re.U)
         else:
@@ -531,8 +531,8 @@
             out.close()
 
     def getCommandLineParser(self, unescapeDefines=False):
-        escapedValue = re.compile('".*"$')
-        numberValue = re.compile('\d+$')
+        escapedValue = re.compile(r'".*"$')
+        numberValue = re.compile(r'\d+$')
 
         def handleD(option, opt, value, parser):
             vals = value.split('=', 1)
@@ -605,7 +605,7 @@
 
     # Variables
     def do_define(self, args):
-        m = re.match('(?P<name>\w+)(?:\s(?P<value>.*))?', args, re.U)
+        m = re.match(r'(?P<name>\w+)(?:\s(?P<value>.*))?', args, re.U)
         if not m:
             raise Preprocessor.Error(self, 'SYNTAX_DEF', args)
         val = ''
@@ -618,7 +618,7 @@
         self.context[m.group('name')] = val
 
     def do_undef(self, args):
-        m = re.match('(?P<name>\w+)$', args, re.U)
+        m = re.match(r'(?P<name>\w+)$', args, re.U)
         if not m:
             raise Preprocessor.Error(self, 'SYNTAX_DEF', args)
         if args in self.context:
@@ -656,7 +656,7 @@
         if self.disableLevel and not replace:
             self.disableLevel += 1
             return
-        if re.search('\W', args, re.U):
+        if re.search(r'\W', args, re.U):
             raise Preprocessor.Error(self, 'INVALID_VAR', args)
         if args not in self.context:
             self.disableLevel = 1
@@ -671,7 +671,7 @@
         if self.disableLevel and not replace:
             self.disableLevel += 1
             return
-        if re.search('\W', args, re.U):
+        if re.search(r'\W', args, re.U):
             raise Preprocessor.Error(self, 'INVALID_VAR', args)
         if args in self.context:
             self.disableLevel = 1
@@ -720,7 +720,7 @@
 
     # output processing
     def do_expand(self, args):
-        lst = re.split('__(\w+)__', args, re.U)
+        lst = re.split(r'__(\w+)__', args, re.U)
 
         def vsubst(v):
             if v in self.context:
@@ -772,7 +772,7 @@
 
     # spaces: Collapses sequences of spaces into a single space.
     def filter_spaces(self, aLine):
-        return re.sub(' +', ' ', aLine).strip(' ')
+        return re.sub(r' +', ' ', aLine).strip(' ')
 
     # substitution: variables wrapped in @ are replaced with their value.
     def filter_substitution(self, aLine, fatal=True):
@@ -812,7 +812,7 @@
                 raise
             except Exception:
                 raise Preprocessor.Error(self, 'FILE_NOT_FOUND', 
_to_text(args))
-        self.checkLineNumbers = 
bool(re.search('\.(js|jsm|java|webidl)(?:\.in)?$', args.name))
+        self.checkLineNumbers = 
bool(re.search(r'\.(js|jsm|java|webidl)(?:\.in)?$', args.name))
         oldFile = self.context['FILE']
         oldLine = self.context['LINE']
         oldDir = self.context['DIRECTORY']
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/shellutil.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/shellutil.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozbuild/shellutil.py        
2026-05-30 14:18:44.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/shellutil.py     2026-08-22 
23:02:24.274265098 +0200
@@ -22,7 +22,7 @@
 
     # The final pattern matches either the above pattern, or an escaped
     # backslash, captured in the "escape" match group.
-    return re.compile('(?:%s|%s)' % (nonescaped, r'(?P<escape>\\\\)'))
+    return re.compile(r'(?:%s|%s)' % (nonescaped, r'(?P<escape>\\\\)'))
 
 
 UNQUOTED_TOKENS_RE = _tokens2re(
@@ -36,7 +36,7 @@
 DOUBLY_QUOTED_TOKENS_RE = _tokens2re(
   quote='"',
   backslashedquote=r'\\"',
-  special='\$',
+  special=r'\$',
   backslashed=r'\\[^\\"]',
 )
 
@@ -173,7 +173,7 @@
     '''
     Split the given command line string.
     '''
-    s = ESCAPED_NEWLINES_RE.sub('', cline)
+    s = ESCAPED_NEWLINES_RE.sub(r'', cline)
     return _ClineSplitter(s).result
 
 
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozbuild/util.py 
seamonkey-2.53.24/python/mozbuild/mozbuild/util.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozbuild/util.py     2026-05-30 
14:18:44.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozbuild/util.py  2026-08-22 
23:02:24.274601769 +0200
@@ -1211,7 +1211,7 @@
     return zip(a, b)
 
 
-VARIABLES_RE = re.compile('\$\((\w+)\)')
+VARIABLES_RE = re.compile(r'\$\((\w+)\)')
 
 
 def expand_variables(s, variables):
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/python/mozbuild/mozpack/packager/__init__.py 
seamonkey-2.53.24/python/mozbuild/mozpack/packager/__init__.py
--- seamonkey-2.53.24.orig/python/mozbuild/mozpack/packager/__init__.py 
2026-05-30 15:08:55.000000000 +0200
+++ seamonkey-2.53.24/python/mozbuild/mozpack/packager/__init__.py      
2026-08-22 23:02:24.275079651 +0200
@@ -112,7 +112,7 @@
         component = splits[0].strip()
         if not component:
             raise ValueError('No component found')
-        if not re.match('[a-zA-Z0-9_\-]+$', component):
+        if not re.match(r'[a-zA-Z0-9_\-]+$', component):
             raise ValueError('Bad component name ' + component)
         options = Component._split_options(splits[1]) if len(splits) > 1 else 
{}
         return component, options
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/testing/mozbase/mozinfo/mozinfo/mozinfo.py 
seamonkey-2.53.24/testing/mozbase/mozinfo/mozinfo/mozinfo.py
--- seamonkey-2.53.24.orig/testing/mozbase/mozinfo/mozinfo/mozinfo.py   
2026-05-30 15:08:56.000000000 +0200
+++ seamonkey-2.53.24/testing/mozbase/mozinfo/mozinfo/mozinfo.py        
2026-08-22 23:02:24.275347668 +0200
@@ -156,7 +156,7 @@
     processor = "aarch64"
 elif processor == "Power Macintosh":
     processor = "ppc"
-bits = re.search('(\d+)bit', bits).group(1)
+bits = re.search(r'(\d+)bit', bits).group(1)
 info.update({'processor': processor,
              'bits': int(bits),
              })
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/testing/mozbase/mozinstall/mozinstall/mozinstall.py 
seamonkey-2.53.24/testing/mozbase/mozinstall/mozinstall/mozinstall.py
--- seamonkey-2.53.24.orig/testing/mozbase/mozinstall/mozinstall/mozinstall.py  
2026-05-30 14:18:45.000000000 +0200
+++ seamonkey-2.53.24/testing/mozbase/mozinstall/mozinstall/mozinstall.py       
2026-08-22 23:02:24.275628772 +0200
@@ -222,7 +222,7 @@
         if os.path.isfile(log_file):
             trbk = None
             try:
-                cmdArgs = ['%s\\uninstall\helper.exe' % install_folder, '/S']
+                cmdArgs = ['%s\\uninstall\\helper.exe' % install_folder, '/S']
                 result = subprocess.call(cmdArgs)
                 if result != 0:
                     raise Exception('Execution of uninstaller failed.')
diff '--color=auto' -urN 
seamonkey-2.53.24.orig/testing/mozharness/mach_commands.py 
seamonkey-2.53.24/testing/mozharness/mach_commands.py
--- seamonkey-2.53.24.orig/testing/mozharness/mach_commands.py  2026-05-30 
15:08:56.000000000 +0200
+++ seamonkey-2.53.24/testing/mozharness/mach_commands.py       2026-08-22 
23:02:24.275887878 +0200
@@ -134,9 +134,9 @@
 
     def _installer_url(self):
         package_re = {
-            "linux": re.compile("^firefox-\d+\..+\.tar\.bz2$"),
-            "win": re.compile("^firefox-\d+\..+\.installer\.exe$"),
-            "mac": re.compile("^firefox-\d+\..+\.mac(?:64)?\.dmg$"),
+            "linux": re.compile(r"^firefox-\d+\..+\.tar\.bz2$"),
+            "win": re.compile(r"^firefox-\d+\..+\.installer\.exe$"),
+            "mac": re.compile(r"^firefox-\d+\..+\.mac(?:64)?\.dmg$"),
         }[mozinfo.info['os']]
         dist_path = os.path.join(self.topobjdir, "dist")
         filenames = [item for item in os.listdir(dist_path) if

++++++ 7016_py313_1677422.patch ++++++
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/testing/mozbase/mozlog/mozlog/formatters/html/html.py 
seamonkey-2.53.23/testing/mozbase/mozlog/mozlog/formatters/html/html.py
--- 
seamonkey-2.53.23.orig/testing/mozbase/mozlog/mozlog/formatters/html/html.py    
    2025-11-15 21:08:19.000000000 +0100
+++ seamonkey-2.53.23/testing/mozbase/mozlog/mozlog/formatters/html/html.py     
2026-01-15 14:17:18.456221328 +0100
@@ -6,7 +6,6 @@
 from __future__ import absolute_import
 
 import base64
-import cgi
 from datetime import datetime
 import os
 
@@ -18,6 +17,11 @@
 html = None
 raw = None
 
+if six.PY2:
+    from cgi import escape
+else:
+    from html import escape
+
 base_path = os.path.split(__file__)[0]
 
 
@@ -177,9 +181,9 @@
                     log.append(line[:80])
                 else:
                     if line.lower().find("error") != -1 or 
line.lower().find("exception") != -1:
-                        log.append(html.span(raw(cgi.escape(line)), 
class_='error'))
+                        log.append(html.span(raw(escape(line)), 
class_="error"))
                     else:
-                        log.append(raw(cgi.escape(line)))
+                        log.append(raw(escape(line)))
                 log.append(html.br())
             additional_html.append(log)
 

++++++ 7017_py313_virtualenv_pipes.patch ++++++
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/third_party/python/virtualenv/virtualenv/discovery/cached_py_info.py
 
seamonkey-2.53.23/third_party/python/virtualenv/virtualenv/discovery/cached_py_info.py
--- 
seamonkey-2.53.23.orig/third_party/python/virtualenv/virtualenv/discovery/cached_py_info.py
 2025-11-15 21:08:20.000000000 +0100
+++ 
seamonkey-2.53.23/third_party/python/virtualenv/virtualenv/discovery/cached_py_info.py
      2026-01-15 14:37:26.330691340 +0100
@@ -8,7 +8,6 @@
 
 import logging
 import os
-import pipes
 import sys
 from collections import OrderedDict
 
@@ -19,6 +18,11 @@
 from virtualenv.util.six import ensure_text
 from virtualenv.util.subprocess import Popen, subprocess
 
+if PY2:
+    from pipes import quote
+else:
+    from shlex import quote
+
 _CACHE = OrderedDict()
 _CACHE[Path(sys.executable)] = PythonInfo()
 
@@ -122,7 +126,7 @@
         def e(v):
             return v.decode("utf-8") if isinstance(v, bytes) else v
 
-        cmd_repr = e(" ").join(pipes.quote(e(c)) for c in self.cmd)
+        cmd_repr = e(" ").join(quote(e(c)) for c in self.cmd)
         if self.env is not None:
             cmd_repr += e(" env of {!r}").format(self.env)
         if PY2:

++++++ 7018_py312_missing_packages.patch ++++++
diff '--color=auto' -urN seamonkey-2.53.23.orig/configure.py 
seamonkey-2.53.23/configure.py
--- seamonkey-2.53.23.orig/configure.py 2026-01-15 17:24:17.894234554 +0100
+++ seamonkey-2.53.23/configure.py      2026-01-15 17:43:10.470371257 +0100
@@ -18,6 +18,8 @@
 base_dir = os.path.abspath(os.path.dirname(__file__))
 sys.path.insert(0, os.path.join(base_dir, 'python', 'mozboot'))
 sys.path.insert(0, os.path.join(base_dir, 'python', 'mozbuild'))
+sys.path.insert(0, os.path.join(base_dir, "third_party", "python", 
"packaging"))
+sys.path.insert(0, os.path.join(base_dir, "third_party", "python", 
"pyparsing"))
 sys.path.insert(0, os.path.join(base_dir, 'third_party', 'python', 
'setuptools'))
 sys.path.insert(0, os.path.join(base_dir, 'third_party', 'python', 'six'))
 sys.path.insert(0, os.path.join(base_dir, "third_party", "python", 
"looseversion"))

++++++ 7019_py314_1969769.patch ++++++
diff '--color=auto' -urN 
seamonkey-2.53.23.orig/python/mozbuild/mozbuild/frontend/reader.py 
seamonkey-2.53.23/python/mozbuild/mozbuild/frontend/reader.py
--- seamonkey-2.53.23.orig/python/mozbuild/mozbuild/frontend/reader.py  
2025-11-15 21:08:17.000000000 +0100
+++ seamonkey-2.53.23/python/mozbuild/mozbuild/frontend/reader.py       
2026-01-15 18:28:26.105250088 +0100
@@ -471,7 +471,7 @@
 
             return c(ast.Subscript(
                 value=c(ast.Name(id=self._global_name, ctx=ast.Load())),
-                slice=c(ast.Index(value=c(ast.Str(s=node.id)))),
+                slice=c(ast.Index(value=c(ast.Constant(value=node.id)))),
                 ctx=node.ctx
             ))
 
@@ -982,8 +982,8 @@
             key = None
             if isinstance(target, ast.Subscript):
                 assert isinstance(target.slice, ast.Index)
-                assert isinstance(target.slice.value, ast.Str)
-                key = target.slice.value.s
+                assert isinstance(target.slice.value, ast.Constant)
+                key = target.slice.value.value
 
             return name, key
 
@@ -991,11 +991,11 @@
             value = node.value
             if isinstance(value, ast.List):
                 for v in value.elts:
-                    assert isinstance(v, ast.Str)
-                    yield v.s
+                    assert isinstance(v, ast.Constant)
+                    yield v.value
             else:
-                assert isinstance(value, ast.Str)
-                yield value.s
+                assert isinstance(value, ast.Constant)
+                yield value.value
 
         assignments = []
 

Reply via email to