summaryrefslogtreecommitdiff
blob: 7b3ba1fec1194c0ef22b2005f91bc73924bc9b11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
diff -ur dbxml-2.3.10.orig/dbxml/src/python/dbxml_python_wrap.cpp dbxml-2.3.10/dbxml/src/python/dbxml_python_wrap.cpp
--- dbxml-2.3.10.orig/dbxml/src/python/dbxml_python_wrap.cpp	2007-03-22 13:52:10.000000000 -0400
+++ dbxml-2.3.10/dbxml/src/python/dbxml_python_wrap.cpp	2007-03-22 13:55:27.000000000 -0400
@@ -2587,6 +2587,13 @@
 
 
 #include "db_cxx.h"
+
+//http://forums.oracle.com/forums/thread.jspa?threadID=487788&tstart=0
+#ifndef DB_READ_UNCOMMITTED
+#define DB_READ_UNCOMMITTED DB_DIRTY_READ
+#define DB_READ_COMMITTED DB_DEGREE_2
+#endif
+
 #include "dbxml/DbXml.hpp"
 #include <errno.h>
 #include <fstream>
diff -ur dbxml-2.3.10.orig/dbxml/src/python/setup.py.in dbxml-2.3.10/dbxml/src/python/setup.py.in
--- dbxml-2.3.10.orig/dbxml/src/python/setup.py.in	2007-03-22 13:52:10.000000000 -0400
+++ dbxml-2.3.10/dbxml/src/python/setup.py.in	2007-03-22 14:00:37.000000000 -0400
@@ -48,6 +48,7 @@
 
 if os.name == "posix":
   INCLUDES =    ["../../include",
+                 "GENTOODBINCPATH",
                  os.path.join(db_home, "include")]
 
   LIBDIRS =     ["../../build_unix/.libs",
@@ -56,7 +57,7 @@
                  os.path.join(xerces_home, "lib")]
 
-  LIBS =        ["dbxml-2",
-                 "db_cxx-4",
+  LIBS =        ["dbxml-2.3",
+                 "GENTOODB_CXX",
                  "xqilla", "xerces-c"]
 
   DATAFILES =   []
@@ -122,24 +123,24 @@
                        "../../../bin/xerces-c_2_7.dll"])]
 
     # Now run with whatever settings we've got
-    setup(name = "dbxml",
-          version = "2.3.10",
-          description = "Berkeley DB XML Python API",
-          long_description = """\
-          This module provides a complete wrapping of the C++ API
-          to the Berkeley DB XML (BDB XML) XML database.  BDB
-          XML can be used to store, retrieve, manage, and query (using
-          XQuery) XML documents.""",
-          author = "Oracle",
-          author_email = "berkeleydb-info_us@oracle.com",
-          url = "http://www.oracle.com",
-          py_modules = ["dbxml"],
-          ext_modules = [Extension("_dbxml", ["dbxml_python_wrap.cpp"],
-                                   include_dirs = INCLUDES,
-                                   library_dirs = LIBDIRS,
-                                   libraries = LIBS,
-                                   )],
-          data_files = DATAFILES)
+  setup(name = "dbxml",
+    version = "2.3.10",
+    description = "Berkeley DB XML Python API",
+    long_description = """\
+    This module provides a complete wrapping of the C++ API
+    to the Berkeley DB XML (BDB XML) XML database.  BDB
+    XML can be used to store, retrieve, manage, and query (using
+    XQuery) XML documents.""",
+    author = "Oracle",
+    author_email = "berkeleydb-info_us@oracle.com",
+    url = "http://www.oracle.com",
+    py_modules = ["dbxml"],
+    ext_modules = [Extension("_dbxml", ["dbxml_python_wrap.cpp"],
+                             include_dirs = INCLUDES,
+                             library_dirs = LIBDIRS,
+                             libraries = LIBS,
+                             )],
+    data_files = DATAFILES)
     
 else:
   print "I don't know anything about your platform '%s'." % os.name