rpms/powertop/devel powertop-1.9-hciconfig.patch, NONE, 1.1 powertop.spec, 1.13, 1.14

Adam Jackson (ajax) fedora-extras-commits at redhat.com
Tue Jan 22 18:20:11 UTC 2008


Author: ajax

Update of /cvs/pkgs/rpms/powertop/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32156

Modified Files:
	powertop.spec 
Added Files:
	powertop-1.9-hciconfig.patch 
Log Message:
* Tue Jan 22 2008 Adam Jackson <ajax at redhat.com> 1.9-2
- Use full path when invoking hciconfig. (Ville Skyttä, #426721)


powertop-1.9-hciconfig.patch:

--- NEW FILE powertop-1.9-hciconfig.patch ---
diff -up powertop-1.9/bluetooth.c~ powertop-1.9/bluetooth.c
--- powertop-1.9/bluetooth.c~	2007-09-29 21:58:57.000000000 +0300
+++ powertop-1.9/bluetooth.c	2007-12-25 02:57:00.000000000 +0200
@@ -90,7 +90,7 @@ static int previous_bytes = -1;
 
 void turn_bluetooth_off(void)
 {
-	system("hciconfig hci0 down &> /dev/null");
+	system("/usr/sbin/hciconfig hci0 down &> /dev/null");
 	system("/sbin/rmmod hci_usb &> /dev/null");
 }
 


Index: powertop.spec
===================================================================
RCS file: /cvs/pkgs/rpms/powertop/devel/powertop.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- powertop.spec	11 Dec 2007 02:33:06 -0000	1.13
+++ powertop.spec	22 Jan 2008 18:19:22 -0000	1.14
@@ -1,6 +1,6 @@
 Name:           powertop
 Version:        1.9
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Power consumption monitor
 
 Group:          Applications/System
@@ -13,6 +13,7 @@
 BuildRequires: ncurses-devel
 
 Patch1: powertop-1.7-strncpy.patch
+Patch2: powertop-1.9-hciconfig.patch
 
 %description
 PowerTOP is a tool that finds the software component(s) that make your
@@ -21,6 +22,7 @@
 %prep
 %setup -q
 %patch1 -p1 -b .strncpy
+%patch2 -p1 -b .hciconfig
 
 %build
 export CFLAGS="$RPM_OPT_FLAGS"
@@ -41,6 +43,9 @@
 %{_mandir}/man1/powertop.1*
 
 %changelog
+* Tue Jan 22 2008 Adam Jackson <ajax at redhat.com> 1.9-2
+- Use full path when invoking hciconfig. (Ville Skyttä, #426721)
+
 * Mon Dec 10 2007 Josh Boyer <jwboyer at gmail.com> 1.9-1
 - Update to latest release
 




More information about the fedora-extras-commits mailing list