From 252f166f15e2389718f69fd4b2b733f13725b7f7 Mon Sep 17 00:00:00 2001 From: rain Date: Tue, 23 Jun 2026 17:58:25 -0400 Subject: [PATCH] Gentoo user-packages: add omp install via bun (was missing) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The universal arch/debian scripts had omp install via 'bun add -g @oh-my-pi/pi-coding-agent' for both OSes. The gentoo script was missing this block entirely — only the universal's os_family guard handled arch/debian. On tadbit this meant omp never got installed. Fix: added an omp install block to the gentoo script after the bun verification step. Same wrapping in a subshell for undervoltage safety. Now all three OSes install omp the same way (via bun global). --- ...ce_20-install-user-packages-gentoo.sh.tmpl | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/run_once_20-install-user-packages-gentoo.sh.tmpl b/run_once_20-install-user-packages-gentoo.sh.tmpl index 2c37ada..ff98e84 100644 --- a/run_once_20-install-user-packages-gentoo.sh.tmpl +++ b/run_once_20-install-user-packages-gentoo.sh.tmpl @@ -209,6 +209,26 @@ fi BUN_VER=$(bun --version 2>/dev/null) log "bun: $BUN_VER (from official bun.sh installer; gentoo has no package)" +# Step 6.5: Pi coding agent (oh-my-pi) — installs omp via bun global. +# Gentoo: bun is in ~/.local/bin (from the curl install above), not +# /usr/bin, so the package-based install paths in the universal +# script don't apply. We do this here. +if command -v bun >/dev/null 2>&1; then + if ! command -v omp >/dev/null 2>&1; then + log "installing @oh-my-pi/pi-coding-agent via bun global" + # Wrap in subshell so a segfault/timeout (e.g. Pi undervoltage + # killing the install mid-run, see pitfall #30) doesn't abort + # the whole bootstrap. omp can be retried manually later. + if (bun add -g @oh-my-pi/pi-coding-agent 2>&1 | tail -10); then + log "omp installed: $(omp --version 2>&1 | head -1)" + else + log "WARNING: bun add -g failed; omp not installed. Retry manually." + fi + else + log "omp already installed: $(omp --version 2>&1 | head -1)" + fi +fi + # Step 7: oh-my-zsh + plugins if [[ ! -d "$USER_HOME/.oh-my-zsh" ]]; then log "installing oh-my-zsh"