diff --git a/dev-util/opencode-bin/Manifest b/dev-util/opencode-bin/Manifest
index ca7dfe2..af9fe8f 100644
--- a/dev-util/opencode-bin/Manifest
+++ b/dev-util/opencode-bin/Manifest
@@ -1,2 +1,2 @@
-DIST opencode-bin-2.0.30-amd64.tgz 98083039 BLAKE2B 776fec770c5850f2f507f5a9df1b0a38f57369bc06f9194c07f7d00616e8d858ed1c447128a449744bf83eb20487bd44aa50c5e1f465147d5a4c5778f51bb105 SHA512 a01c3c76d83d05688a921c8f3b103a18dfa8efcce641f8e0562ec7cfd75ed69259255c8604c2e59189351303de4bebd6c8e0926adcb6171080b181f56cc752da
-DIST opencode-bin-2.0.30-arm64.tgz 96850168 BLAKE2B 5173ac8ee5928519ecbc7eb7848522c91ed3b009c82e26a74b1d1b0f17288bd45c9ddb5f8c29f7935547e40a1822290c48ca26d925186fc9be97180cf5c6b809 SHA512 110cd5038d235a46d831019da82df2ec8ec33949f0e736213cfc026b6bc56ff30afc1b8190766a3dcb030010fcd8409a355189a38de4cfcb340a4a1d6fc100e3
+DIST opencode-bin-2.0.32-amd64.tgz 98152331 BLAKE2B 2513af0b29c8bedc0da6daf28000631d385e0386be325bb5a365aa5710ba8667edaeb4e183cc20f77650a21e0921b9be08fa6243d90166ce983ce97eb884e91f SHA512 439d287c143781dc230fa65086b551f1f5659bc0f6c4f32c872e1dca763a97a6fea8b74a801489f56a68683cab417d585a67f6b3b20de116d79a85d77498ad0c
+DIST opencode-bin-2.0.32-arm64.tgz 96915721 BLAKE2B 87db86d27f4b71ff0fce298aca77e9ed05f37efa70f3ff0708d02ac363c4a5c2197301779f917c70705723fd2f2f947f30bbef6f1214c472fafb2c76ef6dffbc SHA512 611e4ed378abbe6a2dfc6d1ff16e3d7a1be19f9baa085377bdff494ec0a1bdfe3b5ba95d8ca08dbec6824974b648fdba74f394310067ed6a9b2a7c87ceb351e7
diff --git a/dev-util/opencode-bin/opencode-bin-2.0.30.ebuild b/dev-util/opencode-bin/opencode-bin-2.0.32.ebuild
similarity index 100%
rename from dev-util/opencode-bin/opencode-bin-2.0.30.ebuild
rename to dev-util/opencode-bin/opencode-bin-2.0.32.ebuild
diff --git a/dev-util/radiance/Manifest b/dev-util/radiance/Manifest
index 042233f..8cde72d 100644
--- a/dev-util/radiance/Manifest
+++ b/dev-util/radiance/Manifest
@@ -1 +1 @@
-DIST radiance-1.6.0.tar.gz 10858558 BLAKE2B 1fcd6c9ec18a5ea274c69cac97c411942724d5bed07e3b35900d8d570e55048be26aca6278a99f6ce20f32b9fb2a9a7c659f8d03bfeb6f13db8e68630aeb87d0 SHA512 68e7511ef15b64b6fed7036ac9c441d8467e07d10787d0d847a06d88bd4fdf17a3e6e2edda507b98b620bf3dac29355546fbf559b6f7420ee3fec3f36ff62def
+DIST radiance-1.7.0.tar.gz 9628676 BLAKE2B 176ca2db2a4b56e596d5551b63cb2c32dd3d411543133c77ebf401321b9276910176f204206d7967359efa08d9f455c0047d08b824aea01c0bcbe18836ab4ee6 SHA512 1689c0be322136ae9bbd58ace3055fb8949f039a96c0781d05f24166e97d7fcca80db0d0434fbfa934c97c073b823db7d143b510fc5e3cfda0498baa4eab249e
diff --git a/dev-util/radiance/files/radiance-1.6.0-clang-24-vector-types.patch b/dev-util/radiance/files/radiance-1.7.0-clang-24-vector-types.patch
similarity index 81%
rename from dev-util/radiance/files/radiance-1.6.0-clang-24-vector-types.patch
rename to dev-util/radiance/files/radiance-1.7.0-clang-24-vector-types.patch
index 7d0a903..531a122 100644
--- a/dev-util/radiance/files/radiance-1.6.0-clang-24-vector-types.patch
+++ b/dev-util/radiance/files/radiance-1.7.0-clang-24-vector-types.patch
@@ -1,8 +1,7 @@
-diff --git a/libr4d/r4d_dt16.h b/libr4d/r4d_dt16.h
-index 4688b73..2fd9c92 100644
+diff -ruN a/libr4d/r4d_dt16.h b/libr4d/r4d_dt16.h
--- a/libr4d/r4d_dt16.h
+++ b/libr4d/r4d_dt16.h
-@@ -9,9 +9,12 @@
+@@ -8,9 +8,12 @@
#pragma once
#include "r4d_common.h"
@@ -16,9 +15,9 @@ index 4688b73..2fd9c92 100644
+typedef _Float16 v2hf __attribute__((ext_vector_type(2))); // what fdot2 takes
+typedef __fp16 cvt2hf __attribute__((ext_vector_type(2))); // what cvt_pkrtz returns
- // GROW = how many octaves the running row max may exceed the REFERENCE max before the
- // accumulator has to be rescaled. p = 2^(s - m_ref) must stay inside the format, so GROW is
-@@ -53,15 +56,15 @@ template<> struct DT16<1> { // f16: 3 more mantissa bits,
+ // GROW = how many octaves the running row max may exceed the reference max before the accumulator
+ // must be rescaled. p = 2^(s - m_ref) must stay inside the format, so GROW is log2(format max) with
+@@ -51,15 +54,15 @@
return __builtin_amdgcn_wmma_f32_16x16x16_f16_w32_gfx12(a, b, c);
}
__device__ __forceinline__ static uint32_t pk(float x, float y) {
@@ -37,8 +36,7 @@ index 4688b73..2fd9c92 100644
q.h = __builtin_amdgcn_cvt_pkrtz(__builtin_bit_cast(float, w << 16),
__builtin_bit_cast(float, w & 0xffff0000u));
return q.u;
-diff --git a/libr4d/r4d_gdn_wmma.h b/libr4d/r4d_gdn_wmma.h
-index 2c4923e..c02266d 100644
+diff -ruN a/libr4d/r4d_gdn_wmma.h b/libr4d/r4d_gdn_wmma.h
--- a/libr4d/r4d_gdn_wmma.h
+++ b/libr4d/r4d_gdn_wmma.h
@@ -7,7 +7,7 @@
@@ -49,12 +47,11 @@ index 2c4923e..c02266d 100644
+typedef short v8bf __attribute__((ext_vector_type(8))); /* 8 bf16, as the builtin takes them (clang 24) */
typedef float v8f __attribute__((ext_vector_type(8)));
- // gfx1201 has no bf16 convert instruction, so this is software. Round-half-away
-diff --git a/libr4d/r4d_moe.hip b/libr4d/r4d_moe.hip
-index 384c9d1..7fd5275 100644
+ // Software f32 -> bf16 (gfx1201 has no convert). Round-half-away (u + 0x8000) is one add where
+diff -ruN a/libr4d/r4d_moe.hip b/libr4d/r4d_moe.hip
--- a/libr4d/r4d_moe.hip
+++ b/libr4d/r4d_moe.hip
-@@ -2226,7 +2226,7 @@ static_assert(MoeDnArgs::count <= RAD_MAX_KPARAMS,
+@@ -1892,7 +1892,7 @@
constexpr uint32_t kBK16 = 64; // bf16 K elements staged per pass
constexpr uint32_t kP16 = kBK16 + 8; // the LDS row pitch, in elements
@@ -63,7 +60,7 @@ index 384c9d1..7fd5275 100644
typedef float mb_v8f __attribute__((ext_vector_type(8)));
__device__ __forceinline__ mb_v8f mb_mma(mb_v8bf a, mb_v8bf b, mb_v8f c) {
-@@ -3894,7 +3894,7 @@ namespace {
+@@ -3397,7 +3397,7 @@
constexpr int kRgKU = 8; /* r4d_gemm_bf16_nt_m64's KU: the unroll, not the order */
diff --git a/dev-util/radiance/radiance-1.6.0.ebuild b/dev-util/radiance/radiance-1.7.0.ebuild
similarity index 96%
rename from dev-util/radiance/radiance-1.6.0.ebuild
rename to dev-util/radiance/radiance-1.7.0.ebuild
index 9df6826..6bda33c 100644
--- a/dev-util/radiance/radiance-1.6.0.ebuild
+++ b/dev-util/radiance/radiance-1.7.0.ebuild
@@ -36,7 +36,7 @@ DOCS=( README.md )
PATCHES=(
# clang 24 makes __bf16/__fp16 distinct storage-only types; the WMMA/fdot2
# builtins now demand short/_Float16 vector operands.
- "${FILESDIR}/${PN}-1.6.0-clang-24-vector-types.patch"
+ "${FILESDIR}/${PN}-1.7.0-clang-24-vector-types.patch"
)
src_configure() {
diff --git a/scripts/overlay-bump.sh b/scripts/overlay-bump.sh
new file mode 100755
index 0000000..6931e51
--- /dev/null
+++ b/scripts/overlay-bump.sh
@@ -0,0 +1,176 @@
+#!/usr/bin/env bash
+# Mechanical version bumps for josie-overlay packages.
+#
+# scripts/overlay-bump.sh [<cat/pkg> ...]
+#
+# No args: bump everything scripts/overlay-sweep.sh reports BEHIND. With args:
+# only those packages (a package the sweep calls `ok` is skipped). One version
+# per directory: this overlay tracks upstream, so a bump is a rename, not an
+# addition. Per package the script:
+#
+# 1. git-mv <pn>-<old>.ebuild -> <pn>-<new>.ebuild
+# 2. git-mv files/<pn>-<old>-* patches -> <pn>-<new>-* and rewrite the
+# ${PN}-<old>- / <pn>-<old>- references in the ebuild
+# 3. regenerate the Manifest (`ebuild <new> manifest`; distfiles are cached
+# under /tmp/opencode/distdir so the real DISTDIR stays untouched)
+# 4. if patches were renamed: unpack the fetched distfile and dry-run every
+# patch against the *new* source. Drift (or an upstream fix making the
+# patch obsolete) => roll the package back to HEAD and report NEEDS-REVIEW.
+# 5. per-package extra checks (see EXTRA): opencode-bin verifies the
+# downloaded tarballs against the npm registry's sha512 integrity.
+#
+# Deterministic and safe to re-run; anything it cannot do cleanly is left at
+# HEAD and named in the summary. After a green run: scripts/overlay-gate.sh
+# <cat/pkg>..., then commit. The ROCm chain is deliberately NOT scriptable
+# (7 interlocking packages + per-release source porting) — bump it by hand.
+set -euo pipefail
+
+root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
+cd "$root"
+
+work=/tmp/opencode
+distdir=$work/distdir
+mkdir -p "$distdir" "$work/portage"
+export DISTDIR=$distdir PORTAGE_TMPDIR=$work/portage TMPDIR=$work HOME=$work
+
+# BEHIND rows from the sweep: "label old new" per line (filtered by $@ if given)
+labels=""
+sweep=$(./scripts/overlay-sweep.sh)
+echo "$sweep"
+while read -r label old new mark; do
+ [ "$mark" = BEHIND ] || continue
+ if [ $# -gt 0 ]; then
+ take=0
+ for want in "$@"; do [ "$want" = "$label" ] && take=1; done
+ [ $take -eq 1 ] || continue
+ fi
+ labels+="$label $old $new"$'\n'
+done <<<"$sweep"
+
+[ -n "$labels" ] || { echo; echo "nothing to bump."; exit 0; }
+
+# labels that are not single package directories
+manual() { case $1 in rocm-therock-chain) return 0;; *) return 1;; esac; }
+# label -> extra check function (after Manifest regen, before accepting)
+declare -A EXTRA=([dev-util/opencode-bin]=extra_opencode_bin)
+
+extra_opencode_bin() { # <new> — npm sha512 integrity vs the fetched tarballs
+ local pair npmarch distname want got
+ local dir=dev-util/opencode-bin
+ for pair in amd64:x64 arm64:arm64; do
+ npmarch=${pair##*:}
+ distname="opencode-bin-$1-${pair%%:*}.tgz"
+ [ -f "$distdir/$distname" ] || { echo "FAIL: $distname was not fetched"; return 1; }
+ want=$(curl -fsSL "https://registry.npmjs.org/@opencode/cli-linux-$npmarch/$1" \
+ | python3 -c 'import sys,json;print(json.load(sys.stdin)["dist"]["integrity"])')
+ got=$(python3 -c 'import sys,hashlib,base64;print("sha512-"+base64.b64encode(hashlib.file_digest(open(sys.argv[1],"rb"),"sha512").digest()).decode())' "$distdir/$distname")
+ if [ "$want" != "$got" ]; then
+ echo "FAIL: npm integrity mismatch for $distname"
+ echo " registry: $want"
+ echo " computed: $got"
+ return 1
+ fi
+ echo "PASS: npm sha512 integrity $distname"
+ done
+}
+
+verify_patches() { # <dir> <pn> <new> — rc 0 clean, 1 drift, 2 cannot verify
+ local dir=$1 pn=$2 new=$3 fname top p rc=0 ndist src
+ ndist=$(awk '$1=="DIST"{n++} END{print n+0}' "$dir/Manifest")
+ if [ "$ndist" -ne 1 ]; then
+ echo "WARN: $ndist distfiles in Manifest; cannot auto-locate the source tree"
+ return 2
+ fi
+ fname=$(awk '$1=="DIST"{print $2}' "$dir/Manifest")
+ if [ ! -f "$distdir/$fname" ]; then
+ echo "WARN: $fname missing from $distdir"
+ return 2
+ fi
+ src=$(mktemp -d "$work/unpack.XXXXXX")
+ case $fname in
+ *.tar.gz|*.tgz) tar -xzf "$distdir/$fname" -C "$src" ;;
+ *.zip) unzip -q "$distdir/$fname" -d "$src" ;;
+ *) rm -rf "$src"; echo "WARN: unhandled distfile type: $fname"; return 2 ;;
+ esac
+ # archives unpack to one top dir (that is ${WORKDIR}/<dir> == S); else root
+ if [ -d "$src/$pn" ]; then top=$src/$pn
+ else top=$src
+ fi
+ for p in "$dir"/files/"$pn"-"$new"-*; do
+ [ -e "$p" ] || continue
+ if patch -d "$top" -p1 -F0 -N -t --dry-run <"$p" >/dev/null; then
+ echo "PASS: patch dry-run $(basename "$p")"
+ else
+ echo "FAIL: $(basename "$p") does not apply cleanly to $new source"
+ rc=1
+ fi
+ done
+ rm -rf "$src"
+ return $rc
+}
+
+rollback() { # <dir> — undo everything git-tracked under the package dir
+ git restore --source=HEAD --staged --worktree -- "$1"
+ git clean -fdq -- "$1"
+}
+
+bumped=() failed=() skipped=()
+while read -r label old new; do
+ [ -n "$label" ] || continue
+ if manual "$label"; then
+ echo; echo "== $label $old -> $new: NOT SCRIPTABLE, bump by hand =="
+ skipped+=("$label")
+ continue
+ fi
+ dir=$label pn=${label##*/}
+ echo; echo "== bump $label $old -> $new =="
+ if ! git mv "$dir/$pn-$old.ebuild" "$dir/$pn-$new.ebuild"; then
+ failed+=("$label (ebuild rename)"); continue
+ fi
+ renamed_patches=0
+ if [ -d "$dir/files" ]; then
+ for f in "$dir"/files/"$pn"-"$old"-*; do
+ [ -e "$f" ] || continue
+ if git mv "$f" "$dir/files/$pn-$new-${f##*/$pn-$old-}"; then
+ renamed_patches=1
+ fi
+ done
+ if [ $renamed_patches -eq 1 ]; then
+ # the ebuild references the patch two ways: literal "${PN}-<old>-"
+ # (unexpanded file text) or "<pn>-<old>-"
+ sed -i -e "s|\${PN}-$old-|\${PN}-$new-|g" -e "s|$pn-$old-|$pn-$new-|g" "$dir/$pn-$new.ebuild"
+ fi
+ fi
+ if ! ebuild "$dir/$pn-$new.ebuild" manifest; then
+ rollback "$dir"; echo "FAIL: Manifest regeneration"; failed+=("$label (manifest)"); continue
+ fi
+ if [ $renamed_patches -eq 1 ]; then
+ rc=0; verify_patches "$dir" "$pn" "$new" || rc=$?
+ if [ $rc -eq 1 ]; then
+ rollback "$dir"
+ echo "NEEDS-REVIEW: rolled back — re-derive the patch against $new, or drop it if upstream fixed the bug"
+ failed+=("$label (patch drift)"); continue
+ elif [ $rc -eq 2 ]; then
+ echo "NEEDS-REVIEW: patch dry-run skipped — verify it manually before merging"
+ fi
+ fi
+ if [ -n "${EXTRA[$label]:-}" ] && ! "${EXTRA[$label]}" "$new"; then
+ rollback "$dir"
+ echo "FAIL: extra check ${EXTRA[$label]} — rolled back"
+ failed+=("$label (extra check)"); continue
+ fi
+ bumped+=("$label $old -> $new")
+done <<<"$labels"
+
+echo
+echo "== summary =="
+for b in "${bumped[@]:-}"; do [ -n "$b" ] && echo "BUMPED: $b"; done
+for s in "${skipped[@]:-}"; do [ -n "$s" ] && echo "NOT SCRIPTABLE: $s (manual bump)"; done
+for f in "${failed[@]:-}"; do [ -n "$f" ] && echo "NEEDS-REVIEW: $f"; done
+[ ${#failed[@]} -eq 0 ] || exit 1
+
+if [ ${#bumped[@]} -gt 0 ]; then
+ echo
+ echo "Next: ./scripts/overlay-gate.sh $(printf '%s ' "${bumped[@]%% *}")"
+fi
+exit 0
version bump 2026-10-16: opencode-bin 2.0.32, radiance 1.7.0; add overlay-bump.sh
- scripts/overlay-bump.sh: scripted the bump mechanics (sweep-driven rename of ebuild + version-named patches, PATCHES rewrite, Manifest regen, patch dry-run vs the real new source, per-package extra checks, git rollback on anything not clean). ROCm chain deliberately manual. - opencode-bin 2.0.30 -> 2.0.32: clean scripted bump; npm sha512 integrity PASS amd64+arm64; tarball runs 'opencode v2.0.32'. - radiance 1.6.0 -> 1.7.0: scripted dry-run caught patch drift (upstream reworded the comments around the __bf16/__fp16 typedefs but did NOT fix the clang-24 typing), auto-rolled back; patch re-derived for 1.7.0 (same 5 hunks / 3 files, no new vector-type sites). All 88 libr4d/**/*.hip syntax-clean under clang 24 / gfx1200 (launchreg_lib.hip checked with its real -DNK=2/512 flags; it is not a CMake unit). - gate PASS on both: pkgcheck static + --net + emerge -pv (2.0.30->2.0.32, 1.6.0->1.7.0 gfx1200).
51e900ad907e2a072be116768c80d9e9eedb69e4
cjosie <administrator@josie-c.com> · 2026-10-16T19:22 ·
browse files at this commit
parents:
bf452d8