[PR #9481] [MERGED] fix(install.sh): update lib/ollama directory permissions #44229

Closed
opened 2026-04-24 23:45:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9481
Author: @mxyng
Created: 3/3/2025
Status: Merged
Merged: 3/3/2025
Merged by: @mxyng

Base: mainHead: mxyng/load-backend


📝 Commits (1)

  • a015625 fix: own lib/ollama directory

📊 Changes

7 files changed (+137 additions, -147 deletions)

View changed files

llama/patches/0015-try-catch-backend-load.patch (+0 -69)
📝 llama/patches/0015-use-std-filesystem-path-instead-of-wstring.patch (+94 -40)
📝 llama/patches/0016-remove-amx.patch (+0 -0)
📝 llama/patches/0017-fix-clip-compiler-error.patch (+0 -0)
📝 llama/patches/0018-add-phi4-support.patch (+0 -0)
📝 ml/backend/ggml/ggml/src/ggml-backend-reg.cpp (+41 -37)
📝 scripts/install.sh (+2 -1)

📄 Description

this change explicitly creates the lib/ollama directory with the correct permissions. since the ollama release tarball does not contain the lib/ollama entry, it's implicitly created when extracting the archive. this can result in a base directory without other read/execute and prevent ollama from accessing the libraries store inside.

expand backend loading error handling to catch more problems and log them instead of panicking

resolves #9466
resolves #9330


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/9481 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 3/3/2025 **Status:** ✅ Merged **Merged:** 3/3/2025 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/load-backend` --- ### 📝 Commits (1) - [`a015625`](https://github.com/ollama/ollama/commit/a0156257f32d2ae0712cdc629b06514a2a61a313) fix: own lib/ollama directory ### 📊 Changes **7 files changed** (+137 additions, -147 deletions) <details> <summary>View changed files</summary> ➖ `llama/patches/0015-try-catch-backend-load.patch` (+0 -69) 📝 `llama/patches/0015-use-std-filesystem-path-instead-of-wstring.patch` (+94 -40) 📝 `llama/patches/0016-remove-amx.patch` (+0 -0) 📝 `llama/patches/0017-fix-clip-compiler-error.patch` (+0 -0) 📝 `llama/patches/0018-add-phi4-support.patch` (+0 -0) 📝 `ml/backend/ggml/ggml/src/ggml-backend-reg.cpp` (+41 -37) 📝 `scripts/install.sh` (+2 -1) </details> ### 📄 Description this change explicitly creates the `lib/ollama` directory with the correct permissions. since the ollama release tarball does not contain the `lib/ollama` entry, it's implicitly created when extracting the archive. this can result in a base directory without other read/execute and prevent ollama from accessing the libraries store inside. expand backend loading error handling to catch more problems and log them instead of panicking resolves #9466 resolves #9330 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-24 23:45:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#44229