Really fix breaks/replaces (Closes: #1077587)

This commit is contained in:
Sylvestre Ledru 2024-08-03 20:08:17 +02:00
parent 275f08ab0f
commit 4bd169224c
3 changed files with 10 additions and 3 deletions

8
debian/changelog vendored
View File

@ -1,10 +1,14 @@
llvm-toolchain-18 (1:18.1.8-9) UNRELEASED; urgency=medium
llvm-toolchain-18 (1:18.1.8-9) unstable; urgency=medium
[ Gianfranco Costamagna ]
* Mention in changelog also the SVE fixes from llvm-17
* Drop mips D154390 patch, already upstream
-- Gianfranco Costamagna <locutusofborg@debian.org> Thu, 01 Aug 2024 12:15:23 +0200
[ Sylvestre Ledru ]
* Really fix breaks/replaces (Closes: #1077587)
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 03 Aug 2024 20:07:17 +0200
llvm-toolchain-18 (1:18.1.8-8) unstable; urgency=medium

2
debian/control.in vendored
View File

@ -422,6 +422,8 @@ Depends: ${shlibs:Depends}, libffi-dev, ${misc:Depends},
llvm-@LLVM_VERSION@ (= ${binary:Version}), libllvm@LLVM_VERSION@ (= ${binary:Version}), libncurses-dev,
llvm-@LLVM_VERSION@-tools (= ${binary:Version}), libclang-cpp@LLVM_VERSION@ (= ${binary:Version}),
libz3-dev, libxml2-dev
Breaks: libllvm@LLVM_VERSION@ (<< 1:18.1.8-9)
Replaces: libllvm@LLVM_VERSION@ (<< 1:18.1.8-9)
Description: Modular compiler and toolchain technologies, libraries and headers
LLVM is a collection of libraries and tools that make it easy to build
compilers, optimizers, just-in-time code generators, and many other

3
debian/rules vendored
View File

@ -683,7 +683,8 @@ stamps/preconfigure:
# Yeah, this is ugly but I don't know how to do better
if test "$(LLVM_VERSION)" = "18"; then \
if echo $(LLVM_VERSION_SNAPSHOT)| grep -q "~++"; then \
sed -i -e "s| (<< 1:18.1.8-8)|(<< 1:18.1.8~++20240730104741)|g" debian/control; \
sed -i -e "s| (<< 1:18.1.8-9)|(<< 1:18.1.8~++20240830304741)|g" debian/control; \
sed -i -e "s| (<< 1:18.1.8-9)|(<< 1:18.1.8~++20240830304741)|g" debian/control; \
fi; \
fi