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}"