Bug#1036073: libtbb12: please add Breaks against libtbb2 for smoother upgrades from bullseye

Andreas Beckmann anbe at debian.org
Mon May 15 02:25:50 BST 2023


Package: libtbb12
Version: 2021.8.0-1
Severity: serious
Tags: patch
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

libtbb2 from bullseye and libtbb12 from bookworm are not co-installable
due to libtbbmalloc2. But such transitive conflicts are sometimes hard
for apt to figure out correctly, and instead it tries to keep obsolete
packages installed and upgradable packages at the older version.
Turning the transitive conflict on a lower scoring package) into an
explicit one (on a package with a higher score) makes apt to the right
thing: remove (a stack of) obsolete library packages in order toinstall
new ones and upgrade dependencies.

Please consider applying the attached patch.


Andreas

(unless someone beats me to it, I'll take care of this one)
-------------- next part --------------
>From dc76321a128d4defcc1e77d0f5712743b8b4f84b Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <anbe at debian.org>
Date: Mon, 8 May 2023 19:33:51 +0200
Subject: [PATCH] libtbb12: add explicit Breaks against libtbb2

---
 debian/changelog | 8 ++++++++
 debian/control   | 2 ++
 2 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7aa18445..f0b2b28a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+onetbb (2021.8.0-2) UNRELEASED; urgency=medium
+
+  * libtbb12: Add explicit Breaks against libtbb2 for smoother upgrades from
+    bullseye. The the existing transitive Breaks via libtbbmalloc2 is not
+    sufficient for all upgrade paths.  (Closes: #)
+
+ -- Andreas Beckmann <anbe at debian.org>  Mon, 08 May 2023 19:29:28 +0200
+
 onetbb (2021.8.0-1) unstable; urgency=medium
 
   * New upstream version 2021.8.0
diff --git a/debian/control b/debian/control
index 81ee5679..9f5dbeb1 100644
--- a/debian/control
+++ b/debian/control
@@ -48,6 +48,8 @@ Depends: libtbbmalloc2 (= ${binary:Version}),
          ${shlibs:Depends},
          ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
+Breaks:
+ libtbb2 (<< 2021),
 Description: parallelism library for C++ - runtime files
  TBB is a library that helps you leverage multi-core processor
  performance without having to be a threading expert. It represents a
-- 
2.20.1



More information about the debian-science-maintainers mailing list