I would like to request ollama as a package. https://github.com/jmorganca/ollama Upstream's method of installation currently only includes systemd services in addition to installing the program into `/usr/bin` and I'm not exactly a fan of scripts side-stepping package managers by throwing files in system directories. Additionally, though not technically relevant, Arch has ollama in their repo (https://archlinux.org/packages/extra/x86_64/ollama) and it would be neat if we could have it over here in OpenRC Gentoo-land
> Upstream's method of installation currently only includes systemd services This appears to be wrong, upstream only has a Dockerfile which they expect you to use, arch made their own systemd service for it which can be used on Gentoo (in addition to the service script that has to be made). https://gitlab.archlinux.org/archlinux/packaging/packages/ollama/-/blob/main/ollama.service?ref_type=heads
It's in the install script in the URL above https://ollama.ai/install.sh
There is a manual installation instruction for precompiled one-file binary https://github.com/jmorganca/ollama/blob/main/docs/linux.md
Hey guys! There is still no ollama package in the official gentoo repository, so I spent some time composing an rebuild for `ollama-bin`, you can find it in my overlay on my github: grouzen/lamdness-overlay (can't post the actual link due to the policy of the forum). It works well with OpenRC. I have not checked it with systemd since I'm not using it.
@Michael If you have time, please create a PR https://github.com/gentoo/gentoo Share the link here
dev-ml/ollama-9999::guru https://github.com/gentoo/guru/blob/master/dev-ml/ollama/ollama-9999.ebuild
Is there some reason why it won't honor Mesa's OpenCL and requires it from a separate package? (And consequently disabling Mesa's?) https://imgur.com/a/Z1UggdT
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ee54de8ccc9acd462f837185e28ec624553d2a95 commit ee54de8ccc9acd462f837185e28ec624553d2a95 Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2025-02-08 19:30:07 +0000 Commit: Paul Zander <negril.nx+gentoo@gmail.com> CommitDate: 2025-02-08 21:42:29 +0000 app-misc/ollama: update 9999 Closes: https://bugs.gentoo.org/948424 Closes: https://bugs.gentoo.org/935842 Closes: https://bugs.gentoo.org/920301 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> .../ollama/files/ollama-9999-include-cstdint.patch | 21 ++ app-misc/ollama/metadata.xml | 1 + app-misc/ollama/ollama-9999.ebuild | 293 ++++++++++++++++----- 3 files changed, 254 insertions(+), 61 deletions(-) https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0e23d436589a5ed76dd10ff0e35964f691b809c7 commit 0e23d436589a5ed76dd10ff0e35964f691b809c7 Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2025-02-08 19:29:18 +0000 Commit: Paul Zander <negril.nx+gentoo@gmail.com> CommitDate: 2025-02-08 21:42:29 +0000 app-misc/ollama: update to 0.5.7-r1 Bug: https://bugs.gentoo.org/948424 Bug: https://bugs.gentoo.org/935842 Closes: https://bugs.gentoo.org/920301 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> .../files/ollama-0.5.7-include-cstdint.patch | 24 +++ app-misc/ollama/files/{ollama => ollama.init} | 2 + app-misc/ollama/metadata.xml | 1 + app-misc/ollama/ollama-0.5.7-r1.ebuild | 176 +++++++++++++++++++++ app-misc/ollama/ollama-0.5.7.ebuild | 115 -------------- 5 files changed, 203 insertions(+), 115 deletions(-)
Please update to new 0.5.12 release.