Any package that determines libraries to link via:

$PYTHON -c "from distutils import sysconfig; print sysconfig.get_config_var('SHLIBS');"

... where bdb.buildlink.mk has been used and it satisfied the requirement from
Pkgsrc (E.g. via databases/db4) would fail to build because the required -ldb4
library was not itself buildlinked.

To rectify this, pull in bdb.buildlink.mk in python??/buildlink3.mk under the
same conditions as it is pulled in in the package's own makefile.

No revision bump required, this almost certainly only affects packages and
environments that simply wouldn't build at all prior to the fix.

Fixes the build of py-ORBit on Linux (Python 2.4 or 2.5), and PR39377.
This commit is contained in:
dsainty 2009-01-23 03:05:53 +00:00
parent d5c0831403
commit 82a2ee5b15
4 changed files with 24 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.9 2006/07/08 23:10:55 jlam Exp $
# $NetBSD: buildlink3.mk,v 1.10 2009/01/23 03:05:53 dsainty Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
PYTHON21_BUILDLINK3_MK:= ${PYTHON21_BUILDLINK3_MK}+
@ -27,5 +27,10 @@ BUILDLINK_TRANSFORM+= l:python:python2.1
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} != "SunOS" && ${OPSYS} != "IRIX"
. include "../../mk/bdb.buildlink3.mk"
.endif
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.13 2006/07/08 23:10:55 jlam Exp $
# $NetBSD: buildlink3.mk,v 1.14 2009/01/23 03:05:53 dsainty Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
PYTHON23_BUILDLINK3_MK:= ${PYTHON23_BUILDLINK3_MK}+
@ -28,6 +28,11 @@ BUILDLINK_TRANSFORM+= l:python:python2.3
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} != "IRIX"
. include "../../mk/bdb.buildlink3.mk"
.endif
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.7 2006/07/08 23:10:56 jlam Exp $
# $NetBSD: buildlink3.mk,v 1.8 2009/01/23 03:05:53 dsainty Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
PYTHON24_BUILDLINK3_MK:= ${PYTHON24_BUILDLINK3_MK}+
@ -28,6 +28,11 @@ BUILDLINK_TRANSFORM+= l:python:python2.4
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} != "IRIX"
. include "../../mk/bdb.buildlink3.mk"
.endif
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/04/24 01:50:58 tnn Exp $
# $NetBSD: buildlink3.mk,v 1.2 2009/01/23 03:05:53 dsainty Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
PYTHON25_BUILDLINK3_MK:= ${PYTHON25_BUILDLINK3_MK}+
@ -26,6 +26,11 @@ BUILDLINK_TRANSFORM+= l:python:python2.5
.endif # PYTHON25_BUILDLINK3_MK
.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} != "IRIX"
. include "../../mk/bdb.buildlink3.mk"
.endif
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"