Bug 481453

Summary: kde-gtk-config does not check for GTK+3 with X11 support
Product: [Plasma] Breeze Reporter: Johannes Penßel <johannes.penssel>
Component: gtk themeAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: agrinev98, evgeniyharchenko.dev, nate, uhhadd
Priority: NOR Keywords: qt6, X11-only
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Johannes Penßel 2024-02-17 09:42:01 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
kde-gtk-config uses GtkPlug for previewing, which is an X11-specific class.  ${ROOT}/gtk3proxies/preview3.c includes gtkx.h. However, CMake only searches for the generic gtk+-3.0 package-config file. If GTK+3 is built without X11 support, kde-gtk-config fails to compile.

STEPS TO REPRODUCE
1. switch to an X11-free version of GTK3 and its development files.
2. attempt to build kde-gtk-config.

OBSERVED RESULT
1. CMake configuration succeeds.
2. compilation fails at  ${ROOT}/gtk3proxies/preview3.c

EXPECTED RESULT
CMake searches for gtk+-x11-3.0.pc and throws an error if it is absent.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.7.5-gentoo
(available in About System)
KDE Plasma Version: 6.0.0 (6.0 branch)
KDE Frameworks Version: 6.0.0 (master)
Qt Version: 6.6.2
Comment 1 TraceyC 2025-02-24 17:58:28 UTC
Adding the x11-only keyword