git » namcap.git » commit 1fdbbac

Rebuild for python3.10

author Jelle van der Waa
2021-12-03 14:27:12 UTC
committer Jelle van der Waa
2021-12-03 14:27:12 UTC
parent 58d4f620053f6a9286ed0ae6b6c1a802918f6386

Rebuild for python3.10

PKGBUILD +6 -3
py3.10.patch +27 -0

diff --git a/PKGBUILD b/PKGBUILD
index 02518a6..9f39c5c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=namcap
 pkgver=3.2.10
-pkgrel=3
+pkgrel=4
 pkgdesc="A Pacman package analyzer"
 arch=('any')
 url='https://gitlab.archlinux.org/pacman/namcap'
@@ -13,15 +13,18 @@ checkdepends=('systemd')
 makedepends=('python-setuptools')
 source=(https://sources.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.gz
         namcap-ignore-so-no-pie.patch
-        missing-desktop-file-utils.patch)
+        missing-desktop-file-utils.patch
+        py3.10.patch)
 sha512sums=('bdcca39cff873cc1ac7138bc2f218e808019424c1ff414b98f183400c08879a94fe7318049b1912dd094c1fced14b095a467465b04cd78cb9d1725cdbe2be821'
             'df8a8c389aa9d619650d6e472409e4480095e09d5ea60b232a865e1a654dd9440e2228f1f098302b529d6db89f9cd0d8d066881da2bc3ca9ec07b17368efd2cf'
-            '74efb1939053f41129cd811cf84abef8ff84ca4673cb62c3115b9d56830a57a48fed021b9807a74299c4c4cf3ec1880733f91dd5d06f4b9ac294fc78a9b5498e')
+            '74efb1939053f41129cd811cf84abef8ff84ca4673cb62c3115b9d56830a57a48fed021b9807a74299c4c4cf3ec1880733f91dd5d06f4b9ac294fc78a9b5498e'
+            '4fe74e35298313d7648fc0e9f74c2ddd4b2edd6a3a0a8c8c7ba9f6af9d2b32f555558e122c3f5bf5a98a65b8430f50593dfac689af7fbf34425032c6d925b0a4')
 
 prepare() {
   cd ${pkgname}-${pkgver}
   patch -Np1 -i "${srcdir}/missing-desktop-file-utils.patch"
   patch -Np1 -i "${srcdir}/namcap-ignore-so-no-pie.patch"
+  patch -Np1 -i "${srcdir}/py3.10.patch"
 }
 
 build() {
diff --git a/py3.10.patch b/py3.10.patch
new file mode 100644
index 0000000..dcf85c3
--- /dev/null
+++ b/py3.10.patch
@@ -0,0 +1,27 @@
+From 64e061c688d9f6d495c6d18cbd17baabda752ad6 Mon Sep 17 00:00:00 2001
+From: Leonidas Spyropoulos <artafinde@gmail.com>
+Date: Fri, 3 Dec 2021 14:06:58 +0000
+Subject: [PATCH] MutableMapping moved to collections.abc module
+
+https://docs.python.org/3.10/library/collections.abc.html
+Signed-off-by: Leonidas Spyropoulos <artafinde@gmail.com>
+---
+ Namcap/package.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Namcap/package.py b/Namcap/package.py
+index 2da5b1d..1cb026c 100644
+--- a/Namcap/package.py
++++ b/Namcap/package.py
+@@ -46,7 +46,7 @@ def strip_depend_info(value):
+ 		raise ValueError("Invalid dependency specification")
+ 	return m.group(1)
+ 
+-class PacmanPackage(collections.MutableMapping):
++class PacmanPackage(collections.abc.MutableMapping):
+ 	strings = ['base', 'name', 'version', 'desc', 'url', 'builddate',
+ 			'packager', 'install', 'filename', 'csize', 'isize',
+ 			'pkgfunction']
+-- 
+GitLab
+