git: 1a743c38f94a - main - misc/ollama: update 0.34.0 → 0.34.3

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 23 Sep 2026 03:51:05 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1a743c38f94ae7eca010f59e72a3593b1183cbd8

commit 1a743c38f94ae7eca010f59e72a3593b1183cbd8
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-23 03:49:45 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-23 03:51:01 +0000

    misc/ollama: update 0.34.0 → 0.34.3
---
 misc/ollama/Makefile                               | 38 ++++++++++------------
 misc/ollama/distinfo                               | 34 +++++++++----------
 ...mlx_CMakeLists.txt => patch-mlx_CMakeLists.txt} | 12 +++----
 ...xrunner_mlx_dynamic.go => patch-mlx_dynamic.go} |  6 ++--
 ...xrunner_client.go => patch-mlxrunner_client.go} |  4 +--
 5 files changed, 46 insertions(+), 48 deletions(-)

diff --git a/misc/ollama/Makefile b/misc/ollama/Makefile
index 7c41818fd3c1..ce1669f4e1ee 100644
--- a/misc/ollama/Makefile
+++ b/misc/ollama/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	ollama
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.34.0
+DISTVERSION=	0.34.3
 CATEGORIES=	misc # machine-learning
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -72,22 +72,6 @@ CPU_PLIST_FILES=	lib/ollama/llama-server \
 			lib/ollama/libmtmd.so \
 			lib/ollama/libmtmd.so.${LLAMA_CPP_SO_VERSION:R:R} \
 			lib/ollama/libmtmd.so.${LLAMA_CPP_SO_VERSION}
-.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
-CPU_PLIST_FILES+=	lib/ollama/libggml-cpu-alderlake.so \
-			lib/ollama/libggml-cpu-cannonlake.so \
-			lib/ollama/libggml-cpu-cascadelake.so \
-			lib/ollama/libggml-cpu-cooperlake.so \
-			lib/ollama/libggml-cpu-haswell.so \
-			lib/ollama/libggml-cpu-icelake.so \
-			lib/ollama/libggml-cpu-ivybridge.so \
-			lib/ollama/libggml-cpu-piledriver.so \
-			lib/ollama/libggml-cpu-sandybridge.so \
-			lib/ollama/libggml-cpu-sapphirerapids.so \
-			lib/ollama/libggml-cpu-skylakex.so \
-			lib/ollama/libggml-cpu-sse42.so \
-			lib/ollama/libggml-cpu-x64.so \
-			lib/ollama/libggml-cpu-zen4.so
-.endif
 
 VULKAN_DESC=		Build Vulkan GPU backend shared library
 VULKAN_BUILD_DEPENDS=	glslc:graphics/shaderc \
@@ -112,6 +96,23 @@ _CMAKE_FLAGS=	-DCMAKE_BUILD_TYPE=Release \
 
 .include <bsd.port.options.mk>
 
+.if ${ARCH} == "amd64" || ${ARCH} == "i386"
+CPU_PLIST_FILES+=	lib/ollama/libggml-cpu-alderlake.so \
+			lib/ollama/libggml-cpu-cannonlake.so \
+			lib/ollama/libggml-cpu-cascadelake.so \
+			lib/ollama/libggml-cpu-cooperlake.so \
+			lib/ollama/libggml-cpu-haswell.so \
+			lib/ollama/libggml-cpu-icelake.so \
+			lib/ollama/libggml-cpu-ivybridge.so \
+			lib/ollama/libggml-cpu-piledriver.so \
+			lib/ollama/libggml-cpu-sandybridge.so \
+			lib/ollama/libggml-cpu-sapphirerapids.so \
+			lib/ollama/libggml-cpu-skylakex.so \
+			lib/ollama/libggml-cpu-sse42.so \
+			lib/ollama/libggml-cpu-x64.so \
+			lib/ollama/libggml-cpu-zen4.so
+.endif
+
 .if ${PORT_OPTIONS:MVULKAN}
 _CMAKE_FLAGS+=	-DOLLAMA_LLAMA_BACKENDS=vulkan
 .endif
@@ -140,9 +141,6 @@ post-patch:
 	# Apply Ollama llama.cpp compat hooks patch (vision model support)
 	#@${PATCH} -d ${WRKDIR}/llama.cpp-${LLAMA_CPP_VERSION} -p1 \
 	#	< ${WRKSRC}/llama/compat/001-llama-cpp-hooks.patch
-	# Fix llama-ui-embed crash when called without asset_dir argument
-	@${REINPLACE_CMD} -e 's|const std::string asset_dir = argv\[3\];|const std::string asset_dir = (argc > 3) ? argv[3] : "";|g' \
-		${WRKDIR}/llama.cpp-${LLAMA_CPP_VERSION}/tools/ui/embed.cpp
 	# FreeBSD: copy llm/llm_freebsd.go for LlamaServerSysProcAttr
 	@${CP} ${FILESDIR}/llm_freebsd.go ${WRKSRC}/llm/
 	# update version in version.go
