fix(cmake): isolate bundled subprojects from inherited link libraries #12994

Open
Triple-P wants to merge 1 commit from upstream-pr/12994 into main
Triple-P commented 2026-10-29 19:24:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Triple-P on 2026-10-29T19:24:29Z.


What

Prevent directory-level LINK_LIBRARIES, including windows_seh_personalities, from leaking into bundled subprojects. The inherited SEH object-library dependency makes nghttp2's CMake install/export generation fail because that dependency is outside nghttp2's export set.

Add add_bundled_subdirectory, which saves the complete effective directory link list, clears it while adding the bundled subproject, and restores it afterwards. Use it for nghttp2, mbedtls and glslang under core/libs; AnyPS5 targets retain their injected libraries. No guest API, shader semantics or third-party sources change. The regression tool tools/check_link_scope.py reproduces the export failure without the helper and checks successful generation, restored links, generated build data, nested mounts, paths with spaces, empty link lists and EXCLUDE_FROM_ALL with the helper.

Alternative to #12731, not an additional independent nghttp2 fix. That PR addresses the same failure by removing the SEH dependency from nghttp2's target properties after creation. This draft instead prevents inheritance at all three bundled boundaries and adds regression coverage. There has been no agreement with that author about which approach should merge. Please keep this draft pending that decision; merging both as-is would leave redundant nghttp2 handling. No dependency on #12731 is declared because this is an independent alternative, not a stack on top of it.

Related: #11470 changes link dependencies elsewhere in libSceHttp2/CMakeLists.txt; its current CMake hunks do not replace the bundled mount changed here. Sharing a file does not by itself imply a required dependency. The current overlap report and its incomplete comparisons are recorded below; no blanket conflict-free claim is intended.

The author approved candidate fdbf945a6ead80f0bed8e126f1ddd03d16d98f70. This publication commit reapplies exactly those changes onto main at a6ec79e895fa3dd0fe88d1a504506175c7b9d0b1, fetched when preparing the branch, with a single Conventional Commit attributed to Triple-P. The approved checkout and its history are preserved locally. The helper and regression-tool blobs are identical to the approved candidate; the four existing-file edits are unchanged. During the overlap check, main advanced to 58b2753d74df72635a68bef79c977539332caf2e; a final git merge-tree --write-tree check against that tip completed without conflicts.

Tested

Windows, MSYS2 UCRT64 / Ninja. No game or homebrew was run. This is a build-system change, with no performance claim.

On publication commit b43e78c99de2f85b44ff625d10bb4ff69c1ba9dc, based on the main commit above:

python tools/check_link_scope.py --cmake C:/msys64/ucrt64/bin/cmake.exe --generator Ninja --build <external-fixture-directory>
link scope: 3 bundled mounts under core/libs use add_bundled_subdirectory
link scope: without the helper Generate failed because the injected targets are not in the bundled export set
link scope: with add_bundled_subdirectory the bundled targets keep no injected link libraries and the AnyPS5 targets keep explicit_dir_entry;injected_a;injected_b;injected_c;anyps5_fake_runtime through every mount, including nested and excluded ones

python tools/check_conventions.py --base origin/main
All conventions checks passed.

git diff --check origin/main HEAD
(passed)

Earlier validation on the approved change before updating its base:

  • Full project configure/generate completed on Windows UCRT64 without CMAKE_SKIP_INSTALL_RULES. Generated data showed SYSV-SEH enabled, DWARF disabled, SEH injection retained for the AnyPS5 core targets and absent from the bundled targets. This was configure validation, not a full build. CMake reported long object-path warnings in that deep local checkout.
  • Focused runtime comparison: baseline 74acfad65b3f0fd4eab653f3a3989d298fba1157 versus candidate 016925c1410e325a9fdbc529a7526ccb63944ad7, one run per side on NVIDIA GeForce RTX 4090, driver 617.14, Microsoft Windows NT 10.0.26300.0. Each side passed 12 tests with no failures or skips. Eleven tests per side logged both the GPU and loaded Khronos validation layer; agc_driver_queued_raw_shader is CPU supporting coverage and is not counted as GPU execution evidence.
  • Both runs used ctest -V, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, VK_LAYER_PATH=C:/msys64/ucrt64/bin and the same selected GPU. Complete verbose logs contained no VUID-, SYNC-HAZARD, standard validation errors/warnings or missing-requested-layer messages on either side.
  • Both GPU builds used CMAKE_SKIP_INSTALL_RULES=ON so the known-broken baseline could be built. That shared workaround limits the GPU comparison; the separate configure without suppression establishes the configure fix. The later approved candidate only removes two unused Python-test lines relative to this GPU-tested candidate.
