Control: tags 680291 + patch Hi dkg,
TL;DR: Please upload the attached patch. Thank you for your help with the previous sgml-base related issue. Now we still have #680291 which affects upgrading from squeeze to wheezy and is a special case, because the squeeze version of xml2rfc does not clean /etc/sgml/xml2rfc.cat on either remove or purge. This is a policy violation, but there is little use in tracking it with a separate bug, as it was fixed with the sgml-base transition. However the left-over file can cause a conffile prompt on wheezy as was discovered by Andreas Beckmann. As promised I prepared a patch for this and tested it. I verified that the squeeze version of xml2rfc leaves /etc/sgml/xml2rfc.cat when being purged. With that file present I verified that the patched xml2rfc installs without a prompt. Can you please upload the patch or tell me to go ahead and NMU it? Once uploaded I can file an unblock request unless you wish to do this yourself. Helmut
diff -Nru xml2rfc-1.36/debian/changelog xml2rfc-1.36/debian/changelog --- xml2rfc-1.36/debian/changelog 2012-08-31 20:16:57.000000000 +0200 +++ xml2rfc-1.36/debian/changelog 2012-10-14 21:12:37.000000000 +0200 @@ -1,3 +1,11 @@ +xml2rfc (1.36-4.1) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Always remove /etc/sgml/xml2rfc.cat when it is not a conffile. + (Closes: #680291) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 14 Oct 2012 21:11:45 +0200 + xml2rfc (1.36-4) unstable; urgency=low * Bump Standards-Version to 3.9.3 (no changes needed) diff -Nru xml2rfc-1.36/debian/preinst xml2rfc-1.36/debian/preinst --- xml2rfc-1.36/debian/preinst 1970-01-01 01:00:00.000000000 +0100 +++ xml2rfc-1.36/debian/preinst 2012-10-14 21:24:27.000000000 +0200 @@ -0,0 +1,15 @@ +#!/bin/sh +set -e + +# xml2rfc version 1.35-1 as of Debian squeeze did not properly clean its +# package catalog upon removal or purge. This results in a conffile prompt when +# installing a dh_installcatalogs managed version. This is also known as +# #680291. The issue affects the upgrade from squeeze to wheezy. Once wheezy is +# released. This preinst file should be removed unless something else is added +# to it. +CENTCAT=/etc/sgml/xml2rfc.cat +if test -f "$CENTCAT" && ! dpkg-query -S "$CENTCAT" >/dev/null 2>&1; then + mv "$CENTCAT" "$CENTCAT.old" +fi + +#DEBHELPER#