From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jan 29 00:00:20 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5C351065673 for ; Sat, 29 Jan 2011 00:00:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9AC7F8FC23 for ; Sat, 29 Jan 2011 00:00:20 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p0T00Kkf079262 for ; Sat, 29 Jan 2011 00:00:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0T00KVe079258; Sat, 29 Jan 2011 00:00:20 GMT (envelope-from gnats) Resent-Date: Sat, 29 Jan 2011 00:00:20 GMT Resent-Message-Id: <201101290000.p0T00KVe079258@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, Alexander Wittig Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 162D61065697 for ; Fri, 28 Jan 2011 23:58:01 +0000 (UTC) (envelope-from alex@wittig.name) Received: from hotzenplotz.wittig.name (unknown [IPv6:2a02:180:1:1:1c:c068:de48:0]) by mx1.freebsd.org (Postfix) with ESMTP id 9919E8FC15 for ; Fri, 28 Jan 2011 23:58:00 +0000 (UTC) Received: from alex by hotzenplotz.wittig.name with local (Exim 4.74 (FreeBSD)) (envelope-from ) id 1PiyCV-000CX7-HT for FreeBSD-gnats-submit@freebsd.org; Sat, 29 Jan 2011 00:57:59 +0100 Message-Id: Date: Sat, 29 Jan 2011 00:57:59 +0100 From: Alexander Wittig Sender: Alexander Wittig To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/154363: [PATCH] databases/php5-dba BDB 5.1 support X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Wittig List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2011 00:00:21 -0000 >Number: 154363 >Category: ports >Synopsis: [PATCH] databases/php5-dba BDB 5.1 support >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: Sat Jan 29 00:00:19 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Alexander Wittig >Release: FreeBSD 8.2-PRERELEASE amd64 >Organization: >Environment: System: FreeBSD hotzenplotz.wittig.name 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0: Wed Jan 19 00:39:51 CET 2011 root@hotzenplotz.wittig.name:/usr/obj/usr/src/sys/ALEX amd64 >Description: When compiling the current port with WITH_BDB_VER=51 set and the appropriate BDB 5.1 port installed, the configure stage of the dba extension fails with a library mismatch if configured to compile with BDB. >How-To-Repeat: Uninstall all BDB ports Set WITH_BDB_VER=51 build php5-dba extension >Fix: Attached patch extends the already existing patch in the port to also check for BDB 5.1 The resulting php5-dba works fine for me with BDB 5.1. Note that on the PHP website it sounds like BDB 5.1 should be supported since version 3.5.4, but somehow that seems to be not the case for the configure script: DBA extension: * Added Berkeley DB 5.1 support to the DBA extension. (Oracle Corp.) (from http://php.net/ChangeLog-5.php, 5.3.4 entry) --- patch begins here --- --- config.m4 2011-01-29 00:44:10.000000000 +0100 +++ config.m4.new 2011-01-29 00:47:32.000000000 +0100 @@ -285,6 +285,46 @@ THIS_PREFIX=$i THIS_INCLUDE=$i/db4/db.h break + elif test -f "$i/include/db51/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db51/db.h + break + elif test -f "$i/include/db50/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db50/db.h + break + elif test -f "$i/include/db48/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db48/db.h + break + elif test -f "$i/include/db47/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db47/db.h + break + elif test -f "$i/include/db46/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db46/db.h + break + elif test -f "$i/include/db45/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db45/db.h + break + elif test -f "$i/include/db44/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db44/db.h + break + elif test -f "$i/include/db43/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db43/db.h + break + elif test -f "$i/include/db42/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db42/db.h + break + elif test -f "$i/include/db41/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db41/db.h + break elif test -f "$i/include/db5.0/db.h"; then THIS_PREFIX=$i THIS_INCLUDE=$i/include/db5.0/db.h @@ -323,7 +363,7 @@ break fi done - PHP_DBA_DB_CHECK(4, db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)]) + PHP_DBA_DB_CHECK(4, db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)]) fi PHP_DBA_STD_RESULT(db4,Berkeley DB4) --- patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: