Your message dated Fri, 24 Nov 2023 14:47:08 +0000
with message-id <[email protected]>
and subject line Bug#1053657: fixed in dhcpcd5 9.4.1-24~deb12u3
has caused the Debian Bug report #1053657,
regarding dhcpcd-base has ineffective Replaces due to /usr-merge and looses
files in 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 [email protected]
immediately.)
--
1053657: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053657
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dhcpcd-base
Version: 9.4.1-24~deb12u2
Severity: serious
Justification: file loss during upgrade
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: dep17p1
Unfortunately, the stable update of dhcpcd5 introduced a regression
relevant to upgrades from bullseye. The bullseye dhcpcd5 package
contained the files
- /lib/dhcpcd/dhcpcd-hooks/01-test
- /lib/dhcpcd/dhcpcd-hooks/20-resolv.conf
- /lib/dhcpcd/dhcpcd-hooks/30-hostname
- /lib/dhcpcd/dhcpcd-hooks/60-ntp-common.conf
- /lib/dhcpcd/dhcpcd-hooks/62-chrony.conf
- /lib/dhcpcd/dhcpcd-hooks/64-timesyncd.conf
- /lib/dhcpcd/dhcpcd-hooks/68-openntpd.conf
- /lib/dhcpcd/dhcpcd-run-hooks
and these have been moved into dhcpcd-base in that particular stable
update. The update correctly declares Replaces for this. Unfortunately,
it also moves these files from /lib to /usr/lib. Therefore, the declared
Replaces have no effect (regarding these files) and as a consequence, an
upgrade may delete the affected files. Fortunately, a very simple
upgrade from bullseye to bookworm with only dhcpcd5 installed unpacks
the new dhcpcd5 package before unpacking dhcpcd-base and therefore the
issue is not trivially reproducible and probably does not affect the
majority of users. We cannot rule out other upgrade scenarios though and
we can also construct a breaking scenario using mmdebstrap.
mmdebstrap bullseye /dev/null --variant=apt --include dhcpcd5
--chrooted-customize-hook='sed -i -e s/bullseye/bookworm/ /etc/apt/sources.list
&& apt update && apt-get install -y libc6 usrmerge && apt-get download
dhcpcd-base && dpkg --auto-deconfigure --unpack ./dhcpcd-base_*.deb && dpkg -r
dhcpcd5 && ls /usr/lib/dhcpcd/dhcpcd-hooks'
If you run this, it ends with:
| Selecting previously unselected package dhcpcd-base.
| dpkg: considering deconfiguration of dhcpcd5, which would be broken by
installation of dhcpcd-base ...
| dpkg: yes, will deconfigure dhcpcd5 (broken by dhcpcd-base)
| (Reading database ... 6731 files and directories currently installed.)
| Preparing to unpack .../dhcpcd-base_9.4.1-24~deb12u2_amd64.deb ...
| De-configuring dhcpcd5 (7.1.0-2+b1) ...
| Unpacking dhcpcd-base (9.4.1-24~deb12u2) ...
| Replacing files in old package dhcpcd5 (7.1.0-2+b1) ...
| (Reading database ... 6752 files and directories currently installed.)
| Removing dhcpcd5 (7.1.0-2+b1) ...
| ls: cannot access '/usr/lib/dhcpcd/dhcpcd-hooks': No such file or directory
This kind of problem has been categorized in the
https://subdivi.de/~helmut/dep17.html as P1 and the recommended
mitigation M7 is changing Breaks+Replaces to Conflicts. I think this
mitigation is fully applicable here, because apt will by default unpack
the updated dhcpcd5 package first and then the conflict is resolved. The
additional constraint is satisfied by the default solution of apt.
I am not sure why dhcpcd-base has moved these files from / to /usr in
violation of the file move moratorium that was meant to prevent
precisely this kind of bug. In any case, please do *not* move them back
as that could cause further trouble.
I'm sorry for not having spotted this before the point release and will
now monitor stable p-u suites for similar problems to raise this
earlier. Can I assume that a package sits in p-u for at least three days
before migrating to a stable release?
Helmut
--- End Message ---
--- Begin Message ---
Source: dhcpcd5
Source-Version: 9.4.1-24~deb12u3
Done: Martin-Éric Racine <[email protected]>
We believe that the bug you reported is fixed in the latest version of
dhcpcd5, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Martin-Éric Racine <[email protected]> (supplier of updated dhcpcd5
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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Fri, 20 Oct 2023 11:12:13 +0300
Source: dhcpcd5
Architecture: source
Version: 9.4.1-24~deb12u3
Distribution: bookworm
Urgency: medium
Maintainer: Martin-Éric Racine <[email protected]>
Changed-By: Martin-Éric Racine <[email protected]>
Closes: 1053657
Changes:
dhcpcd5 (9.4.1-24~deb12u3) bookworm; urgency=medium
.
* Move Breaks/Replaces dhcpcd5 (<< 9.4.1-2) to Conflicts (Closes: #1053657).
* Update dhcpcd.preinst version check.
Checksums-Sha1:
a06db8dbeec02c9a3f8058a764d3a06aeceb1c6f 2103 dhcpcd5_9.4.1-24~deb12u3.dsc
bb7978b4550b48c42c020cf0e3eee8bfba570f6d 23688
dhcpcd5_9.4.1-24~deb12u3.debian.tar.xz
ebed400bcf6b8367c091bb608b82cf0bd6f889da 6811
dhcpcd5_9.4.1-24~deb12u3_amd64.buildinfo
Checksums-Sha256:
fa04009f6f14ae45120e748b8d56f2952b561c48eefdeb0ef5e1818958160ac1 2103
dhcpcd5_9.4.1-24~deb12u3.dsc
08fa413bf46d3588b9f31bfc2b49bbf08eec847d9a9936ab7d16931776749f19 23688
dhcpcd5_9.4.1-24~deb12u3.debian.tar.xz
3bb9014ddc6b0bfc39863bec53465d3a78652a549647c08afbf8cbafff84c9dc 6811
dhcpcd5_9.4.1-24~deb12u3_amd64.buildinfo
Files:
d9a70f62a94b272947a2b2efa054a716 2103 net optional dhcpcd5_9.4.1-24~deb12u3.dsc
06e357fe7bf6e5d3a4a01af682580c3a 23688 net optional
dhcpcd5_9.4.1-24~deb12u3.debian.tar.xz
51d5554858aa7a284728991c0b3afe3c 6811 net optional
dhcpcd5_9.4.1-24~deb12u3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEETMLS2QqNFlTb+HOqLRqqzyREREIFAmVbkEoACgkQLRqqzyRE
REKMGhAAnFShQzA0fN4+QwNu8P+rK0gnKeyMYQUNDBCE6F32JOTuWLaClw5aHqiD
pSTU5vPANgIQcc6GgCpKEhkxQZQSGh2DwXx/o4/bEPzwKBn/B3gKZldOlhjb5BLk
TMorAlZS1riSuZNgJi9sor1AMWKKoVHuwEfh9OLSXjzy+g9IeAlZaVbA8o4ORroe
LqDBMZfcuJxZxuPCHYntJFqKDpWnFRtfOKwiKCxtHTGC5L5U3l3tcK9MH17rnDle
VAcdTjzUnKC1sLvzX4Nlb662semU+ANGdPg+SvJLXq/KSAirFgTve7BvRig6gmxB
w4xWpp4Zvi2QRoDhKxynGVKJfM1Yp7b6QegXSHPj/fjsITunhMxFRmjRo8T5v/LP
9+a8fTb3graXmGNu4Y+jMjW6MXj9QcH8eFGlDfM4lnm0uBeASBkZc5uus3B+adcG
wcheI9RBsVDr0h2az29hPsIVaoPXu3nY8WUpuc/oGJVClDYyxk21ir22xsWQOynx
HreOWx+dNl5wSG6jaMJE6UbmE0DY6yQUFgpbb6U9FwUMT+2V5XwoQk+rGycE2URy
Sdc5IQe+vtYJBxHYkTkRDBnc2IfMRNfnLNMp8xs8IOn5tY2/CtYYei4Kec6CGSXP
F9sQ/ObSyQ2U41I54ZIR3QOEQTfDTX0se87h9H19Rn3I/hF7tG4=
=Clee
-----END PGP SIGNATURE-----
--- End Message ---