diff --git a/powertop-1.9-hciconfig.patch b/powertop-1.9-hciconfig.patch new file mode 100644 index 0000000..c1e4d5e --- /dev/null +++ b/powertop-1.9-hciconfig.patch @@ -0,0 +1,12 @@ +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"); + } + diff --git a/powertop.spec b/powertop.spec index adfd7d0..e080199 100644 --- a/powertop.spec +++ b/powertop.spec @@ -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: gettext 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 @@ computer use more power than necessary while it is idle. %prep %setup -q %patch1 -p1 -b .strncpy +%patch2 -p1 -b .hciconfig %build export CFLAGS="$RPM_OPT_FLAGS" @@ -41,6 +43,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/powertop.1* %changelog +* Tue Jan 22 2008 Adam Jackson 1.9-2 +- Use full path when invoking hciconfig. (Ville Skyttä, #426721) + * Mon Dec 10 2007 Josh Boyer 1.9-1 - Update to latest release