kwin-6.0.2 fails to compile Reproducible: Always Steps to Reproduce: 1. Try to build kwin-6.0.2 Actual Results: FAILED: src/plugins/qpa/CMakeFiles/KWinQpaPlugin.dir/integration.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -DEGL_NO_PLATFORM_SPECIFIC_TYPES -DEGL_NO_X11 -DKCOREADDONS_LIB -DMESA_EGL_NO_X11_HEADERS -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_OPENGL_LIB -DQT_QMLINTEGRATION_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_STATICPLUGIN -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/var/tmp/portage/kde-plasma/kwin-6.0.2/work/kwin-6.0.2_build/src/plugins/qpa -I/var/tmp/portage/kde-plasma/kwin-6.0.2/work/kwin-6.0.2/src/plugins/qpa -I/var/tmp/portage/kde-plasma/kwin-6.0.2/work/kwin-6.0.2_build/src/plugins/qpa/KWinQpaPlugin_autogen/include -I/var/tmp/portage/kde-plasma/kwin-6.0.2/work/kwin-6.0.2/src -I/var/tmp/portage/kde-plasma/kwin-6.0.2/work/kwin-6.0.2_build/src -I/var/tmp/portage/kde-plasma/kwin-6.0.2/work/kwin-6.0.2_build/src/wayland -isystem /usr/include/qt6/QtConcurrent -isystem /usr/include/qt6 -isystem /usr/include/qt6/QtCore -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtCore/6.6.2 -isystem /usr/include/qt6/QtCore/6.6.2/QtCore -isystem /usr/include/qt6/QtGui/6.6.2 -isystem /usr/include/qt6/QtGui/6.6.2/QtGui -isystem /usr/include/qt6/QtGui -isystem /usr/include/freetype2 -isystem /usr/include/qt6/QtDBus -isystem /usr/include/qt6/QtQuick -isystem /usr/include/qt6/QtQml -isystem /usr/include/qt6/QtQmlIntegration -isystem /usr/include/qt6/QtNetwork -isystem /usr/include/qt6/QtQmlModels -isystem /usr/include/qt6/QtOpenGL -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/KF6/KConfig -isystem /usr/include/KF6/KConfigCore -isystem /usr/include/KF6/KCoreAddons -isystem /usr/include/KF6/KWindowSystem -DQT_NO_DEBUG -march=native -O2 -pipe -ggdb -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always -std=gnu++20 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-parameter -fPIC -I/usr/include -MD -MT src/plugins/qpa/CMakeFiles/KWinQpaPlugin.dir/integration.cpp.o -MF src/plugins/qpa/CMakeFiles/KWinQpaPlugin.dir/integration.cpp.o.d -o src/plugins/qpa/CMakeFiles/KWinQpaPlugin.dir/integration.cpp.o -c /var/tmp/portage/kde-plasma/kwin-6.0.2/work/kwin-6.0.2/src/plugins/qpa/integration.cpp /var/tmp/portage/kde-plasma/kwin-6.0.2/work/kwin-6.0.2/src/plugins/qpa/integration.cpp:36:10: fatal error: QtGui/private/qspiaccessiblebridge_p.h: No such file or directory 36 | #include <QtGui/private/qspiaccessiblebridge_p.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. [1557/1792] Expected Results: compilation not terminated Reinstalling dev-qt/qtbase:6 with accessibility useflag installs the missing header file. After that kwin builds successfully.
Haven't looked in-depth nor tried, but may be possible to be optional given there's #if !defined(QT_NO_ACCESSIBILITY_ATSPI_BRIDGE) #include <QtGui/private/qspiaccessiblebridge_p.h> #endif Misdetected maybe?
(In reply to Ionen Wolkens from comment #1) > Haven't looked in-depth nor tried, but may be possible to be optional given > there's > > #if !defined(QT_NO_ACCESSIBILITY_ATSPI_BRIDGE) > #include <QtGui/private/qspiaccessiblebridge_p.h> > #endif > > Misdetected maybe? Or nevermind, I ended up looking at git quickly. That's not in 6.0.2 https://github.com/KDE/kwin/commit/ade5d72c3a7e2078025ecbb3c9a354c20a8d9c90
Looks simple enough to backport, guess that would make it another accessibility= USEdep.
I confirm this bug
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=87ee31d4545a99ad38e76ac72d969dc4c19438fa commit 87ee31d4545a99ad38e76ac72d969dc4c19438fa Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-03-13 21:00:01 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-03-13 21:05:07 +0000 kde-plasma/kwin: Add dev-qt/qtbase:6[accessibility=] USEdep Upstream commit ade5d72c3a7e2078025ecbb3c9a354c20a8d9c90 Backporting to 6.0 stable branch. Bug: https://bugs.gentoo.org/926935 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../kwin-6.0.2-qtgui-accessibility-optional.patch | 41 ++++++++++++++++++++++ kde-plasma/kwin/kwin-6.0.49.9999.ebuild | 6 +++- kde-plasma/kwin/kwin-9999.ebuild | 2 +- 3 files changed, 47 insertions(+), 2 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02995e8e16cd8f164acc4ac86afcfd3675df85a4 commit 02995e8e16cd8f164acc4ac86afcfd3675df85a4 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-03-13 21:00:01 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-03-13 21:16:29 +0000 kde-plasma/kwin: Add dev-qt/qtbase:6[accessibility=] USEdep Upstream commit ade5d72c3a7e2078025ecbb3c9a354c20a8d9c90 Backporting to 6.0. Closes: https://bugs.gentoo.org/926935 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../kwin-6.0.2-qtgui-accessibility-optional.patch | 41 ++++++++++++++++++++++ kde-plasma/kwin/kwin-6.0.2-r1.ebuild | 6 +++- 2 files changed, 46 insertions(+), 1 deletion(-)