pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/py-cares



Module Name:    pkgsrc
Committed By:   gdt
Date:           Sun May  5 11:11:01 UTC 2024

Modified Files:
        pkgsrc/net/py-cares: Makefile

Log Message:
net/py-cares: Add comment explaining netbsd-9 woes

tl;dr: NetBSD's __packed, non-packed cdef, and cffi do not get along.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/net/py-cares/Makefile

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

Modified files:

Index: pkgsrc/net/py-cares/Makefile
diff -u pkgsrc/net/py-cares/Makefile:1.8 pkgsrc/net/py-cares/Makefile:1.9
--- pkgsrc/net/py-cares/Makefile:1.8    Sat Nov  4 16:13:23 2023
+++ pkgsrc/net/py-cares/Makefile        Sun May  5 11:11:01 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2023/11/04 16:13:23 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2024/05/05 11:11:01 gdt Exp $
 
 DISTNAME=      pycares-4.4.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/^py//}
@@ -10,12 +10,19 @@ HOMEPAGE=   https://github.com/saghul/pyca
 COMMENT=       Python interface for c-ares
 LICENSE=       mit
 
+# This package builds but fails to work on NetBSD 9 because NetBSD
+# declares structs as __packed, pycares does not, and cffi insists on
+# matching alignment.  Details at:
+#   https://mail-index.netbsd.org/tech-pkg/2024/05/05/msg029208.html
+# \todo One of
+#    Pull up 1.112 of src/sys/netinet/in.h to netbsd-9.
+#    Fix py-cares or cffi to work with a packed definition.
+
 TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=0:../../devel/py-setuptools
 TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel>=0:../../devel/py-wheel
 DEPENDS+=      ${PYPKGPREFIX}-cffi>=1.5.0:../../devel/py-cffi
 
 USE_LANGUAGES= c
-MAKE_ENV+=     PYCARES_CFFI=1
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 



Home | Main Index | Thread Index | Old Index