Focused CTest selection used for the earlier GPU comparison
^(agc_driver_prepared_shaders|agc_driver_prepared_shaders_abi_deferred_registration_failure|agc_driver_queued_raw_shader|agc_driver_staged_clear_sampled_read|agc_driver_staged_clear_sampled_read_draw_pipeline|agc_shader_fusion|agc_driver_compute_pipeline_outside_gpu_mutex|agc_driver_shader_clock|agc_driver_draw_shader_failure_materialization|agc_driver_registration_trace|agc_pipeline_library|agc_pipeline_cache)$

Draft validation remaining: the full configure/build and focused GPU comparison have not been repeated after updating to the newer main; no complete regression-suite pass or Linux/macOS validation is claimed. Full project CI requires a maintainer-triggered workflow under the contribution rules. Resolve the alternative-solution discussion with #12731 before marking ready for review.

Overlap check: python tools/pr_overlap.py --repo boykopovar/AnyPS5 --branch fix/bundled-link-scope completed successfully against main a6ec79e895fa3dd0fe88d1a504506175c7b9d0b1, scanning 1,480 open PRs. It reported no confirmed line/export/new-file conflicts, but 56 comparisons were incomplete because those PRs already conflict with main in shared files. This does not detect the semantic duplication with #12731.

Complete overlap findings (56 incomplete comparisons)

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 4449 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5021 core/libs/CMakeLists.txt
core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6185 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6187 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6905 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7275 core/libs/CMakeLists.txt
core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7457 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7464 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7514 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7689 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8014 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8246 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8484 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8542 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8592 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8650 core/libs/CMakeLists.txt
PR 9156 core/libs/CMakeLists.txt
PR 9293 core/libs/CMakeLists.txt
PR 9297 core/libs/CMakeLists.txt
PR 9302 core/libs/CMakeLists.txt
PR 9383 core/libs/CMakeLists.txt
PR 9508 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9712 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9748 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9774 core/libs/CMakeLists.txt
PR 9897 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9898 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9899 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10026 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10193 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10233 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10442 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10472 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10757 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10920 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 11554 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 11557 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 12070 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 12862 core/libs/prx/libSceAgcDriver/CMakeLists.txt

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4090, driver 617.14, Microsoft Windows NT 10.0.26300.0; earlier baseline/candidate commits and post-rebase validation gap detailed above
  • AI-assisted: yes; implementation assisted by a local Strata model, review and publication assisted by OpenAI Codex. The author is responsible for the submitted change.

