Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Sep 2004 02:36:26 +0900 (JST)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        perky@FreeBSD.org
Subject:   ports/72133: fix build of database/py-bsddb3
Message-ID:  <200409271736.i8RHaQ0n039470@cheer.mahoroba.org>
Resent-Message-ID: <200409271740.i8RHeUZo068720@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         72133
>Category:       ports
>Synopsis:       fix build of database/py-bsddb3
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 27 17:40:30 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hajimu UMEMOTO
>Release:        FreeBSD 5.3-BETA6 i386
>Organization:
Internet Mutual Aid Society, YOKOHAMA
>Environment:
System: FreeBSD lyrics.mahoroba.org 5.3-BETA6 FreeBSD 5.3-BETA6 #0: Mon Sep 27 04:51:07 JST 2004 root@lyrics.mahoroba.org:/ad0s3/usr/obj/usr/src/sys/LYRICS i386
>Description:
database/py-bsddb3 is BROKEN.
>How-To-Repeat:
cd /usr/ports/database/py-bsddb3 && make
>Fix:
this patch fixes build.

Index: ports/databases/py-bsddb3/Makefile
diff -u ports/databases/py-bsddb3/Makefile.orig ports/databases/py-bsddb3/Makefile
--- ports/databases/py-bsddb3/Makefile.orig	Mon Aug 16 09:41:28 2004
+++ ports/databases/py-bsddb3/Makefile	Tue Sep 28 02:21:43 2004
@@ -15,8 +15,6 @@
 MAINTAINER=	perky@FreeBSD.org
 COMMENT=	Python extension module for BerkeleyDB 3 and 4
 
-BROKEN=		Does not build
-
 .if defined(WITH_DB3)
 WITH_BDB_VER?=	3
 .elif defined(WITH_DB4)
@@ -50,11 +48,12 @@
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
 USE_REINPLACE=	yes
+PYDISTUTILS_CONFIGUREARGS=--libs="-l${DBVERSION}" --berkeley-db=${LOCALBASE}
 PYDISTUTILS_BUILDARGS=	--libs="-l${DBVERSION}" --berkeley-db=${LOCALBASE}
 PYDISTUTILS_INSTALLARGS=-c -O1 --prefix=${PREFIX} --berkeley-db=${LOCALBASE}
 
 post-patch:
 	${REINPLACE_CMD} 's,%%DBVERSION%%,${DBVERSION},g' ${WRKSRC}/setup.py
-	${REINPLACE_CMD} 's,<db\.h>,<${DBVERSION}/db.h>,' ${WRKSRC}/extsrc/_bsddb.c
+	${REINPLACE_CMD} 's,<db\.h>,<${DBHEADER}/db.h>,' ${WRKSRC}/extsrc/_bsddb.c
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409271736.i8RHaQ0n039470>