Bug#690528: unblock: xml2rfc/1.36-5
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock
unblock xml2rfc/1.36-5
The squeeze version of xml2rfc fails to remove /etc/sgml/xml2rfc.cat on
either remove or purge. Upgrading such a system and then installing
wheezy's xml2rfc results in a conffile prompt as discovered by Andreas
Beckmann using piuparts in #680291. Note that the behaviour of the
squeeze package is a policy violation. The updated version solves the
conffile prompt for the left over file. I attched the full debdiff
between the version currently in wheezy and the fixing version in sid.
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-15 01:31:22.000000000 +0200
@@ -1,3 +1,11 @@
+xml2rfc (1.36-5) unstable; urgency=low
+
+ [ Helmut Grohne ]
+ * Always remove /etc/sgml/xml2rfc.cat when it is not a conffile.
+ (Closes: #680291)
+
+ -- Daniel Kahn Gillmor <dkg@fifthhorseman.net> Sun, 14 Oct 2012 19:30:24 -0400
+
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-15 01:29:51.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#
Reply to: