setup.sh, build.sh, env.sh: fix build on current Arch and Fedora hosts #78

Manually merged
github merged 2 commits from github-bot/gh-78 into main 2026-12-01 20:58:50 +00:00 AGit
Owner

@⁠JohnVonWells on GitHub · 2026-12-01 16:47 UTC · original
JohnVonWells:fix/setup-build-scripts → main · +28 −10 · 3 files · 2 commits · merged 2026-12-01 20:55 UTC

Summary

Fixes the build/setup blockers reported in #72, #70, and #48 — three scripts, seven one-liner-class fixes:

setup.sh

  • Preflight Mesa's pkg-config build dependencies (libdrm, xcb, wayland, xrandr, xshmfence) with distro-specific package names in the error message; only checked when the mesa step is requested (#70)
  • Add pkg-config and x86_64-w64-mingw32-g++ to executable checks (#70)
  • Detect stale venv by testing meson --version instead of python imports, and recreate with --clear when the interpreter path has moved (#70)
  • Pass --accept-license to xwin splat so setup.sh sdk runs unattended (#72)

build.sh

  • Use -winsysroot $sdk (dash, space) instead of /winsysroot$sdk for clang 23 compatibility (#72)
  • Base the systemd-run memory cap on MemAvailable instead of MemTotal so the OOM-killer does not hit on a busy desktop (#72)

env.sh

  • Add --full-index to patched() so blob hash comparisons do not depend on core.abbrev (#48)

Test plan

  • ./setup.sh sdk completes without a license prompt
  • ./setup.sh mesa on a machine missing libdrm-devel prints the distro-specific install line and exits before meson
  • ./setup.sh mesa on a machine with all deps completes normally
  • ./build.sh with clang 23 finds the Windows SDK headers
  • ./build.sh on a 32 GB machine with ~11 GB in use does not OOM-kill
  • After changing core.abbrev, ./setup.sh mesa does not falsely report patch changes

Closes #72, closes #70. Supersedes #48.

🤖 Generated with Claude Code

**@⁠JohnVonWells** on GitHub · 2026-12-01 16:47 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/78) `JohnVonWells:fix/setup-build-scripts` → `main` · +28 −10 · 3 files · 2 commits · merged 2026-12-01 20:55 UTC ## Summary Fixes the build/setup blockers reported in #72, #70, and #48 — three scripts, seven one-liner-class fixes: **setup.sh** - Preflight Mesa's pkg-config build dependencies (libdrm, xcb, wayland, xrandr, xshmfence) with distro-specific package names in the error message; only checked when the `mesa` step is requested (#70) - Add `pkg-config` and `x86_64-w64-mingw32-g++` to executable checks (#70) - Detect stale venv by testing `meson --version` instead of python imports, and recreate with `--clear` when the interpreter path has moved (#70) - Pass `--accept-license` to `xwin splat` so `setup.sh sdk` runs unattended (#72) **build.sh** - Use `-winsysroot $sdk` (dash, space) instead of `/winsysroot$sdk` for clang 23 compatibility (#72) - Base the `systemd-run` memory cap on `MemAvailable` instead of `MemTotal` so the OOM-killer does not hit on a busy desktop (#72) **env.sh** - Add `--full-index` to `patched()` so blob hash comparisons do not depend on `core.abbrev` (#48) ## Test plan - [ ] `./setup.sh sdk` completes without a license prompt - [ ] `./setup.sh mesa` on a machine missing `libdrm-devel` prints the distro-specific install line and exits before meson - [ ] `./setup.sh mesa` on a machine with all deps completes normally - [ ] `./build.sh` with clang 23 finds the Windows SDK headers - [ ] `./build.sh` on a 32 GB machine with ~11 GB in use does not OOM-kill - [ ] After changing `core.abbrev`, `./setup.sh mesa` does not falsely report patch changes Closes #72, closes #70. Supersedes #48. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- setup.sh: preflight Mesa's pkg-config build deps (libdrm, xcb, wayland,
  xrandr, xshmfence) with distro-specific package names in the error message;
  only checked when the mesa step is requested (#70)
- setup.sh: add pkg-config and x86_64-w64-mingw32-g++ to executable checks (#70)
- setup.sh: detect stale venv by testing `meson --version` instead of python
  imports, and recreate with `--clear` when the interpreter path has moved (#70)
- setup.sh: pass --accept-license to xwin splat so setup runs unattended (#72)
- build.sh: use `-winsysroot $sdk` (dash, space) instead of `/winsysroot$sdk`
  for clang 23 compatibility (#72)
- build.sh: base the systemd-run memory cap on MemAvailable instead of
  MemTotal so the OOM-killer does not hit on a busy desktop (#72)
- env.sh: add --full-index to patched() so blob hash length does not depend
  on core.abbrev (#48)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 16:50:36 +00:00
github-bot referenced this pull request from a commit 2026-12-01 20:58:42 +00:00
github manually merged commit b402097f3b into main 2026-12-01 20:58:50 +00:00
github-bot referenced this pull request from a commit 2026-12-01 21:04:22 +00:00
github-bot referenced this pull request from a commit 2026-12-04 19:05:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.