mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
sci-ml/ollama: softlink ggml shared
Closes: https://bugs.gentoo.org/983804 Closes: https://bugs.gentoo.org/981419 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
@@ -120,7 +120,15 @@ src_install() {
|
||||
dobin "${BUILD_DIR}"/llama-server-local/ollama
|
||||
insinto usr
|
||||
doins -r "${BUILD_DIR}"/lib
|
||||
fperms -R +x /usr/lib/ollama
|
||||
local libdir="/usr/lib/ollama"
|
||||
fperms -R +x ${libdir}
|
||||
|
||||
# Symlink system GGML libraries into Ollama's expected path
|
||||
# Bug 983804
|
||||
for lib in "${EPREFIX}"/usr/$(get_libdir)/libggml*.so; do
|
||||
local libname=$(basename "${lib}")
|
||||
dosym ../../$(get_libdir)/${libname} /usr/lib/ollama/${libname}
|
||||
done
|
||||
|
||||
einstalldocs
|
||||
|
||||
Reference in New Issue
Block a user