feat(libfontconfig): answer FcConfigGetCurrent and FcInitBringUptoDate as firmware 13.42 does #15363
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15363"
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 BunnyFl on 2026-11-03T03:07:47Z.
What
FcConfigGetCurrentandFcInitBringUptoDatenow return what firmware 13.42's ownlibfontconfigreturns, instead of throwing.FcConfigGetCurrentreturns NULL (no current configuration), andFcInitBringUptoDatereturns 1 (FcTrue). They are declared in a newinclude/Configuration.hpp, reachable fromlibfontconfig.hpp, and the debt entry records the source.Source:
system_ex/common_ex/lib/libfontconfig.sprxfrom firmware 13.42, sha25674d7414445f8687c1d22a92fa3c994d2e5fa304e6699dc84dcc5459af7da8472. Read from disassembly to the return, not measured on a console:The two bodies at
0x130and0xf0read no argument register and no memory. The neighbouringFcConfigCreate(0x100) andFcConfigReference(0x120) are the samexor %eax,%eax; ret, andFcConfigDestroy(0x110) is a bareret. I raised those on #15294, which implements them differently. This PR doesn't touch them.Tested
Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
769e30f82b(main23bc7c7625merged in):guest_fontconfig_current_tests,guest_fontconfig_tests,guest_fontconfig_objects_tests,guest_fontconfig_sets_tests) rebuilt at this head: the newguest_fontconfig_current,main'sguest_fontconfig,guest_fontconfig_objectsandguest_fontconfig_sets,public_headersand the 64public_headers_compile_*batches. Thelibfontconfiglibrary target builds too.guest_fontconfig_currentcalls each function twice and checks thatFcInitBringUptoDateleavesFcConfigGetCurrentNULL.main'sExport.cppandInventoryExports.hpprestored,guest_fontconfig_currentaborts with "FcConfigGetCurrent not implemented" (1 of 1 failed).tools/check_conventions.py --base upstream/mainon the committed head: all checks pass.Export.cppandInventoryExports.hppand lowered the remaining-exports count to 21.main's declarations are kept and only this branch's two exports leave the throwing inventory; the count is recounted from the merged table: 19 of the 53 callable NIDs still throw (19 rows; 21 onmain).Not run: Linux, macOS, a title.
tools/pr_overlap.py --branch feat/libfontconfig-current-config --jobs 8at this head, against 1,796 open pull requests: 51 share files or exports with the branch, and the run failed closed, with 26 in its "Some comparisons could not be completed" table (24 only forcore/libs/CMakeLists.txt, #14212 for the debt file, #15294 for the library's files) and no line conflicts listed. I searched the added and removed lines of all 26 for both names and both NIDs: GitHub's diff for 24, and for #5021 and #15807, whose diffs are too large for GitHub to serve, a local diff of each head against its single merge base withmain. No other pull request implements these two exports. #15294 namesFcConfigGetCurrentonce, in a debt sentence that says it still throws; whichever of the two lands second updates that sentence.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T03:13:53Z.
Review: COMMENTED
Tests run and reviewed — checks pending
The exact-head source and export checks found no blocker; the required Windows job is still running, so I am withholding approval.
What I ran
Reviewed all seven changed files at head
d14dcae2f112526fcc6ed2b8edf9b6d658c9c648against PR base and currentmainf6232fcfda70644495273f6b8dd88cf0603463d6. The individual merge preview was clean. Environment: Debian Linux x86_64, Python 3.11.2, CMake 3.25.1, Ninja 1.11.1, GCC 12.2.0. I did not configure or build AnyPS5.The header audit ran in a temporary detached worktree at the exact PR head; that worktree was removed afterward. I also compared the changed functions and shared files with open PRs #14392, #14435, #15283 and #15294.
Results
Commands and unedited output
The precheck's ABI and test-quality invocations could not start because those reviewer-only helper scripts are absent from its isolated snapshot; I ran the ABI and test-quality helpers directly afterward. The standalone header audit above covers the exact PR tree.
Negative control
Findings
Blocking
None found in the seven-file change.
Non-blocking
The PR does not duplicate the functions touched by #14392, #14435, #15283 or #15294. Individual previews of these PRs against current
mainare clean, but pairwise merge-tree previews found conflicts in the shared debt file for all four, and inExport.cppandInventoryExports.hppfor #14435. These are integration conflicts, not a defect in this PR's isolated diff; resolve the shared-file overlap when landing the related work.Sources
Not verified
I did not independently inspect the firmware binary or test behavior on a PS5 console. The author's Windows focused test and negative-control results are author-reported. The hosted Windows check is still in progress; Linux and specialized jobs were skipped by the workflow. I did not run integrated CTest or the PR author's claimed broad overlap scan.
To get this to a good state
No code change is requested. Once the Windows check finishes, I will refresh this exact head and the hosted results; if all required checks pass, I will approve it.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T04:51:26Z.
Review: APPROVED
Re-checked — same head, approved
The exact reviewed head
d14dcae2f112526fcc6ed2b8edf9b6d658c9c648is unchanged, the previously pending Windows job has passed, and the full seven-file review found no blocking issue.What I ran
The earlier full review checked head
d14dcae2f112526fcc6ed2b8edf9b6d658c9c648against basef6232fcfda70644495273f6b8dd88cf0603463d6, including the no-build precheck, diff check, ABI audit, public-header audit, test registration, test-quality heuristic, and a clean current-base merge preview. This follow-up refreshed the PR head and hosted checks. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. No local project build or CTest was run.Results
Hosted check output
Negative control
Findings
Blocking
None found in the reviewed changes.
Non-blocking
The firmware 13.42 disassembly and binary hash are supplied by the author; I did not independently inspect that binary or verify behavior on a PS5 console. The implementation matches the return instructions documented in the PR.
Sources
Not verified
I did not independently inspect the firmware binary or test on a PS5 console. No local build, CTest, Linux runtime, or negative-control mutation was run. Linux and specialized hosted jobs were skipped.
To get this to a good state
No code change is requested. If the head changes, I will rerun the no-build precheck, diff and audit checks, and hosted-status check on the new head.