SOURCES: python-db.patch - reflect db 4.5 API changes (removed dep...
qboosh
qboosh at pld-linux.org
Tue Oct 3 20:40:23 CEST 2006
Author: qboosh Date: Tue Oct 3 18:40:23 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- reflect db 4.5 API changes (removed deprecations)
---- Files affected:
SOURCES:
python-db.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/python-db.patch
diff -u SOURCES/python-db.patch:1.1 SOURCES/python-db.patch:1.2
--- SOURCES/python-db.patch:1.1 Sun Oct 1 10:26:42 2006
+++ SOURCES/python-db.patch Tue Oct 3 20:40:17 2006
@@ -19,3 +19,52 @@
db_inc_paths.append('/usr/include/db4%d' % x)
db_inc_paths.append('/usr/include/db4.%d' % x)
db_inc_paths.append('/usr/local/BerkeleyDB.4.%d/include' % x)
+--- Python-2.5/Modules/_bsddb.c.orig 2006-08-13 20:11:43.000000000 +0200
++++ Python-2.5/Modules/_bsddb.c 2006-10-03 20:25:12.919916750 +0200
+@@ -4129,6 +4129,7 @@
+ }
+
+
++#if (DBVER < 45)
+ static PyObject*
+ DBEnv_set_lk_max(DBEnvObject* self, PyObject* args)
+ {
+@@ -4144,7 +4145,7 @@
+ RETURN_IF_ERR();
+ RETURN_NONE();
+ }
+-
++#endif
+
+ #if (DBVER >= 32)
+
+@@ -5233,7 +5234,9 @@
+ {"set_lg_regionmax",(PyCFunction)DBEnv_set_lg_regionmax, METH_VARARGS},
+ #endif
+ {"set_lk_detect", (PyCFunction)DBEnv_set_lk_detect, METH_VARARGS},
++#if (DBVER < 45)
+ {"set_lk_max", (PyCFunction)DBEnv_set_lk_max, METH_VARARGS},
++#endif
+ #if (DBVER >= 32)
+ {"set_lk_max_locks", (PyCFunction)DBEnv_set_lk_max_locks, METH_VARARGS},
+ {"set_lk_max_lockers", (PyCFunction)DBEnv_set_lk_max_lockers, METH_VARARGS},
+@@ -5835,7 +5838,9 @@
+ ADD_INT(d, DB_AFTER);
+ ADD_INT(d, DB_APPEND);
+ ADD_INT(d, DB_BEFORE);
++#if (DBVER < 45)
+ ADD_INT(d, DB_CACHED_COUNTS);
++#endif
+ #if (DBVER >= 41)
+ _addIntToDict(d, "DB_CHECKPOINT", 0);
+ #else
+@@ -5870,7 +5875,9 @@
+ ADD_INT(d, DB_POSITION);
+ ADD_INT(d, DB_PREV);
+ ADD_INT(d, DB_PREV_NODUP);
++#if (DBVER < 45)
+ ADD_INT(d, DB_RECORDCOUNT);
++#endif
+ ADD_INT(d, DB_SET);
+ ADD_INT(d, DB_SET_RANGE);
+ ADD_INT(d, DB_SET_RECNO);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/python-db.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list