The first checklist item remains open deliberately: the branch is based on the current main fetched for publication, but #12731 addresses the same failure and the choice of approach is unresolved. The template's fully checked checklist is a readiness requirement that this draft does not yet claim to satisfy. No exports, stubs or third-party sources were added; the corresponding checked items are not applicable to the scope of this change.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5074246437 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12994). Originally posted by [Triple-P](https://github.com/Triple-P) on 2026-10-29T19:24:29Z. --- ### What Prevent directory-level `LINK_LIBRARIES`, including `windows_seh_personalities`, from leaking into bundled subprojects. The inherited SEH object-library dependency makes nghttp2's CMake install/export generation fail because that dependency is outside nghttp2's export set. Add `add_bundled_subdirectory`, which saves the complete effective directory link list, clears it while adding the bundled subproject, and restores it afterwards. Use it for nghttp2, mbedtls and glslang under `core/libs`; AnyPS5 targets retain their injected libraries. No guest API, shader semantics or third-party sources change. The regression tool `tools/check_link_scope.py` reproduces the export failure without the helper and checks successful generation, restored links, generated build data, nested mounts, paths with spaces, empty link lists and `EXCLUDE_FROM_ALL` with the helper. **Alternative to #12731, not an additional independent nghttp2 fix.** That PR addresses the same failure by removing the SEH dependency from nghttp2's target properties after creation. This draft instead prevents inheritance at all three bundled boundaries and adds regression coverage. There has been no agreement with that author about which approach should merge. Please keep this draft pending that decision; merging both as-is would leave redundant nghttp2 handling. No dependency on #12731 is declared because this is an independent alternative, not a stack on top of it. Related: #11470 changes link dependencies elsewhere in `libSceHttp2/CMakeLists.txt`; its current CMake hunks do not replace the bundled mount changed here. Sharing a file does not by itself imply a required dependency. The current overlap report and its incomplete comparisons are recorded below; no blanket conflict-free claim is intended. The author approved candidate `fdbf945a6ead80f0bed8e126f1ddd03d16d98f70`. This publication commit reapplies exactly those changes onto `main` at `a6ec79e895fa3dd0fe88d1a504506175c7b9d0b1`, fetched when preparing the branch, with a single Conventional Commit attributed to Triple-P. The approved checkout and its history are preserved locally. The helper and regression-tool blobs are identical to the approved candidate; the four existing-file edits are unchanged. During the overlap check, `main` advanced to `58b2753d74df72635a68bef79c977539332caf2e`; a final `git merge-tree --write-tree` check against that tip completed without conflicts. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows, MSYS2 UCRT64 / Ninja. No game or homebrew was run. This is a build-system change, with no performance claim. On publication commit `b43e78c99de2f85b44ff625d10bb4ff69c1ba9dc`, based on the `main` commit above: ```text python tools/check_link_scope.py --cmake C:/msys64/ucrt64/bin/cmake.exe --generator Ninja --build <external-fixture-directory> link scope: 3 bundled mounts under core/libs use add_bundled_subdirectory link scope: without the helper Generate failed because the injected targets are not in the bundled export set link scope: with add_bundled_subdirectory the bundled targets keep no injected link libraries and the AnyPS5 targets keep explicit_dir_entry;injected_a;injected_b;injected_c;anyps5_fake_runtime through every mount, including nested and excluded ones python tools/check_conventions.py --base origin/main All conventions checks passed. git diff --check origin/main HEAD (passed) ``` Earlier validation on the approved change before updating its base: - Full project configure/generate completed on Windows UCRT64 without `CMAKE_SKIP_INSTALL_RULES`. Generated data showed SYSV-SEH enabled, DWARF disabled, SEH injection retained for the AnyPS5 core targets and absent from the bundled targets. This was configure validation, not a full build. CMake reported long object-path warnings in that deep local checkout. - Focused runtime comparison: baseline `74acfad65b3f0fd4eab653f3a3989d298fba1157` versus candidate `016925c1410e325a9fdbc529a7526ccb63944ad7`, one run per side on NVIDIA GeForce RTX 4090, driver 617.14, Microsoft Windows NT 10.0.26300.0. Each side passed 12 tests with no failures or skips. Eleven tests per side logged both the GPU and loaded Khronos validation layer; `agc_driver_queued_raw_shader` is CPU supporting coverage and is not counted as GPU execution evidence. - Both runs used `ctest -V`, `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `VK_LAYER_PATH=C:/msys64/ucrt64/bin` and the same selected GPU. Complete verbose logs contained no `VUID-`, `SYNC-HAZARD`, standard validation errors/warnings or missing-requested-layer messages on either side. - Both GPU builds used `CMAKE_SKIP_INSTALL_RULES=ON` so the known-broken baseline could be built. That shared workaround limits the GPU comparison; the separate configure without suppression establishes the configure fix. The later approved candidate only removes two unused Python-test lines relative to this GPU-tested candidate. <details> <summary>Focused CTest selection used for the earlier GPU comparison</summary> ```text ^(agc_driver_prepared_shaders|agc_driver_prepared_shaders_abi_deferred_registration_failure|agc_driver_queued_raw_shader|agc_driver_staged_clear_sampled_read|agc_driver_staged_clear_sampled_read_draw_pipeline|agc_shader_fusion|agc_driver_compute_pipeline_outside_gpu_mutex|agc_driver_shader_clock|agc_driver_draw_shader_failure_materialization|agc_driver_registration_trace|agc_pipeline_library|agc_pipeline_cache)$ ``` </details> **Draft validation remaining:** the full configure/build and focused GPU comparison have not been repeated after updating to the newer `main`; no complete regression-suite pass or Linux/macOS validation is claimed. Full project CI requires a maintainer-triggered workflow under the contribution rules. Resolve the alternative-solution discussion with #12731 before marking ready for review. Overlap check: `python tools/pr_overlap.py --repo boykopovar/AnyPS5 --branch fix/bundled-link-scope` completed successfully against main `a6ec79e895fa3dd0fe88d1a504506175c7b9d0b1`, scanning 1,480 open PRs. It reported no confirmed line/export/new-file conflicts, but 56 comparisons were incomplete because those PRs already conflict with main in shared files. This does not detect the semantic duplication with #12731. <details> <summary>Complete overlap findings (56 incomplete comparisons)</summary> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 4449](https://www.github.com/boykopovar/AnyPS5/pull/4449) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6187](https://www.github.com/boykopovar/AnyPS5/pull/6187) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6209](https://www.github.com/boykopovar/AnyPS5/pull/6209) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6905](https://www.github.com/boykopovar/AnyPS5/pull/6905) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7048](https://www.github.com/boykopovar/AnyPS5/pull/7048) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7275](https://www.github.com/boykopovar/AnyPS5/pull/7275) | `core/libs/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7457](https://www.github.com/boykopovar/AnyPS5/pull/7457) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7464](https://www.github.com/boykopovar/AnyPS5/pull/7464) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7689](https://www.github.com/boykopovar/AnyPS5/pull/7689) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8246](https://www.github.com/boykopovar/AnyPS5/pull/8246) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8484](https://www.github.com/boykopovar/AnyPS5/pull/8484) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8542](https://www.github.com/boykopovar/AnyPS5/pull/8542) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8592](https://www.github.com/boykopovar/AnyPS5/pull/8592) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8650](https://www.github.com/boykopovar/AnyPS5/pull/8650) | `core/libs/CMakeLists.txt` | | [PR 9156](https://www.github.com/boykopovar/AnyPS5/pull/9156) | `core/libs/CMakeLists.txt` | | [PR 9293](https://www.github.com/boykopovar/AnyPS5/pull/9293) | `core/libs/CMakeLists.txt` | | [PR 9297](https://www.github.com/boykopovar/AnyPS5/pull/9297) | `core/libs/CMakeLists.txt` | | [PR 9302](https://www.github.com/boykopovar/AnyPS5/pull/9302) | `core/libs/CMakeLists.txt` | | [PR 9383](https://www.github.com/boykopovar/AnyPS5/pull/9383) | `core/libs/CMakeLists.txt` | | [PR 9508](https://www.github.com/boykopovar/AnyPS5/pull/9508) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 9712](https://www.github.com/boykopovar/AnyPS5/pull/9712) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 9748](https://www.github.com/boykopovar/AnyPS5/pull/9748) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 9774](https://www.github.com/boykopovar/AnyPS5/pull/9774) | `core/libs/CMakeLists.txt` | | [PR 9897](https://www.github.com/boykopovar/AnyPS5/pull/9897) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 9898](https://www.github.com/boykopovar/AnyPS5/pull/9898) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 9899](https://www.github.com/boykopovar/AnyPS5/pull/9899) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 10026](https://www.github.com/boykopovar/AnyPS5/pull/10026) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 10193](https://www.github.com/boykopovar/AnyPS5/pull/10193) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 10233](https://www.github.com/boykopovar/AnyPS5/pull/10233) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 10442](https://www.github.com/boykopovar/AnyPS5/pull/10442) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 10472](https://www.github.com/boykopovar/AnyPS5/pull/10472) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 10757](https://www.github.com/boykopovar/AnyPS5/pull/10757) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 10920](https://www.github.com/boykopovar/AnyPS5/pull/10920) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 11554](https://www.github.com/boykopovar/AnyPS5/pull/11554) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 11557](https://www.github.com/boykopovar/AnyPS5/pull/11557) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 12070](https://www.github.com/boykopovar/AnyPS5/pull/12070) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 12862](https://www.github.com/boykopovar/AnyPS5/pull/12862) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | </details> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [ ] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: <!-- #PR, or none --> none - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> NVIDIA GeForce RTX 4090, driver 617.14, Microsoft Windows NT 10.0.26300.0; earlier baseline/candidate commits and post-rebase validation gap detailed above - [x] AI-assisted: <!-- yes / no --> yes; implementation assisted by a local Strata model, review and publication assisted by OpenAI Codex. The author is responsible for the submitted change. The first checklist item remains open deliberately: the branch is based on the current `main` fetched for publication, but #12731 addresses the same failure and the choice of approach is unresolved. The template's fully checked checklist is a readiness requirement that this draft does not yet claim to satisfy. No exports, stubs or third-party sources were added; the corresponding checked items are not applicable to the scope of this change.
MarcZX10 commented 2026-11-16 21:52:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T21:52:00Z.

