summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2004-05-11 10:49:54 +0000
committerseb <seb@pkgsrc.org>2004-05-11 10:49:54 +0000
commit4bbdf5807e89e0181042a15907233359c204ac62 (patch)
tree602cec2c4d1f320f23ec4240aad2e72bab928df4 /databases
parent442c7c0b50aec6dc04b983d09888dacad4a667f7 (diff)
downloadpkgsrc-4bbdf5807e89e0181042a15907233359c204ac62.tar.gz
On NetBSD current with native threads it seems this python module can't
be imported by a non-thread aware python without it core dumping. Hence restrict accepted python packages to threaded ones if native threads are supported by the platform. Bump PKGREVISION for that. Provide a buildlink3.mk file mostly to help bl3ified packages to pick up the right python packages with respect to this threading issue.
Diffstat (limited to 'databases')
-rw-r--r--databases/py-bsddb3/Makefile8
-rw-r--r--databases/py-bsddb3/buildlink3.mk26
2 files changed, 33 insertions, 1 deletions
diff --git a/databases/py-bsddb3/Makefile b/databases/py-bsddb3/Makefile
index d1945608780..4c3066613ab 100644
--- a/databases/py-bsddb3/Makefile
+++ b/databases/py-bsddb3/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.7 2004/03/04 15:55:18 minskim Exp $
+# $NetBSD: Makefile,v 1.8 2004/05/11 10:49:54 seb Exp $
#
DISTNAME= bsddb3-4.2.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pybsddb/}
@@ -19,6 +20,11 @@ PYBINMODULE= yes
BUILDLINK_DEPENDS.db4+= db4>=4.2.52
+.include "../../mk/pthread.buildlink3.mk"
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native"
+PYTHON_VERSIONS_ACCEPTED= 23pth 22pth
+.endif
+
.include "../../databases/db4/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/py-bsddb3/buildlink3.mk b/databases/py-bsddb3/buildlink3.mk
new file mode 100644
index 00000000000..6d9b4b32dba
--- /dev/null
+++ b/databases/py-bsddb3/buildlink3.mk
@@ -0,0 +1,26 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/05/11 10:49:54 seb Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+PY_BSDDB3_BUILDLINK3_MK:= ${PY_BSDDB3_BUILDLINK3_MK}+
+
+.include "../../mk/pthread.buildlink3.mk"
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native"
+PYTHON_VERSIONS_ACCEPTED= 23pth 22pth
+.endif
+.include "../../lang/python/pyversion.mk"
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= py-bsddb3
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npy-bsddb3}
+BUILDLINK_PACKAGES+= py-bsddb3
+
+.if !empty(PY_BSDDB3_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.py-bsddb3+= ${PYPKGPREFIX}-bsddb3>=4.2.4nb1
+BUILDLINK_PKGSRCDIR.py-bsddb3?= ../../databases/py-bsddb3
+.endif # PY_BSDDB3_BUILDLINK3_MK
+
+.include "../../databases/db4/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}