package/{clang, llvm}: Move removal of opt-viewer to the correct package

The files are installed by llvm but deleted by clang, this causes a
mismatch in the packaging.

Remove the files from the correct package.

Cc: Daniel Lang <dalang@gmx.at>
Cc: Joseph Kogut <joseph.kogut@gmail.com>
Cc: Romain Naour <romain.naour@gmail.com>
Cc: Valentin Korenblit <valentinkorenblit@gmail.com>
Signed-off-by: John Ernberg <j@j-ernberg.se>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
John Ernberg
2026-05-10 21:38:20 +02:00
committed by Arnout Vandecappelle
parent 418ee5a2b6
commit 319eeda6fa
2 changed files with 2 additions and 1 deletions

View File

@@ -84,7 +84,6 @@ CLANG_FILES_TO_REMOVE = \
/usr/libexec/c++-analyzer \
/usr/libexec/ccc-analyzer \
/usr/share/clang \
/usr/share/opt-viewer \
/usr/share/scan-build \
/usr/share/scan-view \
/usr/share/man/man1/scan-build.1 \

View File

@@ -316,7 +316,9 @@ endif
# By default llvm-tblgen is built and installed on the target but it is
# not necessary. Also erase LLVMHello.so from /usr/lib
# opt-viewer is not necessary either, remove that too
define LLVM_DELETE_LLVM_TBLGEN_TARGET
rm -rf $(TARGET_DIR)/usr/share/opt-viewer
rm -f $(TARGET_DIR)/usr/bin/llvm-tblgen $(TARGET_DIR)/usr/lib/LLVMHello.so
endef
LLVM_POST_INSTALL_TARGET_HOOKS = LLVM_DELETE_LLVM_TBLGEN_TARGET