From 04768dad3edaa75a2834d8eaf8371cb9c201b837 Mon Sep 17 00:00:00 2001 From: Paul Zander Date: Mon, 22 Dec 2025 16:54:58 +0100 Subject: [PATCH] sci-ml/ollama: fix backend install location Signed-off-by: Paul Zander --- .../ollama/{ollama-0.13.5.ebuild => ollama-0.13.5-r1.ebuild} | 5 +++++ sci-ml/ollama/ollama-9999.ebuild | 5 +++++ 2 files changed, 10 insertions(+) rename sci-ml/ollama/{ollama-0.13.5.ebuild => ollama-0.13.5-r1.ebuild} (98%) diff --git a/sci-ml/ollama/ollama-0.13.5.ebuild b/sci-ml/ollama/ollama-0.13.5-r1.ebuild similarity index 98% rename from sci-ml/ollama/ollama-0.13.5.ebuild rename to sci-ml/ollama/ollama-0.13.5-r1.ebuild index 36e1132793..34c4726698 100644 --- a/sci-ml/ollama/ollama-0.13.5.ebuild +++ b/sci-ml/ollama/ollama-0.13.5-r1.ebuild @@ -233,8 +233,13 @@ src_configure() { local mycmakeargs=( -DGGML_CCACHE="no" + # backends end up in /usr/bin otherwise + -DGGML_BACKEND_DL="yes" + -DGGML_BACKEND_DIR="${EPREFIX}/usr/$(get_libdir)/${PN}/backends" + # -DGGML_CPU="yes" -DGGML_BLAS="$(usex blas)" + # -DGGML_CUDA="$(usex cuda)" # -DGGML_HIP="$(usex rocm)" diff --git a/sci-ml/ollama/ollama-9999.ebuild b/sci-ml/ollama/ollama-9999.ebuild index 36e1132793..34c4726698 100644 --- a/sci-ml/ollama/ollama-9999.ebuild +++ b/sci-ml/ollama/ollama-9999.ebuild @@ -233,8 +233,13 @@ src_configure() { local mycmakeargs=( -DGGML_CCACHE="no" + # backends end up in /usr/bin otherwise + -DGGML_BACKEND_DL="yes" + -DGGML_BACKEND_DIR="${EPREFIX}/usr/$(get_libdir)/${PN}/backends" + # -DGGML_CPU="yes" -DGGML_BLAS="$(usex blas)" + # -DGGML_CUDA="$(usex cuda)" # -DGGML_HIP="$(usex rocm)"