Package: python2.6
Version: 2.6.6-8
Severity: normal

Attached is patch for db5.1 usage.
diff --git a/debian/control b/debian/control
index 4302928..6a47fea 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: python2.6
 Section: python
 Priority: optional
 Maintainer: Matthias Klose <d...@debian.org>
-Build-Depends: debhelper (>= 5), quilt, autoconf, libreadline-dev, libncursesw5-dev (>= 5.3), tk8.5-dev, zlib1g-dev, blt-dev (>= 2.4z), libssl-dev, sharutils, libbz2-dev, libbluetooth-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], locales [!armel !avr32 !hppa !ia64 !mipsel], libsqlite3-dev, libffi-dev (>= 3.0.5), mime-support, libgpm2 [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], netbase, lsb-release, bzip2, libdb4.8-dev, gdb, python
+Build-Depends: debhelper (>= 5), quilt, autoconf, libreadline-dev, libncursesw5-dev (>= 5.3), tk8.5-dev, zlib1g-dev, blt-dev (>= 2.4z), libssl-dev, sharutils, libbz2-dev, libbluetooth-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], locales [!armel !avr32 !hppa !ia64 !mipsel], libsqlite3-dev, libffi-dev (>= 3.0.5), mime-support, libgpm2 [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], netbase, lsb-release, bzip2, libdb-dev, gdb, python
 Build-Depends-Indep: python-sphinx
 Build-Conflicts: tcl8.3-dev, tk8.3-dev, tcl8.4-dev, tk8.4-dev, python2.6-xml, python-xml, libgdbm-dev, autoconf2.13
 XS-Python-Version: 2.6
diff --git a/debian/control.in b/debian/control.in
index d506fa7..96b22f8 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -2,7 +2,7 @@ Source: @PVER@
 Section: python
 Priority: optional
 Maintainer: Matthias Klose <d...@debian.org>
-Build-Depends: debhelper (>= 5), quilt, autoconf, libreadline-dev, libncursesw5-dev (>= 5.3), tk8.5-dev, zlib1g-dev, blt-dev (>= 2.4z), libssl-dev, sharutils, libbz2-dev, libbluetooth-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], locales [!armel !avr32 !hppa !ia64 !mipsel], libsqlite3-dev, libffi-dev (>= 3.0.5), mime-support, libgpm2 [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], netbase, lsb-release, bzip2, libdb4.8-dev, gdb, python
+Build-Depends: debhelper (>= 5), quilt, autoconf, libreadline-dev, libncursesw5-dev (>= 5.3), tk8.5-dev, zlib1g-dev, blt-dev (>= 2.4z), libssl-dev, sharutils, libbz2-dev, libbluetooth-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], locales [!armel !avr32 !hppa !ia64 !mipsel], libsqlite3-dev, libffi-dev (>= 3.0.5), mime-support, libgpm2 [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], netbase, lsb-release, bzip2, libdb-dev, gdb, python
 Build-Depends-Indep: python-sphinx
 Build-Conflicts: tcl8.3-dev, tk8.3-dev, tcl8.4-dev, tk8.4-dev, @PVER@-xml, python-xml, libgdbm-dev, autoconf2.13
 XS-Python-Version: @VER@
diff --git a/debian/patches/bsddb-version.diff b/debian/patches/bsddb-version.diff
index b884141..4b1d06b 100644
--- a/debian/patches/bsddb-version.diff
+++ b/debian/patches/bsddb-version.diff
@@ -157,12 +157,24 @@ Index: python2.6-2.6.5+20100521/setup.py
 ===================================================================
 --- python2.6-2.6.5+20100521.orig/setup.py	2010-05-21 16:09:30.828738368 +0200
 +++ python2.6-2.6.5+20100521/setup.py	2010-05-21 16:09:30.904710042 +0200
-@@ -709,7 +709,7 @@
+@@ -709,6 +709,6 @@
          # a release.  Most open source OSes come with one or more
          # versions of BerkeleyDB already installed.
  
 -        max_db_ver = (4, 7)
-+        max_db_ver = (4, 8)
++        max_db_ver = (5, 1)
          min_db_ver = (3, 3)
          db_setup_debug = False   # verbose debug prints from this script?
- 
+@@ -804,7 +804,11 @@ class PyBuildExt(build_ext):
+             return True
+ 
+         def gen_db_minor_ver_nums(major):
+-            if major == 4:
++            if major == 5:
++                for x in range(max_db_ver[1]+1):
++                    if allow_db_ver((5, x)):
++                        yield x
++            elif major == 4:
+                 for x in range(max_db_ver[1]+1):
+                     if allow_db_ver((4, x)):
+                         yield x

Reply via email to