pkgsrc-WIP-changes archive

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

py-netsnmp-cffi: add dummy member to 'struct enum_list', so this works again.



Module Name:	pkgsrc-wip
Committed By:	Havard Eidnes <he%NetBSD.org@localhost>
Pushed By:	he
Date:		Wed Jun 3 09:32:59 2026 +0200
Changeset:	97bf4fc15a05f0ac8ff29ddb49ca2208371a7a8d

Modified Files:
	py-netsnmp-cffi/Makefile
	py-netsnmp-cffi/PLIST
	py-netsnmp-cffi/distinfo
Added Files:
	py-netsnmp-cffi/patches/patch-src_netsnmpy_netsnmp__ffi.py

Log Message:
py-netsnmp-cffi: add dummy member to 'struct enum_list', so this works again.

Bump PKGREVISION.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=97bf4fc15a05f0ac8ff29ddb49ca2208371a7a8d

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

diffstat:
 py-netsnmp-cffi/Makefile                                  |  1 +
 py-netsnmp-cffi/PLIST                                     | 15 ++++++---------
 py-netsnmp-cffi/distinfo                                  |  1 +
 .../patches/patch-src_netsnmpy_netsnmp__ffi.py            | 14 ++++++++++++++
 4 files changed, 22 insertions(+), 9 deletions(-)

diffs:
diff --git a/py-netsnmp-cffi/Makefile b/py-netsnmp-cffi/Makefile
index c31e42eb37..875fd540fd 100644
--- a/py-netsnmp-cffi/Makefile
+++ b/py-netsnmp-cffi/Makefile
@@ -2,6 +2,7 @@
 
 DISTNAME=	netsnmp-cffi-0.2.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	${MASTER_SITE_GITHUB:=Uninett/}
 GITHUB_PROJECT=	netsnmp-cffi
diff --git a/py-netsnmp-cffi/PLIST b/py-netsnmp-cffi/PLIST
index 85ae7acd76..68c396e1ab 100644
--- a/py-netsnmp-cffi/PLIST
+++ b/py-netsnmp-cffi/PLIST
@@ -1,11 +1,11 @@
 @comment $NetBSD$
 bin/asnmpget
-${PYSITELIB}/${WHEEL_INFODIR}/METADATA
-${PYSITELIB}/${WHEEL_INFODIR}/RECORD
-${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
-${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
-${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
-${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/netsnmp_cffi-0.0.0.dist-info/METADATA
+${PYSITELIB}/netsnmp_cffi-0.0.0.dist-info/RECORD
+${PYSITELIB}/netsnmp_cffi-0.0.0.dist-info/WHEEL
+${PYSITELIB}/netsnmp_cffi-0.0.0.dist-info/entry_points.txt
+${PYSITELIB}/netsnmp_cffi-0.0.0.dist-info/licenses/LICENSE
+${PYSITELIB}/netsnmp_cffi-0.0.0.dist-info/top_level.txt
 ${PYSITELIB}/netsnmpy/__init__.py
 ${PYSITELIB}/netsnmpy/__init__.pyc
 ${PYSITELIB}/netsnmpy/__init__.pyo
@@ -43,6 +43,3 @@ ${PYSITELIB}/netsnmpy/session.pyo
 ${PYSITELIB}/netsnmpy/trapsession.py
 ${PYSITELIB}/netsnmpy/trapsession.pyc
 ${PYSITELIB}/netsnmpy/trapsession.pyo
-${PYSITELIB}/netsnmpy/version.py
-${PYSITELIB}/netsnmpy/version.pyc
-${PYSITELIB}/netsnmpy/version.pyo
diff --git a/py-netsnmp-cffi/distinfo b/py-netsnmp-cffi/distinfo
index 6176059cf6..3251ed47ba 100644
--- a/py-netsnmp-cffi/distinfo
+++ b/py-netsnmp-cffi/distinfo
@@ -3,3 +3,4 @@ $NetBSD$
 BLAKE2s (netsnmp-cffi-0.2.0.tar.gz) = a87fbf85f8cba66c59c27cdf014825319cb9d55dff2df122a6684739dbd54887
 SHA512 (netsnmp-cffi-0.2.0.tar.gz) = 069029ef0162fdf81a5c1ca9dbfcdf0b831933f948f7800320a91060c126c7565277b64aa622fb29f105137ef331f62a5d42950044984e8e91774dea6706083b
 Size (netsnmp-cffi-0.2.0.tar.gz) = 40943 bytes
+SHA1 (patch-src_netsnmpy_netsnmp__ffi.py) = abdf0e87e8cfc53748517785f904f021564a6325
diff --git a/py-netsnmp-cffi/patches/patch-src_netsnmpy_netsnmp__ffi.py b/py-netsnmp-cffi/patches/patch-src_netsnmpy_netsnmp__ffi.py
new file mode 100644
index 0000000000..e32668776d
--- /dev/null
+++ b/py-netsnmp-cffi/patches/patch-src_netsnmpy_netsnmp__ffi.py
@@ -0,0 +1,14 @@
+$NetBSD$
+
+struct enum_list has a new C member, allow for that.
+
+--- src/netsnmpy/netsnmp_ffi.py.orig	2026-06-02 10:39:28.297081941 +0000
++++ src/netsnmpy/netsnmp_ffi.py
+@@ -270,6 +270,7 @@ struct enum_list {{
+     struct enum_list *next;
+     int             value;
+     char           *label;
++    ...;
+ }};
+ 
+ struct tree {{


Home | Main Index | Thread Index | Old Index