feat(libs): declare system service import stubs for OS 3.20 compatibility #7821
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7821"
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 xdCloudy on 2026-10-19T08:59:46Z.
What
Declare 592 pending exports for OS 3.20 compatibility across two PS5 system libraries: 477 in
libSceSystemServiceand 115 inlibSceMbus. The names and NIDs come from the PS5 3.20 SystemService and Mbus export lists. Existing declarations and exports covered by open PRs are omitted.Every new function calls
NotImplemented_nid_no_patch(__func__). The no-parameter forms follow the existing unknown-signature convention solely for import resolution; they are not ABI claims. The corresponding technical-debt files record this limitation. No export behavior is implemented, and no progress-counting rule, UI, or scanner is changed.Against upstream
mainatf78675ae4d0314cc7b8316b091847327fbb2581c,tools/progress.pyreports system libraries changing from 3,885/4,696 (82.73%) to 3,885/5,288 (73.47%). These are pending declarations, so the implemented count is unchanged. The published chart updates after a merge and successful Pages deployment.The overlap report found no shared exports. I manually checked the shared CMake changes against #6044; that PR edits test paths and labels below the target definition, while this PR only adds the new source file to that definition.
Tested
The Linux CMake Release targets
libSceMbusandlibSceSystemServiceconfigured, compiled, and linked successfully on Ubuntu 24.04 (WSL) with GCC 13.3 and CMake 3.28.3 at head86083c6267c4645e73df89c4b28bcad63f9fbf82. The same two CMake Release targets compiled and linked on Windows 11 with WinLibs MinGW-w64 GCC 15.2.0 and CMake 4.4.3, using a short mapped checkout path. Runtime tests were not run. The Linux conventions check passed on the rebased head.git diff --checkpassed.tools/pr_overlap.py --branch feat/ps5-system-services-exportsfound no shared exports; its shared-file notices are addressed above.tools/progress.pyproduced the counts above. Full PR CI requires a collaborator-triggered Build workflow run; it has not been run for this PR.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 github-actions[bot] on 2026-10-19T09:00:32Z.
Progress report (
f78675a→86083c6)📉 System libraries: 73.47% (-9.26%, +592 declared functions)
🆕 592 declared as stubs
sceMbusAcquireControlsceMbusAcquireControlListsceMbusAcquireControlWithStatesceMbusAcquireControlWithState2sceMbusAcquireControlWithStateFlagsceMbusAddHandlesceMbusAddHandleByDeviceIdsceMbusAddHandleByUserIdsceMbusAddHandleByVidPidsceMbusAddHandleWithModuleIdsceMbusAttachToApplicationByPidsceMbusBindDeviceWithUserIdsceMbusChangeAppModuleStatesceMbusCheckDriverCallbacksceMbusConvertToLocalDeviceIdsceMbusConvertToLocalDeviceId2sceMbusConvertToMbusDeviceIdsceMbusDebugAcquireControlsceMbusDebugAcquireControlWithStatesceMbusDebugAcquireControlWithState2sceMbusDebugAcquireControlWithStateFlagsceMbusDebugAddProcesssceMbusDebugCheckProcessResumesceMbusDebugDisableBgmForShellUisceMbusDebugGetApplicationStartupInfosceMbusDebugGetControlStatussceMbusDebugGetDeviceInfosceMbusDebugGetInternalInfosceMbusDebugGetPriorityInfosceMbusDebugReenableBgmForShellUisceMbusDebugReleaseControlsceMbusDebugRemoveCameraAppModuleFocussceMbusDebugResumeApplicationsceMbusDebugSetApplicationFocusByAppIdsceMbusDebugSetCameraAppModuleFocussceMbusDebugSetControllerFocusByAppIdsceMbusDebugSetOtherProcessExcludedActionsceMbusDebugSetPrioritysceMbusDebugStartApplicationsceMbusDebugStartApplication2sceMbusDebugStartApplicationNullsceMbusDebugSuspendApplicationsceMbusDebugTerminateApplicationsceMbusDebugTerminateProcesssceMbusDetachFromApplicationByPidsceMbusDisableBgmForShellUisceMbusDisableChatsceMbusDisconnectDevicesceMbusDumpAppInfosceMbusDumpDeviceInfosceMbusDumpHandleStatusInfosceMbusDumpHandleStatusInfoAllsceMbusDumpModuleStateInfosceMbusDumpModuleStateInfoAllsceMbusDumpPlayerInfosceMbusDumpPortHandleInfosceMbusDumpProcMediaInfosceMbusDumpProcMediaInfoAllsceMbusDumpUserMediaInfosceMbusEnableChatsceMbusEnterAudioOutAutoAttenuationsceMbusEventBusStatusChangeSubscribesceMbusEventBusStatusChangeUnsubscribesceMbusEventCallbackFuncsInit_sceMbusEventCreate_sceMbusEventDestroysceMbusEventReceivesceMbusGetControlStatussceMbusGetDeviceDescriptionsceMbusGetDeviceInfoByBusId_sceMbusGetDeviceInfoByConditionForDeviceServicesceMbusGetDeviceInfoByCondition_sceMbusGetDeviceInfo_sceMbusGetSimulatedBusUsableStatusByBusTypesceMbusGetSimulatedHandleStatusInfosceMbusGetSimulatedHandleStatusInfo2sceMbusGetSparkStatesceMbusInitsceMbusIsBgmProhibitedsceMbusIsUsingDevicesceMbusLeaveAudioOutAutoAttenuationsceMbusNotifyBtDisconnectionsceMbusNotifyDriverEventsceMbusReenableBgmForShellUisceMbusRegisterDriversceMbusReleaseControlsceMbusRemoveCameraAppModuleFocussceMbusRemoveHandlesceMbusRemoveProxysceMbusResolveByDeviceIdsceMbusResolveByHandlesceMbusResolveByPlayerIdsceMbusResolveByUserIdsceMbusSetAutoLoginModesceMbusSetCameraAppModuleFocussceMbusSetDeviceFunctionStatesceMbusSetDuckingSettingsceMbusSetProxysceMbusSetRoutingModesceMbusSetScratchDataImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T09:08:04Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceMbus/CMakeLists.txtcore/libs/prx/libSceSystemService/CMakeLists.txtImported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-19T09:12:01Z.
Review guide for the 592 declarations:
libSceSystemServicePendingExports.cpplibSceMbusPendingExports.cppSuggested review order:
tools/pr_overlap.pyreported no shared exports.NotImplemented_nid_no_patch(__func__).CMakeLists.txtchanges, which only add the correspondingPendingExports.cppfile to each existing library target. PR #6044 touches these CMake files in different lines; I checked those changes manually and found no conflicting export edits.The progress bot reports +592 declared, +0 implemented, moving its projected system-library figure from 82.73% to 73.47% if merged. This PR does not change the progress calculation. Conventions passed; Linux/Windows Build jobs were skipped because a collaborator must trigger the full workflow. No local build or runtime tests were run.
Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-19T09:17:35Z.
Replying to the overlap warning:
I manually compared the two reported files with #6044 at head
5fa62e5960372f7caf378ce5e13912f1e0d3d514:libSceMbus/CMakeLists.txt, this PR addsPendingExports.cppto theadd_library(libSceMbus ...)line. #6044 changes theguest_mbus_testssource path and CTest registration insideif(BUILD_TESTING).libSceSystemService/CMakeLists.txt, this PR addsPendingExports.cppto theadd_library(libSceSystemService ...)line. #6044 changes guest test paths and CTest registrations insideif(BUILD_TESTING).These are distinct edits in both shared files. #6044 does not add or change the exports declared here. The bot could not complete its automated comparison because #6044 already conflicts with upstream
main; its warning is valid as an automation limitation, and this is the requested manual file review.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-19T14:37:15Z.
Independent check on head
86083c6267c4645e73df89c4b28bcad63f9fbf82:Export.cppdefinitions.PendingExports.cpptranslation units compile with GCC 12.2 in C++20 mode on Linux.Scope limit: GitHub shows conventions and intake checks passing, but the full Linux/Windows build jobs were skipped. Both targets are
EXCLUDE_FROM_ALL, so those skipped/default build jobs do not establish that the complete libraries link. I have not run a full target link or runtime tests; please get a full build oflibSceMbusandlibSceSystemServicebefore merge.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-19T14:38:57Z.
Follow-up validation on the same head: I directly compiled and linked each library source set as a Linux shared object with GCC 12.2/C++20 (
Export.cpp+PendingExports.cppfor Mbus; those plusLoadExec.cppfor SystemService).nm -D --defined-onlyfound all 115 and 477 new exports, respectively. This confirms the local source sets compile/link together without duplicate definitions. It does not include CMake target options or linked project dependencies, so the full CMake build remains outstanding.Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-19T14:44:39Z.
On it. Next reply will be the information you require.
Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-19T14:49:22Z.
Following up on the request to build the CMake library targets: I built both targets at PR head
86083c6267c4645e73df89c4b28bcad63f9fbf82in Ubuntu 24.04 (WSL), with GCC 13.3, CMake 3.28.3, and Ninja. I initialized the repository submodules, then ran:Result: CMake configuration succeeded, and both targets compiled and linked successfully. The outputs are x86-64 ELF shared objects at
build-pr7821/core/libs/libs/unpatched/libSceMbus.prxandbuild-pr7821/core/libs/libs/unpatched/libSceSystemService.prx. Re-running the target build returned exit code 0.This validates the Linux CMake target build requested here. I did not run runtime tests or a Windows build; GitHub's full Build workflow is still skipped pending a collaborator-triggered run. No PR code changed.
Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-19T14:53:23Z.
I’m starting the Windows CMake target build now for
libSceMbusandlibSceSystemService. I’ll follow up here with the toolchain, commands, and result once it finishes.Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-19T15:06:42Z.
Windows build follow-up at head
86083c6267c4645e73df89c4b28bcad63f9fbf82: both CMake targets compiled and linked successfully on Windows 11 with the repository-documented WinLibs MinGW-w64 GCC 15.2.0, CMake 4.4.3, Ninja, and initialized submodules.The checkout's original long path caused a compiler dependency-file path error during the first attempt. I mapped that same checkout to
R:and ran:The second command exited 0. Both
libSceMbus.prxandlibSceSystemService.prxwere produced underR:\b7821\core\libs\libs\unpatched\;objdump -fidentifies both aspei-x86-64binaries. This covers the requested Windows CMake target build as well as the Linux target build reported above. Runtime tests were not run, and GitHub's full Build workflow remains skipped pending a collaborator-triggered run. No PR code changed.Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-19T15:13:23Z.
If you need anything else, let me know. @MarcZX10
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-19T15:19:50Z.
Thanks for completing the Windows build and reporting the toolchain and commands. Together with the earlier Linux CMake build, this confirms both
libSceMbusandlibSceSystemServicecompile and link on Linux and Windows at head86083c6267c4645e73df89c4b28bcad63f9fbf82. Runtime tests were not run and the hosted full Build workflow remains skipped, as you noted.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T02:13:31Z.
Checked that all 592 names are unique and not already defined elsewhere, every body throws through
NotImplemented_nid_no_patch, and the debt lines are in place; merged.