Package: libgstreamer1.0-dev
Version: 1.18.3-2
Severity: serious
Tags: patch

Hi,

when adding the code to clean up the obsolete diversions (#981203)
I forgot to add a conflict against libgstreamer0.10-dev which shipped
the files that were diverted. That package was last seen in jessie,
but may still be lingering around on long grown systems which will
cause this error:

  Setting up libgstreamer1.0-dev:amd64 (1.18.4-2) ...
  Removing 'diversion of /usr/bin/dh_gstscancodecs to 
/usr/bin/dh_gstscancodecs-gst0.10 by libgstreamer1.0-dev'
  dpkg-divert: error: rename involves overwriting '/usr/bin/dh_gstscancodecs' 
with
    different file '/usr/bin/dh_gstscancodecs-gst0.10', not allowed
  dpkg: error processing package libgstreamer1.0-dev:amd64 (--configure):
   installed libgstreamer1.0-dev:amd64 package post-installation script 
subprocess returned error exit status 2


Andreas
>From 68301527dfa948c380d4401b15b74bad0d6d6da7 Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <a...@debian.org>
Date: Tue, 29 Jun 2021 18:54:21 +0200
Subject: [PATCH] libgstreamer1.0-dev: add Conflicts: libgstreamer0.10-dev

---
 debian/changelog | 7 +++++++
 debian/control   | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 1c5d33b6..df3eb6a5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+gstreamer1.0 (1.18.4-3) UNRELEASED; urgency=medium
+
+  * libgstreamer1.0-dev: Add Conflicts: libgstreamer0.10-dev to ensure the
+    diverted file is gone before the diversion is removed.
+
+ -- Andreas Beckmann <a...@debian.org>  Tue, 29 Jun 2021 18:52:34 +0200
+
 gstreamer1.0 (1.18.4-2) unstable; urgency=medium
 
   * Upload to unstable.
diff --git a/debian/control b/debian/control
index a5954eb2..90c1e483 100644
--- a/debian/control
+++ b/debian/control
@@ -65,7 +65,7 @@ Depends: libgstreamer1.0-0 (= ${binary:Version}),
          ${shlibs:Depends},
          ${misc:Depends},
          gir1.2-gstreamer-1.0 (= ${binary:Version})
-Conflicts: libgstreamer-plugins-bad1.0-dev (<< 1.13.1)
+Conflicts: libgstreamer-plugins-bad1.0-dev (<< 1.13.1), libgstreamer0.10-dev
 Replaces: libgstreamer-plugins-bad1.0-dev (<< 1.13.1)
 Suggests: gstreamer1.0-doc
 Description: GStreamer core development files
-- 
2.20.1

Attachment: libgstreamer-ocaml-dev_0.3.0-2+b1.log.gz
Description: application/gzip

Reply via email to