From a0bd04eab84eeaab2ecf5d6c2b6d486007cf8cec Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Mon, 5 Oct 2026 18:26:17 +0000 Subject: [PATCH] build-linux.sh: NODE_SRC, TARGET_DIR and OUT_DIR made absolute before the cd into the node source (a relative target dir landed inside the node worktree and the copy read the stale repository-relative one; the 0.3.10 cut, twice) Co-Authored-By: Claude Fable 5.1 --- infra/cross/build-linux.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infra/cross/build-linux.sh b/infra/cross/build-linux.sh index 003fab4cd..c45fcf6f6 100755 --- a/infra/cross/build-linux.sh +++ b/infra/cross/build-linux.sh @@ -17,6 +17,11 @@ REPO="$(cd "$HERE/../.." && pwd)" NODE_SRC="${NODE_SRC:-$REPO/vendor/igneum-node-v4}" TARGET_DIR="${TARGET_DIR:-$REPO/vendor/igneum-node/target-linux}" OUT_DIR="${OUT_DIR:-$HERE/out}" +# Every path absolute before the cd into NODE_SRC (5 October 2026, the 0.3.10 cut: a relative TARGET_DIR was resolved by +# cargo inside the node worktree, the copy below read the repository-relative one, and the seed's "new" binary was the +# previous build's bytes, twice). +abs() { case "$1" in /*) printf '%s' "$1" ;; *) printf '%s/%s' "$PWD" "$1" ;; esac; } +NODE_SRC="$(abs "$NODE_SRC")"; TARGET_DIR="$(abs "$TARGET_DIR")"; OUT_DIR="$(abs "$OUT_DIR")" TARGET="${TARGET:-x86_64-unknown-linux-gnu}" GLIBC="${GLIBC:-2.36}" JOBS="${JOBS:-4}"