source:
scripts/untested/blfs-patches/Python-2.4-db43-1.patch@
8c8c5ab
Last change on this file since 8c8c5ab was 617118d, checked in by , 19 years ago | |
---|---|
|
|
File size: 2.8 KB |
-
Python-2.3.4/Modules/_bsddb.c
Submitted By: Igor Zivkovic <igor@linuxfromscratch.org> Date: 2004-12-09 Initial Package Version: 2.3.4 Upstream Status: Submitted at Python patch tracker. Origin: Michal Cihar and Suzuki Hisao Description: Adds support for Berkeley DB-4.3.x. $LastChangedBy: igor $ $Date: 2005-01-10 15:43:51 -0700 (Mon, 10 Jan 2005) $
old new 422 422 /* Callback used to save away more information about errors from the DB 423 423 * library. */ 424 424 static char _db_errmsg[1024]; 425 static void _db_errorCallback(const char* prefix, char* msg) 425 static void _db_errorCallback( 426 #if (DBVER >= 43) 427 const DB_ENV *dbenv, 428 #endif 429 const char* prefix, 430 #if (DBVER >= 43) 431 const 432 #endif 433 char* msg) 426 434 { 427 435 strcpy(_db_errmsg, msg); 428 436 } … … 1987 1995 1988 1996 MYDB_BEGIN_ALLOW_THREADS; 1989 1997 #if (DBVER >= 33) 1990 err = self->db->stat(self->db, &sp, flags); 1998 err = self->db->stat(self->db, 1999 #if (DBVER >= 43) 2000 NULL /*txnid*/, 2001 #endif 2002 &sp, flags); 1991 2003 #else 1992 2004 err = self->db->stat(self->db, &sp, NULL, flags); 1993 2005 #endif … … 2249 2261 2250 2262 MYDB_BEGIN_ALLOW_THREADS; 2251 2263 #if (DBVER >= 33) 2252 err = self->db->stat(self->db, &sp, flags); 2264 err = self->db->stat(self->db, 2265 #if (DBVER >= 43) 2266 NULL /*txnid*/, 2267 #endif 2268 &sp, flags); 2253 2269 #else 2254 2270 err = self->db->stat(self->db, &sp, NULL, flags); 2255 2271 #endif … … 2375 2391 err = self->db->get(self->db, txn, &key, &data, 0); 2376 2392 MYDB_END_ALLOW_THREADS; 2377 2393 FREE_DBT(key); 2394 #if (DBVER >= 43) 2395 return PyInt_FromLong((err == DB_BUFFER_SMALL) || (err == 0)); 2396 #else 2378 2397 return PyInt_FromLong((err == ENOMEM) || (err == 0)); 2398 #endif 2379 2399 } 2380 2400 2381 2401 … … 4527 4547 4528 4548 #if (DBVER >= 33) 4529 4549 ADD_INT(d, DB_LSTAT_ABORTED); 4550 #if (DBVER < 43) 4530 4551 ADD_INT(d, DB_LSTAT_ERR); 4552 #endif 4553 #if (DBVER >= 42) 4554 ADD_INT(d, DB_LSTAT_EXPIRED); 4555 #endif 4531 4556 ADD_INT(d, DB_LSTAT_FREE); 4532 4557 ADD_INT(d, DB_LSTAT_HELD); 4533 4558 #if (DBVER == 33) -
Python-2.3.4/setup.py
old new 480 480 # when sorted in reverse order, keys for this dict must appear in the 481 481 # order you wish to search - e.g., search for db4 before db3 482 482 db_try_this = { 483 'db4': {'libs': ('db-4. 2', 'db42', 'db-4.1', 'db41', 'db-4.0', 'db4',),483 'db4': {'libs': ('db-4.3', 'db43', 'db-4.2', 'db42', 'db-4.1', 'db41', 'db-4.0', 'db4',), 484 484 'libdirs': ('/usr/local/BerkeleyDB.4.2/lib', 485 485 '/usr/local/BerkeleyDB.4.1/lib', 486 486 '/usr/local/BerkeleyDB.4.0/lib',
Note:
See TracBrowser
for help on using the repository browser.