From 3be43040f4896e03fff7658a54d04a6050f6dfb8 Mon Sep 17 00:00:00 2001 From: "S. Lockwood-Childs" Date: Wed, 2 Mar 2022 15:06:39 -0800 Subject: 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 | class OrderedSet(collections.abc.MutableSet): | AttributeError: module 'collections' has no attribute 'abc' Signed-off-by: S. Lockwood-Childs Signed-off-by: Khem Raj --- .../gyp/gyp/0001-Fix-for-Python-3.10-compatibility.patch | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'meta-python') 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 2b88023fe8..1848654404 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 index b268d229..4f9cb0ec 100644 --- a/pylib/gyp/common.py +++ b/pylib/gyp/common.py +@@ -4,7 +4,7 @@ + + from __future__ import with_statement + +-import collections ++import collections.abc + import errno + import filecmp + import os.path @@ -494,7 +494,7 @@ def uniquer(seq, idfun=None): -- cgit v1.2.3-54-g00ecf