Discussion:
Bug#910959: grub-cloud-amd64: missing Conflicts: grub-coreboot, grub-efi-ia32, grub-ieee1275, grub-xen
Andreas Beckmann
2018-10-13 19:33:26 UTC
Permalink
Package: grub-cloud-amd64
Version: 0.0.1
Severity: serious
User: ***@debian.org
Usertags: edos-file-overwrite

Hi,

automatic installation tests of packages that share a file and at the
same time do not conflict by their package dependency relationships has
detected the following problem:

Selecting previously unselected package grub-cloud-amd64.
Preparing to unpack .../6-grub-cloud-amd64_0.0.1_amd64.deb ...
Unpacking grub-cloud-amd64 (0.0.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-5Ao0pQ/6-grub-cloud-amd64_0.0.1_amd64.deb (--unpack):
trying to overwrite '/etc/kernel/postinst.d/zz-update-grub', which is also in package grub-coreboot 2.02+dfsg1-6

It's a bit unfortunate that the grub packages don't use
Provides+Conflicts+Replaces on a virtual package to ensure
only variant is installed. So you'll have to list all the packages
in your Conflicts.

Here is a list of files that are known to be shared by both packages
(according to the Contents file for sid/amd64, which may be
slightly out of sync):

etc/kernel/postinst.d/zz-update-grub
etc/kernel/postrm.d/zz-update-grub

This bug is assigned to both packages. If you, the maintainers of
the two packages in question, have agreed on which of the packages will
resolve the problem please reassign the bug to that package. You may
also register in the BTS that the other package is affected by the bug.

Cheers,

Andreas

PS: for more information about the detection of file overwrite errors
of this kind see https://qa.debian.org/dose/file-overwrites.html
Bastian Blank
2018-10-14 16:07:19 UTC
Permalink
Control: reassign -1 src:grub,grub-cloud-amd64

Hi Andreas
Post by Andreas Beckmann
This bug is assigned to both packages. If you, the maintainers of
the two packages in question, have agreed on which of the packages will
resolve the problem please reassign the bug to that package. You may
also register in the BTS that the other package is affected by the bug.
You forget to actually assign it to both. Let's fix that first.

Bastian
--
"Life and death are seldom logical."
"But attaining a desired goal always is."
-- McCoy and Spock, "The Galileo Seven", stardate 2821.7
Debian Bug Tracking System
2018-10-14 16:18:04 UTC
Permalink
Post by Bastian Blank
reassign -1 src:grub,grub-cloud-amd64
Bug #910959 [grub-cloud-amd64] grub-cloud-amd64: missing Conflicts: grub-coreboot, grub-efi-ia32, grub-ieee1275, grub-xen
Bug reassigned from package 'grub-cloud-amd64' to 'src:grub,grub-cloud-amd64'.
No longer marked as found in versions grub-cloud/0.0.1.
Ignoring request to alter fixed versions of bug #910959 to the same values previously set
--
910959: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910959
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Bastian Blank
2018-10-14 16:40:44 UTC
Permalink
Hi grub maintainers
Post by Andreas Beckmann
Here is a list of files that are known to be shared by both packages
(according to the Contents file for sid/amd64, which may be
etc/kernel/postinst.d/zz-update-grub
etc/kernel/postrm.d/zz-update-grub
Is there are particular compelling reason why this files needs to be
duplicated in all grub-* packages, instead of residing in
grub(2)-common? They are not even different from each other.

Given that it seems like this conflict is the only reason why two
variants are not cross-installable.

Bastian
--
Well, Jim, I'm not much of an actor either.
Bastian Blank
2018-10-22 18:29:34 UTC
Permalink
Hi grub maintainers
Post by Bastian Blank
Post by Andreas Beckmann
Here is a list of files that are known to be shared by both packages
(according to the Contents file for sid/amd64, which may be
etc/kernel/postinst.d/zz-update-grub
etc/kernel/postrm.d/zz-update-grub
Is there are particular compelling reason why this files needs to be
duplicated in all grub-* packages, instead of residing in
grub(2)-common? They are not even different from each other.
No answer is also an answer. So there is no real reason.
Post by Bastian Blank
Given that it seems like this conflict is the only reason why two
variants are not cross-installable.
Attached is a patch to move the two files to grub2-common. I intend to
upload this in a few days.

Bastian
--
Where there's no emotion, there's no motive for violence.
-- Spock, "Dagger of the Mind", stardate 2715.1
Colin Watson
2018-10-22 19:02:27 UTC
Permalink
Post by Bastian Blank
Post by Bastian Blank
Post by Andreas Beckmann
Here is a list of files that are known to be shared by both packages
(according to the Contents file for sid/amd64, which may be
etc/kernel/postinst.d/zz-update-grub
etc/kernel/postrm.d/zz-update-grub
Is there are particular compelling reason why this files needs to be
duplicated in all grub-* packages, instead of residing in
grub(2)-common? They are not even different from each other.
No answer is also an answer. So there is no real reason.
After a week? Sometimes people are busy. Your inference is invalid.
Post by Bastian Blank
Post by Bastian Blank
Given that it seems like this conflict is the only reason why two
variants are not cross-installable.
Attached is a patch to move the two files to grub2-common. I intend to
upload this in a few days.
While I acknowledge that this bug is RC, it isn't an emergency and I
don't think you need to do this. I will consider your patch but have
been busy on a project at work that has a deadline of Wednesday, so
please hold off as if this patch is wrong it will be complicated to
unwind properly. I promise I'll look at it ASAP after Wednesday.
--
Colin Watson [***@debian.org]
Debian Bug Tracking System
2018-10-27 12:09:10 UTC
Permalink
tag -1 pending
Bug #910959 [src:grub2,grub-cloud-amd64] grub-cloud-amd64: missing Conflicts: grub-coreboot, grub-efi-ia32, grub-ieee1275, grub-xen
Added tag(s) pending.
--
910959: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910959
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Debian Bug Tracking System
2018-10-27 12:21:05 UTC
Permalink
Your message dated Sat, 27 Oct 2018 12:19:11 +0000
with message-id <E1gGNYd-000ARZ-***@fasolo.debian.org>
and subject line Bug#910959: fixed in grub2 2.02+dfsg1-7
has caused the Debian Bug report #910959,
regarding grub-cloud-amd64: missing Conflicts: grub-coreboot, grub-efi-ia32, grub-ieee1275, grub-xen
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 ***@bugs.debian.org
immediately.)
--
910959: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910959
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...