From b938a0de44452484867cec2c1918beff8556810e Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 19 Nov 2022 23:08:57 +0100 Subject: [PATCH] Workaround some missing files on buster --- debian/changelog | 1 + debian/rules | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 4d4a56bf..aa9ecb55 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ llvm-toolchain-snapshot (1:16~++20221111053703+a77a02aa5794-1~exp2) experimental * 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/ + * Workaround some missing files on buster -- Sylvestre Ledru Sat, 19 Nov 2022 10:16:49 +0100 diff --git a/debian/rules b/debian/rules index b60cea31..6ed3746f 100755 --- a/debian/rules +++ b/debian/rules @@ -398,6 +398,11 @@ else PROJECTS+=;lldb 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 @@ -539,13 +544,14 @@ ifdef LLVM_SPIRV # *.spv files. sed -i -e "s|#spv\ ||g" debian/libclc-$(LLVM_VERSION).install endif - if test "$(DISTRO)" = "stretch"; then \ + if test "$(DISTRO)" = "buster"; then \ echo "" > debian/python3-lldb-$(LLVM_VERSION).install; \ fi # Conditionally enable install clangd grpc files if test "$(CLANGD_GRPC_INSTALLED)" = "yes"; then \ 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 # Override this two targets. They are trying to manage the .in conversion for me