From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EE5591581EE for ; Mon, 07 Apr 2025 18:23:02 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id B0D923430EC for ; Mon, 07 Apr 2025 18:23:02 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id E9D521104B7; Mon, 07 Apr 2025 18:22:58 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id E35621104B7 for ; Mon, 07 Apr 2025 18:22:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D5723430C1 for ; Mon, 07 Apr 2025 18:22:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E04EF1EEA for ; Mon, 07 Apr 2025 18:22:56 +0000 (UTC) From: "Paul Zander" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Paul Zander" Message-ID: <1744049573.4c15d8ccb15dbf406efdfda4048901c4e687d8c1.negril.nx+gentoo@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-ml/ollama/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sci-ml/ollama/ollama-0.6.3.ebuild sci-ml/ollama/ollama-9999.ebuild X-VCS-Directories: sci-ml/ollama/ X-VCS-Committer: negril.nx+gentoo X-VCS-Committer-Name: Paul Zander X-VCS-Revision: 4c15d8ccb15dbf406efdfda4048901c4e687d8c1 X-VCS-Branch: dev Date: Mon, 07 Apr 2025 18:22:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 87c9e94c-7326-44e2-abd0-2e1ab836887d X-Archives-Hash: 2af47504bfccff5a0cfa2b30206acca0 commit: 4c15d8ccb15dbf406efdfda4048901c4e687d8c1 Author: Paul Zander gmail com> AuthorDate: Mon Apr 7 18:09:33 2025 +0000 Commit: Paul Zander gmail com> CommitDate: Mon Apr 7 18:12:53 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4c15d8cc sci-ml/ollama: filter flags in go file comments Closes: https://bugs.gentoo.org/953049 Signed-off-by: Paul Zander gmail.com> sci-ml/ollama/ollama-0.6.3.ebuild | 4 ++++ sci-ml/ollama/ollama-9999.ebuild | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sci-ml/ollama/ollama-0.6.3.ebuild b/sci-ml/ollama/ollama-0.6.3.ebuild index 9f07083dd..cf664c756 100644 --- a/sci-ml/ollama/ollama-0.6.3.ebuild +++ b/sci-ml/ollama/ollama-0.6.3.ebuild @@ -93,6 +93,10 @@ src_prepare() { -e "/PRE_INCLUDE_REGEXES.*hip/d" \ -i CMakeLists.txt || die sed + sed \ + -e "s/-O3/${CFLAGS}/g" \ + -i ml/backend/ggml/ggml/src/ggml-cpu/cpu.go || die sed + if use amd64; then if ! use cpu_flags_x86_avx; then sed -e "/ggml_add_cpu_backend_variant(sandybridge/s/^/# /g" -i ml/backend/ggml/ggml/src/CMakeLists.txt || die diff --git a/sci-ml/ollama/ollama-9999.ebuild b/sci-ml/ollama/ollama-9999.ebuild index 7147e4cc8..6726a5970 100644 --- a/sci-ml/ollama/ollama-9999.ebuild +++ b/sci-ml/ollama/ollama-9999.ebuild @@ -93,6 +93,10 @@ src_prepare() { -e "/PRE_INCLUDE_REGEXES.*hip/d" \ -i CMakeLists.txt || die sed + sed \ + -e "s/-O3/${CFLAGS}/g" \ + -i ml/backend/ggml/ggml/src/ggml-cpu/cpu.go || die sed + if use amd64; then if ! use cpu_flags_x86_avx; then sed -e "/ggml_add_cpu_backend_variant(sandybridge/s/^/# /g" -i ml/backend/ggml/ggml/src/CMakeLists.txt || die