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

This commit is contained in:
Sylvestre Ledru 2021-08-16 15:49:00 +02:00
parent fe53b80fb8
commit 9a0b8c2663
3 changed files with 12 additions and 3 deletions

6
debian/changelog vendored
View File

@ -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 <sylvestre@debian.org> Mon, 16 Aug 2021 15:48:27 +0200
llvm-toolchain-13 (1:13~++20210731010128+6eaf46beb462-1~exp1) experimental; urgency=medium

View File

@ -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"

8
debian/rules vendored
View File

@ -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; \