Fix FreeType pkg-config module and brew formula names#9
Merged
Conversation
CFreeType declared pkgConfig: "freetype", but the pkg-config module FreeType ships is "freetype2" -- SwiftPM's probe fails, no library search path is emitted, and consumers fail to link FT_* symbols unless another dependency happens to add the same -L path. The brew provider hint had the names reversed: the formula is "freetype".
- actions/checkout v2 -> v4 and drop slashmo/install-swift (its internal actions/cache@v2 is hard-failed by GitHub now); use the runner's Xcode toolchain on macOS and the swift container on Linux. - ubuntu-20.04 runners were retired (jobs queue forever); move to ubuntu-latest with the swift:latest container.
colemancda
added a commit
to PureSwift/Silica
that referenced
this pull request
Jul 13, 2026
FontTests expects Liberation Serif on Linux (the swift container ships no fonts). The macOS test bundle needs brew's lib dir on LIBRARY_PATH to link FT_* symbols until PureSwift/Cairo#9 fixes CFreeType's pkg-config module name upstream.
colemancda
added a commit
to MillerTechnologyPeru/ClassicUI
that referenced
this pull request
Jul 13, 2026
PureSwift/Cairo#9 (freetype2 pkg-config) and PureSwift/Silica#16 (import Darwin) are merged, so the patch script, its CI steps, and the Xcode project's local package overrides are no longer needed. Dependency pins updated to the fixed masters.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CFreeTypedeclarespkgConfig: "freetype", but the pkg-config module FreeType ships isfreetype2(pkg-config --libs freetype2→-L/opt/homebrew/opt/freetype/lib -lfreetype). SwiftPM's probe therefore fails with the "you may be able to install freetype" warning and emits no library search path, so consumers fail to linkFT_*symbols unless another dependency happens to add the same-Lpath.The brew provider hint had the names reversed as well: the Homebrew formula is
freetype(there is nofreetype2formula).Verified:
swift buildlinks clean on macOS with only this package's own pkg-config flags, and the same fix unblocks Linux (apt'slibfreetype-devalso shipsfreetype2.pc).