From 280e8533339d967063b01be14a127e26f3afd0a7 Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Fri, 6 Sep 2024 13:22:32 +0200 Subject: [PATCH] * Disable CMake's package validation check for libLLVM.so.1. --- debian/changelog | 1 + debian/rules | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index 14056bf8..46cddf91 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ llvm-toolchain-19 (1:19.1.0~++rc4-3) UNRELEASED; urgency=medium * Consolidate disabling CMake's package validation checks a bit. * debian/qualify-clang.sh: Skip OpenMP test, if libomp-dev is not available. + * Disable CMake's package validation check for libLLVM.so.1. -- Matthias Klose Thu, 05 Sep 2024 10:59:19 +0200 diff --git a/debian/rules b/debian/rules index e3d0160c..26a166cc 100755 --- a/debian/rules +++ b/debian/rules @@ -1342,6 +1342,12 @@ endif -e '/_cmake_import_check_targets \(Polly\|sancov\|llvm-omp-device-info\|LibcTableGenUtil\|omptarget\|omp\)/ {s|^|#|}' \ $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/cmake/llvm/LLVMExports-*.cmake +# the obscure libLLVM.so.1 file ... + sed -i \ + -e '/_cmake_import_check_targets LLVM/ {s|^|#|}' \ + -e '/_cmake_import_check_files_for_.*\/libLLVM\.so\.1.*/ {s|^|#|}' \ + $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/cmake/llvm/LLVMExports-*.cmake + # Also disable mlir-* checks in the cmake sed -i \ -e '/_cmake_import_check_targets \(mlir-\|MLIR\)/ {s|^|#|}' \