]> git.pld-linux.org Git - packages/upower.git/commitdiff
- fix for systems without systemd auto/th/upower-0.9.18-2
authorBartek Szady <bszx@pld-linux.org>
Sun, 11 Nov 2012 19:07:30 +0000 (20:07 +0100)
committerBartek Szady <bszx@pld-linux.org>
Sun, 11 Nov 2012 19:07:30 +0000 (20:07 +0100)
upower-withoutsystemd.patch [new file with mode: 0644]
upower.spec

diff --git a/upower-withoutsystemd.patch b/upower-withoutsystemd.patch
new file mode 100644 (file)
index 0000000..336103e
--- /dev/null
@@ -0,0 +1,13 @@
+--- upower-0.9.18/src/linux/up-backend.c.old   2012-07-11 19:11:39.000000000 +0200
++++ upower-0.9.18/src/linux/up-backend.c       2012-11-11 14:51:43.000000000 +0100
+@@ -603,7 +603,9 @@
+ up_backend_emits_resuming (UpBackend *backend)
+ {
+ #ifdef HAVE_SYSTEMD
+-      return TRUE;
++      if (sd_booted ())
++              return TRUE;
++      else
+ #else
+       return FALSE;
+ #endif
index 6572c3fa1a1ee59afe732daa827a0651c23ab093..13c57b1e409146db59d03404a12bdf90762bb1b6 100644 (file)
@@ -2,11 +2,12 @@ Summary:      Power management service
 Summary(pl.UTF-8):     Usługa zarządzania energią
 Name:          upower
 Version:       0.9.18
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Libraries
 Source0:       http://upower.freedesktop.org/releases/%{name}-%{version}.tar.xz
 # Source0-md5: bfaaa1e7f8479fca5594406b3c36dff9
+Patch0:                %{name}-withoutsystemd.patch
 URL:           http://upower.freedesktop.org/
 BuildRequires: autoconf >= 2.65
 BuildRequires: automake >= 1:1.11
@@ -101,6 +102,7 @@ Dokumentacja API UPower.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__gtkdocize}
This page took 0.101672 seconds and 4 git commands to generate.