diff mbox

[rdma-core,5/5] debian: Use versioned Breaks & Replaces for ibverbs-providers

Message ID 20180507115228.32151-6-benjamin.drung@profitbricks.com (mailing list archive)
State Accepted
Delegated to: Jason Gunthorpe
Headers show

Commit Message

Benjamin Drung May 7, 2018, 11:52 a.m. UTC
The ibverbs-providers package replaces the previously existing
individual packages libcxgb3-1, libipathverbs1, libmlx4-1, libmlx5-1,
libmthca1, and libnes1. Trying to install the amd64 and i386 versions of
this package results in the following error:

```
# apt-get install ibverbs-providers:amd64 ibverbs-providers:i386
[...]
Unpacking ibverbs-providers:i386 (17.1-1) ...
Processing triggers for libc-bin (2.27-3) ...
dpkg: dependency problems prevent configuration of
ibverbs-providers:i386:
 ibverbs-providers:amd64 (17.1-1) breaks libcxgb3-1 and is installed.
  ibverbs-providers:i386 (17.1-1) provides libcxgb3-1.
 ibverbs-providers:amd64 (17.1-1) breaks libipathverbs1 and is installed.
  ibverbs-providers:i386 (17.1-1) provides libipathverbs1.
 ibverbs-providers:amd64 (17.1-1) breaks libmlx4-1 and is installed.
  ibverbs-providers:i386 (17.1-1) provides libmlx4-1.
 ibverbs-providers:amd64 (17.1-1) breaks libmlx5-1 and is installed.
  ibverbs-providers:i386 (17.1-1) provides libmlx5-1.
 ibverbs-providers:amd64 (17.1-1) breaks libmthca1 and is installed.
  ibverbs-providers:i386 (17.1-1) provides libmthca1.
 ibverbs-providers:amd64 (17.1-1) breaks libnes1 and is installed.
  ibverbs-providers:i386 (17.1-1) provides libnes1.

dpkg: error processing package ibverbs-providers:i386 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 ibverbs-providers:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

Therefore add versions to Breaks & Replaces to only replace the old
packages before rdma-core took over these package names (with the
declared Provides).

Debian-Bug: https://bugs.debian.org/898055
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
---
 debian/control | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/debian/control b/debian/control
index a5443c51..340e8ec9 100644
--- a/debian/control
+++ b/debian/control
@@ -64,8 +64,18 @@  Architecture: linux-any
 Multi-Arch: same
 Depends: ${misc:Depends}, ${shlibs:Depends}
 Provides: libcxgb3-1, libipathverbs1, libmlx4-1, libmlx5-1, libmthca1, libnes1
-Replaces: libcxgb3-1, libipathverbs1, libmlx4-1, libmlx5-1, libmthca1, libnes1
-Breaks: libcxgb3-1, libipathverbs1, libmlx4-1, libmlx5-1, libmthca1, libnes1
+Replaces: libcxgb3-1 (<< 15),
+          libipathverbs1 (<< 15),
+          libmlx4-1 (<< 15),
+          libmlx5-1 (<< 15),
+          libmthca1 (<< 15),
+          libnes1 (<< 15)
+Breaks: libcxgb3-1 (<< 15),
+        libipathverbs1 (<< 15),
+        libmlx4-1 (<< 15),
+        libmlx5-1 (<< 15),
+        libmthca1 (<< 15),
+        libnes1 (<< 15)
 Description: User space provider drivers for libibverbs
  libibverbs is a library that allows userspace processes to use RDMA
  "verbs" as described in the InfiniBand Architecture Specification and