diff --git a/misc/ollama/distinfo b/misc/ollama/distinfo
index 9219340170f0..deb2ab52831c 100644
--- a/misc/ollama/distinfo
+++ b/misc/ollama/distinfo
@@ -1,17 +1,17 @@
-TIMESTAMP = 1789036710
-SHA256 (go/misc_ollama/ollama-v0.34.0/b10760.tar.gz) = 8986285d34f7531e84b1ee6d35c88989fc6f3cf895f60610594997b8b7bad443
-SIZE (go/misc_ollama/ollama-v0.34.0/b10760.tar.gz) = 37131759
-SHA256 (go/misc_ollama/ollama-v0.34.0/llama-b10760-ui.tar.gz) = b7f7d173c0faa6582896d2d23603c1bb2d963eedf8845db0a8399d2c1e0ce360
-SIZE (go/misc_ollama/ollama-v0.34.0/llama-b10760-ui.tar.gz) = 3081120
-SHA256 (go/misc_ollama/ollama-v0.34.0/v0.31.2.tar.gz) = bdb9b619f80962dd00c0bffb65e59c53f565c2b550f189a1467f8bc6089401ab
-SIZE (go/misc_ollama/ollama-v0.34.0/v0.31.2.tar.gz) = 4251596
-SHA256 (go/misc_ollama/ollama-v0.34.0/fba4470b89073180056c9ea46c443051375f7399.tar.gz) = 398d3d4c6458679dfc9061a3ba56101358279790bc038f60d1f534eac420d552
-SIZE (go/misc_ollama/ollama-v0.34.0/fba4470b89073180056c9ea46c443051375f7399.tar.gz) = 174039
-SHA256 (go/misc_ollama/ollama-v0.34.0/json.tar.xz) = d6c65aca6b1ed68e7a182f4757257b107ae403032760ed6ef121c9d55e81757d
-SIZE (go/misc_ollama/ollama-v0.34.0/json.tar.xz) = 110988
-SHA256 (go/misc_ollama/ollama-v0.34.0/v0.34.0.mod) = b70e409c579c9184be085ae9ab2e06b02e2426fb6781548580596ba341105527
-SIZE (go/misc_ollama/ollama-v0.34.0/v0.34.0.mod) = 4640
-SHA256 (go/misc_ollama/ollama-v0.34.0/v0.34.0.zip) = 3ffdf867ded14b264a96526e6ea86be4f4ff0e5ceca812428d7ab9e7d461e32e
-SIZE (go/misc_ollama/ollama-v0.34.0/v0.34.0.zip) = 31535194
-SHA256 (go/misc_ollama/ollama-v0.34.0/mlc-ai-xgrammar-v0.2.5_GH0.tar.gz) = 7cf5e69ba0bc2695a9f1a97eeb4cc567aac3d644fd329e7d8072ab6f3517b777
-SIZE (go/misc_ollama/ollama-v0.34.0/mlc-ai-xgrammar-v0.2.5_GH0.tar.gz) = 1071195
+TIMESTAMP = 1790118999
+SHA256 (go/misc_ollama/ollama-v0.34.3/b10760.tar.gz) = 8986285d34f7531e84b1ee6d35c88989fc6f3cf895f60610594997b8b7bad443
+SIZE (go/misc_ollama/ollama-v0.34.3/b10760.tar.gz) = 37131759
+SHA256 (go/misc_ollama/ollama-v0.34.3/llama-b10760-ui.tar.gz) = b7f7d173c0faa6582896d2d23603c1bb2d963eedf8845db0a8399d2c1e0ce360
+SIZE (go/misc_ollama/ollama-v0.34.3/llama-b10760-ui.tar.gz) = 3081120
+SHA256 (go/misc_ollama/ollama-v0.34.3/v0.31.2.tar.gz) = bdb9b619f80962dd00c0bffb65e59c53f565c2b550f189a1467f8bc6089401ab
+SIZE (go/misc_ollama/ollama-v0.34.3/v0.31.2.tar.gz) = 4251596
+SHA256 (go/misc_ollama/ollama-v0.34.3/fba4470b89073180056c9ea46c443051375f7399.tar.gz) = 398d3d4c6458679dfc9061a3ba56101358279790bc038f60d1f534eac420d552
+SIZE (go/misc_ollama/ollama-v0.34.3/fba4470b89073180056c9ea46c443051375f7399.tar.gz) = 174039
+SHA256 (go/misc_ollama/ollama-v0.34.3/json.tar.xz) = d6c65aca6b1ed68e7a182f4757257b107ae403032760ed6ef121c9d55e81757d
+SIZE (go/misc_ollama/ollama-v0.34.3/json.tar.xz) = 110988
+SHA256 (go/misc_ollama/ollama-v0.34.3/v0.34.3.mod) = 48a2032d29197914e0bd6de7adf20b4d37ad2aed5e6adb8199cc91e704a50400
+SIZE (go/misc_ollama/ollama-v0.34.3/v0.34.3.mod) = 3763
+SHA256 (go/misc_ollama/ollama-v0.34.3/v0.34.3.zip) = 859247e5a7e16a9abe2981253867efeba4be99077216f0bc56ec8b87d607c17c
+SIZE (go/misc_ollama/ollama-v0.34.3/v0.34.3.zip) = 27674219
+SHA256 (go/misc_ollama/ollama-v0.34.3/mlc-ai-xgrammar-v0.2.5_GH0.tar.gz) = 7cf5e69ba0bc2695a9f1a97eeb4cc567aac3d644fd329e7d8072ab6f3517b777
+SIZE (go/misc_ollama/ollama-v0.34.3/mlc-ai-xgrammar-v0.2.5_GH0.tar.gz) = 1071195
diff --git a/misc/ollama/files/patch-x_mlxrunner_mlx_CMakeLists.txt b/misc/ollama/files/patch-mlx_CMakeLists.txt
similarity index 82%
rename from misc/ollama/files/patch-x_mlxrunner_mlx_CMakeLists.txt
rename to misc/ollama/files/patch-mlx_CMakeLists.txt
index 2b408deec400..07186332b086 100644
--- a/misc/ollama/files/patch-x_mlxrunner_mlx_CMakeLists.txt
+++ b/misc/ollama/files/patch-mlx_CMakeLists.txt
@@ -1,12 +1,12 @@
 -- FreeBSD: Use pre-downloaded mlx-c source directory instead of FetchContent from Git.
 -- The port downloads mlx-c as a distfile and extracts it to WRKDIR, then passes
 -- its location via OLLAMA_MLX_C_SOURCE environment variable to the CMake build.
