From be3a5105d09d38ce1d9b174ae6bdd0a24c542b9f Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 8 Feb 2023 16:11:32 +0100 Subject: [PATCH] debian/control: replace, conflict: osmo-libasn1c In debian, this Osmocom fork of libasn1c is packaged as osmo-libasn1c. Add related Replaces: and Conflicts: to debian/control, so there is no error when installing osmo-libasn1c from Debian first, then configuring the Osmocom package repositories and trying to install libasn1c from there. Fix for: Preparing to unpack .../08-libasn1c1_0.9.34.1.71cb.202302010006_amd64.deb ... Unpacking libasn1c1:amd64 (0.9.34.1.71cb.202302010006) ... dpkg: error processing archive /tmp/apt-dpkg-install-8zK3sm/08-libasn1c1_0.9.34.1.71cb.202302010006_amd64.deb (--unpack): trying to overwrite '/usr/lib/x86_64-linux-gnu/libasn1c.so.1.0.1', which is also in package osmo-libasn1c1:amd64 0.9.32-1+b1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Related: OS#5318 Related: https://salsa.debian.org/debian-mobcom-team/osmo-libasn1c/-/blob/master/debian/control Related: https://osmocom.org/projects/cellular-infrastructure/wiki/Binary_Packages Change-Id: I5116df35b5819c22a184057cdf6ed756974d6388 --- debian/control | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/control b/debian/control index 3b392be..8b71f81 100644 --- a/debian/control +++ b/debian/control @@ -1,4 +1,6 @@ Source: libasn1c +Conflicts: osmo-libasn1c +Replaces: osmo-libasn1c Section: libs Priority: extra Maintainer: Osmocom team @@ -11,6 +13,8 @@ Vcs-Browser: http://git.osmocom.org/gitweb?p=libasn1c.git;a=summary Homepage: https://projects.osmocom.org/projects/libasn1c Package: libasn1c1 +Conflicts: osmo-libasn1c1 +Replaces: osmo-libasn1c1 Section: libs Architecture: any Multi-Arch: same @@ -19,6 +23,8 @@ Depends: ${misc:Depends}, ${shlibs:Depends} Description: asn1c runtime code as shared library Package: libasn1c-dbg +Conflicts: osmo-libasn1c-dbg +Replaces: osmo-libasn1c-dbg Section: debug Architecture: any Multi-Arch: same @@ -26,6 +32,8 @@ Depends: libasn1c1 (= ${binary:Version}), ${misc:Depends} Description: asn1c runtime code as shared library Package: libasn1c-dev +Conflicts: osmo-libasn1c-dev +Replaces: osmo-libasn1c-dev Section: libdevel Architecture: any Multi-Arch: same