Update freetype-sys to 0.23 - #78
Merged
Merged
Conversation
freetype-sys 0.23 doesn't build with the version shipped in ubuntu 22.
Ubuntu 24 doesn't seem to ship libfreetype-dev in CI images by default.
configuration error in freetype-sys in ubuntu 22.04 CI:
```
thread 'main' (2233) panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/freetype-sys-0.23.0/build.rs:21:18:
called `Result::unwrap()` on an `Err` value:
pkg-config exited with status code 1
> PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags freetype2 'freetype2 >= 24.3.18'
pkg-config output:
Package dependency requirement 'freetype2 >= 24.3.18' could not be satisfied.
Package 'freetype2' has version '24.1.18', required version is '>= 24.3.18'
The system library `freetype2` required by crate `freetype-sys` was not found.
The file `freetype2.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
The PKG_CONFIG_PATH environment variable is not set.
HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `freetype2.pc`.
```
jschwe
commented
May 10, 2026
mrobinson
approved these changes
Jun 11, 2026
mrobinson
left a comment
Member
There was a problem hiding this comment.
Looks good, but let's bump the version to 0.8 before landing.
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.
This is a less invasive alternative to #77 that doesn't touch the bindings.
It does delete all the bindings tests, since those had UB (null-ptr dereference).
freetype-sys 0.23 does require a newer freetype version, and hence might not run on Ubuntu 22.04 out of the box anymore - at least in CI it fails and required updating ot ubuntu 24.04