feat(libSceCesCs): build libSceCesCs-module from the libSceCesCs source #5425
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5425"
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 SandstromPL on 2026-10-13T19:27:18Z.
What
Titles that import the character conversion library under its module name need
libSceCesCs-module.prx, and nothing built it. Two reporters copiedlibSceCesCs.prxunder that name:libSceCesCs.prxaslibSceCesCs-module.prx: the title imports Ces under that module name and the build does not make that file."libs/search list referenceslibSceCesCs-module.prx, and continued with a copy of the library under that name.The Teardown report (PPSA15246, #3701) lists imports of the module named
libSceCesCs-moduletoo.libSceCesCs-moduleis a system library that the title lists as needed. It is not a module the title ships, so it is never insce_module/(the point raised on #3824). The relinker keeps that needed name and binds the Ces imports to it.ImportModuleignores-moduleonly to match an import's declared module (libSceCesCs) to that dependency, as it does forlibSceFont-module.prx. So the loader looks forlibSceCesCs-module.prx.#3824 first added this target. adriadam10 asked to "show that PPSA15246 (or another title) loads
libSceCesCs-module, with a test that uses the target, or drop it", and it was dropped. This PR brings it back with the reports above and a test that uses it.Both libraries are now built from the same source by
add_sce_ces_library(libSceCesCs/CesLibrary.cmake). This followslibSceFont-module(#139) andlibScePsml(#2412):libSceCesCs-module/CMakeLists.txtincludes that file.libstarget builds and NID-patches the new directory like every other one.tools/progress.pycounts it as sharinglibSceCesCs's sources.guest_ces_moduleruns the existingGuestCes.cppagainstlibSceCesCs-module.Renaming such a needed library to its base library in the relinker would be an alternative. This PR keeps the per-library pattern of #139 and #2412.
@alexpournaras, @amiraction0938: if you can, please check that your title loads the built
libSceCesCs-module.prxwithout the manual copy.Tested
Ubuntu 24.04, GCC 13.3, Release with
BUILD_TESTING=ON, onmaindacd78525. Locally, the libusb lines were removed fromCMakeLists.txt, because the libusb submodule isn't checked out here.guest_ces_modulefails to link onmain:cannot find -llibSceCesCs-module. With the change,guest_cesandguest_ces_modulepass, 3 runs out of 3.main, nolibs/libSceCesCs-module.prxis produced. With the change it is. Afternid_patcher, it exports the same 5 NIDs aslibSceCesCs.prx, with SONAMElibSceCesCs-module.prx.tests/PatchedLibraries.cpp, the source of thepatched_librariestest, opens the patchedlibc.prx,libkernel.prx,libSceCesCs.prxandlibSceCesCs-module.prxwithRTLD_NOW: 4 loaded, 0 failed. Thepatched_librariestest itself needs every library, andlibSceUsbddoesn't build here without the libusb submodule.tools/progress.py --compareagainstmain: System libraries +0.0%, andlibSceCesCs-moduleis listed as sharinglibSceCesCs's sources.PATHline for the test is the oneguest_cesuses.maindacd78525plus this PR, #5153, #5140, #5219 and #5155 (#5055 comment).ZiDCxUUGbec(sceCesUcsProfileInitSJis1997Cp932) resolves fromlibSceCesCs-module.prx, and the game reaches its title screen. With #5153 alone it still stops onunresolved ELF import ZiDCxUUGbec.libSceCesCs/Export.cpp,GuestCes.cppand the CesCs debt file. It merges cleanly with this, and its new export then lands in both libraries.tools/check_conventions.pyfrommainpasses with this title and body.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)mainc422b57fbstops at start-up and does not name the stop). Also Void Terrarium PPSA03061 (issue #5055, no Game bring-up discussion), confirmed by p3n1cillin: with #5153 itsZiDCxUUGbecimport resolves only through this PR. It also needs #5140 and #5219 to reach its title screen; #5155 was not needed for start-up.🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T19:28:05Z.
Progress report (
dacd785→299a736)➖ System libraries: 88.15% (+0.0%)
🔗 1 now sharing sources
libSceCesCsImported from boykopovar/AnyPS5. Originally posted by p3n1cillin on 2026-10-13T20:04:40Z.
Confirmed on Void Terrarium (PPSA03061): with this PR plus #5153,
ZiDCxUUGbec(sceCesUcsProfileInitSJis1997Cp932) resolves fromlibSceCesCs-module.prxand the game boots further. Details in https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6154121860Imported from boykopovar/AnyPS5. Originally posted by SandstromPL on 2026-10-13T20:11:40Z.
Thanks for testing it on your own dump, and for tracing the whole chain in #5055. That answers the "show a title loads
libSceCesCs-module" condition from #3824. I've added your run to the description.Imported from boykopovar/AnyPS5. Originally posted by alexpournaras on 2026-10-13T22:14:15Z.
Confirmed with Call of Duty: Black Ops (PPSA34501). With this PR the build now makes libSceCesCs-module.prx itself, so the manual copy is no longer needed.