GNOME Bugzilla – Bug 710383
Only build upower for upower <= 0.9.0
Last modified: 2014-01-03 06:59:42 UTC
We can't support 1.0 with this code as it removed the APIs which overlapped with logind. People should move towards implementing the logind APIs on non-systemd systems.
Created attachment 257533 [details] [review] logout-dialog: Just use GsmSystem rather than UPower GsmSystem already has this stuff abstracted.
Created attachment 257534 [details] [review] Only support UPower 0.9 Newer UPower drops support for APIs that duplicate systemd/logind, so if we detect it, then require consumers to use the systemd backend.
Review of attachment 257534 [details] [review]: ::: configure.ac @@ +72,3 @@ +dnl We can only support old upower +dnl https://bugzilla.gnome.org/show_bug.cgi?id=710383 +PKG_CHECK_MODULES(UPOWER, upower-glib >= $UPOWER_REQUIRED) So we don't actually use UPOWER directly on recent systems, right? maybe we shouldn't require it for them?
Created attachment 257540 [details] [review] Only support UPower 0.9 Simplify version check, and avoid linking to upower if we're not using it.
Review of attachment 257533 [details] [review]: ++
Review of attachment 257540 [details] [review]: ++
Attachment 257540 [details] pushed as 3b518ca - Only support UPower 0.9
See bug 721380.