From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 30 08:50:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 488F0CD4 for ; Wed, 30 Apr 2014 08:50:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 25A5C1302 for ; Wed, 30 Apr 2014 08:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3U8o0Gh004987 for ; Wed, 30 Apr 2014 08:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3U8o0hJ004986; Wed, 30 Apr 2014 08:50:00 GMT (envelope-from gnats) Resent-Date: Wed, 30 Apr 2014 08:50:00 GMT Resent-Message-Id: <201404300850.s3U8o0hJ004986@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Volodymyr Kostyrko Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A7EC0B59 for ; Wed, 30 Apr 2014 08:44:54 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 94C9E12CA for ; Wed, 30 Apr 2014 08:44:54 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3U8irPA064487 for ; Wed, 30 Apr 2014 08:44:53 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3U8iraC064481; Wed, 30 Apr 2014 08:44:53 GMT (envelope-from nobody) Message-Id: <201404300844.s3U8iraC064481@cgiserv.freebsd.org> Date: Wed, 30 Apr 2014 08:44:53 GMT From: Volodymyr Kostyrko To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/189131: databases/py-bsddb3 - fails to build with python3.x X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2014 08:50:01 -0000 >Number: 189131 >Category: ports >Synopsis: databases/py-bsddb3 - fails to build with python3.x >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Apr 30 08:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Volodymyr Kostyrko >Release: ^/stable/10 >Organization: none >Environment: FreeBSD ar1l0u.maxima.local 10.0-STABLE FreeBSD 10.0-STABLE #12 r264752M: Tue Apr 22 11:08:50 EEST 2014 arcade@ar1l0u.maxima.local:/usr/obj/usr/src/sys/MINIMAL amd64 >Description: When building for python3.x the port can't correctly point to valid db.h header. Fix is copied from python2.x patch. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 352674) +++ Makefile (working copy) @@ -28,6 +28,7 @@ ${REINPLACE_CMD} 's,%%DBVERSION%%,${BDB_LIB_NAME},g' ${WRKSRC}/setup2.py ${WRKSRC}/setup3.py ${REINPLACE_CMD} 's,,<${BDB_INCLUDE_DIR}/db.h>,' ${WRKSRC}/Modules/bsddb.h ${REINPLACE_CMD} 's,%%BDB_INCLUDE_DIR%%,${BDB_INCLUDE_DIR},' ${WRKSRC}/setup2.py + ${REINPLACE_CMD} 's,%%BDB_INCLUDE_DIR%%,${BDB_INCLUDE_DIR},' ${WRKSRC}/setup3.py post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} Index: files/patch-setup3.py =================================================================== --- files/patch-setup3.py (revision 352674) +++ files/patch-setup3.py (working copy) @@ -23,3 +23,12 @@ else: if debug: print("LIBS already contains '-ldb' not adding our own", "'-l"+dblib+"'") libname = [] +@@ -332,7 +329,7 @@ + + # read db.h to figure out what version of Berkeley DB this is + ver = None +- db_h_lines = open(os.path.join(incdir, 'db.h'), 'r').readlines() ++ db_h_lines = open('%%BDB_INCLUDE_DIR%%/db.h', 'r').readlines() + db_ver_re = re.compile( + r'^#define\s+DB_VERSION_STRING\s.*Berkeley DB (\d+\.\d+).*') + db_ver2 = db_ver >Release-Note: >Audit-Trail: >Unformatted: