summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorS. Lockwood-Childs <sjl@vctlabs.com>2022-03-02 15:06:39 -0800
committerKhem Raj <raj.khem@gmail.com>2022-03-03 08:50:19 -0800
commit3be43040f4896e03fff7658a54d04a6050f6dfb8 (patch)
tree81556c8474a980ff5e0220c92c9da2d601742091
parentd740ecb8c484d2a3785f1fb2af54d8c49fe21297 (diff)
downloadmeta-openembedded-3be43040f4896e03fff7658a54d04a6050f6dfb8.tar.gz
gyp: fix for compatibility with Python 3.10 (part 2)
The patch for python 3.10 compatibility was missing an update to 'import' line. Fixes the following problem encountered making use of gyp: | File "[...]/usr/lib/python3.10/site-packages/gyp/common.py", line 497, in <module> | class OrderedSet(collections.abc.MutableSet): | AttributeError: module 'collections' has no attribute 'abc' Signed-off-by: S. Lockwood-Childs <sjl@vctlabs.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-python/recipes-devtools/gyp/gyp/0001-Fix-for-Python-3.10-compatibility.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/gyp/gyp/0001-Fix-for-Python-3.10-compatibility.patch b/meta-python/recipes-devtools/gyp/gyp/0001-Fix-for-Python-3.10-compatibility.patch
index 2b88023fe..184865440 100644
--- a/meta-python/recipes-devtools/gyp/gyp/0001-Fix-for-Python-3.10-compatibility.patch
+++ b/meta-python/recipes-devtools/gyp/gyp/0001-Fix-for-Python-3.10-compatibility.patch
@@ -14,6 +14,15 @@ diff --git a/pylib/gyp/common.py b/pylib/gyp/common.py
14index b268d229..4f9cb0ec 100644 14index b268d229..4f9cb0ec 100644
15--- a/pylib/gyp/common.py 15--- a/pylib/gyp/common.py
16+++ b/pylib/gyp/common.py 16+++ b/pylib/gyp/common.py
17@@ -4,7 +4,7 @@
18
19 from __future__ import with_statement
20
21-import collections
22+import collections.abc
23 import errno
24 import filecmp
25 import os.path
17@@ -494,7 +494,7 @@ def uniquer(seq, idfun=None): 26@@ -494,7 +494,7 @@ def uniquer(seq, idfun=None):
18 27
19 28