#1155176 kwin-x11 FTCBFS: missing qtwaylandscanner_kde

#1155176#5
Date:
2026-11-21 09:08:56 UTC
From:
To:
kwin-x11 fails to cross build from source. On the source, the build says
that one should define KF6_HOST_TOOLING. The actual problem is more
nuanced. kwin-x11 needs a fork of qtwaylandscanner named
qtwaylandscanner_kde. While the readme says that it should be deleted
for Qt6, that's not where we are. The build system has a few options:
1. One may define -DQTWAYLANDSCANNER_KDE_EXECUTABLE=... to supply one
   explicitly.
2. One may define -DKF6_HOST_TOOLING=... and have it build one.
3. One may build natively.

While the KF6_HOST_TOOLING path sounds obvious, this variable is
consumed by a pile of other KF6 modules. They end up attempting to
rebuild tools rather than using installed ones. As a result, we'd vastly
increase Build-Depends and build time. I prefer treating
qtwaylandscanner_kde as the exception here. So the route I'm proposing
in the attached patch is explicitly building qtwaylandscanner_kde and
providing its executable name to the build. This is also due to the note
that it is supposed to disappear. Hope you agree with this choice.

Until Python fixes #1146581, actually cross building kwin-x11 continues
to fail.

Helmut