source: scripts/untested/blfs-patches/Python-2.4-db43-2.patch @ 617118d

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 617118d was 617118d, checked in by Jim Gifford <clfs@…>, 18 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100644
File size: 3.3 KB
  • Modules/_bsddb.c

    diff -uNr Python-2.4-orig/Modules/_bsddb.c Python-2.4/Modules/_bsddb.c
    old new  
    466466/* Callback used to save away more information about errors from the DB
    467467 * library. */
    468468static char _db_errmsg[1024];
    469 static void _db_errorCallback(const char* prefix, char* msg)
     469static void _db_errorCallback(
     470#if (DBVER >= 43)
     471        const DB_ENV *dbenv,
     472#endif
     473        const char* prefix,
     474#if (DBVER >= 43)
     475        const
     476#endif
     477        char* msg)
    470478{
    471479    strcpy(_db_errmsg, msg);
    472480}
     
    21462154
    21472155    MYDB_BEGIN_ALLOW_THREADS;
    21482156#if (DBVER >= 33)
    2149     err = self->db->stat(self->db, &sp, flags);
     2157    err = self->db->stat(self->db,
     2158#if (DBVER >= 43)
     2159            NULL /*txnid*/,
     2160#endif
     2161            &sp, flags);
    21502162#else
    21512163    err = self->db->stat(self->db, &sp, NULL, flags);
    21522164#endif
     
    24082420
    24092421    MYDB_BEGIN_ALLOW_THREADS;
    24102422#if (DBVER >= 33)
    2411     err = self->db->stat(self->db, &sp, flags);
     2423    err = self->db->stat(self->db,
     2424#if (DBVER >= 43)
     2425            NULL /*txnid*/,
     2426#endif
     2427            &sp, flags);
    24122428#else
    24132429    err = self->db->stat(self->db, &sp, NULL, flags);
    24142430#endif
     
    25362552    err = self->db->get(self->db, txn, &key, &data, 0);
    25372553    MYDB_END_ALLOW_THREADS;
    25382554    FREE_DBT(key);
     2555#if (DBVER >= 43)
     2556    return PyInt_FromLong((err == DB_BUFFER_SMALL) || (err == 0));
     2557#else
    25392558    return PyInt_FromLong((err == ENOMEM) || (err == 0));
     2559#endif
    25402560}
    25412561
    25422562
     
    49034923
    49044924#if (DBVER >= 33)
    49054925    ADD_INT(d, DB_LSTAT_ABORTED);
     4926#if (DBVER < 43)
    49064927    ADD_INT(d, DB_LSTAT_ERR);
     4928#endif
     4929#if (DBVER >= 42)
     4930    ADD_INT(d, DB_LSTAT_EXPIRED);
     4931#endif
    49074932    ADD_INT(d, DB_LSTAT_FREE);
    49084933    ADD_INT(d, DB_LSTAT_HELD);
    49094934#if (DBVER == 33)
  • setup.py

    diff -uNr Python-2.4-orig/setup.py Python-2.4/setup.py
    old new  
    492492        # when sorted in reverse order, keys for this dict must appear in the
    493493        # order you wish to search - e.g., search for db4 before db3
    494494        db_try_this = {
    495             'db4': {'libs': ('db-4.2', 'db42', 'db-4.1', 'db41', 'db-4.0', 'db4',),
    496                     'libdirs': ('/usr/local/BerkeleyDB.4.2/lib',
     495            'db4': {'libs': ('db-4.3', 'db43', 'db-4.2', 'db42', 'db-4.1', 'db41', 'db-4.0', 'db4',),
     496                    'libdirs': ('/usr/local/BerkeleyDB.4.3/lib',
     497                                '/usr/local/BerkeleyDB.4.2/lib',
    497498                                '/usr/local/BerkeleyDB.4.1/lib',
    498499                                '/usr/local/BerkeleyDB.4.0/lib',
    499500                                '/usr/local/lib',
    500501                                '/opt/sfw',
    501502                                '/sw/lib',
    502503                                ),
    503                     'incdirs': ('/usr/local/BerkeleyDB.4.2/include',
     504                    'incdirs': ('/usr/local/BerkeleyDB.4.3/include',
     505                                '/usr/local/include/db43',
     506                                '/usr/local/BerkeleyDB.4.2/include',
    504507                                '/usr/local/include/db42',
    505508                                '/usr/local/BerkeleyDB.4.1/include',
    506509                                '/usr/local/include/db41',
Note: See TracBrowser for help on using the repository browser.