commit 1e796d12282c4070ba943daae3856f26057e09cf
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Wed Mar 20 15:48:47 2013 +0100

    - rel 2; fix breakage by 
http://cgit.freedesktop.org/systemd/systemd/commit/?id=5ae18ddc0d86673520c0dd6b59ccac8afc8aa605

 upower-fixes.patch | 12 ++++++++++++
 upower.spec        |  4 +++-
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/upower.spec b/upower.spec
index ebecd05..107937e 100644
--- a/upower.spec
+++ b/upower.spec
@@ -2,11 +2,12 @@ Summary:      Power management service
 Summary(pl.UTF-8):     Usługa zarządzania energią
 Name:          upower
 Version:       0.9.20
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Libraries
 Source0:       http://upower.freedesktop.org/releases/%{name}-%{version}.tar.xz
 # Source0-md5: f175984d142dc8d2353a7da609836b69
+Patch0:                %{name}-fixes.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}
diff --git a/upower-fixes.patch b/upower-fixes.patch
new file mode 100644
index 0000000..58794c9
--- /dev/null
+++ b/upower-fixes.patch
@@ -0,0 +1,12 @@
+diff -urN upower-0.9.20.org/src/linux/up-device-lg-unifying.c 
upower-0.9.20/src/linux/up-device-lg-unifying.c
+--- upower-0.9.20.org/src/linux/up-device-lg-unifying.c        2013-03-20 
13:42:58.000000000 +0100
++++ upower-0.9.20/src/linux/up-device-lg-unifying.c    2013-03-20 
15:45:03.731346809 +0100
+@@ -627,7 +627,7 @@
+ 
+       for (entry = hidraw_list; entry; entry = entry->next) {
+               hidraw = entry->data;
+-              if (!g_strcmp0 (g_udev_device_get_sysfs_attr (hidraw, "device"),
++              if (!g_strcmp0 
(g_udev_device_get_sysfs_path(g_udev_device_get_parent(hidraw)),
+                               parent_sysfs_path))
+                       receiver = hidraw;
+               else
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/upower.git/commitdiff/1e796d12282c4070ba943daae3856f26057e09cf

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to