Date: Sat, 29 Jan 2011 00:57:59 +0100 From: Alexander Wittig <alexander@wittig.name> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/154363: [PATCH] databases/php5-dba BDB 5.1 support Message-ID: <E1PiyCV-000CX7-HT@hotzenplotz.wittig.name> Resent-Message-ID: <201101290000.p0T00KVe079258@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1PiyCV-000CX7-HT>