rpms/DeviceKit-power/devel DeviceKit-power-007-fix-compile.patch, NONE, 1.1 DeviceKit-power.spec, 1.9, 1.10
Richard Hughes
rhughes at fedoraproject.org
Mon Mar 30 13:52:54 UTC 2009
- Previous message (by thread): rpms/logwatch/devel logwatch-7.3.6-sshd2.patch, NONE, 1.1 logwatch.spec, 1.110, 1.111
- Next message (by thread): rpms/swig/devel .cvsignore, 1.12, 1.13 sources, 1.12, 1.13 swig.spec, 1.46, 1.47 swig-1.3.38-rh485540.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: rhughes
Update of /cvs/pkgs/rpms/DeviceKit-power/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32668
Modified Files:
DeviceKit-power.spec
Added Files:
DeviceKit-power-007-fix-compile.patch
Log Message:
* Mon Mar 30 2009 Richard Hughes <richard at hughsie.com> 007-2
- Try to fix a compile error with koji and the new gcc.
DeviceKit-power-007-fix-compile.patch:
--- NEW FILE DeviceKit-power-007-fix-compile.patch ---
diff --git a/src/sysfs-utils.c b/src/sysfs-utils.c
index 4784439..3e1629a 100644
--- a/src/sysfs-utils.c
+++ b/src/sysfs-utils.c
@@ -38,6 +38,7 @@
#include <grp.h>
#include <linux/fs.h>
#include <sys/ioctl.h>
+#include <glib.h>
#include "sysfs-utils.h"
@@ -141,7 +142,7 @@ sysfs_get_bool (const char *dir, const char *attribute)
result = 0;
filename = g_build_filename (dir, attribute, NULL);
if (g_file_get_contents (filename, &contents, NULL, NULL)) {
- if (strcmp (contents, "1"))
+ if (g_strcmp0 (contents, "1") == 0)
result = TRUE;
g_free (contents);
}
Index: DeviceKit-power.spec
===================================================================
RCS file: /cvs/pkgs/rpms/DeviceKit-power/devel/DeviceKit-power.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- DeviceKit-power.spec 30 Mar 2009 11:24:32 -0000 1.9
+++ DeviceKit-power.spec 30 Mar 2009 13:52:24 -0000 1.10
@@ -8,11 +8,15 @@
Summary: Power Management Service
Name: DeviceKit-power
Version: 007
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://gitweb.freedesktop.org/?p=users/david/DeviceKit.git;a=summary
Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz
+
+# Already upstream
+Patch0: DeviceKit-power-007-fix-compile.patch
+
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -49,6 +53,7 @@
%prep
%setup -q
+%patch0 -p1 -b .fix-compile
%build
%configure
@@ -106,6 +111,9 @@
%{_libdir}/pkgconfig/*.pc
%changelog
+* Mon Mar 30 2009 Richard Hughes <richard at hughsie.com> 007-2
+- Try to fix a compile error with koji and the new gcc.
+
* Mon Mar 30 2009 Richard Hughes <richard at hughsie.com> 007-1
- Update to 007
- Previous message (by thread): rpms/logwatch/devel logwatch-7.3.6-sshd2.patch, NONE, 1.1 logwatch.spec, 1.110, 1.111
- Next message (by thread): rpms/swig/devel .cvsignore, 1.12, 1.13 sources, 1.12, 1.13 swig.spec, 1.46, 1.47 swig-1.3.38-rh485540.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list