summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSystem user; portage <portage@alpha.trunkmasters.com>2026-09-15 17:19:44 -0500
committerSystem user; portage <portage@alpha.trunkmasters.com>2026-09-15 17:19:44 -0500
commit088e0ca78556300b2d083c91ff7daae04e3e4110 (patch)
tree89f3655e5a6ced9c8d9458398288f9e08661e684
parent709cefca42ef2a976a9aff8afb44a95ffc545b79 (diff)
downloadsrcux-088e0ca78556300b2d083c91ff7daae04e3e4110.tar.gz
srcux-088e0ca78556300b2d083c91ff7daae04e3e4110.tar.xz
srcux-088e0ca78556300b2d083c91ff7daae04e3e4110.zip
fix(grok-build): update to 1.0.32
-rw-r--r--dev-util/grok-build/Manifest2
-rw-r--r--dev-util/grok-build/grok-build-1.0.32.ebuild120
2 files changed, 122 insertions, 0 deletions
diff --git a/dev-util/grok-build/Manifest b/dev-util/grok-build/Manifest
index bbde9c21d704..f209c7074148 100644
--- a/dev-util/grok-build/Manifest
+++ b/dev-util/grok-build/Manifest
@@ -3,4 +3,6 @@ DIST grok-build-1.0.16-crates.tar.xz 91540604 BLAKE2B de78dd102425546638b911c111
DIST grok-build-1.0.16.gh.tar.gz 15089581 BLAKE2B 287a201cf7510a3a1ddc62d6acf2eebb59a192f879393014bc05fa2031c643db917fdb0987770f629c056c1d611df3613b175e9793bd000cfe34643c6d3ee0dd SHA512 170de8cb3a079abc34a92ee6e82102fffaed5fc1c96ec151e842fe3111e7856899c48ad4378b3afb0201e9c4d051731872e4e5ba3bfb413241c4e65b835eca0f
DIST grok-build-1.0.24-crates.tar.xz 95670580 BLAKE2B dc3223f413825b9acad1314017dc493429bb50f6d0c11be65c79d09aee757ad4ccd8234fbc56c573d2422ae5c5a0246be530ad21dd175ab5ed18bc414aca2215 SHA512 ae33ce5a2340499809f38d9bc0de568d7a41c6a82e89c48d8fb7f99c2bb5f50813c616b812a71687594091c33177613e6f68347bc0bb1619ce6d4a7a6d662870
DIST grok-build-1.0.24.gh.tar.gz 15282296 BLAKE2B 58be7b132f090b5de6be8b9f5b4f5d902ac7266dc94e17601c199faa04d94c5eebe31174678be680f814f0b62a985902cccb8502bacc4b2b37415a9850bca190 SHA512 439c0f1c85edbb330b64b2925c1c320d55d4c505a47524339e55810f47a044a3d149652661381a7650b427e3700cac6cfceff222f679f38a0887b02cb769c552
+DIST grok-build-1.0.32-crates.tar.xz 96212156 BLAKE2B e1ac09a71ad95b65ea172818774d27c7c132f07164ab0ce245365d902874050291a29e1e48387546e54136f3e3e49834df92e28e0cf9e3ef55a207598470a107 SHA512 7fc64a328ddeb0432f659c3d4bc2e641ba0b43cf4c079f49cbac3656d0541dd99a3589cfe2d12b71fa26a82a13c2e62982dfc5442246b44bae3b13c11298615d
+DIST grok-build-1.0.32.gh.tar.gz 15928023 BLAKE2B 983cf7b9e492ac41d1fc83aa7160976eadd8fc68ac2c367c3d34305e251d1d484324917cf7d539ef2f013becd0cfc4605f433548219237c3daa7860c087e77bc SHA512 5eb07f536e5d0ce72dfb9170116d202553c8997c6ad400d7158190b62ad7651c3ad40671cf5cc58b4dacd934b23f4c39b4864670259f571f769a697dfe2b671d
DIST nucleo-5b74652e482f7c07d827f18c6d21e7540c242c69.gh.tar.gz 86764 BLAKE2B 006ac7e8c4c7e35a9fd690cd699c7c6d45f9368ed5ac8e1ad2b098128b530ef1f72aeccc6e87dd7d84f98b402f72313be8716f1eeae954b25898359f1037b41a SHA512 a8762638ef79da9dc344664342779c9aecb1b19facc23614d87b639d21b356aab3715cbdb51e541b7dd569a2d4e5cbf97591d4341e3ae538e5aa4a620f4f72f6
diff --git a/dev-util/grok-build/grok-build-1.0.32.ebuild b/dev-util/grok-build/grok-build-1.0.32.ebuild
new file mode 100644
index 000000000000..3f8ac22b5e58
--- /dev/null
+++ b/dev-util/grok-build/grok-build-1.0.32.ebuild
@@ -0,0 +1,120 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+RUST_MIN_VER="1.94.0"
+
+CRATES="
+"
+
+declare -A GIT_CRATES=(
+ [async-openai-macros]='https://github.com/our-forks/async-openai;95b52ebdedf42143083cf3d6f0e0be7c84e9c808;async-openai-%commit%/async-openai-macros'
+ [async-openai]='https://github.com/our-forks/async-openai;95b52ebdedf42143083cf3d6f0e0be7c84e9c808;async-openai-%commit%/async-openai'
+ [nucleo-matcher]='https://github.com/helix-editor/nucleo;5b74652e482f7c07d827f18c6d21e7540c242c69;nucleo-%commit%/matcher'
+ [nucleo]='https://github.com/helix-editor/nucleo;5b74652e482f7c07d827f18c6d21e7540c242c69;nucleo-%commit%'
+)
+
+inherit cargo check-reqs linux-info shell-completion
+
+# no tagged releases
+MY_COMMIT="482711333c7195dc16a272777f86086d615e2afb"
+DESCRIPTION="SpaceXAI's coding agent harness and TUI"
+HOMEPAGE="
+ https://x.ai/cli
+ https://x.ai/open-source
+ https://github.com/xai-org/grok-build
+"
+SRC_URI="
+ https://github.com/xai-org/${PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.gh.tar.gz
+ https://github.com/fasys-crate-dist/${PN}/releases/download/v${PV}/${P}-crates.tar.xz
+ ${CARGO_CRATE_URIS}
+"
+S="${WORKDIR}/${PN}-${MY_COMMIT}"
+
+LICENSE="Apache-2.0"
+# Dependent crate licenses
+LICENSE+="
+ Apache-2.0 BSD-2 BSD Boost-1.0 CC0-1.0 CDLA-Permissive-2.0 EPL-2.0
+ ISC MIT MIT-0 MPL-2.0 Unicode-3.0 Unicode-DFS-2016 WTFPL-2
+ ZLIB
+"
+SLOT="0"
+KEYWORDS="~amd64" # ~arm64: ugrep
+# TODO add feature USE flags?
+
+DEPEND="
+ sys-apps/bfs
+ sys-apps/ripgrep
+ sys-apps/ugrep
+ virtual/zlib:=
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ >=dev-libs/protobuf-25.6[protoc]
+"
+
+QA_FLAGS_IGNORED="usr/bin/.*"
+
+CHECKREQS_DISK_BUILD=10G # 9.7G
+
+pkg_setup() {
+ local CONFIG_CHECK="~SECURITY_LANDLOCK"
+
+ check-reqs_pkg_setup
+ linux-info_pkg_setup
+ rust_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # Use system search tools and avoid build-time downloads
+ local f
+ for f in crates/codegen/xai-grok-{shell,tools}/build.rs; do
+ sed \
+ -e '1i #![allow(unreachable_code)]' \
+ -e '/fn main()/a \ return Ok(());' \
+ -i "$f" || die
+ done
+
+ # Disable auto-updates
+ sed \
+ -e '1i #![allow(unreachable_code)]' \
+ -e '/fn env_installer(/a \ return Some("portage");' \
+ -i crates/codegen/xai-grok-update/src/auto_update.rs || die
+
+ # Cargo offline fetch workaround
+ local url commit path
+ IFS=";" read -r url commit path <<<"${GIT_CRATES[async-openai]}"
+ local ASYNC_OPENAI_GIT="async-openai = { git = \"${url}.git\", rev = \"${commit}\""
+ local ASYNC_OPENAI_PATH="async-openai = \\{ path = \"${WORKDIR}/async-openai-${commit}/async-openai\""
+
+ sed "s|${ASYNC_OPENAI_GIT}|${ASYNC_OPENAI_PATH}|" \
+ -i "${S}/Cargo.toml" || die
+}
+
+src_compile() {
+ # Build only the CLI target supported by the public source snapshot.
+ local -x PROTOC="${BROOT}/usr/bin/protoc"
+ cargo_src_compile --package xai-grok-pager-bin
+}
+
+src_test() {
+ local -x PROTOC="${BROOT}/usr/bin/protoc"
+ cargo_src_test --package xai-grok-pager-bin
+}
+
+src_install() {
+ newbin "$(cargo_target_dir)/xai-grok-pager" grok
+ dosym grok /usr/bin/agent
+
+ local grok_bin="${ED}/usr/bin/grok"
+ "${grok_bin}" completions bash > grok || die
+ "${grok_bin}" completions fish > grok.fish || die
+ "${grok_bin}" completions zsh > _grok || die
+
+ dobashcomp grok
+ dofishcomp grok.fish
+ dozshcomp _grok
+}