[PR #1140] scripts: install the Linux prerequisites in one command (BUILD-LINUX-DEPS-INSTALLER) #1174

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

📋 Pull Request Information

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

Base: main ← Head: linux-deps-installer


📝 Commits (2)

  • e535a24 scripts: install the Linux prerequisites in one command (BUILD-LINUX-DEPS-INSTALLER)
  • b72251b scripts/install_deps_linux.sh: ask before refreshing an empty apt index

📊 Changes

2 files changed (+180 additions, -1 deletions)

View changed files

📝 docs/linux.md (+8 -1)
➕ scripts/install_deps_linux.sh (+172 -0)

📄 Description

Claimed in the coordination issue as: BUILD-LINUX-DEPS-INSTALLER (#14)

scripts/install_deps_linux.sh installs what docs/linux.md lists, in one command:

  • apt (Debian, Ubuntu and derivatives), dnf (Fedora) or pacman (Arch);
  • on apt, the newest llvm-21 or later the system's own sources have (llvm-22 on Debian 12 and 13, llvm-21 on Ubuntu 22.04 and 24.04, llvm-22 on 26.04), so no extra repository is needed;
  • optional packages (.NET SDK, ffmpeg, zenity, Tk) only where the distribution has them, with one warning line otherwise;
  • shows the commands and asks first; --dry-run only shows them, --yes doesn't ask, --minimal leaves the optional ones out;
  • afterwards it checks what the build needs: Python 3.12+, llvm-mc 21+ with AMDGPU, spirv-as/spirv-val, CMake 3.24+, Ninja, a C++ compiler, the Vulkan headers.

It touches nothing of the game and downloads only distribution packages. docs/linux.md gets one paragraph pointing at it, above the manual list (left as it was).

Tested (containers, as root):

  • debian:trixie, full install with --yes --minimal: every check ok (llvm-mc-22).
  • debian:bookworm, full install: everything installs; the check reports Python 3.11 as too old, as it should.
  • ubuntu:22.04, ubuntu:24.04, ubuntu:26.04, fedora:latest (45), archlinux:latest: --dry-run picks the expected packages.
  • A Debian 13 based desktop, --dry-run with sudo.

AI-assisted (Claude Code).

🤖 Generated with Claude Code


🔄 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/1140 **Author:** [@PierreEbele](https://github.com/PierreEbele) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `linux-deps-installer` --- ### 📝 Commits (2) - [`e535a24`](https://github.com/ubiquitarianism/leonida/commit/e535a24bb6671927997a8daaf3529262e67ffc18) scripts: install the Linux prerequisites in one command (BUILD-LINUX-DEPS-INSTALLER) - [`b72251b`](https://github.com/ubiquitarianism/leonida/commit/b72251bf2c4d86fac315942add9fea9a45e51ad9) scripts/install_deps_linux.sh: ask before refreshing an empty apt index ### 📊 Changes **2 files changed** (+180 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/linux.md` (+8 -1) ➕ `scripts/install_deps_linux.sh` (+172 -0) </details> ### 📄 Description Claimed in the coordination issue as: BUILD-LINUX-DEPS-INSTALLER (#14) `scripts/install_deps_linux.sh` installs what `docs/linux.md` lists, in one command: - apt (Debian, Ubuntu and derivatives), dnf (Fedora) or pacman (Arch); - on apt, the newest `llvm-21` or later the system's own sources have (`llvm-22` on Debian 12 and 13, `llvm-21` on Ubuntu 22.04 and 24.04, `llvm-22` on 26.04), so no extra repository is needed; - optional packages (.NET SDK, ffmpeg, zenity, Tk) only where the distribution has them, with one warning line otherwise; - shows the commands and asks first; `--dry-run` only shows them, `--yes` doesn't ask, `--minimal` leaves the optional ones out; - afterwards it checks what the build needs: Python 3.12+, llvm-mc 21+ with AMDGPU, `spirv-as`/`spirv-val`, CMake 3.24+, Ninja, a C++ compiler, the Vulkan headers. It touches nothing of the game and downloads only distribution packages. `docs/linux.md` gets one paragraph pointing at it, above the manual list (left as it was). **Tested** (containers, as root): - `debian:trixie`, full install with `--yes --minimal`: every check ok (llvm-mc-22). - `debian:bookworm`, full install: everything installs; the check reports Python 3.11 as too old, as it should. - `ubuntu:22.04`, `ubuntu:24.04`, `ubuntu:26.04`, `fedora:latest` (45), `archlinux:latest`: `--dry-run` picks the expected packages. - A Debian 13 based desktop, `--dry-run` with sudo. AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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#1174
No description provided.