Review: COMMENTED


Reviewed — no blocking findings

A formal approval is not justified because the regression tool and rebased full configure were not completely verified on this head.

What I ran

Reviewed head b43e78c99de2f85b44ff625d10bb4ff69c1ba9dc. Read the prepared description, commit summary, diff, and manifest; inspected the helper and changed CMake call sites, plus selected sections of the regression tool. No commands or tests were run in this review.

Results

Check Result Note
Prepared diff and changed CMake paths passed Six changed files listed
Regression tool review not run Only selected sections inspected
Configure/build on this head not run Author reports earlier checks; rebased configure remains outstanding

Findings

Blocking

None identified in the inspected code.

Non-blocking

  • The description says this draft is an alternative to #12731 and asks to keep it pending a decision on which approach should merge. Resolve that overlap before treating the PR as ready.

Not verified

The complete tools/check_link_scope.py source was not read; therefore its full behavior and error handling are not verified. No build, configure, regression script, or test suite was run. The author-reported Windows checks were not independently confirmed on this head. All six changed paths appear in the manifest as included; no excluded changed paths were listed. Files read: cmake/BundledSubdirectory.cmake, core/libs/CMakeLists.txt, core/libs/prx/libSceAgcDriver/CMakeLists.txt, core/libs/prx/libSceHttp2/CMakeLists.txt, core/libs/prx/libSceSsl/CMakeLists.txt, and selected portions of tools/check_link_scope.py.

