fix(libSceFreeType): preserve helpers through NID patching #9848
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9848"
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 Felipebmaitan on 2026-10-22T18:01:44Z.
What
Merged current main
e481b135558fc4316bc3b24e7408156737eff08dinto the existing author branch and kept every published commit. Submitted headf05ce37dbbd3e8718e2b7f4a1e2b4159e5ff4826.Keep the upstream
-load_hiddenrule for the bundled FreeType archive on macOS. Use canonical C-linkage_nid_no_patchnames for helpers that must survive NID patching and update their callers, including variations. Preserve main's SFNT and PostScript value conversions and guarded size request. Upstream archive isolationKeep both Apple import regressions and build only the patched FreeType, libkernel and libc modules they load. The independent reviewer found that three dynamically imported functions were called through incompatible pointer types. The test now derives all eight pointer types from the guest API declarations, with every original assertion and lookup name preserved.
Tested
Executed on Windows 11 x86-64 with WinLibs GCC 15.2.0 r7.
c8f72e905c. A freshly compilednid_patcherpassed the synthetic Mach-O fixture on Windows.dlfcn.hshim and inspected the COFF object. It refers todlsymand has zero direct guest-wrapper link references. A synthetic CMake/Ninja dry run selected exactly the three patched modules.The stock focused CTest build remained queued for the shared compiler slot and was discontinued after the targeted Windows results above. Fresh macOS validation of this head remains open, including both dyld import tests, the FreeType-family CTests and the Mach-O export audit. The historical 90/90 macOS result was on local
e3bfd382b091, based on6a86d4d1a9cbwith the curl build helper from #17425. Kali113's November 14 reportChecklist
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-29T23:57:17Z.
Review: COMMENTED
Re-checked — new head, Mac export validation remains unverified
The updated source and tests preserve the requested helper exports, but the PR's Apple-specific export behavior has not yet been validated on the current head.
What I ran
127836bf97942113cf09abfece38fdcada17684cagainstmaind65bff2679b627e6c1dde84f2e95af0bece3c476;git merge-tree --write-treemerged cleanly as8269d6de571f64ed75e18472dbc9851ce8ff624d.Results
8269d6de571f64ed75e18472dbc9851ce8ff624dgit diff --checkCommand output
Not verified
-exported_symbol,*_nid_*and the patched/unpatched import tests have not run on macOS. The author also identifies the full macOS validation as pending; Windows syntax checks do not verify Mach-O exports.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T10:01:10Z.
Review: COMMENTED
Reviewed — comments
The code changes consistently route FreeType calls through the guest adapters and add macOS symbol and import checks, but this review cannot confirm the macOS loader behavior on the submitted head.
What I ran
Reviewed head
c031df26c6bebd58c5a2fe022a36e947a4bb784a. I did not run commands or tests; repository access was limited to the pinned reader. The Windows checks in the description are author-reported. The description reports fresh macOS verification remains outstanding.Results
Findings
Blocking
None.
Non-blocking
None.
Sources
Reviewed the prepared diff and changed-file contents at the submitted head, including the macOS linker option and import test in
core/libs/prx/libSceFreeType/CMakeLists.txt,core/libs/tests/GuestFreeTypeImports.cpp, and the helper declarations and definitions incore/libs/prx/libSceFreeType/include/GuestObjects.hppandcore/libs/prx/libSceFreeType/src/GuestObjects.cpp.Not verified
No local build or test was run. macOS export behavior, patched and unpatched dynamic imports, and runtime behavior remain unverified in this review. The description’s reported Windows results and historical Mac results were not independently reproduced. All 39 changed files were included in the prepared review bundle; the changed lines were reviewed in the diff. Files excluded by bundle rules: none listed.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T05:53:12Z.
Review: APPROVED
Reviewed — looks good
Nothing in the inspected changes blocks merging; the Apple import regression test exercises both patched and unpatched loading paths, but this head has not had fresh macOS validation.
What I ran
Reviewed head
f05ce37dbbd3e8718e2b7f4a1e2b4159e5ff4826using the prepared bundle andrepo_read.pyat that pinned head. No build or test commands were run. The author reports Windows 11 x86-64 checks; these were not run by me.Files read: all review documents and diff; all changed files from the manifest were marked included, but only targeted source ranges were read:
CMakeLists.txt,Export.cpp,GuestObjects.hpp,GuestObjects.cpp,Bitmap.cpp,OutlineRender.cpp,Variations.cpp, andGuestFreeTypeImports.cpp. No changed file was excluded byfiles.json.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I did not read every changed file in full or run builds/tests. In particular, fresh macOS validation, both dyld import tests, the FreeType-family CTests, and the Mach-O export audit remain unconfirmed for this head. The author reports that the focused CTest build was discontinued while queued.
To get this to a good state
Nothing is required.
Pull request closed