docs(user): put libs/ on the loader path for the Linux launch #1954

Closed
Dextroid17 wants to merge 1 commit from upstream-pr/1954 into main
Dextroid17 commented 2026-10-09 02:02:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-09T02:02:16Z.


What

The Linux launch in the runtime-layout section is chmod +x app.elf / ./app.elf. That fails for any title with nested prx → prx dependencies.

The system libraries copied into libs/ carry no RUNPATH of their own (readelf -d libs/libSceAgcDriver.prx → RUNPATH []), and app.elf's $ORIGIN/libs covers only its own direct dependencies — so a library inside libs/ cannot find its siblings, and the launch dies with <library>.prx: cannot open shared object file (exit 127) even though the file is present and valid.

This adds the loader-path line to the Linux snippet and a sentence in the layout section explaining why it is needed. The PowerShell snippet is unchanged: Windows searches the executable's directory.

Tested

  • a real title, staged exactly as this section describes: PPSA26344 (Ghost of Yōtei 01.008), decrypted eboot.bin relinked, libs/ copied from build/core/libs/libs/*.prx:
    • ./app.elf → exit 127, libSceKeyboard.prx: cannot open shared object file (the file is present; ldd app.elf reports nothing missing, because the unmet dependency is a dependency's)
    • LD_LIBRARY_PATH="$PWD/libs" ./app.elf → boots, opens its resources, runs
  • readelf -d on the staged libraries shows the empty RUNPATH that causes it.
  • documentation only: no code, test or build change.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt — no code touched
  • Unimplemented paths throw; silent stubs are listed in TechnicalDebt — not applicable
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source — not applicable
  • Generic behaviour, not specific to one title — it is the launch step every Linux user follows
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4795011128 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1954). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-09T02:02:16Z. --- ### What The Linux launch in the runtime-layout section is `chmod +x app.elf` / `./app.elf`. That fails for any title with nested `prx → prx` dependencies. The system libraries copied into `libs/` carry **no RUNPATH of their own** (`readelf -d libs/libSceAgcDriver.prx` → `RUNPATH []`), and `app.elf`'s `$ORIGIN/libs` covers only its own direct dependencies — so a library inside `libs/` cannot find its siblings, and the launch dies with `<library>.prx: cannot open shared object file` (exit 127) even though the file is present and valid. This adds the loader-path line to the Linux snippet and a sentence in the layout section explaining why it is needed. The PowerShell snippet is unchanged: Windows searches the executable's directory. ### Tested - a real title, staged exactly as this section describes: **PPSA26344 (Ghost of Yōtei 01.008)**, decrypted `eboot.bin` relinked, `libs/` copied from `build/core/libs/libs/*.prx`: - `./app.elf` → exit 127, `libSceKeyboard.prx: cannot open shared object file` (the file is present; `ldd app.elf` reports nothing missing, because the unmet dependency is a *dependency's*) - `LD_LIBRARY_PATH="$PWD/libs" ./app.elf` → boots, opens its resources, runs - `readelf -d` on the staged libraries shows the empty RUNPATH that causes it. - documentation only: no code, test or build change. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) — no code touched - [x] Unimplemented paths throw; silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) — not applicable - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source — not applicable - [x] Generic behaviour, not specific to one title — it is the launch step every Linux user follows - [x] Depends on: none - [x] AI-assisted: yes
MarcZX10 commented 2026-10-09 02:14:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T02:14:57Z.

Review: APPROVED


Reviewed the complete documentation diff and the reported Linux staging reproduction. The guidance explains the transitive RUNPATH limitation and gives a launch command that places libs on the loader search path; the Windows instructions remain unchanged. Build changes are correctly skipped for this documentation-only diff, and Build change detection plus Conventions pass.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5464958372 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1954#pullrequestreview-5464958372). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T02:14:57Z. **Review:** APPROVED --- Reviewed the complete documentation diff and the reported Linux staging reproduction. The guidance explains the transitive RUNPATH limitation and gives a launch command that places libs on the loader search path; the Windows instructions remain unchanged. Build changes are correctly skipped for this documentation-only diff, and Build change detection plus Conventions pass.
oneandonlydean commented 2026-10-09 08:53:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:53:56Z.


Closing: 1d9d5ab491 (on main since 10-05) fixed this exact case: the patcher keeps DT_RUNPATH and the prx libraries are linked with $ORIGIN, so libSceVideoOut finds libSceKeyboard without LD_LIBRARY_PATH. If a current-main build still shows RUNPATH [], please open an issue with the readelf -d output.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077693359 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1954#issuecomment-6077693359). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T08:53:56Z. --- Closing: 1d9d5ab491 (on main since 10-05) fixed this exact case: the patcher keeps `DT_RUNPATH` and the prx libraries are linked with `$ORIGIN`, so libSceVideoOut finds libSceKeyboard without `LD_LIBRARY_PATH`. If a current-main build still shows `RUNPATH []`, please open an issue with the `readelf -d` output.

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!1954
No description provided.