To get this to a good state

Nothing is required. Optional: resolve the stated approach overlap and complete review of the regression tool and rebased configure before requesting a formal decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5928389603 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12994#pullrequestreview-5928389603). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T21:52:00Z. **Review:** COMMENTED --- # Reviewed — no blocking findings A formal approval is not justified because the regression tool and rebased full configure were not completely verified on this head. ## What I ran Reviewed head `b43e78c99de2f85b44ff625d10bb4ff69c1ba9dc`. Read the prepared description, commit summary, diff, and manifest; inspected the helper and changed CMake call sites, plus selected sections of the regression tool. No commands or tests were run in this review. ## Results | Check | Result | Note | |---|---|---| | Prepared diff and changed CMake paths | passed | Six changed files listed | | Regression tool review | not run | Only selected sections inspected | | Configure/build on this head | not run | Author reports earlier checks; rebased configure remains outstanding | ## Findings ### Blocking None identified in the inspected code. ### Non-blocking - The description says this draft is an alternative to #12731 and asks to keep it pending a decision on which approach should merge. Resolve that overlap before treating the PR as ready. ## Not verified The complete `tools/check_link_scope.py` source was not read; therefore its full behavior and error handling are not verified. No build, configure, regression script, or test suite was run. The author-reported Windows checks were not independently confirmed on this head. All six changed paths appear in the manifest as included; no excluded changed paths were listed. Files read: `cmake/BundledSubdirectory.cmake`, `core/libs/CMakeLists.txt`, `core/libs/prx/libSceAgcDriver/CMakeLists.txt`, `core/libs/prx/libSceHttp2/CMakeLists.txt`, `core/libs/prx/libSceSsl/CMakeLists.txt`, and selected portions of `tools/check_link_scope.py`. ## To get this to a good state Nothing is required. Optional: resolve the stated approach overlap and complete review of the regression tool and rebased configure before requesting a formal decision.
ligmaSec commented 2026-12-03 17:14:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T17:14:02Z.

Review: COMMENTED


I ran python3 tools/check_link_scope.py from a source snapshot of b43e78c99d on Linux with CMake 3.31.6 and Ninja. The check found the glslang, nghttp2, and mbedtls call sites. Its control fixture reproduced the export-set error, and the fixture with the helper generated successfully. It confirmed the bundled targets received an empty inherited link list and the AnyPS5 targets retained their original links across the nested and excluded mounts. This run exercised the CMake fixtures on Linux.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6174708767 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12994#pullrequestreview-6174708767). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T17:14:02Z. **Review:** COMMENTED --- I ran `python3 tools/check_link_scope.py` from a source snapshot of `b43e78c99d` on Linux with CMake 3.31.6 and Ninja. The check found the glslang, nghttp2, and mbedtls call sites. Its control fixture reproduced the export-set error, and the fixture with the helper generated successfully. It confirmed the bundled targets received an empty inherited link list and the AnyPS5 targets retained their original links across the nested and excluded mounts. This run exercised the CMake fixtures on Linux. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/12994:upstream-pr/12994'
git switch 'upstream-pr/12994'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/12994'
git switch 'upstream-pr/12994'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/12994'
git switch 'upstream-pr/12994'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/12994'
git switch 'main'
git merge --squash 'upstream-pr/12994'
git switch 'main'
git merge --ff-only 'upstream-pr/12994'
git switch 'main'
git merge 'upstream-pr/12994'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!12994
No description provided.