---- x/mlxrunner/mlx/CMakeLists.txt.orig	1979-11-30 08:00:00 UTC
-+++ x/mlxrunner/mlx/CMakeLists.txt
+--- mlx/CMakeLists.txt.orig	1979-11-30 08:00:00 UTC
++++ mlx/CMakeLists.txt
 @@ -23,11 +23,19 @@ string(STRIP "${MLX_C_GIT_TAG}" MLX_C_GIT_TAG)
- file(READ "${CMAKE_CURRENT_LIST_DIR}/../../../MLX_C_VERSION" MLX_C_GIT_TAG)
+ file(READ "${CMAKE_CURRENT_LIST_DIR}/../MLX_C_VERSION" MLX_C_GIT_TAG)
  string(STRIP "${MLX_C_GIT_TAG}" MLX_C_GIT_TAG)
- 
+
 -FetchContent_Declare(
 -  mlx-c
 -  GIT_REPOSITORY "https://github.com/ml-explore/mlx-c.git"
@@ -25,6 +25,6 @@
 +    GIT_TAG ${MLX_C_GIT_TAG}
 +  )
 +endif()
- 
+
  FetchContent_MakeAvailable(mlx-c)
- 
+
diff --git a/misc/ollama/files/patch-x_mlxrunner_mlx_dynamic.go b/misc/ollama/files/patch-mlx_dynamic.go
similarity index 90%
rename from misc/ollama/files/patch-x_mlxrunner_mlx_dynamic.go
rename to misc/ollama/files/patch-mlx_dynamic.go
index 7ca8c2caff6c..e913338fb9dc 100644
--- a/misc/ollama/files/patch-x_mlxrunner_mlx_dynamic.go
+++ b/misc/ollama/files/patch-mlx_dynamic.go
@@ -1,5 +1,5 @@
---- x/mlxrunner/mlx/dynamic.go.orig	1979-11-30 08:00:00 UTC
-+++ x/mlxrunner/mlx/dynamic.go
+--- mlx/dynamic.go.orig	1979-11-30 08:00:00 UTC
++++ mlx/dynamic.go
 @@ -98,7 +98,7 @@ func libOllamaRoots() []string {
  			roots = append(roots, filepath.Join(exeDir, "lib", "ollama"))
  			roots = append(roots, filepath.Join(exeDir, "..", "lib", "ollama"))
@@ -19,7 +19,7 @@
  	default:
  		return
 @@ -189,7 +189,7 @@ func init() {
- 
+
  func init() {
  	switch runtime.GOOS {
 -	case "darwin", "linux", "windows":
diff --git a/misc/ollama/files/patch-x_mlxrunner_client.go b/misc/ollama/files/patch-mlxrunner_client.go
similarity index 75%
rename from misc/ollama/files/patch-x_mlxrunner_client.go
rename to misc/ollama/files/patch-mlxrunner_client.go
index ae43bbc1c58a..eff7c949a9fd 100644
--- a/misc/ollama/files/patch-x_mlxrunner_client.go
+++ b/misc/ollama/files/patch-mlxrunner_client.go
@@ -1,5 +1,5 @@
---- x/mlxrunner/client.go.orig	1979-11-30 08:00:00 UTC
-+++ x/mlxrunner/client.go
+--- mlxrunner/client.go.orig	1979-11-30 08:00:00 UTC
++++ mlxrunner/client.go
 @@ -353,6 +353,8 @@ func (c *Client) Load(ctx context.Context, _ ml.System
  	switch runtime.GOOS {
  	case "linux":