diff --git a/debian/changelog b/debian/changelog index 41f6f07a..165f5a4d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,12 @@ llvm-toolchain-13 (1:13~++20210731010128+6eaf46beb462-1~exp2) experimental; urgency=medium * Add symbol clang_CompileCommand_getNumMappedSources to libclang + * Add a new variable called SONAME_CLANG as + clang soname has started with llvm-toolchain-13. + it is normal that 13 is what is seen in 14 or later version as + it is bumped only with abi changes - -- + -- Sylvestre Ledru Mon, 16 Aug 2021 15:48:27 +0200 llvm-toolchain-13 (1:13~++20210731010128+6eaf46beb462-1~exp1) experimental; urgency=medium diff --git a/debian/prepare-new-release.sh b/debian/prepare-new-release.sh index 867af120..28ea6d16 100644 --- a/debian/prepare-new-release.sh +++ b/debian/prepare-new-release.sh @@ -14,6 +14,7 @@ for F in $LIST; do done echo "once you copy the old version into a new branch" +echo "edit debian/rules, maybe update SONAME_CLANG" echo "edit debian/control, update the VCS links" echo "edit debian/control, update the source pkg name" echo "edit debian/changelog, update the source pkg name" diff --git a/debian/rules b/debian/rules index 1a82e4ac..aeb4f26a 100755 --- a/debian/rules +++ b/debian/rules @@ -22,6 +22,10 @@ ifeq ($(LLVM_VERSION),$(LLVM_VERSION_FULL)) endif SONAME_EXT := 1 +# clang soname has started with llvm-toolchain-13. +# it is normal that 13 is what is seen in 14 or later version as +# it is bumped only with abi changes +SONAME_CLANG := 13 SONAME_OPENMP := 5 # Manage the case when the version is 3.5~svn213052-1~exp1 or 3.4.2-1 DEBIAN_REVISION := $(shell dpkg-parsechangelog | sed -rne "s,^Version: 1:([0-9.]+)(~|-)(.*),\3,p") @@ -621,8 +625,8 @@ override_dh_auto_install: : # libclang cd debian/tmp/usr/lib/llvm-$(LLVM_VERSION)/lib/ && \ - ln -s libclang-$(LLVM_VERSION).so libclang.so.$(SONAME_EXT) && \ - ln -s libclang-$(LLVM_VERSION).so libclang-$(LLVM_VERSION).so.$(SONAME_EXT) + ln -s libclang-$(SONAME_CLANG).so libclang.so.$(SONAME_EXT) && \ + ln -s libclang-$(SONAME_CLANG).so libclang-$(SONAME_CLANG).so.$(SONAME_EXT) : # libomp cd debian/tmp/usr/lib/llvm-$(LLVM_VERSION)/lib && rm -f libomp.so; \