Force the replacement of new Ubuntu packages introduced in https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-15/+bug/2008755

This commit is contained in:
Sylvestre Ledru 2023-04-12 13:35:59 +02:00
parent 9a3b107b0f
commit 17a5b23e97
2 changed files with 11 additions and 0 deletions

2
debian/changelog vendored
View File

@ -1,6 +1,8 @@
llvm-toolchain-15 (1:15.0.7-5) unstable; urgency=medium llvm-toolchain-15 (1:15.0.7-5) unstable; urgency=medium
* Remove old code to manage Debian stretch * 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
-- --

9
debian/rules vendored
View File

@ -535,6 +535,15 @@ preconfigure:
fi; \ fi; \
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 ifdef LLVM_SPIRV
# llvm-spirv was found, so we can enable *.spv files. Debian # llvm-spirv was found, so we can enable *.spv files. Debian
# buster and Ubuntu 18.04 don't have llvm-spirv to create the # buster and Ubuntu 18.04 don't have llvm-spirv to create the