Subject: pkg/37647: lang/python20 fails under Linux
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <cheusov@tut.by>
List: pkgsrc-bugs
Date: 12/29/2007 22:00:01
>Number: 37647
>Category: pkg
>Synopsis: lang/python20 fails under Linux
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Dec 29 22:00:00 +0000 2007
>Originator: cheusov@tut.by
>Release: NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #2: Tue Dec 25 17:42:38 EET 2007 cheusov@chen.chizhovka.net:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
cd Modules; /home/pkgsrc/pkg/bin/bmake OPT="-O2 -I/usr/include -I/home/pkgsrc/pkg/include -I/home/pkgsrc/pkg/include/db4" VERSION="2.0" prefix="/home/pkgsrc/pkg" exec_prefix="/home/pkgsrc/pkg" sharedmods
gcc -fpic -ldb4 -L/usr/lib -Wl,-R/usr/lib -L/home/pkgsrc/pkg/lib -Wl,-R/home/pkgsrc/pkg/lib -O2 -I/usr/include -I/home/pkgsrc/pkg/include -I/home/pkgsrc/pkg/include/db4 -I./../Include -I.. -DHAVE_CONFIG_H -c ./bsddbmodule.c
gcc: -R/home/pkgsrc/pkg/lib: linker input file unused because linking not done
gcc: -ldb4: linker input file unused because linking not done
gcc -shared -ldb4 -L/usr/lib -Wl,-R/usr/lib -L/home/pkgsrc/pkg/lib -Wl,-R/home/pkgsrc/pkg/lib bsddbmodule.o -ldb -o bsddbmodule.so
/usr/bin/ld: cannot find -ldb
collect2: ld returned 1 exit status
*** Error code 1
>Fix:
Index: lang/python20/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python20/Makefile,v
retrieving revision 1.34
diff -u -r1.34 Makefile
--- lang/python20/Makefile 2 Jul 2007 20:24:27 -0000 1.34
+++ lang/python20/Makefile 29 Dec 2007 16:43:59 -0000
@@ -27,8 +27,9 @@
# Make sure having environment variable OPT doesn't affect the
# installed module-building Makefile
+
MAKE_ENV+= 'OPT=${CFLAGS}'
-CONFIGURE_ENV+= 'OPT=${CFLAGS}'
+CONFIGURE_ENV+= 'OPT=${CFLAGS}' 'BDB_LIBS=${BDB_LIBS}'
SSLFLAGS= -DUSE_SSL -I${BUILDLINK_PREFIX.openssl}/include/openssl \
-L${BUILDLINK_PREFIX.openssl}/lib \
Index: lang/python20/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python20/distinfo,v
retrieving revision 1.13
diff -u -r1.13 distinfo
--- lang/python20/distinfo 24 Jul 2007 16:53:20 -0000 1.13
+++ lang/python20/distinfo 29 Dec 2007 16:43:59 -0000
@@ -10,7 +10,7 @@
SHA1 (patch-ae) = e962dad92260a1f506298ba3ebb059e852c4ccf4
SHA1 (patch-af) = 9ed51b6868c3c7e24d92b52f0dc260e9c30d99bc
SHA1 (patch-ag) = 4b1b561832d6a044c6be0372f9f915b09fab4c3c
-SHA1 (patch-ah) = c48beff9fe4d4f61e21c0952f4a7547cae28c0bb
+SHA1 (patch-ah) = c81549e92fe55773113a1eabb45a001f24de4e16
SHA1 (patch-ai) = 87b430f97ec258d423f7841bf369970223323a6b
SHA1 (patch-aj) = 56e34352284a0b71fecb9b4abef8825ce4edf6d7
SHA1 (patch-ak) = 0603b4731413bb098991f34df00c627f0b64e6df
Index: lang/python20/patches/patch-ah
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python20/patches/patch-ah,v
retrieving revision 1.1
diff -u -r1.1 patch-ah
--- lang/python20/patches/patch-ah 6 Dec 2005 18:26:49 -0000 1.1
+++ lang/python20/patches/patch-ah 29 Dec 2007 16:43:59 -0000
@@ -1,6 +1,6 @@
$NetBSD: patch-ah,v 1.1 2005/12/06 18:26:49 joerg Exp $
---- configure.orig 2005-12-06 18:07:36.000000000 +0000
+--- configure.orig 2001-03-31 17:48:35.000000000 +0300
+++ configure
@@ -2689,6 +2689,9 @@ then
else
@@ -30,3 +30,12 @@
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
then
LINKFORSHARED="-Wl,--export-dynamic"
+@@ -3753,7 +3756,7 @@ if eval "test \"`echo '$ac_cv_func_'dbop
+ HAVE_LIBDB=
+ else
+ echo "$ac_t""no" 1>&6
+-HAVE_LIBDB=-ldb
++HAVE_LIBDB=${BDB_LIBS}
+ fi
+
+ fi