| Summary: | plasma-workspace fails to compile because of upstream fontconfig header change | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | bluescreenavenger |
| Component: | kcm_fontinst | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | kde, nate |
| Priority: | HI | ||
| Version First Reported In: | git-stable-Plasma/6.3 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/9a5a1a4f36ba0b488d3787317038b281f5c11ece | Version Fixed/Implemented In: | 6.6 |
| Sentry Crash Report: | |||
|
Description
bluescreenavenger
2025-11-18 00:10:10 UTC
As you've done this work already do you want to create an MR? (In reply to David Edmundson from comment #1) > As you've done this work already do you want to create an MR? Well... I thought it would be easy ``` diff --git a/kcms/kfontinst/lib/Fc.h b/kcms/kfontinst/lib/Fc.h index 4dd854d4db..0899e6bfec 100644 --- a/kcms/kfontinst/lib/Fc.h +++ b/kcms/kfontinst/lib/Fc.h @@ -9,6 +9,7 @@ #include "kfontinst_export.h" #include <QUrl> #include <fontconfig/fontconfig.h> +#include <fontconfig/fcfreetype.h> #include "kfontinst_export.h" ``` but fcfreetype.h loops for ft2build.h ...which is provided by freetype I have the header. So I assume that some CMake change needs to be done too? Unless you can give me some sort of advice ``` diff --git a/kcms/kfontinst/lib/Fc.h b/kcms/kfontinst/lib/Fc.h index 4dd854d4db..0899e6bfec 100644 --- a/kcms/kfontinst/lib/Fc.h +++ b/kcms/kfontinst/lib/Fc.h @@ -9,6 +9,7 @@ #include "kfontinst_export.h" #include <QUrl> #include <fontconfig/fontconfig.h> +#include <fontconfig/fcfreetype.h> #include "kfontinst_export.h" ``` does not work, because it tries to find a header from another package. Git commit 9a5a1a4f36ba0b488d3787317038b281f5c11ece by Nate Graham, on behalf of Nerdopolis Turfwalker. Committed on 10/12/2025 at 23:08. Pushed by ngraham into branch 'master'. Fix build with latest Fontconfig changes It seems that fontconfig split a header https://github.com/fontconfig/fontconfig/commit/b4b753d66dea17d645166adca239a0fba84d03a9 FIXED-IN: 6.6 M +6 -0 CMakeLists.txt M +1 -0 kcms/kfontinst/lib/CMakeLists.txt M +1 -0 kcms/kfontinst/lib/Fc.h https://invent.kde.org/plasma/plasma-workspace/-/commit/9a5a1a4f36ba0b488d3787317038b281f5c11ece |