pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-bitarray



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Feb 20 08:47:33 UTC 2023

Modified Files:
        pkgsrc/devel/py-bitarray: Makefile

Log Message:
py-bitarray: fix build on NetBSD

This defines its own popcount.
Reported upstream at
https://github.com/ilanschnell/bitarray/issues/189


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/devel/py-bitarray/Makefile

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

Modified files:

Index: pkgsrc/devel/py-bitarray/Makefile
diff -u pkgsrc/devel/py-bitarray/Makefile:1.24 pkgsrc/devel/py-bitarray/Makefile:1.25
--- pkgsrc/devel/py-bitarray/Makefile:1.24      Mon Feb 13 10:44:14 2023
+++ pkgsrc/devel/py-bitarray/Makefile   Mon Feb 20 08:47:33 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2023/02/13 10:44:14 adam Exp $
+# $NetBSD: Makefile,v 1.25 2023/02/20 08:47:33 wiz Exp $
 
 DISTNAME=      bitarray-2.7.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -10,6 +10,15 @@ HOMEPAGE=    https://github.com/ilanschnell
 COMMENT=       Efficient arrays of booleans
 LICENSE=       python-software-foundation
 
+# https://github.com/ilanschnell/bitarray/issues/189
+SUBST_CLASSES+=                pop
+SUBST_SED.pop+=                -e 's,popcount,my_popcount,'
+SUBST_FILES.pop+=      bitarray/_bitarray.c
+SUBST_FILES.pop+=      bitarray/_util.c
+SUBST_FILES.pop+=      bitarray/bitarray.h
+SUBST_MESSAGE.pop=     Fix conflict with NetBSD's popcount.
+SUBST_STAGE.pop=       pre-configure
+
 do-test:
        ${PYTHONBIN} -c 'import bitarray; bitarray.test()'
 



Home | Main Index | Thread Index | Old Index