severity 575581 important
tags 575581 -patch
severity 594451 serious
tags 594451 +patch
thanks

Russell's report, bug 575581, says:
> Program version 4.7 doesn't match environment version 4.6

The error I saw (and Johan's patch addresses), bug 594451, is:
> Program version 4.7 doesn't match environment version 4.8

I think 575581 is an old issue that has been superseded by 594451.
Thus reverting the severity of 575581, and bumping 594451, as it affects
lenny->squeeze upgrades. Not merging these bugs as they are reporting
different symptoms.

Johan's patch needs work, it checks for the existence of db4.7_upgrade
and then calls db4.8_upgrade.

However, I prefer Stephen's approach, as upgrading the DB in preinst
does appear unnecessary (and is certainly currently broken). Can anyone
who knows a little more about libberkeleydb-perl confirm that?

Patch for 594451 attached.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  H: +27 21 465 6908 C: +27 72 419 8559  UCT: x3127
diff -u postgrey-1.32/debian/control postgrey-1.32/debian/control
--- postgrey-1.32/debian/control
+++ postgrey-1.32/debian/control
@@ -14,7 +14,7 @@
 Package: postgrey
 Architecture: all
 Depends: adduser, debconf, libberkeleydb-perl (>= 0.39-1), libnet-dns-perl,
- libnet-server-perl (>= 0.87), perl, ucf (>= 0.28), db4.7-util, ${misc:Depends}
+ libnet-server-perl (>= 0.87), perl, ucf (>= 0.28), ${misc:Depends}
 Conflicts: libsys-syslog-perl (<< 0.21)
 Recommends: libdigest-sha1-perl, libnet-rblclient-perl, libparse-syslog-perl,
  postfix | exim4
reverted:
--- postgrey-1.32/debian/preinst
+++ postgrey-1.32.orig/debian/preinst
@@ -1,50 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# summary of how this script can be called:
-#        * <new-preinst> `install'
-#        * <new-preinst> `install' <old-version>
-#        * <new-preinst> `upgrade' <old-version>
-#        * <old-preinst> `abort-upgrade' <new-version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
-    install)
-    ;;
-
-    upgrade)
-        set +e
-        OLDVERSION=$2
-        DBDIR=/var/lib/postgrey
-        dpkg --compare-versions "$OLDVERSION" lt "1.32-1"
-        if [ "$?" -eq "0" ]; then
-            set -e
-            if [ -d $DBDIR -a -f /usr/bin/db4.7_upgrade ]; then
-                if [ -f "$DBDIR/postgrey.db" ]; then
-                    db4.7_upgrade -h $DBDIR postgrey.db
-                fi
-                if [ -f "$DBDIR/postgrey_clients.db" ]; then
-                    db4.7_upgrade -h $DBDIR postgrey_clients.db
-                fi
-            fi
-        fi
-    ;;
-
-    abort-upgrade)
-    ;;
-
-    *)
-        echo "preinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
diff -u postgrey-1.32/debian/changelog postgrey-1.32/debian/changelog
--- postgrey-1.32/debian/changelog
+++ postgrey-1.32/debian/changelog
@@ -1,3 +1,9 @@
+postgrey (1.32-5.1) unstable; urgency=low
+
+  * Drop preinst and thus dependency on dbutil-4.7. (Closes: #594451)
+
+ -- Stefano Rivera <stef...@rivera.za.net>  Tue, 16 Nov 2010 14:26:45 +0200
+
 postgrey (1.32-5) unstable; urgency=low
 
   [ Antonio Radici ]

Reply via email to