build: skip the FreeType version resource so Windows builds work in paths with spaces #2210

Merged
Rohan03x merged 1 commit from upstream-pr/2210 into main 2026-10-09 21:46:12 +00:00
Rohan03x commented 2026-10-09 11:42:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Rohan03x on 2026-10-09T11:42:31Z.


What

On Windows the build fails when the checkout path contains a space: windres passes the include directories to the preprocessor unquoted, so FreeType's ftver.rc cannot be compiled. This drops ftver.rc from the freetype target on Windows. The resource only carries version metadata; FreeType is linked statically here and the resource never reached an output (the built libSceFont*.prx have no .rsrc section). #1105 noted this failure and left it open.

Tested

Windows 11 22621, WinLibs GCC 15.2.0 UCRT, windres 2.46.0, checkout in a path with a space and parentheses.

  • Before, on main f1451396: cmake --build --target freetype fails at ftver.rc.obj.
  • After, from scratch on f1451396: configure and build exit 0, --target libs builds 115 prx, ctest 488/488. libfreetype.a goes from 43 to 42 members; only ftver.rc.obj is gone.
  • After rebasing onto d70b8998: rebuild in the same tree and --target libs exit 0, no ftver.rc build edge, ctest 0 failed out of 507 (2 skipped: agc_driver_storage_cache_budget, guest_video_out_wqhd_detection_no_vulkan).
  • tools/check_conventions.py --base origin/main passes.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4799924452 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2210). Originally posted by [Rohan03x](https://github.com/Rohan03x) on 2026-10-09T11:42:31Z. --- ### What On Windows the build fails when the checkout path contains a space: `windres` passes the include directories to the preprocessor unquoted, so FreeType's `ftver.rc` cannot be compiled. This drops `ftver.rc` from the `freetype` target on Windows. The resource only carries version metadata; FreeType is linked statically here and the resource never reached an output (the built `libSceFont*.prx` have no `.rsrc` section). #1105 noted this failure and left it open. ### Tested Windows 11 22621, WinLibs GCC 15.2.0 UCRT, windres 2.46.0, checkout in a path with a space and parentheses. - Before, on main `f1451396`: `cmake --build --target freetype` fails at `ftver.rc.obj`. - After, from scratch on `f1451396`: configure and build exit 0, `--target libs` builds 115 prx, ctest 488/488. `libfreetype.a` goes from 43 to 42 members; only `ftver.rc.obj` is gone. - After rebasing onto `d70b8998`: rebuild in the same tree and `--target libs` exit 0, no `ftver.rc` build edge, ctest 0 failed out of 507 (2 skipped: `agc_driver_storage_cache_budget`, `guest_video_out_wqhd_detection_no_vulkan`). - `tools/check_conventions.py --base origin/main` passes. ### Checklist - [x] 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-09 12:35:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T12:35:57Z.

Review: APPROVED


Reviewed the full diff and the reported Windows reproduction on a checkout path containing spaces. The change removes only FreeType’s Windows version resource from this target; the PR reports that it unblocks the build and the full libs build plus CTest pass after rebasing on current main. Conventions passes on the PR head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5470092077 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2210#pullrequestreview-5470092077). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T12:35:57Z. **Review:** APPROVED --- Reviewed the full diff and the reported Windows reproduction on a checkout path containing spaces. The change removes only FreeType’s Windows version resource from this target; the PR reports that it unblocks the build and the full libs build plus CTest pass after rebasing on current main. Conventions passes on the PR head.
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!2210
No description provided.