From 73e19b411d32d573916987b1283fbc5d74d773b2 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 18 Apr 2021 10:26:25 +0200 Subject: [PATCH] workaround the breaks/replaces/conflicts introduced with llvm-12-linker-tools we update the version to make it work with apt.llvm.org Yeah, this is ugly but I don't know how to do better --- debian/rules | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/debian/rules b/debian/rules index 246db822..ab0a90d0 100755 --- a/debian/rules +++ b/debian/rules @@ -351,6 +351,16 @@ preconfigure: debian/llvm-$(LLVM_VERSION)-dev.install \ debian/llvm-$(LLVM_VERSION)-linker-tools.install + + # workaround the breaks/replaces/conflicts introduced with llvm-12-linker-tools + # we update the version to make it work with apt.llvm.org + # Yeah, this is ugly but I don't know how to do better + if test "$(LLVM_VERSION)" = "12"; then \ + if echo "$(LLVM_VERSION_SNAPSHOT)"|grep -q "++"; then \ + sed -i -e "s|(<< 1:12.0.0-2)|(<< 12.0.0~++20210418)|g" debian/control; \ + fi; \ + fi + # DH doesn't support the [power ...] in install on Ubuntu trusty # fails with cp: cannot stat 'debian/tmp/[!powerpc': No such file or directory if test "$(DISTRO)" = "trusty"; then \