From 75e7bb9c72d562d397f9fb62072ab114cfbc6244 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 6 Mar 2022 15:21:10 +0000 Subject: fixed python compilation for js78 --- extra/patches/js78/fix-python3.10-compilation.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'extra/patches') diff --git a/extra/patches/js78/fix-python3.10-compilation.patch b/extra/patches/js78/fix-python3.10-compilation.patch index 7f5f507..4473d9b 100644 --- a/extra/patches/js78/fix-python3.10-compilation.patch +++ b/extra/patches/js78/fix-python3.10-compilation.patch @@ -7,6 +7,7 @@ Subject: [PATCH] Fixup compatibility of mozbuild with Python 3.10 --- python/mach/mach/config.py | 4 ++-- + python/mach/mach/main.py | 4 ++-- python/mach/mach/decorators.py | 2 +- python/mozbuild/mozbuild/backend/configenvironment.py | 3 ++- python/mozbuild/mozbuild/makeutil.py | 2 +- @@ -61,6 +62,17 @@ index 27f7f34a6..5f63271a3 100644 + if not isinstance(command.conditions, collections.abc.Iterable): msg = msg % (command.name, type(command.conditions)) raise MachError(msg) + +--- a/python/mach/mach/main.py ++++ b/python/mach/mach/main.py +@@ -16,7 +16,7 @@ + import sys + import traceback + import uuid +-from collections import Iterable ++from collections.abc import Iterable + + from six import string_types diff --git a/python/mozbuild/mozbuild/backend/configenvironment.py b/python/mozbuild/mozbuild/backend/configenvironment.py index 20d1a9fa6..8747958bd 100644 -- cgit v1.2.1