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