fix(libc): provide ASOBI_ROOT environment variable for title path resolution #4274
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4274"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by StarMrGamer on 2026-10-12T03:46:55Z.
What
ASTRO BOT builds paths containing
%ASOBI_ROOT%tokens and expands them by callinggetenv("ASOBI_ROOT"). When the lookup returns null, the title's expansion leaves the literal token in the path, stat calls fail, and the sound config never loads.This fix provides
ASOBI_ROOT=app0in the guest environment at startup. Titles can override it withsetenvif needed. The/host/mount already maps to the run directory, and/host/app0/target/datasymlinks to the title's data directory, so the paths resolve correctly.This replaces the
%VAR%expansion added to libc path resolution in PR #3959. That approach was incorrect: the PS5 kernel and libc do not expand%..%in paths. The title does its own expansion, and the fix belongs where the title's environment lookup fails.Tested
Linux x64, AMD Ryzen 9 7950X, NVIDIA RTX 4090, GCC 13.2.0.
ASOBI_ROOTenvironment variable. The sound config loads successfully.asobi_root_environmenttest: verifiesgetenv("ASOBI_ROOT")returns"app0"by default and respectssetenvoverrides.ctest: 928/930 pass. Failures:linux_guest_stack(known host quirk),agc_driver_pixel_interlock(unrelated, reproduced on baseline).tools/check_conventions.py --base origin/main: pass.tools/check_test_registration.py build: 700 test executables, 0 unregistered.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by StarMrGamer on 2026-10-12T04:59:11Z.
Closing this — it is not ready to land. The change needs rework and better verification than it has had, and I do not want to waste reviewer time on it. Thanks for the earlier review feedback on #3959, which was correct.
Written with AI assistance.
Pull request closed