Since a long time, I am unable to build kde-plasma/powerdevil without any changes.
The error is:
Code: Select all
/usr/include/qt6/QtWaylandClient/qwaylandclientextension.h: In instantiation of 'QWaylandClientExtensionTemplate<T, destruct>::QWaylandClientExtensionTemplate(int) [with T = ExternalBrightnessController; auto destruct = &QtWayland::kde_external_brightness_v1::destroy]':
required from here
/tmp-ram/portage/kde-plasma/powerdevil-6.5.5/work/powerdevil-6.5.5/daemon/controllers/externalbrightnesscontrol.cpp:12:127:
12 | : QWaylandClientExtensionTemplate<ExternalBrightnessController, &QtWayland::kde_external_brightness_v1::destroy>(s_version)
| ^
/usr/include/qt6/QtWaylandClient/qwaylandclientextension.h:57:32: error: '(QtWayland::kde_external_brightness_v1::destroy != 0)' is not a constant expression
57 | if constexpr (destruct != nullptr) {
| ~~~~~~~~~^~~~~~~~~~
/usr/include/qt6/QtWaylandClient/qwaylandclientextension.h: In instantiation of 'QWaylandClientExtensionTemplate<T, destruct>::~QWaylandClientExtensionTemplate() [with T = ExternalBrightnessController; auto destruct = &QtWayland::kde_external_brightness_v1::destroy]':
required from here
/tmp-ram/portage/kde-plasma/powerdevil-6.5.5/work/powerdevil-6.5.5/daemon/controllers/externalbrightnesscontrol.cpp:12:127:
12 | : QWaylandClientExtensionTemplate<ExternalBrightnessController, &QtWayland::kde_external_brightness_v1::destroy>(s_version)
| ^
/usr/include/qt6/QtWaylandClient/qwaylandclientextension.h:68:32: error: '(QtWayland::kde_external_brightness_v1::destroy != 0)' is not a constant expression
68 | if constexpr (destruct != nullptr) {
| ~~~~~~~~~^~~~~~~~~~
Can anyone please shed a light on this?
Thanks!

