Package: libgranite-7-7
Version: 7.8.1-1
Severity: serious
Tags: patch
Justification: fails installing with a dpkg error
Control: affects -1 + src:minder
User: [email protected]
Usertags: ftcbfs

libgranite-7-7 fails to coinstall. It hits a rare case where apt and
dpkg disagree about dependencies. This is kinda undefined behavior
territory and libgranite-7-7 should not be exercising that.

| dpkg: dependency problems prevent configuration of libgranite-7-7:amd64:
|  libgranite-7-7:armhf (7.8.1-1) breaks libgranite7 and is unpacked but not 
configured.
|   libgranite-7-7:amd64 (7.8.1-1) provides libgranite7.
| 
| dpkg: error processing package libgranite-7-7:amd64 (--configure):
|  dependency problems - leaving unconfigured
| dpkg: dependency problems prevent configuration of libgranite-7-7:armhf:
|  libgranite-7-7:amd64 (7.8.1-1) breaks libgranite7 and is unpacked but not 
configured.
|   libgranite-7-7:armhf (7.8.1-1) provides libgranite7.
| 
| dpkg: error processing package libgranite-7-7:armhf (--configure):
|  dependency problems - leaving unconfigured

The root cause resides in a difference in how "Breaks" are interpreted.
apt thinks that Breaks against the own package only apply to the
particular instance. dpkg thinks that Breaks are implicitly qualified
":any" and thus match any other architecture.

It very much looks like dpkg's behavior is to stay. The combination of
Breaks + Provides + Multi-Arch used here is not supported. One of those
three fields must be changed.

One option of course is dropping Multi-Arch. It's the easy way out and
it also does not break anything that used to work until now.

Given the use of multiarch paths, I think it would actually be
sufficient if libgranite-7-7:ARCH were to break libgranite7:ARCH (i.e.
same architecture only). We can implement this by adding :${Arch} in the
control file. Please find a patch attached.

Helmut
diff --git a/debian/control b/debian/control
index 9c4eca0e..12fc532a 100644
--- a/debian/control
+++ b/debian/control
@@ -61,7 +61,7 @@ Depends:
  ${misc:Depends},
  ${shlibs:Depends},
 Breaks:
- libgranite7,
+ libgranite7:${Arch},
 Replaces:
  libgranite7,
 Provides:

Reply via email to