From e476bd73f5a5cfe7f3c3f73f70f465fc309c077e Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Thu, 10 Sep 2026 05:34:31 -0700 Subject: [PATCH] dev-util/codex: drop 0.153.0 Signed-off-by: Huang Rui --- dev-util/codex/Manifest | 2 - dev-util/codex/codex-0.153.0.ebuild | 151 ---------------------------- 2 files changed, 153 deletions(-) delete mode 100644 dev-util/codex/codex-0.153.0.ebuild diff --git a/dev-util/codex/Manifest b/dev-util/codex/Manifest index b29ca169ca..f09d2b8f98 100644 --- a/dev-util/codex/Manifest +++ b/dev-util/codex/Manifest @@ -1,7 +1,5 @@ -DIST codex-0.153.0.tar.gz 13287600 BLAKE2B 2550614c8cde4143346b7b8ac5995c6b2547adee79a2dec0c25e4662218e7ffad3e9da15670a89671137d7cf6563fe82a9669074791ec1f8d37bec36082ae59a SHA512 59321e173e4f45cc3bf16831c2998a3322d67afb1710f6a6aaed1831eedafe2fe5c83e2dc6d8ef30072f45afbfcb3a332b7d9a78e426f35650daacdff9fcbecc DIST codex-0.153.4.tar.gz 13319724 BLAKE2B f0def5a1b6651042f5a219d6818460ca365ef726b87a2e18b89f29051386d231f852e2be15ae4a9c00b59519826505758d3c0be958db0943fa7ae41c942b8146 SHA512 af73e9f57c3e01065c28ad23c5d657423fd77baeb87e92880270b4f680dbb4e94bef77e111e184b48e467acdbabfa8e8e9a852bcd57a2ee7d58edf7daa87d3a5 DIST codex-0.154.0.tar.gz 13861439 BLAKE2B f7548dbb7b08e1d394615f01c8a1b93f1f2a7d57facf95c7e99f054e04ba9f99bdcbd69c2e2d2a2b743a27b486cb32ffdca21c97c54fc2a3544bef1c8a6a13bf SHA512 010e73cf5551731e9bd1400afdd4c5436dec07068179c0a67a6408818d87240d807d6bd750f30b6f69b4648487a59f877d33c2f63f18ce5d519140db3b5fef64 -DIST codex-rust-v0.153.0-crates.tar.xz 132616996 BLAKE2B b3ad2257fac18ff5b0d52afa1a7d1d757006eb3d2a007e0ed3e6d76df10a879626b9fb6d41a33e1cbc575b027657f5ca154b3b5f0da532d3f59a5c2fcf6ba961 SHA512 6039b6ab8e9535dcb51c230cdcf319017fa859c0b884aa4a84e6baea43dbd407449f739df035f0cbcf7dde2253eebc4d8eab18c0eaf0137b513a51e26ce44f98 DIST codex-rust-v0.153.4-crates.tar.xz 132616996 BLAKE2B b3ad2257fac18ff5b0d52afa1a7d1d757006eb3d2a007e0ed3e6d76df10a879626b9fb6d41a33e1cbc575b027657f5ca154b3b5f0da532d3f59a5c2fcf6ba961 SHA512 6039b6ab8e9535dcb51c230cdcf319017fa859c0b884aa4a84e6baea43dbd407449f739df035f0cbcf7dde2253eebc4d8eab18c0eaf0137b513a51e26ce44f98 DIST codex-rust-v0.154.0-crates.tar.xz 157898268 BLAKE2B 9fe8cbd06c9fbba670cb86f9dda0d1e1d30a19fdbe28c66f5609967409e77cd7017a375d6d45b24b0ba71992db1c18f1f375f95d9d3216228920c928421c058a SHA512 8abd3a6eadb88841e8fbb22c1d0215b59bb0836442193827de5f63c279107a90969bb551fbbd6017d7de27355d102ec032298488ed46ead4107b452a133f8d08 DIST crossterm-45fecb9508105988f42fe6ff0441783ed3717f92.gh.tar.gz 144786 BLAKE2B 18577acd2586a50723657e77b304d7bd309208d7ce597d315d13d7e36c90ac08f15510053ad1e927798b0edabc75fc8e54f1f2ac4978215084c0cf84573193e8 SHA512 aa5fd475a306000032fa0a68c758d81056920c68fd001ce632e0fbc11d70efd37def5786a677f3f4cd2e17b76672eda6bb53a517ba90a18e8dc312c390987786 diff --git a/dev-util/codex/codex-0.153.0.ebuild b/dev-util/codex/codex-0.153.0.ebuild deleted file mode 100644 index 0f9b0272fa..0000000000 --- a/dev-util/codex/codex-0.153.0.ebuild +++ /dev/null @@ -1,151 +0,0 @@ -# Copyright 2025-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# NOTE: This package uses a pre-built crate tarball instead of listing individual -# crates in CRATES="". This approach is required because: -# 1. Codex has 800+ crate dependencies, which triggers Portage QA warnings: -# "QA Notice: This package uses a very large number of CRATES. Please provide -# a crate tarball instead and fetch it via SRC_URI." -# 2. Stricter ebuild QA checks (e.g., in CI pipelines) fail with too many crates. -# -# The crate tarball is auto-generated by GitHub Actions at: -# https://github.com/gentoo-zh-drafts/codex/ -# Workflow source code for auditing: -# https://github.com/gentoo-zh-drafts/codex/blob/crate-dist/.github/workflows/crates.yml -# This allows anyone to review and verify the crate packaging process. - -CRATES=" -" - -declare -A GIT_CRATES=( - [appcontainer_common]='https://github.com/microsoft/mxc;6cd3d58f05d3447e67109cfb75e042803b843ca4;mxc-%commit%/src/backends/appcontainer/common' - [crossterm]='https://github.com/openai-oss-forks/crossterm;45fecb9508105988f42fe6ff0441783ed3717f92;crossterm-%commit%' - [nucleo-matcher]='https://github.com/helix-editor/nucleo;4253de9faabb4e5c6d81d946a5e35a90f87347ee;nucleo-%commit%/matcher' - [nucleo]='https://github.com/helix-editor/nucleo;4253de9faabb4e5c6d81d946a5e35a90f87347ee;nucleo-%commit%' - [runfiles]='https://github.com/dzbarsky/rules_rust;b56cbaa8465e74127f1ea216f813cd377295ad81;rules_rust-%commit%/rust/runfiles' - [tokio-tungstenite]='https://github.com/openai-oss-forks/tokio-tungstenite;0e5b2d73aa18dd9f0a50ee9ff199d5aef7594186;tokio-tungstenite-%commit%' - [tungstenite]='https://github.com/openai-oss-forks/tungstenite-rs;4fffad30fe373adbdcffab9545e9e9bf4f2fc19f;tungstenite-rs-%commit%' -) - -RUST_MIN_VER="1.95.0" - -# python3 .github/scripts/rusty_v8_bazel.py resolved-v8-crate-version -RUSTY_V8_TAG="150.4.0" - -inherit cargo check-reqs toolchain-funcs - -CHECKREQS_MEMORY="15G" -CHECKREQS_DISK_BUILD="20G" - -DESCRIPTION="Codex CLI - OpenAI's AI-powered coding agent" -HOMEPAGE="https://github.com/openai/codex" - -# The crate tarball URL uses ${PV} so it auto-updates when bumping versions. -# This tarball is generated by: https://github.com/gentoo-zh-drafts/codex/ -# See .github/workflows/crates.yml for the generation process. -SRC_URI=" - https://github.com/openai/${PN}/archive/rust-v${PV}.tar.gz -> ${P}.tar.gz - https://github.com/gentoo-zh-drafts/codex/releases/download/rust-v${PV}/codex-rust-v${PV}-crates.tar.xz - amd64? ( - https://github.com/openai/codex/releases/download/rusty-v8-v${RUSTY_V8_TAG}/librusty_v8_release_x86_64-unknown-linux-musl.a.gz - -> rusty_v8_${RUSTY_V8_TAG}_librusty_v8_release_x86_64-unknown-linux-musl.a.gz - https://github.com/openai/codex/releases/download/rusty-v8-v${RUSTY_V8_TAG}/src_binding_release_x86_64-unknown-linux-musl.rs - -> rusty_v8_${RUSTY_V8_TAG}_src_binding_release_x86_64-unknown-linux-musl.rs - ) - arm64? ( - https://github.com/openai/codex/releases/download/rusty-v8-v${RUSTY_V8_TAG}/librusty_v8_release_aarch64-unknown-linux-musl.a.gz - -> rusty_v8_${RUSTY_V8_TAG}_librusty_v8_release_aarch64-unknown-linux-musl.a.gz - https://github.com/openai/codex/releases/download/rusty-v8-v${RUSTY_V8_TAG}/src_binding_release_aarch64-unknown-linux-musl.rs - -> rusty_v8_${RUSTY_V8_TAG}_src_binding_release_aarch64-unknown-linux-musl.rs - ) - ${CARGO_CRATE_URIS} -" - -S="${WORKDIR}/${PN}-rust-v${PV}/codex-rs" - -LICENSE="Apache-2.0" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0 - CC0-1.0 CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 ZLIB -" -SLOT="0" -KEYWORDS="-* ~amd64 ~arm64" -# Tests fail due to ring crate conflicts with system OpenSSL -RESTRICT="test" - -DEPEND=" - dev-libs/openssl:= - sys-apps/dbus -" -RDEPEND="${DEPEND}" -BDEPEND="virtual/pkgconfig" - -# rust does not use *FLAGS from make.conf, silence portage warning -QA_FLAGS_IGNORED="usr/bin/${PN}" - -pkg_pretend() { - check-reqs_pkg_pretend -} - -pkg_setup() { - check-reqs_pkg_setup - rust_pkg_setup - if tc-is-lto; then - export CARGO_PROFILE_RELEASE_LTO=thin - else - export CARGO_PROFILE_RELEASE_LTO=false - fi -} - -gen_git_crate_dir() { - # https://github.com/gentoo/gentoo/blob/b09dd88412fe2d5eee5a8891e08bfa2d67848da3/eclass/cargo.eclass#L442 - IFS=';' read -r crate_uri commit crate_dir <<<"${GIT_CRATES[$1]}" - echo "${WORKDIR}/${crate_dir//%commit%/${commit}}" -} - -src_prepare() { - default - - # Fix tokio-tungstenite's git dependency on tungstenite - sed -i '/^\[dependencies\.tungstenite\]/,/^$/{ - s|git = "https://github.com/openai-oss-forks/tungstenite-rs"|path = "'"$(gen_git_crate_dir tungstenite)"'"| - /^rev = /d - }' "$(gen_git_crate_dir tokio-tungstenite)/Cargo.toml" || die - - # Remove the [patch.crates-io] section and add path-based patches - sed -i '/^\[patch\.crates-io\]/,/^$/d' "${S}/Cargo.toml" || die - sed -i '/^\[patch\."ssh:\/\/git@github\.com/,/^$/d' "${S}/Cargo.toml" || die - - # Add new patch section with local paths - cat >> "${S}/Cargo.toml" <<-EOF || die - - [patch.crates-io] - crossterm = { path = "$(gen_git_crate_dir crossterm)" } - tokio-tungstenite = { path = "$(gen_git_crate_dir tokio-tungstenite)" } - tungstenite = { path = "$(gen_git_crate_dir tungstenite)" } - EOF -} - -src_compile() { - local rusty_v8_triple - use amd64 && rusty_v8_triple=x86_64-unknown-linux-musl - use arm64 && rusty_v8_triple=aarch64-unknown-linux-musl - - # codex-core trait resolution overflows rustc's default 8MiB stack - export RUST_MIN_STACK=16777216 - - RUSTY_V8_ARCHIVE="${DISTDIR}/rusty_v8_${RUSTY_V8_TAG}_librusty_v8_release_${rusty_v8_triple}.a.gz" \ - RUSTY_V8_SRC_BINDING_PATH="${DISTDIR}/rusty_v8_${RUSTY_V8_TAG}_src_binding_release_${rusty_v8_triple}.rs" \ - cargo_src_compile \ - --bin codex \ - --bin codex-code-mode-host -} - -src_install() { - dobin "$(cargo_target_dir)/codex" - dobin "$(cargo_target_dir)/codex-code-mode-host" - einstalldocs -}