From 17a5b23e97288408e73b698c81f6ca60c7f12f03 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Wed, 12 Apr 2023 13:35:59 +0200 Subject: [PATCH] Force the replacement of new Ubuntu packages introduced in https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-15/+bug/2008755 --- debian/changelog | 2 ++ debian/rules | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/debian/changelog b/debian/changelog index ca9f9a2a..575a09ef 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ llvm-toolchain-15 (1:15.0.7-5) unstable; urgency=medium * Remove old code to manage Debian stretch + * Force the replacement of new Ubuntu packages introduced in + https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-15/+bug/2008755 -- diff --git a/debian/rules b/debian/rules index 22b8c896..df3acdd8 100755 --- a/debian/rules +++ b/debian/rules @@ -535,6 +535,15 @@ preconfigure: fi; \ fi + # workaround the breaks/replaces/conflicts + # https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-15/+bug/2008755 + # Yeah, this is ugly but I don't know how to do better + if test "$(DISTRO)" = "jammy" -o "$(DISTRO)" = "kinetic"; then + if test "$(LLVM_VERSION)" = "15"; then \ + sed -i -e "s|(<< 1:15.0.6-5)|(<< 1:15.0.7-0ubuntu0.22.04.1)|g" debian/control; \ + fi; \ + fi + ifdef LLVM_SPIRV # llvm-spirv was found, so we can enable *.spv files. Debian # buster and Ubuntu 18.04 don't have llvm-spirv to create the