Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.2:Update
python3-bsddb3
bsddb3-db6.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsddb3-db6.diff of Package python3-bsddb3
From: Jan Engelhardt <jengelh@inai.de> Date: 2013-06-16 01:28:54.291797887 +0200 Have bsddb3 support BDB 6.0. --- Modules/_bsddb.c | 10 ++++++++++ setup2.py | 2 +- setup3.py | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) Index: bsddb3-5.3.0/Modules/_bsddb.c =================================================================== --- bsddb3-5.3.0.orig/Modules/_bsddb.c +++ bsddb3-5.3.0/Modules/_bsddb.c @@ -2659,10 +2659,15 @@ _default_cmp(const DBT *leftKey, return res; } +#if DB_VERSION_MAJOR >= 6 +static int _db_compareCallback(DB *db, const DBT *leftKey, const DBT *rightKey, + size_t *locp) +#else static int _db_compareCallback(DB* db, const DBT *leftKey, const DBT *rightKey) +#endif { int res = 0; PyObject *args; @@ -2773,10 +2778,15 @@ DB_set_bt_compare(DBObject* self, PyObje RETURN_NONE(); } +#if DB_VERSION_MAJOR >= 6 +static int _db_dupCompareCallback(DB *db, const DBT *leftKey, + const DBT *rightKey, size_t *locp) +#else static int _db_dupCompareCallback(DB* db, const DBT *leftKey, const DBT *rightKey) +#endif { int res = 0; PyObject *args; Index: bsddb3-5.3.0/setup2.py =================================================================== --- bsddb3-5.3.0.orig/setup2.py +++ bsddb3-5.3.0/setup2.py @@ -128,7 +128,7 @@ if os.name == 'posix': incdir = libdir = None if not BERKELEYDB_DIR and not BERKELEYDB_LIBDIR and not BERKELEYDB_INCDIR: # Supported Berkeley DB versions, in order of preference. - db_ver_list = ((5, 3), (5, 2), (5, 1), (5, 0), + db_ver_list = ((6, 0), (5, 3), (5, 2), (5, 1), (5, 0), (4, 8), (4, 7), (4, 6), (4, 5), (4, 4), (4, 3)) # construct a list of paths to look for the header file in on Index: bsddb3-5.3.0/setup3.py =================================================================== --- bsddb3-5.3.0.orig/setup3.py +++ bsddb3-5.3.0/setup3.py @@ -128,7 +128,7 @@ if os.name == 'posix': incdir = libdir = None if not BERKELEYDB_DIR and not BERKELEYDB_LIBDIR and not BERKELEYDB_INCDIR: # Supported Berkeley DB versions, in order of preference. - db_ver_list = ((5, 3), (5, 2), (5, 1), (5, 0), + db_ver_list = ((6, 0), (5, 3), (5, 2), (5, 1), (5, 0), (4, 8), (4, 7), (4, 6), (4, 5), (4, 4), (4, 3)) # construct a list of paths to look for the header file in on
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor