build(release): include X11 development headers #5396

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/5396 into main
MarcZX10 commented 2026-10-13 18:45:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T18:45:25Z.


What

The release workflow's Linux job installs libxrandr-dev but omits libx11-dev and libxext-dev. The project forces SDL's X11 video backend on and Wayland off, and the build guide lists those X11 headers as requirements. Add both packages to the Linux release build so the packaged SDL-backed libraries can include the X11 driver instead of being built offscreen-only.

Tested

  • tools/check_conventions.py --base upstream/main and git diff --check pass.
  • Parsed .github/workflows/release.yml with PyYAML.
  • I did not run the release workflow or a full build for this package-list change.

Checklist

  • Based on current main; no open PR implements this release dependency fix
  • One topic per PR
  • No code comments added
  • No unimplemented paths or stubs changed
  • No notes or images added
  • No third-party code added
  • Fixes the general Linux release package configuration
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4847873651 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5396). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T18:45:25Z. --- ### What The release workflow's Linux job installs `libxrandr-dev` but omits `libx11-dev` and `libxext-dev`. The project forces SDL's X11 video backend on and Wayland off, and the build guide lists those X11 headers as requirements. Add both packages to the Linux release build so the packaged SDL-backed libraries can include the X11 driver instead of being built offscreen-only. ### Tested - `tools/check_conventions.py --base upstream/main` and `git diff --check` pass. - Parsed `.github/workflows/release.yml` with PyYAML. - I did not run the release workflow or a full build for this package-list change. ### Checklist - [x] Based on current `main`; no open PR implements this release dependency fix - [x] One topic per PR - [x] No code comments added - [x] No unimplemented paths or stubs changed - [x] No notes or images added - [x] No third-party code added - [x] Fixes the general Linux release package configuration - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
CnRJay commented 2026-10-14 01:57:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-14T01:57:53Z.

Review: COMMENTED


Listing the two packages explicitly is fine and matches docs/dev/BUILD.md, but I don't think the current release build is missing them. On Debian and Ubuntu, libxrandr-dev depends on libx11-dev, libxext-dev and libxrender-dev. --no-install-recommends drops only Recommends, not Depends, so the existing step already installs both header sets. The build also couldn't be offscreen-only today: CMakeLists.txt forces SDL_X11 ON and fails configuration when SDL reports no HAVE_X11_XRANDR, and that can't happen without the X11 headers.

So I'd describe this as making the dependency explicit (for example build(release): list the X11 headers SDL needs) rather than as a fix. The release log's apt-get output for the current step would confirm whether libx11-dev and libxext-dev are already being installed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5512182032 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5396#pullrequestreview-5512182032). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-14T01:57:53Z. **Review:** COMMENTED --- Listing the two packages explicitly is fine and matches `docs/dev/BUILD.md`, but I don't think the current release build is missing them. On Debian and Ubuntu, `libxrandr-dev` depends on `libx11-dev`, `libxext-dev` and `libxrender-dev`. `--no-install-recommends` drops only Recommends, not Depends, so the existing step already installs both header sets. The build also couldn't be offscreen-only today: `CMakeLists.txt` forces `SDL_X11 ON` and fails configuration when SDL reports no `HAVE_X11_XRANDR`, and that can't happen without the X11 headers. So I'd describe this as making the dependency explicit (for example `build(release): list the X11 headers SDL needs`) rather than as a fix. The release log's `apt-get` output for the current step would confirm whether `libx11-dev` and `libxext-dev` are already being installed.
MarcZX10 commented 2026-10-14 06:13:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T06:13:22Z.


Thanks for checking this. You are right: Ubuntu Noble lists libx11-dev and libxext-dev as dependencies of libxrandr-dev (package metadata); Debian reports the same. I also confirmed this tree forces SDL_X11=ON, and the build guide says configuration fails when its X11 headers are unavailable. So these extra apt packages do not change the current resolved package set, and this does not explain the v0.1.1 artifact. I should not present this as the cause fix; the remaining question is which tagged source/workflow produced that artifact.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6162151948 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5396#issuecomment-6162151948). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-14T06:13:22Z. --- Thanks for checking this. You are right: Ubuntu Noble lists `libx11-dev` and `libxext-dev` as dependencies of `libxrandr-dev` ([package metadata](https://packages.ubuntu.com/noble/libxrandr-dev)); Debian reports the same. I also confirmed this tree forces `SDL_X11=ON`, and the build guide says configuration fails when its X11 headers are unavailable. So these extra apt packages do not change the current resolved package set, and this does not explain the v0.1.1 artifact. I should not present this as the cause fix; the remaining question is which tagged source/workflow produced that artifact.
adriadam10 commented 2026-10-14 19:12:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T19:12:48Z.


Closing: as you and @CnRJay established, libxrandr-dev already depends on libx11-dev and libxext-dev, so this does not change the resolved package set, and the PR description ("omits") doesn't match that. It also conflicts with main now (the apt line gained the Wayland packages in #3664).

If the real cause of the v0.1.1 artifact turns out to be the tagged source or workflow, feel free to open a PR for that, or reopen this one rebased with an accurate description.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6176268372 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5396#issuecomment-6176268372). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T19:12:48Z. --- Closing: as you and @CnRJay established, `libxrandr-dev` already depends on `libx11-dev` and `libxext-dev`, so this does not change the resolved package set, and the PR description ("omits") doesn't match that. It also conflicts with `main` now (the apt line gained the Wayland packages in #3664). If the real cause of the v0.1.1 artifact turns out to be the tagged source or workflow, feel free to open a PR for that, or reopen this one rebased with an accurate description.

Pull request closed

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
boykopovar/AnyPS5!5396
No description provided.