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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx>
---
 debian/control | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

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
-- 
2.17.0

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux