fix(tools): audit stubs from shared library sources #4951
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4951"
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 Ondra97 on 2026-10-13T06:06:57Z.
What
Import audit classified throwing stubs as implemented when a library reused another library's sources. For example,
libScePsml.prxexportsscePsmlMfsr2CreateContext(m9JLPc3wOQw) fromlibScePsml_debug, but its empty local function list hid the stub.Reuse the existing
shared_sourcesmetadata to carry the owner's stub NIDs and names into the shared provider. This preserves explicit NID aliases, runtime postfix handling and implemented native providers. Resolve transitive sharing independently of directory order and reject cycles.Tested
Windows 11 x64, Python 3.14, based on
mainea2bbefb2:stub, with its function name.Refreshed and inspected all 470 open PR heads. Six share the audit files but change other behaviour; the repository overlap checker reports no overlap. No title run or full runtime build was required for this Python-only change.
Checklist
main; no other open PR implements the same fixImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T09:10:43Z.
Windows test: head
66edc7463merged onto currentmaind379bfd01(clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release,-j2: full build 0 errors; ctest with the filter^import_audit$: import_audit passed (1 test(s), 0 failed);python tools/check_conventions.py --base upstream/mainpassed. I did not run the new tests againstmainwithout the change.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-13T18:55:47Z.
Tested on Linux x86-64 (Python 3.13), with
66edc7463merged into main9d0a41d5a:tools/tests/test_import_audit.pypasses.AI-assisted: yes (Claude Code)