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
commit06b185c742727a46074578ad90e92280b6b1e586 (patch)
tree602cec2c4d1f320f23ec4240aad2e72bab928df4 /databases
parente636197f04feec8011dec182437d816f00642103 (diff)
downloadpkgsrc-06b185c742727a46074578ad90e92280b6b1e586.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/+$//}