[cpufrequtils/f13/master] cpufreq-aperf is now working correctly on 32bit architectures
Petr Sabata
psabata at fedoraproject.org
Mon Feb 7 16:05:10 UTC 2011
commit 7f7f3586aaec69308558608bbc03ef843d609c08
Author: Petr Sabata <psabata at redhat.com>
Date: Mon Feb 7 17:04:53 2011 +0100
cpufreq-aperf is now working correctly on 32bit architectures
cpufrequtils-008-aperf-32bit.patch | 11 +++++++++++
cpufrequtils.spec | 8 +++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/cpufrequtils-008-aperf-32bit.patch b/cpufrequtils-008-aperf-32bit.patch
new file mode 100644
index 0000000..c212ebf
--- /dev/null
+++ b/cpufrequtils-008-aperf-32bit.patch
@@ -0,0 +1,11 @@
+--- cpufrequtils-008/utils/aperf.c 2010-07-05 17:43:17.000000000 +0200
++++ cpufrequtils-008/utils/aperf.c.new 2011-02-07 17:02:29.359278003 +0100
+@@ -96,7 +96,7 @@
+ return -1;
+ if (lseek(fd, idx, SEEK_CUR) == -1)
+ goto err;
+- if (read(fd, val, sizeof val) != sizeof *val)
++ if (read(fd, val, sizeof *val) != sizeof *val)
+ goto err;
+ close(fd);
+ return 0;
diff --git a/cpufrequtils.spec b/cpufrequtils.spec
index 88780d6..4eb4fde 100644
--- a/cpufrequtils.spec
+++ b/cpufrequtils.spec
@@ -1,13 +1,14 @@
Summary: CPU Frequency changing related utilities
Name: cpufrequtils
Version: 008
-Release: 1%{?dist}
+Release: 2%{?dist}
Group: System Environment/Base
License: GPLv2
URL: http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html
Source: http://www.kernel.org/pub/linux/utils/kernel/cpufreq/%{name}-%{version}.tar.bz2
Patch0: disable-gsic.patch
Patch1: cpufrequtils-multilib.patch
+Patch2: cpufrequtils-008-aperf-32bit.patch
Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: libsysfs-devel gettext
# pulls in automake and autoconf
@@ -25,6 +26,7 @@ supports CPU frequency scaling.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1 -b .aperf-32bit
%build
make CFLAGS="$RPM_OPT_FLAGS"
@@ -89,6 +91,10 @@ rm -rf $RPM_BUILD_ROOT;
%changelog
+* Mon Feb 7 2011 Petr Sabata <psabata at redhat.com> - 008-2
+- Fixing aperf to work properly on 32bit arches, rhbz#675743
+- aperf-32bit.patch
+
* Fri Jul 16 2010 Petr Sabata <psabata at redhat.com> - 008-1
- New upstream release
- Multilib patch
More information about the scm-commits
mailing list