[DRE-maint] Bug#621436: uses libdb4.8

Ondřej Surý ondrej at debian.org
Mon May 2 15:36:57 UTC 2011


Package: libdb-ruby
Severity: normal

Hi,

please don't forget Cc: me or use -submitter next time, I have missed
your mail :(.

Here's the (send it to upstream) patch:

--- libdb-ruby-0.6.5.old/tests/lock.rb	2007-07-28 10:01:08.000000000 +0000
+++ libdb-ruby-0.6.5/tests/lock.rb	2011-05-02 15:30:34.342886006 +0000
@@ -115,7 +115,7 @@ class TestLock < Inh::TestCase
       assert_equal(1, inc = db1.push("record1")[0], "<set db>")
       assert_kind_of(BDB::Txn, txn2 = $env.begin("flags" => BDB::TXN_NOWAIT))
       assert_kind_of(BDB::Queue, db2 = txn2.assoc($db))
-      if BDB::VERSION_MAJOR >= 4 && BDB::VERSION_MINOR >= 2
+      if BDB::VERSION_MAJOR > 4 || BDB::VERSION_MINOR >= 2
        assert_raises(BDB::LockDead) { db2[inc] }
       else
        assert_raises(BDB::LockGranted) { db2[inc] }


This fixes the failing test (and the following tests which gets broken because of this).

O.

-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash






More information about the Pkg-ruby-extras-maintainers mailing list