Followup-For: Bug #768243 Hi,
here is a patch to clean up the obsolete alternatives on upgrades from wheezy. It's based on top of the unstable branch in git, but could be separated easily from these pending changes. I verified in piuparts that this works correctly. Please get this fixed in jessie - it's the last package leaving obsolete alternatives after upgrades from wheezy. RT has approved alternatives fixup on two other packages today, so this shouln't be a problem, but I do not know about the other changes pending in git ... Andreas PS: How do you build from the git packaging repository? Since the patches seem to be applied, git-buildpackage (or plain pbuilder) explode while preparing a source package.
>From 9edefd09fe77c80c8a323fe3b32fae8bc0772796 Mon Sep 17 00:00:00 2001 From: Andreas Beckmann <a...@debian.org> Date: Sat, 10 Jan 2015 18:56:49 +0100 Subject: [PATCH] cleanup obsolete telnet, rsh and pop alternatives --- debian/changelog | 5 +++++ debian/heimdal-clients.postinst | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/debian/changelog b/debian/changelog index 9454892..1472e70 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,14 @@ heimdal (1.6~rc2+dfsg-9) UNRELEASED; urgency=medium + [ Jelmer Vernooij ] * Add 051_bug746486-memleak: cherry-pick memory leak fix in KDC from upstream. Thanks GALAMBOS Daniel. Closes: #746486 * Add Turkish debconf translation. Thanks Mert Dirik. Closes: #759877 + [ Andreas Beckmann ] + * heimdal-clients.postinst: Cleanup obsolete telnet, rsh and pop + alternatives. (Closes: #768243) + -- Jelmer Vernooij <jel...@debian.org> Mon, 25 Aug 2014 13:52:44 +0200 heimdal (1.6~rc2+dfsg-8) unstable; urgency=low diff --git a/debian/heimdal-clients.postinst b/debian/heimdal-clients.postinst index f688df7..66879e9 100644 --- a/debian/heimdal-clients.postinst +++ b/debian/heimdal-clients.postinst @@ -1,5 +1,16 @@ #!/bin/sh -e +if [ "$1" = "configure" ] +then + if dpkg --compare-versions "$2" lt-nl "1.6~rc2+dfsg-9~" + then + for i in telnet rsh rcp + do + update-alternatives --remove $i /usr/bin/k$i + done + fi +fi + for i in ftp pagsh do update-alternatives --install /usr/bin/$i $i /usr/bin/k$i 23 \ -- 2.1.4