Subject: pkg/33655: lang/python24 (db4)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 06/06/2006 15:15:00
>Number:         33655
>Category:       pkg
>Synopsis:       lang/python24 (db4)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 06 15:15:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


python24-2.4.3nb2 requires installed package db4-4.4.20
python24-2.4.3nb2 requires installed package gettext-lib-0.14.5
python24-2.4.3nb2 requires installed package openssl-0.9.7inb1
python24-2.4.3nb2 requires installed package zlib-1.2.3
=> Checking for missing run-time search paths in python24-2.4.3nb2
/usr/pkg/lib/libpython2.4.so:   libdb4-4.4.so.4 =>       (file not found)
/usr/pkg/lib/libpython2.4.so.1.0:       libdb4-4.4.so.4 =>       (file not found)
*** The above programs/libs will not find the listed shared libraries
    at runtime.  Please fix the package (add -Wl,-R.../lib in the right
    places)!
*** Error code 1

Stop.



>How-To-Repeat:


bmake install in lang/python24


>Fix:


the fix is in database/db4!!!

--- buildlink3.mk.orig  Tue Jun  6 16:51:43 2006
+++ buildlink3.mk       Tue Jun  6 17:09:04 2006
@@ -15,6 +15,11 @@
 BUILDLINK_PKGSRCDIR.db4?=      ../../databases/db4
 BUILDLINK_INCDIRS.db4?=                include/db4
 BUILDLINK_LDADD.db4=           -ldb4
+.if ${OPSYS} == "SunOS"
+BUILDLINK_LDADD.db4=           -R${LOCALBASE}/lib
+BUILDLINK_LDADD.db4+=          -L${LOCALBASE}/lib
+BUILDLINK_LDADD.db4+=          -ldb4
+.endif
 BUILDLINK_TRANSFORM+=          l:db-4:db4
 
 .  include "../../mk/bsd.prefs.mk"