From ume@mahoroba.org  Mon Sep 27 17:36:32 2004
Return-Path: <ume@mahoroba.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id DAAF316A4CE; Mon, 27 Sep 2004 17:36:32 +0000 (GMT)
Received: from cheer.mahoroba.org (gw4.mahoroba.org [218.45.22.175])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id E6CF043D1D; Mon, 27 Sep 2004 17:36:31 +0000 (GMT)
	(envelope-from ume@mahoroba.org)
Received: from localhost (IDENT:DXMIS+K9vatrVowR0W8RjNFJULI6cZLX0Lm1U23vN4zmS9jQe83cqzbfxCWoc5h/@localhost [IPv6:::1])
	(user=smmsp author=ume@localhost mech=DIGEST-MD5 bits=128)
	by cheer.mahoroba.org (8.13.1/8.13.1) with ESMTP/inet6 id i8RHaQ0n039470
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Tue, 28 Sep 2004 02:36:26 +0900 (JST)
	(envelope-from ume@mahoroba.org)
Received: (from ume@localhost)
	by localhost (8.13.1/8.13.1/Submit) id i8RHaQxa028742;
	Tue, 28 Sep 2004 02:36:26 +0900 (JST)
	(envelope-from ume)
Message-Id: <200409271736.i8RHaQ0n039470@cheer.mahoroba.org>
Date: Tue, 28 Sep 2004 02:36:26 +0900 (JST)
From: Hajimu UMEMOTO <ume@FreeBSD.org>
Reply-To: Hajimu UMEMOTO <ume@FreeBSD.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: perky@FreeBSD.org
Subject: fix build of database/py-bsddb3
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         72133
>Category:       ports
>Synopsis:       fix build of database/py-bsddb3
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    perky
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 27 17:40:30 GMT 2004
>Closed-Date:    Fri Oct 15 15:07:44 GMT 2004
>Last-Modified:  Fri Oct 15 15:07:44 GMT 2004
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->thierry 
Responsible-Changed-By: thierry 
Responsible-Changed-When: Mon Sep 27 19:40:34 GMT 2004 
Responsible-Changed-Why:  

Take it. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=72133 
Responsible-Changed-From-To: thierry->perky 
Responsible-Changed-By: thierry 
Responsible-Changed-When: Mon Sep 27 20:28:47 GMT 2004 
Responsible-Changed-Why:  

Sorry, this PR belongs to its maintainer! 

By the way, I have checked it, and it fixes the problem. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=72133 
State-Changed-From-To: open->closed 
State-Changed-By: perky 
State-Changed-When: Fri Oct 15 15:05:44 GMT 2004 
State-Changed-Why:  
Fixed. Thank you! 
And sorry for the delay, I was too busy for day job. :/ 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72133 
>Unformatted:
