From 759f34354570e5a73fe2625dbf6cadf4466a1db5 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Fri, 9 May 2025 00:55:30 +0300 Subject: [PATCH] spec: Do not package lib{llava,mtmd}_shared.so libs Their purpose is unclear and seems experimental. warning: Installed (but unpackaged) file(s) found: /usr/lib64/libllava_shared.so /usr/lib64/libmtmd_shared.so They aren't required for llama-llava-clip-quantize-cli nor for llama-mtmd-cli, there is no headers for them. Ref: 381efbf48 ("llava : expose as a shared library for downstream projects (#3613)") Link: https://github.com/ggml-org/llama.cpp/pull/3613 Ref: 8b9cc7cdd ("llava : introduce libmtmd (#12849)") Link: https://github.com/ggml-org/llama.cpp/pull/12849 Signed-off-by: Vitaly Chikunov --- .gear/llama.cpp.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gear/llama.cpp.spec b/.gear/llama.cpp.spec index 305f1b430..23281fa62 100644 --- a/.gear/llama.cpp.spec +++ b/.gear/llama.cpp.spec @@ -134,6 +134,8 @@ sed -i '/POSITION_INDEPENDENT_CODE/s/PROPERTIES/& SOVERSION 0.0.%version/' ggml/ sed -i 's/POSITION_INDEPENDENT_CODE/SOVERSION 0.0.%version &/' ggml/cmake/ggml-config.cmake.in # We do not have Internet access (issues/13371). sed -i 's/common_has_curl()/0/' tests/test-arg-parser.cpp +# Libs with unclear purpose. +sed -i s/BUILD_SHARED_LIBS/0/ tools/mtmd/CMakeLists.txt %build # Unless -DCMAKE_SKIP_BUILD_RPATH=yes CMake fails to strip build time RPATH