pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/thunderbird Update to build with python 3.10



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fd7beaec6637
branches:  trunk
changeset: 390715:fd7beaec6637
user:      abs <abs%pkgsrc.org@localhost>
date:      Tue Dec 27 20:08:45 2022 +0000

description:
Update to build with python 3.10

Previously max version was 3.9.

Hopefully at some point someone will have the time to upgrade pkgsrc
to a newer version of thunderbird, but in the meantime...

diffstat:

 mail/thunderbird/Makefile                                                                   |   4 +-
 mail/thunderbird/distinfo                                                                   |   9 +++++-
 mail/thunderbird/mozilla-common.mk                                                          |   6 ++-
 mail/thunderbird/patches/patch-python_mozbuild_mozbuild_backend_configenvironment.py        |  16 ++++++++++
 mail/thunderbird/patches/patch-python_mozbuild_mozbuild_makeutil.py                         |  15 +++++++++
 mail/thunderbird/patches/patch-python_mozbuild_mozbuild_util.py                             |  15 +++++++++
 mail/thunderbird/patches/patch-testing_mozbase_manifestparser_manifestparser_filters.py     |  16 ++++++++++
 mail/thunderbird/patches/patch-third__party_python_gyp_pylib_gyp_common.py                  |  15 +++++++++
 mail/thunderbird/patches/patch-third__party_python_pyyaml_lib3_yaml_constructor.py          |  15 +++++++++
 mail/thunderbird/patches/patch-third__party_python_voluptuous_voluptuous_schema__builder.py |  15 +++++++++
 10 files changed, 121 insertions(+), 5 deletions(-)

diffs (193 lines):

diff -r 4a3806f93a71 -r fd7beaec6637 mail/thunderbird/Makefile
--- a/mail/thunderbird/Makefile Tue Dec 27 20:04:30 2022 +0000
+++ b/mail/thunderbird/Makefile Tue Dec 27 20:08:45 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.287 2022/11/23 16:20:34 adam Exp $
+# $NetBSD: Makefile,v 1.288 2022/12/27 20:08:45 abs Exp $
 
 DISTNAME=      thunderbird-${TB_VER}.source
 PKGNAME=       thunderbird-${TB_VER}
-PKGREVISION=   9
+PKGREVISION=   10
 TB_VER=                78.12.0
 CATEGORIES=    mail
 MASTER_SITES=  ${MASTER_SITE_MOZILLA:=thunderbird/releases/${TB_VER}/source/}
diff -r 4a3806f93a71 -r fd7beaec6637 mail/thunderbird/distinfo
--- a/mail/thunderbird/distinfo Tue Dec 27 20:04:30 2022 +0000
+++ b/mail/thunderbird/distinfo Tue Dec 27 20:08:45 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.252 2022/09/07 09:37:15 pho Exp $
+$NetBSD: distinfo,v 1.253 2022/12/27 20:08:45 abs Exp $
 
 BLAKE2s (thunderbird-78.12.0.source.tar.xz) = a16874486907a6f374d61c016d43258ed1765669bdef665610b46e796f28faf9
 SHA512 (thunderbird-78.12.0.source.tar.xz) = 8a9275f6a454b16215e9440d8b68926e56221dbb416f77ea0cd0a42853bdd26f35514e792564879c387271bd43d8ee966577f133f8ae7781f43e8bec9ab78696
@@ -32,7 +32,14 @@
 SHA1 (patch-media_webrtc_trunk_webrtc_modules_video__capture_linux_device__info__linux.cc) = 2c07cd2361752c307b2a50599a000e41d054aff6
 SHA1 (patch-nsprpub_pr_src_pthreads_ptsynch.c) = 20b208c5ab4bfea5d49d79c19fc610867da0c4c7
 SHA1 (patch-old-configure.in) = 27d42da882af2325dd3a8d8f6c062e59ffdb4d78
+SHA1 (patch-python_mozbuild_mozbuild_backend_configenvironment.py) = 51d875da8aeb09e475bc92d06b5b9abf59511154
+SHA1 (patch-python_mozbuild_mozbuild_makeutil.py) = f86940dc191b5705d6cdc2bb8f1a3b17807bfacb
+SHA1 (patch-python_mozbuild_mozbuild_util.py) = 2ac10992b870174380dac94deb58ef980a63262f
 SHA1 (patch-security_nss_lib_freebl_mpi_mpi.c) = 0cbf185955c77c9438ced0c294fbc8e4824797bf
