git: 5f8f9ef64a6e - main - misc/ollama: Add patch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 Mar 2026 19:34:57 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5f8f9ef64a6ecca6c97018dbe1cc2eca33e310b3
commit 5f8f9ef64a6ecca6c97018dbe1cc2eca33e310b3
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-03-14 18:36:32 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-03-14 19:34:24 +0000
misc/ollama: Add patch
---
misc/ollama/Makefile | 1 +
misc/ollama/files/patch-x_imagegen_memory.go | 11 +++++++++++
2 files changed, 12 insertions(+)
diff --git a/misc/ollama/Makefile b/misc/ollama/Makefile
index a2ac9b7b35e8..5ed61c5c2de2 100644
--- a/misc/ollama/Makefile
+++ b/misc/ollama/Makefile
@@ -1,6 +1,7 @@
PORTNAME= ollama
DISTVERSIONPREFIX= v
DISTVERSION= 0.18.0
+PORTREVISION= 1
CATEGORIES= misc # machine-learning
MAINTAINER= yuri@FreeBSD.org
diff --git a/misc/ollama/files/patch-x_imagegen_memory.go b/misc/ollama/files/patch-x_imagegen_memory.go
new file mode 100644
index 000000000000..86279bc6592e
--- /dev/null
+++ b/misc/ollama/files/patch-x_imagegen_memory.go
@@ -0,0 +1,11 @@
+--- x/imagegen/memory.go.orig 2026-03-12 23:02:15 UTC
++++ x/imagegen/memory.go
+@@ -31,7 +31,7 @@ func CheckPlatformSupport() error {
+ return fmt.Errorf("image generation on macOS requires Apple Silicon (arm64), got %s", runtime.GOARCH)
+ }
+ return nil
+- case "linux", "windows":
++ case "linux", "windows", "freebsd":
+ // Linux/Windows: CUDA support (requires mlx or cuda build)
+ // The actual backend availability is checked at runtime
+ return nil