Debian Bug report logs -
#992782
virt-p2v: stores wrong path to sed if built on merged-/usr system
Reported by: Simon McVittie <smcv@debian.org>
Date: Mon, 23 Aug 2021 11:06:01 UTC
Severity: important
Tags: bookworm, patch, sid
Found in version virt-p2v/1.42.0-2
Fixed in version virt-p2v/1.42.0-3
Done: Hilko Bengen <bengen@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Hilko Bengen <bengen@debian.org>:
Bug#992782; Package src:virt-p2v.
(Mon, 23 Aug 2021 11:06:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Simon McVittie <smcv@debian.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Hilko Bengen <bengen@debian.org>.
(Mon, 23 Aug 2021 11:06:03 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: virt-p2v
Version: 1.42.0-2
Severity: important
Tags: patch bookworm sid
User: reproducible-builds@lists.alioth.debian.org
Usertags: usrmerge
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
If virt-p2v is built on a merged-/usr system (as created by new
installations of Debian >= 10, debootstrap --merged-usr, or installing
the usrmerge package into an existing installation), the path to sed
is recorded in the binary package as /usr/bin/sed, rather than the
canonical /bin/sed.
This can be seen on the reproducible-builds.org infra:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/virt-p2v.html
If you have sbuild available, an easy way to reproduce this is to build
twice, once with --add-depends=usrmerge and once without.
I suspect the same thing would happen if virt-p2v was built on a system
where /bin and /usr/bin had instead been unified via a symlink farm.
The problematic situation is if the package is *built* on a unified-/usr
system, but *used* on a non-unified-/usr system. In this situation,
/usr/bin/sed exists on the build system but not on the system where
virt-p2v will be used, resulting in the features that use this
executable not working correctly.
Technical Committee resolution #978636 mandates heading towards a
transition to merged-/usr, and this will become a non-issue at the end of
that transition; but variation between merged-/usr and non-merged-/usr
builds is a problem while that transition is taking place, because it
can lead to partial upgrades behaving incorrectly. It is likely that
this class of bugs will become release-critical later in the bookworm
development cycle.
The attached patch resolves this: with it applied, the package builds
identically with and without --add-depends=usrmerge.
Some developers advocate unifying /bin with /usr/bin via a symlink farm
in /bin instead of merged-/usr, but that strategy would have a similar
practical effect on this particular package, and the same solution would
be required.
A side benefit of fixing this is that this change seems likely to be
sufficient to make the package reproducible (as recommended by Policy
§4.15).
smcv
[0001-d-rules-Specify-canonical-path-to-sed.patch (text/x-diff, attachment)]
Reply sent
to Hilko Bengen <bengen@debian.org>:
You have taken responsibility.
(Sat, 25 Dec 2021 21:51:06 GMT) (full text, mbox, link).
Notification sent
to Simon McVittie <smcv@debian.org>:
Bug acknowledged by developer.
(Sat, 25 Dec 2021 21:51:06 GMT) (full text, mbox, link).
Message #10 received at 992782-done@bugs.debian.org (full text, mbox, reply):
control: fixed -1 1.42.0-3
I had applied this fix but never closed the bug.
Information forwarded
to debian-bugs-dist@lists.debian.org, Hilko Bengen <bengen@debian.org>:
Bug#992782; Package src:virt-p2v.
(Sat, 25 Dec 2021 22:21:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Simon McVittie <smcv@debian.org>:
Extra info received and forwarded to list. Copy sent to Hilko Bengen <bengen@debian.org>.
(Sat, 25 Dec 2021 22:21:05 GMT) (full text, mbox, link).
Message #15 received at 992782@bugs.debian.org (full text, mbox, reply):
Control: fixed -1 1.42.0-3
On Sat, 25 Dec 2021 at 21:51:06 +0000, Debian Bug Tracking System forwarded:
> control: fixed -1 1.42.0-3
>
> I had applied this fix but never closed the bug.
Thanks!
Mail to the -done address doesn't read Control: pseudo-headers, so this
wasn't marked as fixed in 1.42.0-3, only as fixed in an unspecified version.
This mail should resolve that.
FYI, the way to mark a bug as fixed in a particular version without using
d/changelog is to use the Version: pseudo-header in preference to Control:
To: nnnnnn-done@
Version: 1.42.0-3
explanation here
Season's greetings,
smcv
Marked as fixed in versions virt-p2v/1.42.0-3.
Request was from Simon McVittie <smcv@debian.org>
to 992782-submit@bugs.debian.org.
(Sat, 25 Dec 2021 22:21:05 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 28 Jan 2022 07:28:09 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed May 17 12:04:01 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.