Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 950633

Summary: [guru] app-misc/ollama-0.5.7-r1 installs shell script that uses non-POSIX features
Product: GURU Reporter: Agostino Sarubbo <ago>
Component: Package issuesAssignee: Paul Zander <negril.nx+gentoo>
Status: RESOLVED FIXED    
Severity: normal CC: guru-bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 785607    
Attachments: build.log.xz

Description Agostino Sarubbo gentoo-dev 2025-03-05 12:59:55 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-misc/ollama-0.5.7-r1 installs shell script that uses non-POSIX features.
Discovered on: amd64 (internal ref: guru_ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#QA0058
Comment 1 Agostino Sarubbo gentoo-dev 2025-03-05 12:59:57 UTC
Created attachment 920246 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Larry the Git Cow gentoo-dev 2025-04-01 08:45:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6ffd638c2e5fa38aea21ec6d9b13587807588c24

commit 6ffd638c2e5fa38aea21ec6d9b13587807588c24
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2025-03-31 21:32:01 +0000
Commit:     Paul Zander <negril.nx+gentoo@gmail.com>
CommitDate: 2025-03-31 21:32:01 +0000

    sci-ml/ollama: add 0.6.3, update 9999
    
    Reworked the openrc init files.
    Installs to /usr/$(get_libdir) now.
    Avoids pointless copying for CUDA/ROCM files just to delete them afterwards.
    
    Closes: https://bugs.gentoo.org/950633
    Closes: https://bugs.gentoo.org/946268
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>

 sci-ml/ollama/Manifest                             |   2 +
 .../files/ollama-0.6.3-use-GNUInstallDirs.patch    |  26 ++
 sci-ml/ollama/files/ollama.confd                   |  11 +
 sci-ml/ollama/files/ollama.init                    |  27 +-
 sci-ml/ollama/ollama-0.6.3.ebuild                  | 301 +++++++++++++++++++++
 sci-ml/ollama/ollama-9999.ebuild                   |  48 ++--
 6 files changed, 374 insertions(+), 41 deletions(-)