[tuned/f17] Added missing dependencies

Jaroslav Škarvada jskarvad at fedoraproject.org
Mon Oct 22 11:44:18 UTC 2012


commit 29d5efa401534596e047953c0ee567ab9df492db
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date:   Mon Oct 22 13:44:12 2012 +0200

    Added missing dependencies
    
      Resolves: rhbz#811196
    - Fixed powertop2tuned profile generation
      Resolves: rhbz#859672

 tuned-2.0.1-powertop2tuned-fix.patch |   13 +++++++++++++
 tuned.spec                           |   11 ++++++++++-
 2 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/tuned-2.0.1-powertop2tuned-fix.patch b/tuned-2.0.1-powertop2tuned-fix.patch
new file mode 100644
index 0000000..352d5cc
--- /dev/null
+++ b/tuned-2.0.1-powertop2tuned-fix.patch
@@ -0,0 +1,13 @@
+--- tuned-2.0.1/experiments/powertop2tuned.orig	2012-06-12 17:36:56.000000000 +0200
++++ tuned-2.0.1/experiments/powertop2tuned	2012-10-22 13:30:48.149957802 +0200
+@@ -134,8 +134,8 @@
+ 		return True
+ 
+ 	def generateHTML(self):
+-		proc = Popen(["powertop", "--html=/tmp/powertop"], stdout=PIPE)
+-		output = proc.communicate()[0]
++		proc = Popen("LANG= powertop --html=/tmp/powertop", stdout=PIPE, stderr=PIPE, shell=True)
++		output = proc.communicate()[1]
+ 		if proc.returncode != 0:
+ 				return ret
+ 
diff --git a/tuned.spec b/tuned.spec
index db862b1..812114a 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -1,7 +1,7 @@
 Summary: A dynamic adaptive system tuning daemon
 Name: tuned
 Version: 2.0.1
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPLv2
 # The source for this package was pulled from upstream git.  Use the
 # following commands to get the corresponding tarball:
@@ -11,12 +11,14 @@ License: GPLv2
 #  make archive
 Source: tuned-%{version}.tar.bz2
 Patch0: tuned-powertop2.patch
+Patch1: tuned-2.0.1-powertop2tuned-fix.patch
 URL: https://fedorahosted.org/tuned/
 BuildArch: noarch
 BuildRequires: python, systemd-units
 Requires(post): systemd-units
 Requires(preun): systemd-units
 Requires(postun): systemd-units
+Requires: python-decorator, dbus-python, pygobject2
 
 %description
 The tuned package contains a daemon that tunes system settings dynamically.
@@ -47,6 +49,7 @@ It can be also used to fine tune your system for specific scenarios.
 %prep
 %setup -q
 %patch0 -p1 -b .powertop2
+%patch1 -p1 -b .powertop2tuned-fix
 
 %build
 
@@ -135,6 +138,12 @@ fi
 %{_prefix}/lib/tuned/spindown-disk
 
 %changelog
+* Mon Oct 22 2012 Jaroslav Škarvada <jskarvad at redhat.com> - 2.0.1-4
+- Added missing dependencies
+  Resolves: rhbz#811196
+- Fixed powertop2tuned profile generation
+  Resolves: rhbz#859672
+
 * Tue Jun 12 2012 Jaroslav Škarvada <jskarvad at redhat.com> - 2.0.1-3
 - another powertop-2.0 compatibility fix
   Resolves: rhbz#830415


More information about the scm-commits mailing list