fix(relinker): discover required modules in nested standard directories #1815
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1815"
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 eliasbruno124-dev on 2026-10-08T20:16:00Z.
What
Required providers under
prx/shipping,sce_module/nestedandsce_modules/nestedare skipped because the required filename and declared-identity scans prune the standard module directories. An existing PPSA28038 / 17.661.002 input requestsParty.prxandlibPlayFabMultiplayer.prxsupplied underprx/shipping.Let those required-provider scans descend into the directories. Preserve immediate-child eager loading, filename/SONAME precedence, relative paths and ambiguity errors. Respect exclusions, including Windows physical casing, and ignore generated
.guest.prxfiles. Unneeded unsupported module bodies remain unparsed. This adds no transitive/plugin discovery or lifecycle change.Rebased as
e2401a8dc08cec0a4773311bbe3a9ba8bd599e61, one commit on mainf3999054bd4ee2cccc08aeb871142b8019e5d46d. #1503 and #1830 are already merged and are not included again in this PR's diff. The conflict resolution retains #1830's extension matching and shipped output names. Added integration cases cover extension matching in all three nested standard directories, ambiguous stems and excluded stem candidates. The plural-directory fixture creates only the valid standard directory.Tested
Windows 11, MinGW-w64 GCC 15.2.0, Release,
ANYPS5_RELINKER_ONLY=ON, final commite2401a8d:git diff --checkpass.tls_function_coveragegroup times out at the unchanged 30-second limit. No timeout was raised; this is not a fully passing local suite.guest_needed_modulespasses in 1.28 s,guest_needed_nested_modulesin 5.30 s,guest_module_identityin 8.44 s andguest_runpathin 0.93 s. Tests execute generated Windows programs and inspect Linux ELF dependencies; Linux/macOS native execution was not performed locally.GuestModuleBuilder.cppat6635c7ab, while keeping the same regression, reproduces the missing nested provider artifact. Restoring the correction passes. That main file is byte-identical at the final basef3999054; the contribution patch is unchanged across the last rebase. Both rebuilds succeeded.a3ec0083: the same 43 original code inputs with identical host libraries from78dbe378produced two missing provider files before the correction and none afterward. An earlier natural startup loaded Party/PlayFab and stopped at missing HTTP2 imports. These are earlier title observations, not a new game run on this rebase. No menu, gameplay or performance result is claimed.The current PR-merge CI run passes the relinker jobs on Linux (63/63 groups), Windows (59/59) and macOS (56/56). These build
e2401a8dmerged into main7ced89fd. TLS passes in 8.70 s, 9.91 s and 5.68 s respectively. Conventions also pass. The full-runtime Windows/Linux jobs are skipped by workflow eligibility; these are not full-runtime or title-playability results.Overlap rechecked: open #1782 adds transitive discovery and still prunes standard directories; it does not implement this nested scan and is not included or required. #2100 is closed. The branch merges cleanly with main
6324b00bchecked immediately before push; the discovery source is unchanged from the tested base.Checklist
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T05:16:52Z.
#1503 and #1830 are in, and this now conflicts with main in
GuestModuleBuilder.cpp; please rebase onto main.Imported from boykopovar/AnyPS5. Originally posted by eliasbruno124-dev on 2026-10-10T06:11:56Z.
Rebased onto main
f3999054ase2401a8d, with one commit and no merge commits. #1503/#1830 are now upstream; the conflict resolution preserves extension matching and shipped filenames while enabling the nested scans. Added cases cover their interaction with exclusions and ambiguous stems.The Windows Release build, conventions and affected regressions pass. Restoring main's discovery implementation makes the nested regression fail on the missing provider again. The full local suite passes 58/59; the unchanged upstream TLS group still times out at 30 seconds. No timeout was raised. The description records the exact scope and keeps earlier title evidence separate. New-head CI is pending.
Prepared with AI assistance.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T07:19:04Z.
Checked on Linux, merged onto current main: relinker build and ctest 57/57 pass;
guest_needed_nested_modulesandguest_needed_modulesfail with main'sGuestModuleBuilder.cppand pass with the change. The rebase asked for is done, the merge is clean, and the relinker jobs (Linux/Windows/macOS) and conventions are green on this head. Merging. #1782 touches the same lines inGuestModuleBuilder.cpp, so it will need a rebase after this lands.