Looks like build fails because missing dependency che king for xcb-util [ 44%] Building CXX object src/xwayland/CMakeFiles/KWinXwaylandServerModule.dir/clipboard.cpp.o cd /home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/x86_64-redhat-linux-gnu/src/xwayland && /usr/bin/g++ -DCMS_NO_REGISTER_KEYWORD=1 -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_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XKBCOMMON_SUPPORT_LIB -DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/x86_64-redhat-linux-gnu/src/xwayland -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/src/xwayland -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/x86_64-redhat-linux-gnu/src/xwayland/KWinXwaylandServerModule_autogen/include -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/src/colors -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/src/platformsupport -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/src/tabbox -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/src/effects -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/src/libkwineffects -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/x86_64-redhat-linux-gnu/src -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/x86_64-redhat-linux-gnu/src/wayland -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/x86_64-redhat-linux-gnu/src/libkwineffects -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/src/platformsupport/scenes/qpainter -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/src/platformsupport/scenes/opengl -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/src/platformsupport/vsyncconvenience -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/src -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/src/xwayland/lib -I/home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/x86_64-redhat-linux-gnu/src/xwayland/lib -isystem /usr/include/KF5/KConfig -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQmlModels -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/KF5/KConfigWidgets -isystem /usr/include/KF5/KWidgetsAddons -isystem /usr/include/KF5/KConfigGui -isystem /usr/include/qt5/QtXml -isystem /usr/include/KF5/KCodecs -isystem /usr/include/KF5/KAuthWidgets -isystem /usr/include/KF5/KAuthCore -isystem /usr/include/KF5/KAuth -isystem /usr/include/KF5/KCrash -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/KF5/KI18n -isystem /usr/include/KF5/KPackage -isystem /usr/include/KF5/KService -isystem /usr/include/KDecoration2 -isystem /usr/include/qt5/QtXkbCommonSupport/5.15.8 -isystem /usr/include/qt5/QtXkbCommonSupport/5.15.8/QtXkbCommonSupport -isystem /usr/include/qt5/QtXkbCommonSupport -isystem /usr/include/qt5/QtGui/5.15.8 -isystem /usr/include/qt5/QtGui/5.15.8/QtGui -isystem /usr/include/qt5/QtCore/5.15.8 -isystem /usr/include/qt5/QtCore/5.15.8/QtCore -isystem /usr/include/KF5/KNotifications -isystem /usr/include/libdrm -isystem /usr/include/KF5/KWayland -isystem /usr/include/KF5/KActivities -isystem /usr/include/KScreenLocker -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -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 -DNDEBUG -std=gnu++20 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-parameter -fPIC -MD -MT src/xwayland/CMakeFiles/KWinXwaylandServerModule.dir/clipboard.cpp.o -MF CMakeFiles/KWinXwaylandServerModule.dir/clipboard.cpp.o.d -o CMakeFiles/KWinXwaylandServerModule.dir/clipboard.cpp.o -c /home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/src/xwayland/clipboard.cpp /home/tkloczko/rpmbuild/BUILD/kwin-5.27.3/src/xwayland/clipboard.cpp:19:10: fatal error: xcb/xcb_event.h: No such file or directory 19 | #include <xcb/xcb_event.h> | ^~~~~~~~~~~~~~~~~ compilation terminated.
Looks like 5.27.4.1 is ok