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

Open
opened 2026-11-26 20:20:39 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1233
Author: @IlyassRS3
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: carry/old-10028-wine-relative-path


📝 Commits (2)

  • 4a056a6 make_game: gta6rt.sh resolves a relative WINE before changing to the game folder
  • bb2cd5a test_make_game_platform: compare realpath for relative WINE check on macOS

📊 Changes

2 files changed (+14 additions, -0 deletions)

View changed files

📝 make_game.py (+5 -0)
📝 tests/test_make_game_platform.py (+9 -0)

📄 Description

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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1233 **Author:** [@IlyassRS3](https://github.com/IlyassRS3) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `carry/old-10028-wine-relative-path` --- ### 📝 Commits (2) - [`4a056a6`](https://github.com/ubiquitarianism/leonida/commit/4a056a66c73da0784eabe41c4589bc7d5819d642) make_game: gta6rt.sh resolves a relative WINE before changing to the game folder - [`bb2cd5a`](https://github.com/ubiquitarianism/leonida/commit/bb2cd5a9e2e6730dc2b6a5abde0f882fa52ea218) test_make_game_platform: compare realpath for relative WINE check on macOS ### 📊 Changes **2 files changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `make_game.py` (+5 -0) 📝 `tests/test_make_game_platform.py` (+9 -0) </details> ### 📄 Description ## 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1267
No description provided.