Skip to content

Support Berkeley DB 4.8 #51198

Closed
Closed

Description

@Arfrever
mannequin
BPO 6949
Nosy @doko42, @jcea
Files
  • python-support_bdb-4.8.patch: Support Berkeley DB 4.8
  • python-support_bdb-4.8-v2.patch: Support Berkeley DB 4.8 v2
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/jcea'
    closed_at = <Date 2010-03-15.12:52:14.826>
    created_at = <Date 2009-09-19.16:09:30.585>
    labels = ['type-feature', 'build']
    title = 'Support Berkeley DB 4.8'
    updated_at = <Date 2010-03-16.06:47:06.552>
    user = 'https://bugs.python.org/Arfrever'

    bugs.python.org fields:

    activity = <Date 2010-03-16.06:47:06.552>
    actor = 'doko'
    assignee = 'jcea'
    closed = True
    closed_date = <Date 2010-03-15.12:52:14.826>
    closer = 'doko'
    components = ['Build']
    creation = <Date 2009-09-19.16:09:30.585>
    creator = 'Arfrever'
    dependencies = []
    files = ['14933', '16549']
    hgrepos = []
    issue_num = 6949
    keywords = ['patch']
    message_count = 7.0
    messages = ['92871', '101068', '101069', '101099', '101150', '101151', '101155']
    nosy_count = 3.0
    nosy_names = ['doko', 'jcea', 'Arfrever']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'patch review'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue6949'
    versions = ['Python 2.7', 'Python 3.2']

    Activity

    1. Arfrever commented on Sep 19, 2009

      Arfrevermannequin
      MannequinAuthor

      Python doesn't detect Berkeley DB 4.8. After updating setup.py, _bsddb
      module fails to build due to some changes in Berkeley DB.

      I'm attaching patch which seems to fix these problems.
      Changes in setup.py were made by me.
      Changes in Modules/_bsddb.c were copied from bsddb3-4.8.0 [1].

      [1] http://www.jcea.es/programacion/pybsddb.htm

    2. added
      build
      on Sep 19, 2009
    3. added
      type-feature
      on Sep 19, 2009
    4. doko42 commented on Mar 14, 2010

      @doko42
      Member

      with this patch the following test cases fail. the tests need backports as well. with this patch there's still one test failure, which I do see with db4.7 as well.

      will wait for test results on different platforms and then submit to the trunk. the setup.py change should go to the py3k branch as well.

      ======================================================================
      ERROR: test02_DBEnv_dealloc (bsddb.test.test_basics.CrashAndBurn)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/packages/python/2.6/python2.6-2.6.5~rc2/Lib/bsddb/test/test_basics.py", line 1038, in test02_DBEnv_dealloc
          self.assertRaises(db.DBInvalidArgError, db.DBEnv, ~db.DB_RPCCLIENT)
      AttributeError: 'module' object has no attribute 'DB_RPCCLIENT'

      ======================================================================
      ERROR: test01_distributed_transactions (bsddb.test.test_distributed_transactions.DBTxn_distributed)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/packages/python/2.6/python2.6-2.6.5~rc2/Lib/bsddb/test/test_distributed_transactions.py", line 53, in setUp
          return self._create_env(must_open_db=True)
        File "/home/packages/python/2.6/python2.6-2.6.5~rc2/Lib/bsddb/test/test_distributed_transactions.py", line 38, in _create_env
          self.db.set_re_len(db.DB_XIDDATASIZE)
      AttributeError: 'module' object has no attribute 'DB_XIDDATASIZE'

      ======================================================================
      ERROR: test01_distributed_transactions (bsddb.test.test_distributed_transactions.DBTxn_distributedSYNC)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/packages/python/2.6/python2.6-2.6.5~rc2/Lib/bsddb/test/test_distributed_transactions.py", line 53, in setUp
          return self._create_env(must_open_db=True)
        File "/home/packages/python/2.6/python2.6-2.6.5~rc2/Lib/bsddb/test/test_distributed_transactions.py", line 38, in _create_env
          self.db.set_re_len(db.DB_XIDDATASIZE)
      AttributeError: 'module' object has no attribute 'DB_XIDDATASIZE'

      ======================================================================
      ERROR: test01_distributed_transactions (bsddb.test.test_distributed_transactions.DBTxn_distributed_must_open_db)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/packages/python/2.6/python2.6-2.6.5~rc2/Lib/bsddb/test/test_distributed_transactions.py", line 53, in setUp
          return self._create_env(must_open_db=True)
        File "/home/packages/python/2.6/python2.6-2.6.5~rc2/Lib/bsddb/test/test_distributed_transactions.py", line 38, in _create_env
          self.db.set_re_len(db.DB_XIDDATASIZE)
      AttributeError: 'module' object has no attribute 'DB_XIDDATASIZE'

      ======================================================================
      ERROR: test01_distributed_transactions (bsddb.test.test_distributed_transactions.DBTxn_distributedSYNC_must_open_db)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/packages/python/2.6/python2.6-2.6.5~rc2/Lib/bsddb/test/test_distributed_transactions.py", line 53, in setUp
          return self._create_env(must_open_db=True)
        File "/home/packages/python/2.6/python2.6-2.6.5~rc2/Lib/bsddb/test/test_distributed_transactions.py", line 38, in _create_env
          self.db.set_re_len(db.DB_XIDDATASIZE)
      AttributeError: 'module' object has no attribute 'DB_XIDDATASIZE'
    5. doko42 commented on Mar 14, 2010

      @doko42
      Member

      the remaining test failure is

      test_bsddb3
      Berkeley DB 4.8.24: (August 14, 2009)
      Test path prefix:  /tmp/z-test_bsddb3-25705
      Exception in thread reader 0:
      Traceback (most recent call last):
        File "/home/packages/python/2.6/python2.6-2.6.5~rc2/Lib/threading.py", line 532, in __bootstrap_inner
          self.run()
        File "/home/packages/python/2.6/python2.6-2.6.5~rc2/Lib/threading.py", line 484, in run
          self.__target(*self.__args, **self.__kwargs)
        File "/home/packages/python/2.6/python2.6-2.6.5~rc2/Lib/bsddb/test/test_thread.py", line 306, in readerThread
          rec = dbutils.DeadlockWrap(c.next, max_retries=10)
        File "/home/packages/python/2.6/python2.6-2.6.5~rc2/Lib/bsddb/dbutils.py", line 68, in DeadlockWrap
          return function(*_args, **_kwargs)
      DBLockDeadlockError: (-30994, 'DB_LOCK_DEADLOCK: Locker killed to resolve a deadlock')
    6. doko42 commented on Mar 15, 2010

      @doko42
      Member

      checked in after testing on {arm,i486,x86_64,powerpc,sparc,ia64}-linux with no test failures.

      fixed in r78974 on the trunk
      fixed in r78975 on the py3k branch

    7. jcea commented on Mar 16, 2010

      @jcea
      Member

      I am about to integrate pybsddb 4.8.4, that compiles against BDB 4.8.

      Oracle is going to publish a new Berkeley DB lib in a month or less. I have the pybsddb release ready, too.

    8. jcea commented on Mar 16, 2010

      @jcea
      Member

      Doko, bsddb3 is suppose to be "out" of py3k.

    9. doko42 commented on Mar 16, 2010

      @doko42
      Member

      jcea: yes, but we want _dbm be able to build with 4.8.x as well.

    10. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    buildtype-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions