Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926935 - kde-plasma/kwin-6.0.2 requires dev-qt/qtbase:6[accessibility]
Summary: kde-plasma/kwin-6.0.2 requires dev-qt/qtbase:6[accessibility]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 926828
  Show dependency tree
 
Reported: 2024-03-13 15:03 UTC by bug2017
Modified: 2024-03-13 21:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bug2017 2024-03-13 15:03:27 UTC
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.
Comment 1 Ionen Wolkens gentoo-dev 2024-03-13 15:13:09 UTC
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?
Comment 2 Ionen Wolkens gentoo-dev 2024-03-13 15:16:38 UTC
(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
Comment 3 Andreas Sturmlechner gentoo-dev 2024-03-13 16:36:14 UTC
Looks simple enough to backport, guess that would make it another accessibility= USEdep.
Comment 4 jms 2024-03-13 18:19:20 UTC
I confirm this bug
Comment 5 Larry the Git Cow gentoo-dev 2024-03-13 21:05:31 UTC
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(-)
Comment 6 Larry the Git Cow gentoo-dev 2024-03-13 21:17:11 UTC
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(-)