[PR #950] x64_recomp: find qemu through QEMU_AARCH64 or PATH, not a contributor's home folder #988

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

📋 Pull Request Information

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

Base: main ← Head: fix/x64-recomp-qemu-path


📝 Commits (1)

  • 16452e7 x64_recomp: find qemu through QEMU_AARCH64 or PATH, not a contributor's home folder

📊 Changes

3 files changed (+7 additions, -13 deletions)

View changed files

📝 docs/mobile.md (+1 -1)
📝 tests/test_x64_recomp.py (+2 -7)
📝 tools/x64_recomp.py (+4 -5)

📄 Description

Claimed in the coordination issue as: claiming: tools/x64_recomp.py and tests/test_x64_recomp.py hard-code a contributor's /home/nolan/.nix-profile qemu path; use QEMU_AARCH64 or PATH only, and have the test reuse x64_recomp.QEMU_BIN. Tools only. AI-assisted.

What and why

The default qemu path in tools/x64_recomp.py and tests/test_x64_recomp.py was one contributor's /home/nolan/.nix-profile folder. The tool now uses QEMU_AARCH64, else qemu-system-aarch64 on PATH, and the test reuses x64_recomp.QEMU_BIN instead of its own copy of the lookup. docs/mobile.md now says where the exec tests look for qemu.

Tested

On macOS 26.6.2 with Python 3.12.16 and on Ubuntu 26.04 (WSL2) with Python 3.14.4, from the checkout root with python -I: tests/test_x64_recomp.py, tests/test_text_write_line_endings.py and tests/test_docs_python_deps.py pass on both. On macOS qemu is not installed, so 26 qemu tests skip (6 run). Not run against a real qemu. The lookup was checked by hand with a stand-in binary, outside the test file: QEMU_AARCH64 is used when set (also ahead of PATH), else the binary on PATH, else the bare name.

GPUs tested: none (no GPU code changed)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

🔄 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/950 **Author:** [@barkodr](https://github.com/barkodr) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/x64-recomp-qemu-path` --- ### 📝 Commits (1) - [`16452e7`](https://github.com/ubiquitarianism/leonida/commit/16452e785f52801fd5b17e5936c26f0eb2edad03) x64_recomp: find qemu through QEMU_AARCH64 or PATH, not a contributor's home folder ### 📊 Changes **3 files changed** (+7 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `docs/mobile.md` (+1 -1) 📝 `tests/test_x64_recomp.py` (+2 -7) 📝 `tools/x64_recomp.py` (+4 -5) </details> ### 📄 Description Claimed in the coordination issue as: claiming: tools/x64_recomp.py and tests/test_x64_recomp.py hard-code a contributor's /home/nolan/.nix-profile qemu path; use QEMU_AARCH64 or PATH only, and have the test reuse x64_recomp.QEMU_BIN. Tools only. AI-assisted. ### What and why The default qemu path in `tools/x64_recomp.py` and `tests/test_x64_recomp.py` was one contributor's `/home/nolan/.nix-profile` folder. The tool now uses `QEMU_AARCH64`, else `qemu-system-aarch64` on `PATH`, and the test reuses `x64_recomp.QEMU_BIN` instead of its own copy of the lookup. `docs/mobile.md` now says where the exec tests look for qemu. ### Tested On macOS 26.6.2 with Python 3.12.16 and on Ubuntu 26.04 (WSL2) with Python 3.14.4, from the checkout root with `python -I`: `tests/test_x64_recomp.py`, `tests/test_text_write_line_endings.py` and `tests/test_docs_python_deps.py` pass on both. On macOS qemu is not installed, so 26 qemu tests skip (6 run). Not run against a real qemu. The lookup was checked by hand with a stand-in binary, outside the test file: `QEMU_AARCH64` is used when set (also ahead of `PATH`), else the binary on `PATH`, else the bare name. GPUs tested: none (no GPU code changed) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. --- <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#988
No description provided.