Your message dated Mon, 26 Apr 2021 02:19:12 +0000
with message-id <e1laqq8-000c0w...@fasolo.debian.org>
and subject line Bug#986339: fixed in universal-ctags 0+git20200824-1.1
has caused the Debian Bug report #986339,
regarding universal-ctags: prerm fails on upgrades
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 ow...@bugs.debian.org
immediately.)
--
986339: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986339
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: universal-ctags
Version: 0+git20200824-1.1.g15ce0a8
Severity: serious
Tags: patch
Justification: Policy 6.4
This is a clean buster container where I tested upgrading
universal-ctags:
root@1066c7b1da18:/# apt install -qy universal-ctags
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
universal-ctags
1 upgraded, 0 newly installed, 0 to remove and 92 not upgraded.
Need to get 442 kB of archives.
After this operation, 311 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 universal-ctags amd64
0+git20200824-1 [442 kB]
Fetched 442 kB in 5s (87.9 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 8631 files and directories currently installed.)
Preparing to unpack .../universal-ctags_0+git20200824-1_amd64.deb ...
prerm called with unknown argument `upgrade'
dpkg: warning: old universal-ctags package pre-removal script subprocess
returned error exit status 1
dpkg: trying script from the new package instead ...
dpkg: ... it looks like that went OK
Unpacking universal-ctags (0+git20200824-1) over (0+git20181215-2) ...
Setting up universal-ctags (0+git20200824-1) ...
update-alternatives: using /usr/bin/ctags-universal to provide /usr/bin/etags
(etags) in auto mode
It seems that dpkg works around the issue somehow, but still prerm
should not exit non-zero. The script will also fail similarly when prerm
is called with "deconfigure".
The attached patch fixes both cases.
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500,
'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64
Kernel: Linux 5.10.0-5-amd64 (SMP w/4 CPU threads)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8),
LANGUAGE=pt_BR:pt:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages universal-ctags depends on:
ii libc6 2.31-10
ii libjansson4 2.13.1-1.1
ii libseccomp2 2.5.1-1
ii libxml2 2.9.10+dfsg-6.3+b1
ii libyaml-0-2 0.2.2-1
universal-ctags recommends no packages.
Versions of packages universal-ctags suggests:
ii vim 2:8.2.2434-3
ii vim-gtk3 [vim] 2:8.2.2434-3
-- no debconf information
From 490f13d5b473059dd873deab5f1f1b64e12f4f40 Mon Sep 17 00:00:00 2001
From: Antonio Terceiro <terce...@debian.org>
Date: Sat, 3 Apr 2021 17:05:57 -0300
Subject: [PATCH 2/2] debian/prerm: handle upgrade/removal scenarios correctly
---
debian/prerm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/prerm b/debian/prerm
index 6ebf9a2..4b4d130 100644
--- a/debian/prerm
+++ b/debian/prerm
@@ -3,12 +3,12 @@
set -e
case "$1" in
- remove)
+ remove|deconfigure)
update-alternatives --remove ctags /usr/bin/ctags-universal
update-alternatives --remove etags /usr/bin/ctags-universal
;;
- failed-upgrade)
+ upgrade|failed-upgrade)
;;
*)
--
2.31.0
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Source: universal-ctags
Source-Version: 0+git20200824-1.1
Done: Adrian Bunk <b...@debian.org>
We believe that the bug you reported is fixed in the latest version of
universal-ctags, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 986...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Adrian Bunk <b...@debian.org> (supplier of updated universal-ctags package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Fri, 23 Apr 2021 21:29:07 +0300
Source: universal-ctags
Architecture: source
Version: 0+git20200824-1.1
Distribution: unstable
Urgency: medium
Maintainer: Alessandro Ghedini <gh...@debian.org>
Changed-By: Adrian Bunk <b...@debian.org>
Closes: 986339
Changes:
universal-ctags (0+git20200824-1.1) unstable; urgency=medium
.
* Non-maintainer upload.
* Handle deconfigure and upgrade in the prerm,
thanks to Antonio Terceiro. (Closes: #986339)
Checksums-Sha1:
0bc42bccb670eaa40d4b6b849b1c2e5b06da3d4a 2063
universal-ctags_0+git20200824-1.1.dsc
cc459af91344784fda5a55c9fa0e388b071987b6 5296
universal-ctags_0+git20200824-1.1.debian.tar.xz
Checksums-Sha256:
6d9d09a4c273a0635e0949f2c66e36d38e224561cf49247183e4cdb1b915b0bd 2063
universal-ctags_0+git20200824-1.1.dsc
15cd623cfdfed5168d5db56622c711b914c936fd57a0ad30d535dd3409ddf69a 5296
universal-ctags_0+git20200824-1.1.debian.tar.xz
Files:
9a74cecd17d696305e661428633edc00 2063 editors optional
universal-ctags_0+git20200824-1.1.dsc
f09437662d5001b20d3517acf8b601f9 5296 editors optional
universal-ctags_0+git20200824-1.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmCDLxoACgkQiNJCh6LY
mLErJQ//UM6W87mZrp7Pq56UnUxO2Pqv5aL/aa4tx2VYpEiBdviMrg9wudN4yS0e
PzGhzPNDBUThNDjDCavOIeGOQz1aXgvhpNx67XYvQczkE8AkecPe31ebrkn+XKUC
otBIuGq2mz9q5NFCCXce6+jdPjwtjCm0Qu9xT2vowvAfkTjy/a1IICD/aNAqV1Gt
jzHIMGjyITWL2Mf/WQFmS0lTL0Elq4Sij1xx7OjOVnllw1bb5GMQoNtyFx0DWF7U
we6ZljbN71kmMkGatiaMswwrAqHpbzQi1VLqFbH7UWYN2K4J4LEpwRQOzIzWdfdS
g/YyxcwCn4pi9wwTBuYfjlicM6CTGyTd5krgNEJPlWG4mPY64U3u/331lIn6QbF8
3D+tFebJbrJp6r4DbwFz4BezqtPjlG3AXoV4ijxkQvvKaNRSfiuZj0kPXAKziQh0
Cc0+Y5Yp2FfoqQGzbU2AKU5xpGX7N6yqjDU3zfERpGQwjxXwzoU/uICl2zFUxAA2
Iow6eBg1GNP72ht2Mar8GK0q7kxbX4yNjPXqF6auH8CAgEHC1kQSNSY8qlNGXmJI
JvJ7d9sGJkIXirT7cfhZHcnNIXUfz70trRMYCG/ghh2RUHuP2VzvgXNxXBHdHnT2
kYmxz/x4gKIf0uz3Mp3na7M9Gjwq//WCuQViU2ILAFQvGn8rHlg=
=Bbui
-----END PGP SIGNATURE-----
--- End Message ---