Commit Graph
7 Commits
Author SHA1 Message Date
Gilles Dartiguelongue ae36817fe3 sci-misc/llama-cpp: drop unnecessary CMake variable
Was used with the blas patch in commit d233181e96.

Closes: https://bugs.gentoo.org/975598
Signed-off-by: Gilles Dartiguelongue <gilles.dartiguelongue@esiee.org>
2026-09-13 23:10:53 +02:00
Gilles Dartiguelongue c9f900361a sci-misc/llama-cpp: download and install web UI assets
Restore web UI feature until upstream completes rework on its
build artifacts so they embed the assets.

For release ebuilds, read the nightly-tag.txt attached to the tag on
GitHub in order to set the relevant LLAMA_UI_VERSION. For live ebuilds,
pick the latest "nightly" tag when updating. This is not optimal but
spares nodejs[npm] dependency and build time as the UI itself does not
change much between releases.

Bug: https://github.com/ggml-org/llama.cpp/issues/27316
Closes: https://bugs.gentoo.org/979245
Refs: https://github.com/ggml-org/llama.cpp/blob/master/tools/ui/README.md
Signed-off-by: Gilles Dartiguelongue <gilles.dartiguelongue@esiee.org>
2026-09-10 17:42:38 +02:00
Gilles Dartiguelongue cbf3610dec sci-misc/llama-cpp: fix insecure runpath QA error
* QA Notice: The following files contain insecure RUNPATHs
 *  Please file a bug about this at https://bugs.gentoo.org/
 *  with the maintainer of the package.
 *   /var/tmp/portage/sci-misc/llama-cpp-0.3.0/image/usr/bin/ggml-rpc-servern    RPATH: ::::::::::::::::::::
 *

Closes: https://bugs.gentoo.org/975597
Signed-off-by: Gilles Dartiguelongue <gilles.dartiguelongue@esiee.org>
2026-09-10 17:42:38 +02:00
Gilles Dartiguelongue e8be7b944e sci-misc/llama-cpp: import ggml management from ::gentoo
Import CPU flag management from ggml ebuild in ::gentoo.
Main difference is avx516bw is not added as it is an optional block of
avx512l and only avx512l appears to be used by GGML.
It avoids automagically enabling when only of the option is enabled.

Signed-off-by: Gilles Dartiguelongue <gilles.dartiguelongue@esiee.org>
2026-09-10 17:42:37 +02:00
Gilles Dartiguelongue 7d7f03f375 sci-misc/llama-cpp: sync live ebuild
Various QA improvements: Use || die in remove instruction. Switch GGML_NATIVE to OFF to better match cmake documentation. Drop obsolete LLAMA_BUILD_WEBUI option. Add missing ROCM_USEDEP.

Signed-off-by: Gilles Dartiguelongue <gilles.dartiguelongue@esiee.org>
2026-09-10 17:42:37 +02:00
Gilles Dartiguelongue 01ba8f9f2f sci-misc/llama-cpp: better manage dev/release build
Allow managing both releases and pre-releases.
- Follow upstream instructions on setting LLAMA_BUILD_IS_DEV.
- LLAMA_BUILD_COMMIT is only set in live ebuild to avoid maintenance
  headaches with releases.
- LLAMA_BUILD_NUMBER is set to tag value or 9999 for live ebuild.

Refs: https://github.com/ggml-org/llama.cpp/blob/master/docs/release.md#building-a-release
Signed-off-by: Gilles Dartiguelongue <gilles.dartiguelongue@esiee.org>
2026-09-10 17:42:37 +02:00
Adam Pimentel d86e295860 sci-misc/llama-cpp: version bump
Signed-off-by: Adam Pimentel <adam.pimentel@protonmail.com>
2026-08-30 10:15:36 -04:00