vulkan-tools ebuild disallows combination of X and wayland flags for cube flag, but there is both vkcube and vkcube-wayland executables in result of compilation if X and Wayland or only Wayland support enabled in compilation options.
Steps to Reproduce:
1. Emerge dev-util/vulkan-tools with USE="X wayland cube".
Emerge requires exactly one of X or Wayland.
Emerge compiles vulkan-tools and installs vkcube, vkcube-wayland, vkcubepp.
I quickly hacked simple patch for this ebuild, it could be better but it works. It's attached to bug.
Created attachment 868078 [details, diff]
Simple patch which resolves this bug
Haven't looked at the CMakeLists but if that works I guess this changed at some point then wrt bug #907071 comment #2 then? This used to not be possible and thought would need multibuild.
Having both at once is certainly something I've been wanting given I use both and had to constantly rebuild to swap.
Upstream builds vkcube-wayland binary independent of chosen backend if Wayland support if enabled (default).
This happens in both 1.3.246 (which is used in referenced bug) and latest 1.3.250 versions.
(In reply to xbt573 from comment #3)
> Upstream builds vkcube-wayland binary independent of chosen backend if
> Wayland support if enabled (default).
> This happens in both 1.3.246 (which is used in referenced bug) and latest
> 1.3.250 versions.
Yeah I presume the issues were in a yet older version than the bug and just hadn't be re-looked at, assuming I'm not missing something.
The bug has been closed via the following commit(s):
Author: Nick Sarnie <email@example.com>
AuthorDate: 2023-09-19 01:05:08 +0000
Commit: Nick Sarnie <firstname.lastname@example.org>
CommitDate: 2023-09-19 01:14:26 +0000
dev-util/vulkan-tools: Support multiple window systems
Signed-off-by: Nick Sarnie <email@example.com>
.../vulkan-tools/vulkan-tools-1.3.261-r1.ebuild | 80 ++++++++++++++++++++++
dev-util/vulkan-tools/vulkan-tools-9999.ebuild | 6 +-
2 files changed, 84 insertions(+), 2 deletions(-)