pkgsrc-Users archive

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

textproc/py27-expat requires python27-2.7.16



Hi,

I had an older version of Python 2.7 installed which caused the
py27-expat build to fail on a missing struct field
PyExpat_CAPI.SetHashSalt, introduced in Python 2.7.16.

The attached patch updates the python27 buildlink3.mk to require Python
2.7.16 or later. I'm not sure if that's the right solution.

Sijmen
Index: lang/python27/buildlink3.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python27/buildlink3.mk,v
retrieving revision 1.6
diff -u -r1.6 buildlink3.mk
--- lang/python27/buildlink3.mk	30 Dec 2016 10:53:21 -0000	1.6
+++ lang/python27/buildlink3.mk	3 Jun 2019 16:58:38 -0000
@@ -5,8 +5,9 @@
 .if !defined(PYTHON27_BUILDLINK3_MK)
 PYTHON27_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.python27+=	python27>=2.7
-BUILDLINK_ABI_DEPENDS.python27+=	python27>=2.7.1nb2
+# .16 because py-expat requires PyExpat_CAPI.SetHashSalt
+BUILDLINK_API_DEPENDS.python27+=	python27>=2.7.16
+BUILDLINK_ABI_DEPENDS.python27+=	python27>=2.7.16
 BUILDLINK_PKGSRCDIR.python27?=		../../lang/python27
 
 .if defined(BUILDLINK_DEPMETHOD.python)


Home | Main Index | Thread Index | Old Index