ports/contrib (3.1): powertop: Updated version 2.6 -> 2.7
commit 8a722d94de35c7d46988cdd5266948fbe83ab25d Author: Alan Mizrahi <alan+crux@mizrahi.com.ve> Date: Mon Aug 3 11:32:26 2015 +0900 powertop: Updated version 2.6 -> 2.7 diff --git a/powertop/.md5sum b/powertop/.md5sum index 68d4f0c..0ec201e 100644 --- a/powertop/.md5sum +++ b/powertop/.md5sum @@ -1 +1,2 @@ -502453dcc32c3db8188a83e9df1a5b51 powertop-2.6.tar.gz +e0d686e47daaf7e9d89031f7763432ef powertop-2.7.tar.gz +1e8b0f482158db57a87fcd6074d0b699 powertop-autotune.patch diff --git a/powertop/Pkgfile b/powertop/Pkgfile index 739bfde..cca9cd8 100644 --- a/powertop/Pkgfile +++ b/powertop/Pkgfile @@ -1,18 +1,28 @@ -# Description: Finds the software component(s) that make your laptop use more power than necessary -# URL: https://01.org/powertop/ -# Maintainer: Mikhail Kolesnik, mike at openbunker dot org -# Depends on: ncurses libnl +# Description: Finds the software component(s) that make your laptop use more power than necessary +# URL: https://01.org/powertop/ +# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve +# Packager: Mikhail Kolesnik, mike at openbunker dot org +# Depends on: ncurses libnl name=powertop -version=2.6 +version=2.7 release=1 -source=(https://01.org/sites/default/files/downloads/$name/$name-$version.tar.gz) +source=( +https://01.org/sites/default/files/downloads/$name/$name-$version.tar.gz +$name-autotune.patch +) build() { - cd $name - ./autogen.sh - ./configure --prefix=/usr --disable-nls \ - --mandir=/usr/man + cd $name-$version + + # fix crash with --auto-tune: + # https://lists.01.org/pipermail/powertop/2014-December/001730.html + patch -p1 -i $SRC/$name-autotune.patch + + ./configure \ + --prefix=/usr \ + --mandir=/usr/man \ + --disable-nls make make DESTDIR=$PKG install } diff --git a/powertop/powertop-autotune.patch b/powertop/powertop-autotune.patch new file mode 100644 index 0000000..dc0fbf4 --- /dev/null +++ b/powertop/powertop-autotune.patch @@ -0,0 +1,11 @@ +diff --git a/src/devices/devfreq.cpp b/src/devices/devfreq.cpp +index d2e56e3..4de5c9b 100644 +--- a/src/devices/devfreq.cpp ++++ b/src/devices/devfreq.cpp +@@ -247,6 +247,7 @@ void create_all_devfreq_devices(void) + fprintf(stderr, "Devfreq not enabled\n"); + is_enabled = false; + closedir(dir); ++ dir = NULL; + return; + }
participants (1)
-
crux@crux.nu