pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/x11/py-sip6



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Aug  6 19:18:35 UTC 2023

Modified Files:
        pkgsrc/x11/py-sip6: distinfo
Added Files:
        pkgsrc/x11/py-sip6/patches: patch-sipbuild_buildable.py

Log Message:
py-sip6: fix importlib import; constant binary extension naming


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/x11/py-sip6/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/py-sip6/patches/patch-sipbuild_buildable.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/x11/py-sip6/distinfo
diff -u pkgsrc/x11/py-sip6/distinfo:1.6 pkgsrc/x11/py-sip6/distinfo:1.7
--- pkgsrc/x11/py-sip6/distinfo:1.6     Fri Aug  4 04:51:24 2023
+++ pkgsrc/x11/py-sip6/distinfo Sun Aug  6 19:18:35 2023
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.6 2023/08/04 04:51:24 adam Exp $
+$NetBSD: distinfo,v 1.7 2023/08/06 19:18:35 adam Exp $
 
 BLAKE2s (sip-6.7.11.tar.gz) = 821f58efd848b50cd458e4c287c1f994d53a7f3dc9e4e8b00d4dc7f343e37712
 SHA512 (sip-6.7.11.tar.gz) = a9247714fd6f6e6dffff2e6b53b35a7831ced55f0706e7c883d6700f22b814dc2cf1e56e681214759c90386ff2c77cb4ace6d07cd0c8b6da0ed65444f9857056
 Size (sip-6.7.11.tar.gz) = 1165368 bytes
+SHA1 (patch-sipbuild_buildable.py) = a914fcd890f5f1228a09f40617e5da0e1ed9830b

Added files:

Index: pkgsrc/x11/py-sip6/patches/patch-sipbuild_buildable.py
diff -u /dev/null pkgsrc/x11/py-sip6/patches/patch-sipbuild_buildable.py:1.1
--- /dev/null   Sun Aug  6 19:18:35 2023
+++ pkgsrc/x11/py-sip6/patches/patch-sipbuild_buildable.py      Sun Aug  6 19:18:35 2023
@@ -0,0 +1,30 @@
+$NetBSD: patch-sipbuild_buildable.py,v 1.1 2023/08/06 19:18:35 adam Exp $
+
+Fix for Python < 3.11: importlib.machinery has to be imported directly.
+For consitent PLISTs across platforms, always return .abi3 suffix.
+
+--- sipbuild/buildable.py.orig 2023-08-02 11:50:08.000000000 +0000
++++ sipbuild/buildable.py
+@@ -21,7 +21,7 @@
+ # POSSIBILITY OF SUCH DAMAGE.
+ 
+ 
+-import importlib
++import importlib.machinery
+ import os
+ 
+ from .exceptions import UserException
+@@ -153,10 +153,9 @@ class BuildableModule(BuildableFromSourc
+ 
+         suffixes = importlib.machinery.EXTENSION_SUFFIXES
+ 
+-        if self.uses_limited_api:
+-            for s in suffixes:
+-                if '.abi3' in s:
+-                    return s
++        for s in suffixes:
++            if '.abi3' in s:
++                return s
+ 
+         return suffixes[0]
+ 



Home | Main Index | Thread Index | Old Index