Your message dated Mon, 14 Nov 2022 01:22:23 +0000
with message-id <e1ouob5-008g3n...@fasolo.debian.org>
and subject line Bug#1023317: fixed in zsh 5.9-2
has caused the Debian Bug report #1023317,
regarding zsh: re-adds /bin/zsh to /etc/shells on upgrade
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.)
--
1023317: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023317
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: zsh,zsh-static
Version: 5.9-1
Tags: patch
Severity: serious
Justification: Debian policy 10.7.3
When upgrading or reinstalling zsh or zsh-static, it adds /bin/zsh or
/bin/zsh-static respectively to /etc/shells even if one locally removed
it there. Such behaviour violates Debian policy section 10.7.3. I
propose managing the entry declaratively using dpkg triggers and am
attaching a patch for your convenience.
Helmut
diff --minimal -Nru zsh-5.9/debian/changelog zsh-5.9/debian/changelog
--- zsh-5.9/debian/changelog 2022-05-15 01:20:26.000000000 +0200
+++ zsh-5.9/debian/changelog 2022-11-02 10:35:53.000000000 +0100
@@ -1,3 +1,10 @@
+zsh (5.9-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Manage /etc/shells using dpkg triggers. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de> Wed, 02 Nov 2022 10:35:53 +0100
+
zsh (5.9-1) unstable; urgency=low
* [73d31738,d4d20348,2ae4a398] Import new upstream release 5.9.
diff --minimal -Nru zsh-5.9/debian/control zsh-5.9/debian/control
--- zsh-5.9/debian/control 2022-05-15 01:17:30.000000000 +0200
+++ zsh-5.9/debian/control 2022-11-02 10:35:51.000000000 +0100
@@ -56,7 +56,8 @@
Architecture: any
Depends: zsh-common (= ${source:Version}),
${misc:Depends},
- ${shlibs:Depends}
+ ${shlibs:Depends},
+ debianutils (>= 5.3-1~)
Pre-Depends: ${misc:Pre-Depends}
Recommends: ${shlibs:Recommends}
Suggests: zsh-doc
@@ -88,7 +89,8 @@
Package: zsh-static
Architecture: any
-Depends: ${misc:Depends}
+Depends: ${misc:Depends},
+ debianutils (>= 5.3-1~)
Recommends: zsh-common
Suggests: zsh-doc
Built-Using: ${Built-Using}
diff --minimal -Nru zsh-5.9/debian/rules zsh-5.9/debian/rules
--- zsh-5.9/debian/rules 2022-02-25 11:41:52.000000000 +0100
+++ zsh-5.9/debian/rules 2022-11-02 10:35:22.000000000 +0100
@@ -158,6 +158,8 @@
xargs sed -e 's@\.\./config\.h@config.h@;s@#\(\s*\)include
"\([^"]\+\)"@#\1include <zsh/\2>@' -i
cd debian/zsh-dev/usr/share/aclocal; mv aczshoot.m4 zshoot.m4
+ install -D -m644 debian/zsh.shells
debian/zsh/usr/share/debianutils/shells.d/zsh
+ install -D -m644 debian/zsh-static.shells
debian/zsh-static/usr/share/debianutils/shells.d/zsh-static
override_dh_gencontrol-arch:
dh_gencontrol -a -- -VBuilt-Using="$(BUILT_USING)"
diff --minimal -Nru zsh-5.9/debian/zsh-static.postinst
zsh-5.9/debian/zsh-static.postinst
--- zsh-5.9/debian/zsh-static.postinst 2022-02-12 20:54:36.000000000 +0100
+++ zsh-5.9/debian/zsh-static.postinst 2022-11-02 10:33:49.000000000 +0100
@@ -4,9 +4,6 @@
case "$1" in
(configure)
-# if test -z "$2"; then
- add-shell /bin/zsh-static
-# fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --minimal -Nru zsh-5.9/debian/zsh-static.postrm
zsh-5.9/debian/zsh-static.postrm
--- zsh-5.9/debian/zsh-static.postrm 2022-02-12 20:54:36.000000000 +0100
+++ zsh-5.9/debian/zsh-static.postrm 1970-01-01 01:00:00.000000000 +0100
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-set -e
-
-case "$1" in
- (remove)
- remove-shell /bin/zsh-static
- ;;
-esac
-
-#DEBHELPER#
diff --minimal -Nru zsh-5.9/debian/zsh-static.shells
zsh-5.9/debian/zsh-static.shells
--- zsh-5.9/debian/zsh-static.shells 1970-01-01 01:00:00.000000000 +0100
+++ zsh-5.9/debian/zsh-static.shells 2022-11-02 10:33:46.000000000 +0100
@@ -0,0 +1 @@
+/bin/zsh-static
diff --minimal -Nru zsh-5.9/debian/zsh.postinst zsh-5.9/debian/zsh.postinst
--- zsh-5.9/debian/zsh.postinst 2022-02-12 20:54:36.000000000 +0100
+++ zsh-5.9/debian/zsh.postinst 2022-11-02 10:34:19.000000000 +0100
@@ -12,9 +12,6 @@
case "$1" in
(configure)
- add-shell /bin/zsh
- add-shell /usr/bin/zsh
-
# New hardcoded symlinks which unfortunately can't be shipped inside
# the package itself since some people want to merge /bin and /usr/bin
# against FHS and all Unix tradition.
diff --minimal -Nru zsh-5.9/debian/zsh.postrm zsh-5.9/debian/zsh.postrm
--- zsh-5.9/debian/zsh.postrm 2022-02-12 20:54:36.000000000 +0100
+++ zsh-5.9/debian/zsh.postrm 2022-11-02 10:34:27.000000000 +0100
@@ -4,9 +4,6 @@
case "$1" in
(remove)
- remove-shell /bin/zsh
- remove-shell /usr/bin/zsh
-
# Remove hardcoded symlink again
if [ -L /usr/bin/zsh ]; then
rm -f /usr/bin/zsh
diff --minimal -Nru zsh-5.9/debian/zsh.shells zsh-5.9/debian/zsh.shells
--- zsh-5.9/debian/zsh.shells 1970-01-01 01:00:00.000000000 +0100
+++ zsh-5.9/debian/zsh.shells 2022-11-02 10:34:14.000000000 +0100
@@ -0,0 +1,2 @@
+/bin/zsh
+/usr/bin/zsh
--- End Message ---
--- Begin Message ---
Source: zsh
Source-Version: 5.9-2
Done: Axel Beckert <a...@debian.org>
We believe that the bug you reported is fixed in the latest version of
zsh, 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 1023...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Axel Beckert <a...@debian.org> (supplier of updated zsh 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: Mon, 14 Nov 2022 01:38:14 +0100
Source: zsh
Architecture: source
Version: 5.9-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Zsh Maintainers <pkg-zsh-de...@lists.alioth.debian.org>
Changed-By: Axel Beckert <a...@debian.org>
Closes: 1023317
Changes:
zsh (5.9-2) unstable; urgency=medium
.
[ Helmut Grohne ]
* [8dff29f4] Update /etc/shells using dpkg triggers (Closes: #1023317)
.
[ Axel Beckert ]
* [4cda7bc3] Update Helmut's patch to use more debhelper style file
installing.
* [27ee5df9] Bracketize and update lintian overrides where needed.
Checksums-Sha1:
618716c919d3604057bdc80362f009b5a009f7c7 2838 zsh_5.9-2.dsc
81807d9514889b9803f1299d08cf2318713f37c9 92436 zsh_5.9-2.debian.tar.xz
6c1c3f38caadd6c791b09a3e575839731e2b8b27 7263 zsh_5.9-2_source.buildinfo
Checksums-Sha256:
25be5ca85d895dd7d690b241fec9d235ace21bc34c8605e4082cafb5c6647e73 2838
zsh_5.9-2.dsc
2ddc99809cadf17d4c9ccc002ca3fbbabd5ccd68892d7194064b4e6c386d717a 92436
zsh_5.9-2.debian.tar.xz
ca27d21fae987de7a0bfcdf20468bfc80a5142b7274cc8687df0256e2afb1aaf 7263
zsh_5.9-2_source.buildinfo
Files:
da7c56284c7866af4b100fcdc6db3888 2838 shells optional zsh_5.9-2.dsc
3cfe6aa57feb73044a6d5301b68dd31f 92436 shells optional zsh_5.9-2.debian.tar.xz
6e52e2996e2c10d2fa481d823aa86cd6 7263 shells optional
zsh_5.9-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEERoyJeTtCmBnp12Ema+Zjx1o1yXUFAmNxkzsACgkQa+Zjx1o1
yXU/AhAAgJsloWg/PXDWya6aCsc9vDiAoqRavjX+o9mZ+IKYT3JGjQ/M5OH7yvDW
JHbaR6DyRYrDx17/DW96wZs/IYJKJvlBlmYwhHF/hrjVJshNHX0CW4rWhBtmTHQW
kEuHwMw87t+agZ5iKSNnfsH8WPuSByjXDAZEj8vIe5S8FtzZtZAnpSmhSs6e/AIO
FeDmzXJgbLNVM2UBkdU6/lgh3ZmmTV1rv/kozDbkDqarQDw8ct0JCV+NuL4UPK0o
NEbmNs+mdekxwNj8dpevxumzw8zoV4RreX20Zd7dJ76WXjp7uaHO5iK/wGjZ6J6B
alGqpyPqcl7k+DIPVqHUBg+kxD2ona2+C8iVVPN5uG2bEAjh13aN6ENd4UBamjF1
YQgIbCv1haVsYdf/p2ER9+SKBLwwGRyeP5mT2miIoqN3SC140ytP98CiA9ycC1Zq
P8G5qOdbUu20Ip1kw+J3sSL+wgpWXZEydzYRWtUZU6KBqR7PpX5fqEjOYYs3BMa9
/JTMR9R02vv3l1OPcMedfTadulPANDZJaufe3VzVWydJbOP2PdVErlttmeMvrQuC
b8E2WiFbaFq1fmMMdqeCbIIZtMMfFT7PE+bgaBuiRhc5oMu4yex7EgqxYbtwHk97
N2ITuB+CfX/VZfGlcrs5kCvoLCXpUV9Ee31ICTnMQvxYk1t2IQU=
=LNQy
-----END PGP SIGNATURE-----
--- End Message ---