Subject: pkg/32956: openldap fails to configure - db4 needs different BUILDLINK_TRANSFORM
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <0602@eq.cz>
List: pkgsrc-bugs
Date: 02/28/2006 22:30:01
>Number: 32956
>Category: pkg
>Synopsis: openldap fails to configure - db4 needs different BUILDLINK_TRANSFORM
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 28 22:30:00 +0000 2006
>Originator: rudolf
>Release:
>Organization:
>Environment:
Slackware Linux
>Description:
This was reported some time ago on tech-pkg@ by Georg Schwarz:
http://mail-index.netbsd.org/tech-pkg/2005/08/21/0000.html
http://mail-index.netbsd.org/tech-pkg/2005/08/21/0001.html
http://mail-index.netbsd.org/tech-pkg/2005/08/21/0005.html
(I faced this bug today). The problem is that native system has version of db4 different from the version of db4 from pkgsrc. The workaround suggested by Quentin Garnier makes openldap build without problems.
>How-To-Repeat:
Try to build openldap on a system with db4 library installed under /usr/lib, the /usr/lib db4 version being different from the version of db4 from pkgsrc.
>Fix:
patch suggested in http://mail-index.netbsd.org/tech-pkg/2005/08/21/0005.html (works for me without problems):
--- buildlink3.mk.orig 2006-02-28 21:05:02.000000000 +0100
+++ buildlink3.mk 2006-02-28 21:18:34.000000000 +0100
@@ -18,7 +18,7 @@
BUILDLINK_PKGSRCDIR.db4?= ../../databases/db4
BUILDLINK_INCDIRS.db4?= include/db4
BUILDLINK_LDADD.db4= -ldb4
-BUILDLINK_TRANSFORM+= l:db-4:db4
+BUILDLINK_TRANSFORM+= l:db-4:db4 l:db43:db4
. if defined(USE_DB185) && !empty(USE_DB185:M[yY][eE][sS])
#
maybe should be:
--- buildlink3.mk.orig 2006-02-28 21:05:02.000000000 +0100
+++ buildlink3.mk 2006-02-28 23:12:41.000000000 +0100
@@ -18,7 +18,7 @@
BUILDLINK_PKGSRCDIR.db4?= ../../databases/db4
BUILDLINK_INCDIRS.db4?= include/db4
BUILDLINK_LDADD.db4= -ldb4
-BUILDLINK_TRANSFORM+= l:db-4:db4
+BUILDLINK_TRANSFORM+= l:db-4:db4 l:db43:db4
. if defined(USE_DB185) && !empty(USE_DB185:M[yY][eE][sS])
#
@@ -26,7 +26,7 @@
#
BUILDLINK_DEPENDS.db4+= db4>=4.2.52nb1
BUILDLINK_LIBS.db4= ${BUILDLINK_LDADD.db4}
-BUILDLINK_TRANSFORM+= l:db:db4
+BUILDLINK_TRANSFORM+= l:db:db4 l:db43:db4
. endif
.endif # DB4_BUILDLINK3_MK