The ebuilds for app-emulation/virt-manager list dubs[X] as required when the gui use flag is activated. From my (short) investigation, dbus[X] only enables autolaunch of dbus when X is started. If this is the case, the dependency should be dbus regardless of the state of the X use flag. I tested an ebuild modified accordingly and can confirm that everything builds and works as intended on my system (x86-64/no-multilib) where the X flag is disabled globally, only Wayland is available (through sway), and dbus is built without the X flag.
I have also tested this and it works fine with -X.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d9516f643e9e4b5681400643285d2076d30b038 commit 0d9516f643e9e4b5681400643285d2076d30b038 Author: Filip Kobierski <fkobi@pm.me> AuthorDate: 2024-12-06 18:54:27 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-01-06 03:33:48 +0000 app-emulation/virt-manager: add 5.0.0-r1 with improvements - add verify-sig USE flag - dependency changes: - RDEPEND: do not require dbus[X] - BDEPEND: add sys-devel/gettext - allow gtksourceview:[34] - update versions - src_configure: - disable unavailable hypervisors - sort emesonargs in upstream's order - variable changes - add DESIGN.md to DOCS - update LICENSE - optfeatures - add libguestfs' VM inspection - improve QEMU description - misc - sort & tidy src_install rm commands - improve QEMU optfeature description - add useful link to a specification file, which many of the chages here are based on - break too long lines verify-sig ports modeled after net-libs/miniupnp & mgorny's article Bug: https://bugs.gentoo.org/931864 Signed-off-by: Filip Kobierski <fkobi@pm.me> Closes: https://github.com/gentoo/gentoo/pull/39545 Signed-off-by: Sam James <sam@gentoo.org> app-emulation/virt-manager/Manifest | 1 + .../virt-manager/virt-manager-5.0.0-r1.ebuild | 108 +++++++++++++++++++++ 2 files changed, 109 insertions(+)