+SHA1 (patch-testing_mozbase_manifestparser_manifestparser_filters.py) = 242859960c93a82b9e04bd0296e395d0233343e0
+SHA1 (patch-third__party_python_gyp_pylib_gyp_common.py) = 1576d52520efc9e12d0b4a6b8eaa2ffb3e4b2c06
+SHA1 (patch-third__party_python_pyyaml_lib3_yaml_constructor.py) = 3a8fb5e383fe571e3c2201b1420b18245cec3097
+SHA1 (patch-third__party_python_voluptuous_voluptuous_schema__builder.py) = 6cd4b1f02830279e4727d4fb8b2d69bfb8759296
 SHA1 (patch-third__party_rust_authenticator_.cargo-checksum.json) = 4a181138f3080b0e2203be1f8277f4ab2a584250
 SHA1 (patch-third__party_rust_authenticator_src_lib.rs) = 7ae115c6fa9617d3c211207739e74d2eaee194e4
 SHA1 (patch-third__party_rust_authenticator_src_netbsd_device.rs) = bcf69cdbcb471fa37b348176b5e368eccc7e50a9
diff -r 4a3806f93a71 -r fd7beaec6637 mail/thunderbird/mozilla-common.mk
--- a/mail/thunderbird/mozilla-common.mk        Tue Dec 27 20:04:30 2022 +0000
+++ b/mail/thunderbird/mozilla-common.mk        Tue Dec 27 20:08:45 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mozilla-common.mk,v 1.3 2022/11/07 00:55:15 gutteridge Exp $
+# $NetBSD: mozilla-common.mk,v 1.4 2022/12/27 20:08:45 abs Exp $
 #
 # common Makefile fragment for mozilla packages based on gecko 2.0.
 #
@@ -6,7 +6,9 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-PYTHON_VERSIONS_ACCEPTED+=     39 38
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+PYTHON_VERSIONS_INCOMPATIBLE+= 311
+
 PYTHON_FOR_BUILD_ONLY=         tool
 ALL_ENV+=                      PYTHON3=${PYTHONBIN}
 
