Files
Sergio f9ed89cd17 takana: espejo de GitHub renombrado, y las dos colas que quedaban
GitHub: sergiovelasquezzeballos/hammer -> takana (sigue privado). El segundo
pushurl del origin y el default de espejo-setup.sh actualizados; push real
verificado contra los DOS destinos.

Las dos colas las encontro hammer-4a y las verifique antes de aplicarlas:

1) CINCO scripts hardcodeaban /home/sergio/hammer y hoy funcionaban SOLO por el
   symlink que puse al mover. El peor era respaldo-storagebox.sh, cuya RAIZ por
   defecto salia de ahi: si alguien limpia el symlink dando el renombre por
   cerrado, el RESPALDO apunta a una ruta inexistente. Un respaldo que no
   encuentra su raiz no falla ruidosamente — se descubre el dia que lo
   necesitas. Ahora apuntan a /mnt/vvv/takana, la ruta real, sin depender de
   ningun enlace.

2) Cuatro referencias a gitea.gioser.net/sergio/hammer. El diagnostico del peer
   era el correcto y lo comprobe: ese HOST no resuelve, y no por el renombre —
   ya estaba mal antes, el remoto real es git.gioser.net. Cambiar solo
   hammer->takana las habria dejado igual de rotas. Van a
   https://git.gioser.net/sergio/takana, que responde 200.
2026-09-09 20:33:03 +00:00

36 lines
1.2 KiB
Bash
Executable File

#!/bin/sh
# Run rust's x.py inside the Alpine devfs sandbox (musl, 256-TLS loader, gcc),
# pointed at the mrustc-bootstrapped stage0. Hermetic: vendored deps, external LLVM.
# Usage: run-xpy.sh <SRCDIR> <PREFIXDIR> -- <x.py args...>
# SRCDIR : host path to the rust source tree (mounted at /src)
# PREFIXDIR : host path for the install prefix (mounted at /out)
set -eu
ROOT=/mnt/vvv/takana
DEVFS=$ROOT/.dev-fs/alpine
MRUSTC=$ROOT/.scratch/mrustc
SRC=${1:?src dir required}; shift
PREFIX=${1:?prefix dir required}; shift
[ "${1:-}" = "--" ] && shift
# Optional read-only stage0 prefix (a prior hop's installed toolchain), bound at
# /stage0 when STAGE0 is set in the environment. bootstrap.toml's build.rustc can
# then reference /stage0/bin/rustc for a climb hop.
STAGE0_BIND=""
[ -n "${STAGE0:-}" ] && STAGE0_BIND="--ro-bind $STAGE0 /stage0"
exec bwrap \
--bind "$DEVFS" / \
--bind "$MRUSTC" /mrustc \
--bind "$SRC" /src \
--bind "$PREFIX" /out \
$STAGE0_BIND \
--dev /dev --proc /proc \
--tmpfs /tmp --tmpfs /run \
--setenv PATH /usr/bin:/bin:/usr/sbin:/sbin \
--setenv HOME /root \
--setenv TMPDIR /tmp \
--setenv CC gcc --setenv CXX g++ \
--setenv RUST_BACKTRACE 1 \
--chdir /src \
python3 x.py "$@"