Package: release.debian.org Severity: normal Tags: jessie User: [email protected] Usertags: pu
Users are currently experiencing problems with upgrading to stretch when using a postfix map type that is in an external .so file becaue these files moved in stretch (with the transition to postfix 3) and the stable version of the package doesn't remove it's own mappings on upgrade as is should (the stretch version of postfix already does this, so this is already adressed there). The function to remove the mapping already exists, it is just not called correctly. The attached debdiff for stable fixes this and results in correct upgrades. I have this built, tested, and ready to upload if approved. Scott K
diff -u postfix-2.11.3/debian/changelog postfix-2.11.3/debian/changelog --- postfix-2.11.3/debian/changelog +++ postfix-2.11.3/debian/changelog @@ -1,3 +1,11 @@ +postfix (2.11.3-1+deb8u1) stable; urgency=medium + + * Add delmap to .prerm for all packages that contain map data types exposed + through external .so files so that upgrades to stretch (where the + associated files have moved) will be functional (Closes: #859805) + + -- Scott Kitterman <[email protected]> Mon, 24 Apr 2017 13:15:36 -0400 + postfix (2.11.3-1) unstable; urgency=medium [Wietse Venema] diff -u postfix-2.11.3/debian/postfix-cdb.prerm postfix-2.11.3/debian/postfix-cdb.prerm --- postfix-2.11.3/debian/postfix-cdb.prerm +++ postfix-2.11.3/debian/postfix-cdb.prerm @@ -15,8 +15,11 @@ # <conflicting-package> <version> # for details, see /usr/share/doc/packaging-manual/ +. /usr/share/postfix/postinst.functions + case "$1" in remove|upgrade|deconfigure) + delmap cdb # install-info --quiet --remove /usr/info/#PACKAGE#.info.gz ;; failed-upgrade) diff -u postfix-2.11.3/debian/postfix-ldap.prerm postfix-2.11.3/debian/postfix-ldap.prerm --- postfix-2.11.3/debian/postfix-ldap.prerm +++ postfix-2.11.3/debian/postfix-ldap.prerm @@ -15,8 +15,11 @@ # <conflicting-package> <version> # for details, see /usr/share/doc/packaging-manual/ +. /usr/share/postfix/postinst.functions + case "$1" in remove|upgrade|deconfigure) + delmap ldap # install-info --quiet --remove /usr/info/#PACKAGE#.info.gz ;; failed-upgrade) diff -u postfix-2.11.3/debian/postfix-mysql.prerm postfix-2.11.3/debian/postfix-mysql.prerm --- postfix-2.11.3/debian/postfix-mysql.prerm +++ postfix-2.11.3/debian/postfix-mysql.prerm @@ -15,8 +15,11 @@ # <conflicting-package> <version> # for details, see /usr/share/doc/packaging-manual/ +. /usr/share/postfix/postinst.functions + case "$1" in remove|upgrade|deconfigure) + delmap mysql # install-info --quiet --remove /usr/info/#PACKAGE#.info.gz ;; failed-upgrade) diff -u postfix-2.11.3/debian/postfix-pcre.prerm postfix-2.11.3/debian/postfix-pcre.prerm --- postfix-2.11.3/debian/postfix-pcre.prerm +++ postfix-2.11.3/debian/postfix-pcre.prerm @@ -15,8 +15,11 @@ # <conflicting-package> <version> # for details, see /usr/share/doc/packaging-manual/ +. /usr/share/postfix/postinst.functions + case "$1" in remove|upgrade|deconfigure) + delmap pcre # install-info --quiet --remove /usr/info/#PACKAGE#.info.gz ;; failed-upgrade) diff -u postfix-2.11.3/debian/postfix-pgsql.prerm postfix-2.11.3/debian/postfix-pgsql.prerm --- postfix-2.11.3/debian/postfix-pgsql.prerm +++ postfix-2.11.3/debian/postfix-pgsql.prerm @@ -15,8 +15,11 @@ # <conflicting-package> <version> # for details, see /usr/share/doc/packaging-manual/ +. /usr/share/postfix/postinst.functions + case "$1" in remove|upgrade|deconfigure) + delmap pgsql # install-info --quiet --remove /usr/info/#PACKAGE#.info.gz ;; failed-upgrade) diff -u postfix-2.11.3/debian/postfix.prerm postfix-2.11.3/debian/postfix.prerm --- postfix-2.11.3/debian/postfix.prerm +++ postfix-2.11.3/debian/postfix.prerm @@ -3,6 +3,8 @@ # Debian Postfix prerm # LaMont Jones <[email protected]> +. /usr/share/postfix/postinst.functions + case "$1" in upgrade) new=$2 # get new version @@ -23,6 +25,8 @@ mv ${MASTER}.$$ ${MASTER} fi fi + delmap tcp + delmap sqlite ;; deconfigure)

