feat(libfreetype): expose error strings #16632
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16632"
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 DonRyuzaki on 2026-11-07T10:52:04Z.
What
Implement
FT_Error_String(NIDboXwTAWsas0) using the FreeType library linked by the runtime. Bundled FreeType 2.15.0 enables error descriptions; valid codes return its static descriptions and invalid codes return null. Optional system-dependency builds follow the installed FreeType configuration, which may omit descriptions. Console version, signature, and exact strings are unmeasured. No title unblock is claimed.Tested
Documentation correction (15 November 2026): current head
4107995e190d5112ce007d029d5d0f16ebcad524changes onlydocs/dev/debt/libfreetype.mdfrom6c0f195c1e0317ee7595242f9e402e7af28e2db6. One current-mainOlder callable NIDsbullet remains; the implementedFT_Error_Stringis removed from that debt inventory. The local tree used forgit diff --check upstream/main HEADandpython3 tools/check_conventions.py --base upstream/mainmatches this pushed head's tree7d65827e4903e7f44a24ff1a1ebe8f906c6c2315. The convention checker passed without findings. Focused runtime tests were not rerun for this documentation-only commit; the build and test evidence below remains pinned to its stated older heads. See Checks for hosted CI on the new head.Previous refresh (15 November 2026): head
6c0f195c1e0317ee7595242f9e402e7af28e2db6includes upstream maineef73731fc926d18e3e8b19849ed42511a1adb09and merged #20844, which fixes the shared ICU test linker error that caused the preceding Windows Build failure. This PR’s patch relative to main remains confined to its intended files. The diff check andtools/check_conventions.pypassed on that head. Thelibfreetypelibrary compiled and linked on prior head73103887b4580069208313ed09407becab0599a8, and its PRX exportedFT_Error_String_nid_postfix. The full metadata test on that prior head was blocked by an unrelated SQLite Tcl header generator error; the 24 passing test executions below are from an earlier stated head. That head's Build, Progress report, and Emscripten portability workflows passed; previous evidence below applies to its stated older heads.Merged upstream main
b4a82720a82c4885b0a81d3f63f3076e7527e4a0; validated head4be126a17654a7b57a5f721e755d515ff6b1c1e3. The conflict resolution keeps upstream'sFT_Stream_OpenBzip2implementation/declaration and replaces only the error-string placeholder withFT_Error_String. Both the bzip2 and error-string debt entries are retained; unrelated debt bytes match the pinned main after removing this PR's intended edits.git diff --checkandtools/check_conventions.pyagainst the pinned base, including this PR title/body: passed.BUILD_TESTING=ON, eight compiler jobs. The full runtime library target (libs) and the focused test executables/fixtures built successfully. The shared cache hasFT_ENABLE_ERROR_STRINGS=ON; no system-dependency build was tested.git write-treematched6c674c6a9d24e1471c77f96178c1b15f6502d4cfbefore and after testing.public_headers,guest_legacy_freetype_gzip,guest_legacy_freetype_lzw,guest_legacy_freetype_bzip2,guest_legacy_freetype_metadata,guest_legacy_freetype_metadata_nid,guest_legacy_freetype_library,guest_legacy_freetype_library_nideach passed three consecutive CTest runs: 24/24 executions, no skips; 47.79 seconds combined CTest wall time.libfreetype.prx89de4de0b6cd520753dcdcfa25aadf7660b910af1db131241eddd8fa4a13ee33; NID-patched3e32ffd5e2cba6a1e626b421def700f3600b623dada50e951106af385124246d.These are local results on the stated head. See Checks for fresh hosted CI. No full CTest suite, local Windows/macOS build, console, game or GPU execution was run for this update.
Previous merge validation, with its original source pins
The following results describe the earlier head and were not repeated on those old pins for this update.
Merged upstream main
131485150aa0162dc50bc406b0384b3b865c94b8; head6c25c18afe8c8f1fa2b3a2f84324008aebf9553d. The include/debt conflicts are resolved while retaining upstream's mergedFT_Set_Default_Propertiesimplementation (#16627), its guest-environment behavior and tests, andFT_Library_SetLcdGeometry. This PR still replaces only the error-string placeholder.git diff --check upstream/main HEADandtools/check_conventions.py --base upstream/main: passed without findings.BUILD_TESTING=ON: the full runtime library target (libs),guest_legacy_freetype_metadata_tests,guest_legacy_freetype_library_testsand the NID-patched library fixture built successfully with two jobs.git write-treematched519153807bc16fcc39f95ffeecd4b601464d24a3before and after testing.guest_legacy_freetype_metadata,guest_legacy_freetype_metadata_nid,guest_legacy_freetype_library,guest_legacy_freetype_library_nidandpublic_headerseach passed three consecutive CTest runs: 15/15 executions, no skips; 44.21 seconds combined CTest wall time. Metadata tests exercise error strings through both symbol names and NIDs; library tests retain coverage of the upstream default-property path.libfreetype.prx3fb688d80164651b66e631db5e3ff1cd22931c5d46dffd64ce2ef3470d602d00; NID-patched625c93aea1b4c2b03b38fd0a3180b9d1d180abb5e925e63fb4e0b886937704d1.These are the new local results; see Checks for hosted CI. No full CTest suite, local Windows/macOS focused test, console, retail-title or system-dependency build test was run for this update. JJenkx's earlier Windows result applies to its stated older head, not this merge.
Checklist
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T05:21:53Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this documentation-only update; the current diff removes the implemented
FT_Error_Stringfrom the callable-NID debt inventory and records it under functional debt.What I ran
Reviewed head
4107995e190d5112ce007d029d5d0f16ebcad524against basemainusing the prepared diff and pinned readerrepo_read.py. No build or test commands were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Earlier implementation and test evidence in the PR description is reported for older heads and was not independently rerun. Console behavior, console signature, and system-dependency build behavior remain unverified as described in the updated debt entry.
files.jsonwas not available; the review folder listing and manifest identify all six changed files as included, and their full texts were read.To get this to a good state
Nothing is required.