summaryrefslogtreecommitdiff
path: root/community/php52/db-5.patch
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/php52/db-5.patch
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/php52/db-5.patch')
-rw-r--r--community/php52/db-5.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/community/php52/db-5.patch b/community/php52/db-5.patch
new file mode 100644
index 000000000..46c64c8b0
--- /dev/null
+++ b/community/php52/db-5.patch
@@ -0,0 +1,51 @@
+--- omg/kittens/everywhere/lol/configure.orig 2010-07-21 17:31:30.000000000 +0300
++++ omg/kittens/everywhere/lol/configure 2010-10-21 00:05:41.000000000 +0300
+@@ -28605,7 +28610,7 @@ if { (eval echo configure:28601: \"$ac_l
+ #include "confdefs.h"
+
+ #include "$THIS_INCLUDE"
+-#if DB_VERSION_MAJOR == 4
++#if DB_VERSION_MAJOR == 4 || DB_VERSION_MAJOR == 5
+ yes
+ #endif
+
+@@ -28649,7 +28654,7 @@ echo "configure:28647: checking for DB4
+ #include "confdefs.h"
+
+ #include "$THIS_INCLUDE"
+-#if DB_VERSION_MINOR != 1 || DB_VERSION_PATCH >= 25
++#if DB_VERSION_MINOR != 1 || (DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) || DB_VERSION_MAJOR == 5
+ yes
+ #endif
+
+
+Modified: php/php-src/branches/PHP_5_3/ext/dba/dba_db4.c
+===================================================================
+--- php/php-src/branches/PHP_5_3/ext/dba/dba_db4.c 2010-06-03 06:57:47 UTC (rev 300150)
++++ php/php-src/branches/PHP_5_3/ext/dba/dba_db4.c 2010-06-03 07:03:05 UTC (rev 300151)
+@@ -37,14 +37,14 @@
+ #endif
+
+ static void php_dba_db4_errcall_fcn(
+-#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3)
++#if (DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3))
+ const DB_ENV *dbenv,
+ #endif
+ const char *errpfx, const char *msg)
+ {
+ TSRMLS_FETCH();
+
+-#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 8 && DB_VERSION_PATCH <= 26)
++#if (DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 8))
+ /* Bug 51086, Berkeley DB 4.8.26 */
+ /* This code suppresses a BDB 4.8 error message that BDB incorrectly emits */
+ {
+@@ -124,7 +124,7 @@
+ if ((err=db_create(&dbp, NULL, 0)) == 0) {
+ dbp->set_errcall(dbp, php_dba_db4_errcall_fcn);
+ if (
+-#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
++#if (DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1))
+ (err=dbp->open(dbp, 0, info->path, NULL, type, gmode, filemode)) == 0) {
+ #else
+ (err=dbp->open(dbp, info->path, NULL, type, gmode, filemode)) == 0) {