]> git.pld-linux.org Git - packages/python.git/blame - python-db44.patch
- adapterized (avoid macros with /usr/include/{ncurses,freetype}*)
[packages/python.git] / python-db44.patch
CommitLineData
fcc5f20b
PS
1--- Python-2.4.2/setup.py.orig 2005-11-22 14:02:49.000000000 +0000
2+++ Python-2.4.2/setup.py 2005-11-22 16:06:42.060536936 +0000
3@@ -489,7 +489,7 @@
4 #
5 # http://www.sleepycat.com/update/index.html
6
7- max_db_ver = (4, 3)
8+ max_db_ver = (4, 4)
9 min_db_ver = (3, 2)
10 db_setup_debug = False # verbose debug prints from this script?
11
12@@ -506,7 +506,7 @@
13 '/sw/include/db3',
14 ]
15 # 4.x minor number specific paths
16- for x in (0,1,2,3):
17+ for x in (0,1,2,3,4):
18 db_inc_paths.append('/usr/include/db4%d' % x)
19 db_inc_paths.append('/usr/local/BerkeleyDB.4.%d/include' % x)
20 db_inc_paths.append('/usr/local/include/db4%d' % x)
21--- Python-2.4.2/Modules/_bsddb.c.orig 2004-12-16 09:48:37.000000000 +0000
22+++ Python-2.4.2/Modules/_bsddb.c 2005-11-22 16:39:39.734884736 +0000
23@@ -97,7 +97,7 @@
24 #error "eek! DBVER can't handle minor versions > 9"
25 #endif
26
27-#define PY_BSDDB_VERSION "4.3.0"
28+#define PY_BSDDB_VERSION "4.4.0"
29 static char *rcs_id = "$Id$";
30
31
32@@ -4101,8 +4101,15 @@
33 #endif
34 MAKE_ENTRY(nrequests);
35 MAKE_ENTRY(nreleases);
36+#if (DBVER < 44)
37 MAKE_ENTRY(nnowaits);
38 MAKE_ENTRY(nconflicts);
39+#else
40+ MAKE_ENTRY(nupgrade);
41+ MAKE_ENTRY(ndowngrade);
42+ MAKE_ENTRY(lock_wait);
43+ MAKE_ENTRY(lock_nowait);
44+#endif
45 MAKE_ENTRY(ndeadlocks);
46 MAKE_ENTRY(regsize);
47 MAKE_ENTRY(region_wait);
48@@ -4938,7 +4945,13 @@
49 ADD_INT(d, DB_LOCK_IREAD);
50 ADD_INT(d, DB_LOCK_IWR);
51 #if (DBVER >= 33)
52+#if (DBVER < 44)
53 ADD_INT(d, DB_LOCK_DIRTY);
54+#else
55+ ADD_INT(d, DB_LOCK_READ_UNCOMMITTED);
56+#endif
57+#endif
58+#if (DBVER >= 33)
59 ADD_INT(d, DB_LOCK_WWRITE);
60 #endif
61
This page took 0.031758 seconds and 4 git commands to generate.