Bug 481453 - kde-gtk-config does not check for GTK+3 with X11 support
Summary: kde-gtk-config does not check for GTK+3 with X11 support
Status: CONFIRMED
Alias: None
Product: Breeze
Classification: Plasma
Component: gtk theme (other bugs)
Version First Reported In: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6, X11-only
Depends on:
Blocks:
 
Reported: 2024-02-17 09:42 UTC by Johannes Penßel
Modified: 2025-03-04 07:10 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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