Created attachment 358956 [details, diff] Patch to ebuild enabling systemd Patch attached that allows me to build spice-vdagent using logind instead of consolekit in the guest OS (and a minor version bump). N.B. if using startx in the guest, I had to replace /etc/X11/xinit/xserverrc from x11-apps/xinit-1.3.2 with: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/xserverrc?h=packages/xorg-xinit X apparently needs to be started on the same tty as login, so that $ loginctl show-session $XDG_SESSION_ID shows Remote=no and Active=yes https://wiki.archlinux.org/index.php/General_Troubleshooting#Session_permissions
Created attachment 359044 [details, diff] Patch to ebuild enabling systemd
Have you submitted these patches upstream? Gentoo really discourages carrying downstream distro patches for features.
The patch is only against the ebuild, making use of options included in upstream configure file.
commit 53097b83636c12033e2eebd7260a8204bda84889 Author: Matthias Maier <tamiko@gentoo.org> Date: Fri Aug 14 00:17:55 2015 -0500 app-emulation/spice-vdagent: version bump to 0.16.0 (bug #554320) This version bump also addresses - update dependency on app-emulation/spice-protocol - install systemd unit files - support for systemd session-info support via systemd use flag, bug #485334 - remove keepdir /var/run, bug #453042 Gentoo-Bug: 453042 Gentoo-Bug: 485334 Gentoo-Bug: 554320 Package-Manager: portage-2.2.20.1