diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2021-11-17 14:13:21 +0300 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2021-11-17 15:34:18 +0300 |
commit | d8107994a2970045df453f6e702925ffdf59c7cb (patch) | |
tree | 60441c58abba22ce14ac99e4ca88889c4469bbde /lang/spidermonkey78/files/patch-python_mozbuild_mozbuild_backend_configenvironment.py | |
parent | graphics/autotrace: fix package build by disabling one of conflicting options (diff) |
lang/spidermonkey78: fix build with python 3.10
Approved by: portmgr blanket
Diffstat (limited to 'lang/spidermonkey78/files/patch-python_mozbuild_mozbuild_backend_configenvironment.py')
-rw-r--r-- | lang/spidermonkey78/files/patch-python_mozbuild_mozbuild_backend_configenvironment.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/spidermonkey78/files/patch-python_mozbuild_mozbuild_backend_configenvironment.py b/lang/spidermonkey78/files/patch-python_mozbuild_mozbuild_backend_configenvironment.py new file mode 100644 index 000000000000..fd3d705fefbf --- /dev/null +++ b/lang/spidermonkey78/files/patch-python_mozbuild_mozbuild_backend_configenvironment.py @@ -0,0 +1,17 @@ +--- python/mozbuild/mozbuild/backend/configenvironment.py.orig 2021-03-15 15:52:37 UTC ++++ python/mozbuild/mozbuild/backend/configenvironment.py +@@ -9,8 +9,13 @@ import six + import sys + import json + +-from collections import Iterable, OrderedDict ++from collections import OrderedDict + from types import ModuleType ++ ++if sys.version.startswith('2'): ++ from collections import Iterable ++else: ++ from collections.abc import Iterable + + import mozpack.path as mozpath + |