Subject: pkg/27402: lang/python20 does not find db.h
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <geos@epost.de>
List: pkgsrc-bugs
Date: 10/23/2004 21:28:55
>Number:         27402
>Category:       pkg
>Synopsis:       lang/python20 does not find db.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 23 21:29:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
When compiling python20, db.h is not found for Modules/socketmodule.c, #define HAVE_DB_185_H has nor been defined in the configure stage.
>How-To-Repeat:

>Fix:
I copied the following from  python23/Makefile.common  and added it to Makefile:

USE_DB185=      yes
.include "../../mk/bdb.buildlink3.mk"
MAKE_ENV+=      PY_BDB_TYPE=${BDB_TYPE}

.if ${BDB_TYPE} == "native"
MAKE_ENV+=      PY_BDB_INCDIRS=/usr/${_BDB_INCDIRS}
.else
MAKE_ENV+=      PY_BDB_INCDIRS=${BDBBASE}/${BUILDLINK_INCDIRS.${BDB_TYPE}}
MAKE_ENV+=      PY_BDB_LIBDIRS=${BDBBASE}/lib
.endif

I am not sure if all of this is necessary here, too.

>Release-Note:
>Audit-Trail:
>Unformatted: