summaryrefslogtreecommitdiff
path: root/extra/patches
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-06 15:21:10 +0000
committerdavidovski <david@davidovski.xyz>2022-03-06 15:21:10 +0000
commit75e7bb9c72d562d397f9fb62072ab114cfbc6244 (patch)
treec2af33a2c487d2b411e3be0900f675c41ca5ab4f /extra/patches
parentce1ac2b89b42e4e05ba706b7bbdcc39cd2e64e8b (diff)
fixed python compilation for js78
Diffstat (limited to 'extra/patches')
-rw-r--r--extra/patches/js78/fix-python3.10-compilation.patch12
1 files changed, 12 insertions, 0 deletions
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