refactor(prx): name the Icu legacy export aliases the NID databases resolve #17297
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17297"
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 dkdhanda8 on 2026-11-08T17:27:29Z.
What
8 of
libSceIcu's 656 placeholder-named legacy exports resolve in the pinned public symbol databases and are renamed after their resolved symbols, following the merged AudioIn/Json/CommonDialog naming series: the ICU 68Localegetters (getCountry,getScript,getLanguage,getVariant,getName),UnicodeString::indexOfand theReorderingBufferdestructors. Of the 13 placeholders the databases resolve, the twou_terminate*exports are already implemented onmainand theuprv_free/uprv_getDefaultCodepage/utrie_swapaliases keep their NID names because the bundled ICU 78 headers anduvernum.hversion mapping declare or rename those C symbols to the statically linked ICU's own definitions.Each placeholder's explicit
APS5_EXPORTcomes off and the bare resolved name hashes to the same NID; the declarations ininclude/LegacyExports.hppfollow the rename. Every resolved name was verified by reproducing its NID withtools/nid_names.py'scompute_nidand matching it against aerolib.csv and the ps5rs catalog. No behavior changes; every stub still throws throughNotImplemented_nid_no_patch, and the debt entry's counts are updated.Tested
tools/check_conventions.py --base origin/mainpasses;git diff --checkis clean.-fsyntax-only(MinGW g++ 15); this environment cannot link standalone throw-using objects or build the full CMake tree, so test/CI execution is deferred to the project's rig.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); no silent stubs added.mdfiles or images added to the repository (attach them to this PR)LegacyExports.cppplaceholder blocks these renames touch, including theReorderingBufferdestructor placeholders; #24322 copies these placeholders verbatim into its chunk files - whoever lands second rebases the 8 one-line hunks)Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T19:20:33Z.
Review: COMMENTED
Windows build of this head merged onto
main9fabd4aa7e, in one tree with the other open NID-naming PRs in this series (#17271, #17254, #17297, #17298 and #17303, which contains #17299); all merged cleanly. Setup: Windows 11, WinLibs GCC 15.2, Release,BUILD_TESTING=ON.guest_hmd2*,guest_user_service*,guest_icu*,guest_nkwebkit_requirements*andguest_libre_ssl*tests pass.tools/nid_names.py's own rules:APS5_EXPORTliterals, pluscompute_nidof eachAPS5_VABI, assembly and data definition that isn't_nid_no_patch. The set is identical tomain's, with no NID defined twice.sceIcuLegacyUnknown_*stubs, and they still throw under their real names.objdump -pon the builtlibSceIcu.prxlistsuprv_freeby name.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-11-12T20:01:48Z.
Review: CHANGES_REQUESTED
This conflicts with main in
LegacyExports.cpp,include/LegacyExports.hppanddocs/dev/debt/libSceIcu.md, and a few points need your decision, not only a rebase:u_terminateChars(PuLoqDSNPPw) andu_terminateUChar32s(TuExC-Sja8o) are implemented on main since #17804 (TerminateBuffer.cpp,u_terminateChars_nid_postfix); their placeholders no longer exist. Drop them from this PR and update the counts in the debt entry (13 becomes 11) against current main.LegacyExports.cpp(C and C++) use the_nid_postfixform, e.g.uprv_mallocon main,ures_getSize_nid_postfixatLegacyExports.cpp:3427. This PR uses bare names (uprv_free,utrie_swap,uprv_getDefaultCodepageatLegacyExports.cpp:3369,3551,7930). Main'slibSceIcunow links the bundled ICU, so please either follow the file's_nid_postfixconvention or show that the bare C names cannot collide with ICU's own symbols (ICU's version renaming), as @oneandonlydean asked on 2026-11-11._ZN6icu_6816ReorderingBufferD1Ev,Lbl6TNS8Zbc). Please coordinate: list them under Depends on, or drop the shared names from one of the PRs.After rebasing onto current main, CI should show the module links with the bundled ICU. Happy to look again then.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T16:13:01Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this naming refactor; the changed declarations retain the throwing stubs and the debt counts are consistent with the described 13 renames.
What I ran
Reviewed head
185c085d99cd352d737e30b997dc65c5d1f2bc01against the prepared diff; no build or tests were run by me. The PR description reports convention, diff-check, and syntax-only checks, but those results were not independently verified.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The symbol-to-NID mappings, full compilation, test/CI execution, and console ABI or behavior were not independently verified. Read:
description.md,commits.md,manifest.json,diff.patch,LegacyExports.cpplines 2758–2770,LegacyExports.hpplines 645–655, andlibSceIcu.mdlines 98–105. Excluded:files.jsonwas not available through the reader; no changed files were excluded according tomanifest.json.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T16:49:05Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed diff contains no verified blocking defect, but the debt summary retains stale counts and the reported checks were not run in this review.
What I ran
Reviewed head
c8fcf4be27abf9070c9f532a7924b376ccd23204using the prepared diff and pinned reader. No commands, tests, or builds were run; no merged-preview check was performed.Results
Findings
Blocking
None.
Non-blocking
docs/dev/debt/libSceIcu.md:99says the other 654 exports keep placeholder names, then says 11 further placeholders are named in this PR. Those figures conflict: after accounting for the 11 renamed placeholders, the remaining placeholder count should be 643 (and the count matching no ICU 68.2 symbol should be revisited accordingly). Please update the summary counts.Sources
Not verified
The manifest lists three changed files, all included in the prepared review folder; no files were excluded by its inclusion rules. I read the full description, commits, manifest, and diff, plus targeted ranges from
LegacyExports.cpp,include/LegacyExports.hpp, anddocs/dev/debt/libSceIcu.md. I did not read the complete changed source files or inspect every changed hunk's surrounding callers. The author-reported convention check, syntax-only compile, and diff check were not independently verified.To get this to a good state
Nothing is required. Optionally correct the debt summary counts.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T20:14:33Z.
Review: APPROVED
Reviewed — looks good
The reviewed change renames eight placeholder exports while preserving their throwing stubs; the inspected diff and source context show no blocking defect.
What I ran
Reviewed head
3650163c3abd7278817cf7f984765ec1d4d286ed. No build or tests were run;repo_read.pywas used to inspect the prepared review bundle and targeted source ranges.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build, tests, NID recomputation, or console ABI behavior was independently verified. Read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch,core/libs/prx/libSceIcu/LegacyExports.cpp(lines 2618–2645),core/libs/prx/libSceIcu/include/LegacyExports.hpp(lines 615–635), anddocs/dev/debt/libSceIcu.md(lines 90–105). No changed files were excluded from the prepared bundle;review/files.jsonwas unavailable.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T18:00:48Z.
Review: APPROVED
Reviewed — looks good
The reviewed change at
edfd78edd3008fac48354045475416583185a1d0consistently replaces eight placeholder export names with resolved ICU symbol names while preserving throwing stubs and updating the debt count.What I ran
No build or tests were run in this review; the PR description reports convention, diff whitespace, and syntax-only checks. I read the prepared description, commit list, manifest, diff, all three changed files at the changed lines, and the corresponding declarations.
Results
Findings
Blocking
None.
Non-blocking
None.
Sources
The changed definitions remain
NotImplemented_nid_no_patchstubs, and their declarations match the new names. The debt entry updates the placeholder totals and describes the unresolved prototype status.Not verified
Build, tests, runtime behavior, and the PR's reported checks were not independently run. The change adds no behavior; the resolved NID mapping claims were not independently reproduced.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T16:26:03Z.
Review: COMMENTED
I recalculated all eight renamed symbols using the repository's NID test helper. Each hashes to the exact explicit NID it replaces, and the implementations still call
NotImplemented_nid_no_patch. The integrated Linuxguest_icu_array_comparatorsCTest also passed.Please carry the update to the “Older callable exports” debt entry in a change fragment under
docs/dev/debt/changes/so it participates in the normal debt fold.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.