make_game: gta6rt.sh resolves a relative WINE before changing to the game folder (OLD-10028) #1233

Open
github-bot wants to merge 2 commits from github-bot/gh-1233 into main AGit
Owner

@⁠IlyassRS3 on GitHub · 2026-11-24 20:39 UTC · original
IlyassRS3:carry/old-10028-wine-relative-path → main · +14 −0 · 2 files · 2 commits · open

What changed

Carries forward old-pr/10028 (draft #296, original commit by @⁠SkippySteve) rebased cleanly onto current main (2e026b03e), preserving the original author commit and adapting the new assertion for main's macOS physical-path comparison:

  1. Original commit (@SkippySteve):
    • make_game.py (wine_launcher): before cd "${game%.}", anchor any relative WINE path containing / (case ${WINE-} in /*) ;; */*) WINE=$PWD/$WINE ;; esac) against the caller's $PWD, leaving absolute paths and bare PATH names (e.g. wine) unchanged.
    • tests/test_make_game_platform.py: exercise a relative WINE="Proton 9.0/files/bin/wine" symlink from the caller's working directory.
  2. Follow-up commit (IlyassRS3):
    • tests/test_make_game_platform.py: compare real(self.game) and real(self.out) in the new assertion (matching main's real(...) helper in the same test) so the test also passes when TMPDIR is under a symlinked path such as macOS's /var/folders -> /private/var/folders.

Item ID

  • Coordination issue #14 item: OLD-10028 (carries forward old-pr/10028 / draft #296, #17)
  • Depends on: none

Verification

Tested on macOS 27.2.1 (Apple M5 arm64), Python 3.14 (no game files, no GPU, standard library only):

  • TMPDIR=/var/tmp python3 -I tests/test_make_game_platform.py -v -> 46/46 OK (note: without the real(...) follow-up commit, TMPDIR=/var/tmp failed because /var/tmp resolves to /private/var/tmp)
  • python3 -I tests/test_make_game_platform.py -> 46/46 OK
  • Revert-source mutation check (reverting make_game.py to upstream/main while keeping tests/test_make_game_platform.py) -> FAILED (errors=1) with gta6rt.sh: ... /game/Proton 9.0/files/bin/wine: No such file or directory (exit 126); restoring the fix returns to 46/46 OK.
  • python3 -m compileall -q make_game.py tests/test_make_game_platform.py -> OK
  • python3 -I scripts/check_no_game_data.py make_game.py tests/test_make_game_platform.py -> OK
  • python3 -I tests/test_ci_registration.py -> 15/15 OK
  • python3 -I tests/test_text_write_line_endings.py -> 3/3 OK

Checklist

  • No game files, binaries, shaders, textures, audio, or logs quoting them
  • No keys, decryption, or online services
  • Claimed in the coordination issue (#14) before opening this PR
  • AI-assisted: yes (carried forward, audited, rebased, fixed macOS symlinked-TMPDIR assertion, and regression-verified with AI assistance; original commit by @⁠SkippySteve preserved)
**@⁠IlyassRS3** on GitHub · 2026-11-24 20:39 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1233) `IlyassRS3:carry/old-10028-wine-relative-path` → `main` · +14 −0 · 2 files · 2 commits · open ## What changed Carries forward `old-pr/10028` (draft #296, original commit by @⁠SkippySteve) rebased cleanly onto current `main` (`2e026b03e`), preserving the original author commit and adapting the new assertion for `main`'s macOS physical-path comparison: 1. **Original commit (`@SkippySteve`)**: - `make_game.py` (`wine_launcher`): before `cd "${game%.}"`, anchor any relative `WINE` path containing `/` (`case ${WINE-} in /*) ;; */*) WINE=$PWD/$WINE ;; esac`) against the caller's `$PWD`, leaving absolute paths and bare `PATH` names (e.g. `wine`) unchanged. - `tests/test_make_game_platform.py`: exercise a relative `WINE="Proton 9.0/files/bin/wine"` symlink from the caller's working directory. 2. **Follow-up commit (`IlyassRS3`)**: - `tests/test_make_game_platform.py`: compare `real(self.game)` and `real(self.out)` in the new assertion (matching `main`'s `real(...)` helper in the same test) so the test also passes when `TMPDIR` is under a symlinked path such as macOS's `/var/folders -> /private/var/folders`. ## Item ID - Coordination issue #14 item: `OLD-10028` (carries forward `old-pr/10028` / draft #296, #17) - Depends on: none ## Verification Tested on macOS 27.2.1 (Apple M5 arm64), Python 3.14 (no game files, no GPU, standard library only): - `TMPDIR=/var/tmp python3 -I tests/test_make_game_platform.py -v` -> **46/46 OK** (note: without the `real(...)` follow-up commit, `TMPDIR=/var/tmp` failed because `/var/tmp` resolves to `/private/var/tmp`) - `python3 -I tests/test_make_game_platform.py` -> **46/46 OK** - Revert-source mutation check (reverting `make_game.py` to `upstream/main` while keeping `tests/test_make_game_platform.py`) -> **FAILED (errors=1)** with `gta6rt.sh: ... /game/Proton 9.0/files/bin/wine: No such file or directory` (exit 126); restoring the fix returns to 46/46 OK. - `python3 -m compileall -q make_game.py tests/test_make_game_platform.py` -> OK - `python3 -I scripts/check_no_game_data.py make_game.py tests/test_make_game_platform.py` -> OK - `python3 -I tests/test_ci_registration.py` -> **15/15 OK** - `python3 -I tests/test_text_write_line_endings.py` -> **3/3 OK** ## Checklist - [x] No game files, binaries, shaders, textures, audio, or logs quoting them - [x] No keys, decryption, or online services - [x] Claimed in the coordination issue (#14) before opening this PR - [x] AI-assisted: yes (carried forward, audited, rebased, fixed macOS symlinked-`TMPDIR` assertion, and regression-verified with AI assistance; original commit by @⁠SkippySteve preserved)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:43:53 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-24 20:39 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-11-24 20:39 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1233#pullrequestreview-6047043855) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1233/head:github-bot/gh-1233'
git switch 'github-bot/gh-1233'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1233'
git switch 'github-bot/gh-1233'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1233'
git switch 'github-bot/gh-1233'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1233'
git switch 'main'
git merge --squash 'github-bot/gh-1233'
git switch 'main'
git merge --ff-only 'github-bot/gh-1233'
git switch 'main'
git merge 'github-bot/gh-1233'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.