Workaround some missing files on buster

This commit is contained in:
Sylvestre Ledru 2022-11-19 23:08:57 +01:00
parent 5a8e878733
commit b938a0de44
2 changed files with 8 additions and 1 deletions

1
debian/changelog vendored
View File

@ -3,6 +3,7 @@ llvm-toolchain-snapshot (1:16~++20221111053703+a77a02aa5794-1~exp2) experimental
* Adjust some path since upstream changed the path from * Adjust some path since upstream changed the path from
/usr/lib/llvm-16/lib/clang/16.0.0/ to /usr/lib/llvm-16/lib/clang/16.0.0/ to
/usr/lib/llvm-16/lib/clang/16/ /usr/lib/llvm-16/lib/clang/16/
* Workaround some missing files on buster
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 19 Nov 2022 10:16:49 +0100 -- Sylvestre Ledru <sylvestre@debian.org> Sat, 19 Nov 2022 10:16:49 +0100

8
debian/rules vendored
View File

@ -398,6 +398,11 @@ else
PROJECTS+=;lldb PROJECTS+=;lldb
endif endif
ifneq (,$(filter $(DISTRO),buster))
# Don't enable lld python for old distros
STAGE_ALL_CMAKE_EXTRA += -DLLDB_ENABLE_PYTHON=OFF
endif
LLD_ENABLE=yes LLD_ENABLE=yes
@ -539,13 +544,14 @@ ifdef LLVM_SPIRV
# *.spv files. # *.spv files.
sed -i -e "s|#spv\ ||g" debian/libclc-$(LLVM_VERSION).install sed -i -e "s|#spv\ ||g" debian/libclc-$(LLVM_VERSION).install
endif endif
if test "$(DISTRO)" = "stretch"; then \ if test "$(DISTRO)" = "buster"; then \
echo "" > debian/python3-lldb-$(LLVM_VERSION).install; \ echo "" > debian/python3-lldb-$(LLVM_VERSION).install; \
fi fi
# Conditionally enable install clangd grpc files # Conditionally enable install clangd grpc files
if test "$(CLANGD_GRPC_INSTALLED)" = "yes"; then \ if test "$(CLANGD_GRPC_INSTALLED)" = "yes"; then \
sed -i -e "s|#grpc\ ||g" debian/libclang-$(LLVM_VERSION)-dev.install; \ sed -i -e "s|#grpc\ ||g" debian/libclang-$(LLVM_VERSION)-dev.install; \
mkdir -p $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/share/gdb/python/ompd/; \
fi fi
# Override this two targets. They are trying to manage the .in conversion for me # Override this two targets. They are trying to manage the .in conversion for me