feat(prx): declare the missing libSceAppInstUtil and libSceAudioIn exports #12539
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12539"
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 juanpimg on 2026-10-28T18:46:45Z.
What
Declares 13 PS5 3.20 system exports that AnyPS5 does not provide, across 2 libraries:
libSceAppInstUtil(7) andlibSceAudioIn(6).AnyPS5 resolves a title's imports by NID, so a title that imports a system function that no AnyPS5 library provides fails to load with an unresolved import. Declaring them as throwing stubs lets those titles load and reach their next blocker.
Every declaration calls
NotImplemented_nid_no_patchand returns 0; none of them implements the function. All 13 are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library.The list is the intersection of the export table of the console's library (function symbols only), the pinned aerolib names and the functions not yet defined anywhere in the repo (verified per symbol with
tools/nid_names.py). It was computed withtools/export_gap.py(#8588), which recognises what a module already provides through anAPS5_VABIdeclaration, a_nid_postfixname, anAPS5_EXPORTbinding or a macro, and which reports the missing exports whose name the module calls itself.tools/pr_overlap.pyreports no shared export with any open pull request.tools/progress.pyreports system libraries changing from 6653/14205 (46.84%) to 6653/14218 (46.79%). These are pending declarations, so the implemented count is unchanged.Tested
CachyOS Linux, kernel 7.2.9-2-cachyos, GCC 16.2.1, CMake 3.31.6, Ninja 1.12.1, Release build.
cmake --build build --target libSceAppInstUtil libSceAudioIn: builds and links cleanly.python3 tools/check_conventions.py --base origin/main: all conventions checks passed.git diff --check: clean.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T19:29:25Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The 13 new exported functions have definitions but no declarations in either library's public headers, so the required
public_headersaudit fails on this head.What I ran
Reviewed head
4792cc3607c3dbc19383c853bd2111844d66c55eagainst currentmain319621ba2e578bd053b0baba2877fe70520e0737; the merge tree is clean. Environment: Debian 12 x86_64, Python 3.11. I ran the repository'spublic_headersaudit on both the PR head and its base as a negative control, and inspected the two public headers and the relevant contribution rule.The audit command was run from
/dev/shm/AnyPS5-review-12539at the PR head and/dev/shm/AnyPS5-base-12539at the base.Results
mainpublic_headersauditpublic_headersauditRaw output
Hosted Windows job output:
Negative control
APS5_VABIfunction has exactly one declaration in a public header reachable through its library umbrella.319621ba2e578bd053b0baba2877fe70520e0737, then on PR head4792cc3607c3dbc19383c853bd2111844d66c55e.Findings
Blocking:
CONTRIBUTING.mdrequires every exportedAPS5_VABIfunction to have exactly one declaration in a header reachable through its library umbrella.libSceAppInstUtil/include/Api.hppandlibSceAudioIn/include/AudioIn.hppcontain none of these new declarations. Add one declaration for each export in its library's public header, following the repository-approved convention for signatures whose prototypes remain unknown, and keep the technical-debt entries explicit that callers must not rely on an unverified ABI. Then rerunpublic_headersand header compilation.Non-blocking: The hosted Windows job linked changed host-only targets but skipped CTest, which is why its green result does not cover this public-header audit failure.
Sources
Not verified
I did not independently validate all 13 NIDs against console exports or the pinned aerolib database, and I did not build either full library locally. Their hosted Windows build steps linked the changed host-only test targets but skipped the full library build and CTest.
To get this to a good state
Add the required public declarations in the two headers and rerun
python3 core/libs/tests/test_public_headers.py --audit-onlyplus the public-header compile test. I will rerun those checks on the updated head.