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.
26 lines
785 B
Makefile
26 lines
785 B
Makefile
# $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/+$//}
|