Your message dated Fri, 02 May 2025 03:20:54 +0000
with message-id <e1uagxk-003tsg...@fasolo.debian.org>
and subject line Bug#1104306: fixed in zutils 1.14-4
has caused the Debian Bug report #1104306,
regarding zutils: broken upgrade from bookworm due to /usr-move mitigations
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.)
--
1104306: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104306
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: zutils
Version: 1.14-3
Severity: serious
User: helm...@debian.org
Usertags: dep17
Control: owner -1 !
X-Debbugs-Cc: hol...@debian.org, de...@lists.debian.org
Hi Daniel,
I am sorry to tell you that the brittle /usr-move mitigations broke
again. Holger made me aware of a bookworm to trixie upgrade failure. It
can easily be reproduced.
mmdebstrap bookworm /dev/null http://deb.debian.org/debian --include=zutils
--chrooted-customize-hook='sed -i -e s/bookworm/trixie/ /etc/apt/sources.list
&& apt-get update && apt-get -y install zutils
| dpkg: considering removing zutils in favour of gzip ...
| dpkg: yes, will remove zutils in favour of gzip
| (Reading database ... 10911 files and directories currently installed.)
| Preparing to unpack .../archives/gzip_1.13-1_amd64.deb ...
| Mitigating diversion of /bin/zcat on behalf of zutils
| Adding 'diversion of /usr/bin/zcat to /usr/bin/zcat.usr-is-merged by zutils'
| Mitigating diversion of /bin/zcmp on behalf of zutils
| Adding 'diversion of /usr/bin/zcmp to /usr/bin/zcmp.usr-is-merged by zutils'
| Mitigating diversion of /bin/zdiff on behalf of zutils
| Adding 'diversion of /usr/bin/zdiff to /usr/bin/zdiff.usr-is-merged by zutils'
| Mitigating diversion of /bin/zegrep on behalf of zutils
| Adding 'diversion of /usr/bin/zegrep to /usr/bin/zegrep.usr-is-merged by
zutils'
| Mitigating diversion of /bin/zfgrep on behalf of zutils
| Adding 'diversion of /usr/bin/zfgrep to /usr/bin/zfgrep.usr-is-merged by
zutils'
| Mitigating diversion of /bin/zgrep on behalf of zutils
| Adding 'diversion of /usr/bin/zgrep to /usr/bin/zgrep.usr-is-merged by zutils'
| Unpacking gzip (1.13-1) over (1.12-1) ...
apt opts for unpacking trixie's gzip before unpacking a new zutils.
That's fine.
| Removing zutils (1.12-2), to allow configuration of gzip (1.13-1) ...
apt observes that the upgraded gzip Conflicts with the installed zutils
and therefore removes it.
| Selecting previously unselected package zutils.
| Preparing to unpack .../zutils_1.14-3_amd64.deb ...
Rather than configuring gzip, it now heads to installing the upgraded
zutils.
| dpkg-divert: error: 'diversion of /usr/bin/zcat to /usr/bin/zcat.gzip by
zutils' clashes with 'diversion of /usr/bin/zcat to /usr/bin/zcat.usr-is-merged
by zutils'
| dpkg: error processing archive
/var/cache/apt/archives/zutils_1.14-3_amd64.deb (--unpack):
| new zutils package pre-installation script subprocess returned error exit
status 2
| Errors were encountered while processing:
| /var/cache/apt/archives/zutils_1.14-3_amd64.deb
| E: Sub-process /usr/bin/dpkg returned an error code (1)
zutils.preinst from trixie is faced with what looks like a fresh install
as /bin/zcat is not diverted, but gzip's diversion of /usr/bin/zcat
still exists, as gzip has not been configured.
My vague memory is that this used to work differently and note that apt
switched to the 3.0 solver fairly recently.
If apt were to actually configure gzip after removing zutils,
gzip.postinst would be removing the .usr-is-merged diversions and we
were not having this problem.
If apt were to upgrade zutils rather than removing and installing it,
the zutils.preinst script were noticing the old diversion and correctly
handling the protective diversions installed by gzip.
What it is not prepared to handle is being removed and then reinstalled
in that window between gzip being unpacked and configured where those
protective diversions exist.
I will provide a patch, but not immediately, because I've gotten this
wrong so many times already.
Helmut
--- End Message ---
--- Begin Message ---
Source: zutils
Source-Version: 1.14-4
Done: Daniel Baumann <dan...@debian.org>
We believe that the bug you reported is fixed in the latest version of
zutils, 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 1104...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Daniel Baumann <dan...@debian.org> (supplier of updated zutils 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, 02 May 2025 04:32:33 +0200
Source: zutils
Architecture: source
Version: 1.14-4
Distribution: sid
Urgency: medium
Maintainer: Daniel Baumann <dan...@debian.org>
Changed-By: Daniel Baumann <dan...@debian.org>
Closes: 1104306
Changes:
zutils (1.14-4) sid; urgency=medium
.
* Applying patch from Helmut Grohne <hel...@subdivi.de> to fix broken
upgrade from bookworm due to /usr-move mitigations (Closes: #1104306).
Checksums-Sha1:
486ec51568f90f03cdf60153c3d515faf5f574ea 1203 zutils_1.14-4.dsc
64f3beb828a88111a921d65e52b3b8b89831da5c 8392 zutils_1.14-4.debian.tar.xz
df8013ea286562f32447dae735ab2b6757cb22d4 5666 zutils_1.14-4_amd64.buildinfo
Checksums-Sha256:
4119ed81ed3e84d21de00d97f2eeda5b7a6969c4b93f53e9f0ea768dad19470a 1203
zutils_1.14-4.dsc
8b4e0b5d6beeb50627df79ee0a648ea3ee488706681f72f2fcc353a33d2f6c76 8392
zutils_1.14-4.debian.tar.xz
dcff456bef17772ea6d08130c06c3af3ee57efd7f44ade0602a8805e4a061502 5666
zutils_1.14-4_amd64.buildinfo
Files:
e416db265fd5cb51f908cd6200526b91 1203 utils optional zutils_1.14-4.dsc
cb3969b9c342db229d34cdf4d8e27305 8392 utils optional
zutils_1.14-4.debian.tar.xz
114a8db382bb61357a88e22bb933b90c 5666 utils optional
zutils_1.14-4_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQQmmGg4gLaoSj0ERgL7tPDoCoAiLwUCaBQvAgAKCRD7tPDoCoAi
LwueAQCiE8FgThVgpsCOIvZzsV9KJqHX/J6/s/4HpLuvGkkp/gEAhPzore2+U4ws
WkKdGaOftLzMlvGKPZrmX9ClSnJlLAo=
=K8wF
-----END PGP SIGNATURE-----
pgpVg6Wrrimrs.pgp
Description: PGP signature
--- End Message ---