commit:     04768dad3edaa75a2834d8eaf8371cb9c201b837
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Mon Dec 22 15:54:58 2025 +0000
Commit:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
CommitDate: Mon Dec 22 15:54:58 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=04768dad

sci-ml/ollama: fix backend install location

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>

 sci-ml/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(+)

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)"
 

Reply via email to