It doesn't feel "entirely" right (because needs no options passed to qtbase), but this is similar to what qtgui:5 does using PDEPEND: PDEPEND="wayland? ( =dev-qt/qtwayland-${QT5_PV}* )" Currently there is nothing that can pull qtwayland with Qt6 afaik, and I've gotten this report: >18:05 < pmn> hello, PyQt6/qtwebengine builds don't pull in qtwayland is that intended? >18:07 < pmn> qutebrowser crashes here and i see in the trace that it's trying to load libX11.so and friends: Similarly to libSDL2, every individual packages normally don't handle picking between libsdl2[wayland] or libsdl2[X] -- and adding qtwayland to world feels counter-intuitive. So qtbase or some metapackage to handle it would help.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9212bba51719a1de8cff0cbe49df2bdca802d026 commit 9212bba51719a1de8cff0cbe49df2bdca802d026 Author: Jimi Huotari <chiitoo@gentoo.org> AuthorDate: 2023-06-10 14:28:11 +0000 Commit: Jimi Huotari <chiitoo@gentoo.org> CommitDate: 2023-06-10 14:33:19 +0000 dev-qt/qtbase: add USE="wayland" with PDEPEND Closes: https://bugs.gentoo.org/864509 Signed-off-by: Jimi Huotari <chiitoo@gentoo.org> dev-qt/qtbase/qtbase-6.5.1-r1.ebuild | 190 +++++++++++++++++++++++++++++++++++ 1 file changed, 190 insertions(+)