[neon/qt/pyside2/Neon/unstable] debian: Add a patch to fix AttributeError in signature_bootstrap.py.
Dmitry Shachnev
null at kde.org
Thu Jun 15 10:12:13 BST 2023
Git commit eec9db4c37f01f21959cc5cd1fc78f3686ceedf6 by Dmitry Shachnev.
Committed on 07/01/2023 at 12:51.
Pushed by carlosdem into branch 'Neon/unstable'.
Add a patch to fix AttributeError in signature_bootstrap.py.
Copied from Arch Linux, thanks Antonio Rojas!
M +1 -0 debian/changelog
A +22 -0 debian/patches/importlib-machinery.patch
M +1 -0 debian/patches/series
https://invent.kde.org/neon/qt/pyside2/-/commit/eec9db4c37f01f21959cc5cd1fc78f3686ceedf6
diff --git a/debian/changelog b/debian/changelog
index c0ca98ea..e616ea5e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,7 @@ pyside2 (5.15.8-1) UNRELEASED; urgency=medium
* Backport several upstream patches to support Python 3.11.
* Remove dh-exec (debhelper now supports substitutions natively).
* Revert a change from 5.15.8 which broke build without limited API.
+ * Add a patch to fix AttributeError in signature_bootstrap.py.
-- Dmitry Shachnev <mitya57 at debian.org> Sat, 31 Dec 2022 21:24:57 +0300
diff --git a/debian/patches/importlib-machinery.patch b/debian/patches/importlib-machinery.patch
new file mode 100644
index 00000000..2691d89b
--- /dev/null
+++ b/debian/patches/importlib-machinery.patch
@@ -0,0 +1,22 @@
+From: Dmitry Shachnev <mitya57 at debian.org>
+Date: Sat, 7 Jan 2023 16:46:57 +0400
+Subject: Fix AttributeError: module 'importlib' has no attribute 'machinery'
+
+Origin: https://github.com/archlinux/svntogit-packages/blob/packages/pyside2/trunk/fix-build.patch
+---
+ sources/shiboken2/libshiboken/embed/signature_bootstrap.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sources/shiboken2/libshiboken/embed/signature_bootstrap.py b/sources/shiboken2/libshiboken/embed/signature_bootstrap.py
+index 9028642..c70abc5 100644
+--- a/sources/shiboken2/libshiboken/embed/signature_bootstrap.py
++++ b/sources/shiboken2/libshiboken/embed/signature_bootstrap.py
+@@ -211,7 +211,7 @@ class EmbeddableZipImporter(object):
+ return self if self._mod2path.get(fullname) else None
+
+ def load_module(self, fullname):
+- import importlib
++ import importlib.machinery
+ import sys
+
+ filename = self._mod2path.get(fullname)
diff --git a/debian/patches/series b/debian/patches/series
index ceb784f8..84c00c4e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@ PyEnum-make-forgiving-duplicates-work-with-Python-3.11.patch
Fix-Property-GC-tracking-for-Python-3.11.patch
make-wheels-compatible-with-Python-3.11.patch
Revert-removal-of-version-check.patch
+importlib-machinery.patch
More information about the Neon-commits
mailing list