Repository navigation
fix(libc): provide ASOBI_ROOT environment variable for title path resolution - #4274
Closed
StarMrGamer wants to merge 1 commit into
Closed
StarMrGamer wants to merge 1 commit into
StarMrGamer wants to merge 1 commit into
Conversation
…olution ASTRO BOT builds paths with %ASOBI_ROOT% tokens and expands them via getenv. Without the variable the title's expansion leaves the literal token, stat calls fail, and the sound config never loads. Set ASOBI_ROOT=app0 in the guest environment at startup. Titles can override it with setenv if needed. The /host/ mount already maps to the run directory, and /host/app0/target/data symlinks to the title's data directory. Tested: ASTRO BOT (PPSA21564) boots without requiring a user-set ASOBI_ROOT environment variable. The sound config loads and the title runs stable for 60+ seconds. Tests: asobi_root_environment verifies getenv returns app0 by default and respects setenv overrides. All tests pass except linux_guest_stack (host quirk) and agc_driver_pixel_interlock (unrelated).
Contributor
Author
|
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. |
10 tasks done
12 tasks done
Open
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 repository