Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 793182

Summary: app-emulation/virt-manager[gtk]: please add dbus[X] runtime dependency
Product: Gentoo Linux Reporter: Nikolay Kichukov <hjckr>
Component: Current packagesAssignee: Virtualization Team <virtualization>
Status: UNCONFIRMED ---    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=877257
Whiteboard:
Package list:
Runtime testing required: ---

Description Nikolay Kichukov 2021-05-31 09:15:17 UTC
If you emerge virt-manager on a system that does not run an Xorg server and virt-manager is started via x11 ssh forwarding, you may end up with a configuration where no setting changes can be saved.

It turns out that virt-manager requires dconf to write its configuration changes, however if dbus is not compiled with the X use flag, writing the configuration fails with an error:

failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch=<some_id> --binary-syntax --close-stderr"

in ~/.cache/virt-manager/virt-manager.log

app-emulation/virt-manager[gtk] does not have a direct runtime dependency of dbus, however the dependency is inherited from: gnome-base/dconf, which does not seem to ask for X on sys-apps/dbus:

RDEPEND="
        >=dev-libs/glib-2.44.0:2
        sys-apps/dbus
"


Reproducible: Always

Steps to Reproduce:
1. Compile current stable app-emulation/virt-manager[gtk] on a system where there is no global X use flag
2. Launch virt-manager via an ssh tunnel with X11 forwarding from another system that runs Xorg server
3. Try to add a connection or make any changes via the UI, observe how they are not saved
Actual Results:  
The settings of the application are not saved

Expected Results:  
The settings of the application to be saved
Comment 1 Larry the Git Cow gentoo-dev 2022-03-19 16:50:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b98d19743eda98438052135a21ce490f972c7648

commit b98d19743eda98438052135a21ce490f972c7648
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2022-03-19 16:43:17 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2022-03-19 16:48:02 +0000

    app-emulation/virt-manager: add 4.0.0
    
      - version bump to 4.0.0
      - bump to EAPI 8
      - Add a more prominent warning about app-emulation/qemu[usbredir,spice]
    
    Closes: https://bugs.gentoo.org/828536
    Bug: https://bugs.gentoo.org/793182
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 app-emulation/virt-manager/Manifest                |  1 +
 .../virt-manager/virt-manager-4.0.0.ebuild         | 96 ++++++++++++++++++++++
 2 files changed, 97 insertions(+)