diff -r 4a3806f93a71 -r fd7beaec6637 mail/thunderbird/patches/patch-python_mozbuild_mozbuild_backend_configenvironment.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird/patches/patch-python_mozbuild_mozbuild_backend_configenvironment.py      Tue Dec 27 20:08:45 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-python_mozbuild_mozbuild_backend_configenvironment.py,v 1.1 2022/12/27 20:08:45 abs Exp $
+
+Adjust for python 3.10
+
+--- python/mozbuild/mozbuild/backend/configenvironment.py.orig 2021-07-12 13:35:01.000000000 +0000
++++ python/mozbuild/mozbuild/backend/configenvironment.py
+@@ -9,7 +9,8 @@ import six
+ import sys
+ import json
+ 
+-from collections import Iterable, OrderedDict
++from collections import OrderedDict
++from collections.abc import Iterable
+ from types import ModuleType
+ 
+ import mozpack.path as mozpath
diff -r 4a3806f93a71 -r fd7beaec6637 mail/thunderbird/patches/patch-python_mozbuild_mozbuild_makeutil.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird/patches/patch-python_mozbuild_mozbuild_makeutil.py       Tue Dec 27 20:08:45 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-python_mozbuild_mozbuild_makeutil.py,v 1.1 2022/12/27 20:08:45 abs Exp $
+
+Adjust for python 3.10
+
+--- python/mozbuild/mozbuild/makeutil.py.orig  2021-07-12 13:35:01.000000000 +0000
++++ python/mozbuild/mozbuild/makeutil.py
+@@ -7,7 +7,7 @@ from __future__ import absolute_import, 
+ import os
+ import re
+ import six
+-from collections import Iterable
++from collections.abc import Iterable
+ 
+ 
+ class Makefile(object):
diff -r 4a3806f93a71 -r fd7beaec6637 mail/thunderbird/patches/patch-python_mozbuild_mozbuild_util.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird/patches/patch-python_mozbuild_mozbuild_util.py   Tue Dec 27 20:08:45 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-python_mozbuild_mozbuild_util.py,v 1.1 2022/12/27 20:08:45 abs Exp $
+
+Adjust for python 3.10
+
+--- python/mozbuild/mozbuild/util.py.orig      2021-07-12 13:35:01.000000000 +0000
++++ python/mozbuild/mozbuild/util.py
+@@ -782,7 +782,7 @@ class HierarchicalStringList(object):
+         self._strings = StrictOrderingOnAppendList()
+         self._children = {}
+ 
+-    class StringListAdaptor(collections.Sequence):
++    class StringListAdaptor(collections.abc.Sequence):
+         def __init__(self, hsl):
+             self._hsl = hsl
+ 
diff -r 4a3806f93a71 -r fd7beaec6637 mail/thunderbird/patches/patch-testing_mozbase_manifestparser_manifestparser_filters.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird/patches/patch-testing_mozbase_manifestparser_manifestparser_filters.py   Tue Dec 27 20:08:45 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-testing_mozbase_manifestparser_manifestparser_filters.py,v 1.1 2022/12/27 20:08:45 abs Exp $
+
+Adjust for python 3.10
+
+--- testing/mozbase/manifestparser/manifestparser/filters.py.orig      2021-07-12 13:35:02.000000000 +0000
++++ testing/mozbase/manifestparser/manifestparser/filters.py
+@@ -12,7 +12,8 @@ from __future__ import absolute_import
+ 
+ import itertools
+ import os
+-from collections import defaultdict, MutableSequence
++from collections import defaultdict
++from collections.abc import MutableSequence
+ 
+ import six
+ from six import string_types
diff -r 4a3806f93a71 -r fd7beaec6637 mail/thunderbird/patches/patch-third__party_python_gyp_pylib_gyp_common.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird/patches/patch-third__party_python_gyp_pylib_gyp_common.py        Tue Dec 27 20:08:45 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-third__party_python_gyp_pylib_gyp_common.py,v 1.1 2022/12/27 20:08:45 abs Exp $
+
+Adjust for python 3.10
+
+--- third_party/python/gyp/pylib/gyp/common.py.orig    2021-07-12 13:35:05.000000000 +0000
++++ third_party/python/gyp/pylib/gyp/common.py
+@@ -494,7 +494,7 @@ def uniquer(seq, idfun=None):
+ 
+ 
+ # Based on http://code.activestate.com/recipes/576694/.
+-class OrderedSet(collections.MutableSet):
++class OrderedSet(collections.abc.MutableSet):
+   def __init__(self, iterable=None):
+     self.end = end = []
+     end += [None, end, end]         # sentinel node for doubly linked list
diff -r 4a3806f93a71 -r fd7beaec6637 mail/thunderbird/patches/patch-third__party_python_pyyaml_lib3_yaml_constructor.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird/patches/patch-third__party_python_pyyaml_lib3_yaml_constructor.py        Tue Dec 27 20:08:45 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-third__party_python_pyyaml_lib3_yaml_constructor.py,v 1.1 2022/12/27 20:08:45 abs Exp $
+
+Adjust for python 3.10
+
+--- third_party/python/pyyaml/lib3/yaml/constructor.py.orig    2021-07-12 13:35:05.000000000 +0000
++++ third_party/python/pyyaml/lib3/yaml/constructor.py
+@@ -123,7 +123,7 @@ class BaseConstructor:
+         mapping = {}
+         for key_node, value_node in node.value:
+             key = self.construct_object(key_node, deep=deep)
+-            if not isinstance(key, collections.Hashable):
++            if not isinstance(key, collections.abc.Hashable):
+                 raise ConstructorError("while constructing a mapping", node.start_mark,
+                         "found unhashable key", key_node.start_mark)
+             value = self.construct_object(value_node, deep=deep)
diff -r 4a3806f93a71 -r fd7beaec6637 mail/thunderbird/patches/patch-third__party_python_voluptuous_voluptuous_schema__builder.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird/patches/patch-third__party_python_voluptuous_voluptuous_schema__builder.py       Tue Dec 27 20:08:45 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-third__party_python_voluptuous_voluptuous_schema__builder.py,v 1.1 2022/12/27 20:08:45 abs Exp $
+
+Adjust for python 3.10
+
+--- third_party/python/voluptuous/voluptuous/schema_builder.py.orig    2021-07-12 13:35:05.000000000 +0000
++++ third_party/python/voluptuous/voluptuous/schema_builder.py
+@@ -280,7 +280,7 @@ class Schema(object):
+             return schema.__voluptuous_compile__(self)
+         if isinstance(schema, Object):
+             return self._compile_object(schema)
+-        if isinstance(schema, collections.Mapping):
++        if isinstance(schema, collections.abc.Mapping):
+             return self._compile_dict(schema)
+         elif isinstance(schema, list):
+             return self._compile_list(schema)



Home | Main Index | Thread Index | Old Index