[packages/llvm] - patch to honour CMAKE_INSTALL_LIBEXECDIR, use subdir for whole set of scan-build* binaries

qboosh qboosh at pld-linux.org
Tue Dec 21 19:40:12 CET 2021


commit 0d1a27fe4f24ee4d1106948a9cfc7a123ae20e0d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 21 19:40:53 2021 +0100

    - patch to honour CMAKE_INSTALL_LIBEXECDIR, use subdir for whole set of scan-build* binaries

 llvm-libexecdir.patch | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
---
diff --git a/llvm-libexecdir.patch b/llvm-libexecdir.patch
new file mode 100644
index 0000000..c131dc1
--- /dev/null
+++ b/llvm-libexecdir.patch
@@ -0,0 +1,22 @@
+--- llvm-13.0.0.src/tools/clang/tools/scan-build-py/CMakeLists.txt.orig	2021-09-24 18:18:10.000000000 +0200
++++ llvm-13.0.0.src/tools/clang/tools/scan-build-py/CMakeLists.txt	2021-12-20 06:12:43.786500661 +0100
+@@ -72,7 +72,7 @@ foreach(lib ${LibExecs})
+                      DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/libexec/${lib})
+   list(APPEND Depends ${CMAKE_BINARY_DIR}/libexec/${lib})
+   install(PROGRAMS libexec/${lib}
+-          DESTINATION libexec
++          DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/clang-analyzer
+           COMPONENT scan-build-py)
+ endforeach()
+ 
+--- llvm-13.0.0.src/tools/clang/tools/scan-build/CMakeLists.txt.orig	2021-09-24 18:18:10.000000000 +0200
++++ llvm-13.0.0.src/tools/clang/tools/scan-build/CMakeLists.txt	2021-12-20 06:13:26.062938296 +0100
+@@ -61,7 +61,7 @@ if(CLANG_INSTALL_SCANBUILD)
+                        DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/libexec/${LibexecFile})
+     list(APPEND Depends ${CMAKE_BINARY_DIR}/libexec/${LibexecFile})
+     install(PROGRAMS libexec/${LibexecFile}
+-            DESTINATION libexec
++            DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/clang-analyzer
+             COMPONENT scan-build)
+   endforeach()
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/llvm.git/commitdiff/0d1a27fe4f24ee4d1106948a9cfc7a123ae20e0d



More information about the pld-cvs-commit mailing list