Package: libunwind-setjmp0 Followup-For: Bug #739383 Hi,
attaching a patch to add diversion cleanup in the postinst. Verified that this fixes the issue. I had to delete config.{sub,guess} from the git repository - these files are not part of the upstream tarball and dpkg-source kept complaining about changes outside debian/ Low intent to NMU, not earlier than three months from now, but somewhen before freeze :-) Andreas
>From d11b26ee017afc80980dab4ba9b8c3fe7f7e0b61 Mon Sep 17 00:00:00 2001 From: Andreas Beckmann <a...@debian.org> Date: Tue, 18 Feb 2014 00:09:14 +0100 Subject: [PATCH] cleanup diversions from wheezy --- debian/changelog | 7 +++++++ debian/libunwind-setjmp0.postinst | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 debian/libunwind-setjmp0.postinst diff --git a/debian/changelog b/debian/changelog index a57541a..c3e3c7e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +libunwind (1.1-2.3) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Cleanup diversions from wheezy. (Closes: #739383) + + -- Andreas Beckmann <a...@debian.org> Tue, 18 Feb 2014 00:08:05 +0100 + libunwind (1.1-2.2) unstable; urgency=low * Non-maintainer upload diff --git a/debian/libunwind-setjmp0.postinst b/debian/libunwind-setjmp0.postinst new file mode 100644 index 0000000..d007939 --- /dev/null +++ b/debian/libunwind-setjmp0.postinst @@ -0,0 +1,10 @@ +#!/bin/sh +set -e +if [ configure = "$1" ]; then + # cleanup diversions from wheezy + if dpkg --compare-versions "$2" lt "1.1-2.3" ; then + dpkg-divert --package libunwind-setjmp0 --remove --rename --divert /usr/lib/libunwind-setjmp.so.0.0.0.old /usr/lib/libunwind-setjmp.so.0.0.0 + dpkg-divert --package libunwind-setjmp0 --remove --rename --divert /usr/lib/libunwind-setjmp.so.0.old /usr/lib/libunwind-setjmp.so.0 + fi +fi +#DEBHELPER# -- 1.8.5.3