Skip to content

Commit

Permalink
py-bitarray: fix build on NetBSD
Browse files Browse the repository at this point in the history
This defines its own popcount.
Reported upstream at
ilanschnell/bitarray#189
  • Loading branch information
0-wiz-0 committed Feb 20, 2023
1 parent c111a67 commit e890513
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion devel/py-bitarray/Makefile
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -10,6 +10,15 @@ HOMEPAGE= https://github.com/ilanschnell/bitarray
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()'

Expand Down

0 comments on commit e890513

Please sign in to comment.