docs/linux.md: add root-free micromamba setup section (DOC-LINUX-FEDORA-NOROOT) #659

Merged
dpalacios69 merged 2 commits from upstream-pr/659 into main 2026-11-25 21:04:47 +00:00
dpalacios69 commented 2026-11-24 11:11:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by dpalacios69 on 2026-11-24T11:11:49Z.


Claimed in the coordination issue as: DOC-LINUX-FEDORA-NOROOT (#14)

What and why

docs/linux.md assumes apt and root. This adds a short "Without root (micromamba)" section for people who cannot install distribution packages: it installs llvm-tools (llvm-mc with the AMDGPU target) and spirv-tools from conda-forge into a user-owned folder, lets CMake fetch its pinned, hash-checked Vulkan headers (LEONIDA_VULKAN_HEADERS_FETCH=ON, runtime/CMakeLists.txt), then builds the Vulkan tools and runs run_gpu_tests.py. It also says what is still needed from the system (Vulkan driver, cmake, ninja, a C++ compiler, python3, curl, tar, bzip2), how to keep it off noexec, how to select the GPU instead of llvmpipe, and how to clean up. The download of micromamba latest is unsigned and unpinned; the section says so and links the official guide.

Section only, no new file. One line is added to the FOREIGN list in tests/test_docs_cli_flags.py for the two micromamba flags the section uses (--strip-components, --override-channels).

Tested

  • python3 -I tests/test_docs_cli_flags.py: 4 passed.
  • python3 -I tests/test_docs_links.py: 16 passed.
  • python3 -I tests/test_docs_repo_paths.py: 3 passed.
  • The same build and run_gpu_tests.py steps ran with this toolchain on a GTX 1660 SUPER (result identical to #646, not submitted separately).

GPUs tested: NVIDIA GeForce GTX 1660 SUPER, NVIDIA 620.70.06, Fedora Linux 44.

AI-assisted: yes (Claude Code), the section was drafted and checked with tools; reviewed before opening.

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. (n/a)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5471032656 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/659). Originally posted by [dpalacios69](https://github.com/dpalacios69) on 2026-11-24T11:11:49Z. --- Claimed in the coordination issue as: DOC-LINUX-FEDORA-NOROOT (#14) ### What and why `docs/linux.md` assumes `apt` and root. This adds a short "Without root (micromamba)" section for people who cannot install distribution packages: it installs `llvm-tools` (llvm-mc with the AMDGPU target) and `spirv-tools` from conda-forge into a user-owned folder, lets CMake fetch its pinned, hash-checked Vulkan headers (`LEONIDA_VULKAN_HEADERS_FETCH=ON`, `runtime/CMakeLists.txt`), then builds the Vulkan tools and runs `run_gpu_tests.py`. It also says what is still needed from the system (Vulkan driver, `cmake`, `ninja`, a C++ compiler, `python3`, `curl`, `tar`, `bzip2`), how to keep it off `noexec`, how to select the GPU instead of `llvmpipe`, and how to clean up. The download of micromamba `latest` is unsigned and unpinned; the section says so and links the official guide. Section only, no new file. One line is added to the `FOREIGN` list in `tests/test_docs_cli_flags.py` for the two micromamba flags the section uses (`--strip-components`, `--override-channels`). ### Tested - `python3 -I tests/test_docs_cli_flags.py`: 4 passed. - `python3 -I tests/test_docs_links.py`: 16 passed. - `python3 -I tests/test_docs_repo_paths.py`: 3 passed. - The same build and `run_gpu_tests.py` steps ran with this toolchain on a GTX 1660 SUPER (result identical to #646, not submitted separately). GPUs tested: NVIDIA GeForce GTX 1660 SUPER, NVIDIA 620.70.06, Fedora Linux 44. AI-assisted: yes (Claude Code), the section was drafted and checked with tools; reviewed before opening. ### 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. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a)
KernelSmoker commented 2026-11-24 13:20:09 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KernelSmoker on 2026-11-24T13:20:09Z.

Review: COMMENTED


Independent Fedora 45/Bazzite verification of PR head 48cb4bf039cf84870e2eb020a8b4fd87e508959e (base 21625bca8c675c62f9dbffc318ce6a59d57faf31): the documentation CLI flags passed 4/4 tests, links 16/16, and repository paths 3/3. In a rootless UID 1000 Fedora 45 container, micromamba installed LLVM tools 23.1.6 and SPIRV-Tools 2026.4; CMake configured and the runtime build passed 161/161 targets.

One behavior note: with LEONIDA_VULKAN_HEADERS_FETCH=ON and normal system header search paths, CMake selected /usr/include and did not fetch _deps/vulkanheaders-src. With system Vulkan header locations excluded, it fetched the pinned headers and configured successfully. This appears conditional on headers already being found; open PR #491 (CMAKE-VULKAN-HEADERS-PIN) addresses the fetch ordering, so this may be resolved when that change lands. No game data used. GPU execution was not validated because the host NVIDIA driver currently fails Vulkan device creation (vkCreateDevice -3); this is an environment limitation, not a project test result. AI-assisted independent verification.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6039906480 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/659#pullrequestreview-6039906480). Originally posted by [KernelSmoker](https://github.com/KernelSmoker) on 2026-11-24T13:20:09Z. **Review:** COMMENTED --- Independent Fedora 45/Bazzite verification of PR head `48cb4bf039cf84870e2eb020a8b4fd87e508959e` (base `21625bca8c675c62f9dbffc318ce6a59d57faf31`): the documentation CLI flags passed 4/4 tests, links 16/16, and repository paths 3/3. In a rootless UID 1000 Fedora 45 container, micromamba installed LLVM tools 23.1.6 and SPIRV-Tools 2026.4; CMake configured and the runtime build passed 161/161 targets. One behavior note: with `LEONIDA_VULKAN_HEADERS_FETCH=ON` and normal system header search paths, CMake selected `/usr/include` and did not fetch `_deps/vulkanheaders-src`. With system Vulkan header locations excluded, it fetched the pinned headers and configured successfully. This appears conditional on headers already being found; open PR #491 (`CMAKE-VULKAN-HEADERS-PIN`) addresses the fetch ordering, so this may be resolved when that change lands. No game data used. GPU execution was not validated because the host NVIDIA driver currently fails Vulkan device creation (`vkCreateDevice -3`); this is an environment limitation, not a project test result. AI-assisted independent verification.
dpalacios69 commented 2026-11-24 13:28:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by dpalacios69 on 2026-11-24T13:28:58Z.


Thanks @KernelSmoker for the independent run and the header observation. Pushed 22b8d28: the section now says CMake fetches the pinned, hash-checked Vulkan headers only if the system does not provide them. The 12 docs tests pass (47/47). Happy to adjust again if #491 changes the fetch order.

AI-assisted; no game data.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7132893063 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/659#issuecomment-7132893063). Originally posted by [dpalacios69](https://github.com/dpalacios69) on 2026-11-24T13:28:58Z. --- Thanks @KernelSmoker for the independent run and the header observation. Pushed `22b8d28`: the section now says CMake fetches the pinned, hash-checked Vulkan headers only if the system does not provide them. The 12 docs tests pass (47/47). Happy to adjust again if #491 changes the fetch order. AI-assisted; no game data.
KernelSmoker commented 2026-11-24 13:37:00 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KernelSmoker on 2026-11-24T13:37:00Z.


Thanks for clarifying the fallback behavior. I verified the updated head 22b8d285242ce9f0dc90e4c6ccc307cb659bb659: all 12 tests/test_docs*.py modules passed, 47/47 total, and git diff --check passed. The new “if the system does not provide them” wording matches the configure behavior I observed, so my original documentation finding is resolved by this update. I had not rerun the updated head when I first reviewed it; these are the follow-up results. AI-assisted verification.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7133086113 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/659#issuecomment-7133086113). Originally posted by [KernelSmoker](https://github.com/KernelSmoker) on 2026-11-24T13:37:00Z. --- Thanks for clarifying the fallback behavior. I verified the updated head `22b8d285242ce9f0dc90e4c6ccc307cb659bb659`: all 12 `tests/test_docs*.py` modules passed, 47/47 total, and `git diff --check` passed. The new “if the system does not provide them” wording matches the configure behavior I observed, so my original documentation finding is resolved by this update. I had not rerun the updated head when I first reviewed it; these are the follow-up results. AI-assisted verification.
aslan2142 commented 2026-11-25 21:04:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T21:04:49Z.


Merged, thanks! Docs only; the docs tests pass with it merged onto main.

  • Checked on main 70a3d519f + 22b8d2852: the semantic suite passes (491 files, 6,312 tests, 0 files failed); test_docs_cli_flags pass; the 15 docs and writer tests pass; check_no_game_data.py is clean on the 2 changed files.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7174584000 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/659#issuecomment-7174584000). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-25T21:04:49Z. --- Merged, thanks! Docs only; the docs tests pass with it merged onto `main`. - **Checked on `main` `70a3d519f` + `22b8d2852`:** the semantic suite passes (491 files, 6,312 tests, 0 files failed); `test_docs_cli_flags` pass; the 15 docs and writer tests pass; `check_no_game_data.py` is clean on the 2 changed files. AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!659
No description provided.