[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#987158: marked as done (unblock: chezscheme/9.5.4+dfsg-4)



Your message dated Fri, 23 Apr 2021 08:08:05 +0000
with message-id <E1lZqr7-00060z-N8@respighi.debian.org>
and subject line unblock chezscheme
has caused the Debian Bug report #987158,
regarding unblock: chezscheme/9.5.4+dfsg-4
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
987158: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=987158
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package chezscheme

[ Reason ]
A new version will fix obsolete alternatives left after upgrading from
buster (#986875).

[ Impact ]
Broken alternatives could be left on the system.

[ Tests ]
The patch was created and tested by anbe@d.o, and I have manually
verified that the broken alternatives were removed when upgrading from
buster to the fixed version.

[ Risks ]
The change itself looks trivial.

[ Other info ]
I've prepared a source upload for unstable and I'm holding off on
uploading it until I receive instructions from you.

unblock chezscheme/9.5.4+dfsg-4




diff --git a/debian/changelog b/debian/changelog
index 1a8e062..b55cdd6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+chezscheme (9.5.4+dfsg-4) unstable; urgency=medium
+
+  * chezscheme.postinst: Clean up obsolete versioned alternatives on
+    upgrades from buster. Thanks to Andreas Beckmann for the report and
+    the patch! (Closes: #986875)
+
+ -- Göran Weinholt <weinholt@debian.org>  Sun, 18 Apr 2021 16:54:30 +0200
+
 chezscheme (9.5.4+dfsg-3) unstable; urgency=medium
 
   * debian/rules: Only override dh_link if chezscheme is built.
diff --git a/debian/chezscheme.postinst b/debian/chezscheme.postinst
index 6c578b0..cf85df9 100644
--- a/debian/chezscheme.postinst
+++ b/debian/chezscheme.postinst
@@ -17,6 +17,13 @@ if [ "$1" = "configure" ]; then
                         --slave /usr/share/man/man1/scheme-script.1.gz \
                                 scheme-script.1.gz \
                                 /usr/share/man/man1/scheme-script-chez.1.gz
+
+    if dpkg --compare-versions "$2" lt-nl "9.5.4+dfsg-4~" ; then
+        CHEZ_VERSION=9.5
+        update-alternatives --remove scheme /usr/bin/chezscheme${CHEZ_VERSION}
+        update-alternatives --remove scheme-script /usr/bin/chezscheme${CHEZ_VERSION}
+    fi
+
 fi
 
 #DEBHELPER#

--- End Message ---
--- Begin Message ---
Unblocked chezscheme.

--- End Message ---

Reply to: