[libvirt] [libvirt-users] Please remove pm-utils dep from libvirt-clients
Daniel P. Berrange
berrange at redhat.com
Mon Aug 5 13:40:59 UTC 2013
On Mon, Aug 05, 2013 at 03:36:22PM +0200, Richard Hughes wrote:
> On 5 August 2013 15:14, Daniel P. Berrange <berrange at redhat.com> wrote:
> >> I'd rather see libvirt dependent on pm-utils than dbus.
>
> pm-utils is going to be retired for F20, so that's not really an
> option long term.
>
> >> org.freedesktop.UPower.HibernateAllowed()
> >> org.freedesktop.UPower.SuspendAllowed()
>
> Allowed means "Is the user allowed to do this" rather than "Is the
> system capable of this action".
Ok, so UPower isn't something we want to use for this then.
> > Seem that the org.freedesktop.login1 APIs are provided by systemd.
> > Since we need to work on non-systemd distros too,at the very least
> > we'll have to keep code to fallback to using pm-utils on those
> > distros.
>
> Right, you can do that if you want, but on Fedora this isn't going to
> work in the future. UPower could ship a /usr/bin/pm-is-supported
> helper, but I'd rather not duplicate functionality available
> elsewhere.
With Fedora, we can just assume systemd is always present, since
Fedora does not support usage without systemd anymore. For other
distros which don't use systemd, I guess we'll assume they're
continuing to ship pm-utils for now and use our existing code with
them, unless someone contributes something better.
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list