package/powertop: bump to version 2.9
authorRomain Naour <romain.naour@gmail.com>
Thu, 11 May 2017 21:22:17 +0000 (23:22 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 11 May 2017 21:34:49 +0000 (23:34 +0200)
Remove upstream patch, so we don't need to autoreconf
Rename patch 0002 -> 0001
Add POWERTOP_SOURCE to adjust to the new archive naming.

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/powertop/0001-autotune-fix-use-after-close.patch [deleted file]
package/powertop/0001-dont-force-stack-smashing-protection.patch [new file with mode: 0644]
package/powertop/0002-dont-force-stack-smashing-protection.patch [deleted file]
package/powertop/0003-add-missing-sys-time.h-header.patch [deleted file]
package/powertop/0004-add-missing-stdio.h-header.patch [deleted file]
package/powertop/powertop.hash
package/powertop/powertop.mk

diff --git a/package/powertop/0001-autotune-fix-use-after-close.patch b/package/powertop/0001-autotune-fix-use-after-close.patch
deleted file mode 100644 (file)
index f2b3dff..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-Patch pulled from https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/powertop&id=37469c47b885c50365f57044e4ad72e0e3512b91
-
-Fixes a use-after-close bug in create_all_devfreq_devices().
-
-Signed-off-by: Steven Noonan <steven@uplinklabs.net>
-
---- 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;
-       }
diff --git a/package/powertop/0001-dont-force-stack-smashing-protection.patch b/package/powertop/0001-dont-force-stack-smashing-protection.patch
new file mode 100644 (file)
index 0000000..75ed2d1
--- /dev/null
@@ -0,0 +1,18 @@
+Do not pass -fstack-protector unconditionally
+
+Using -fstack-protector only works when the toolchain has SSP support.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/src/Makefile.am
+===================================================================
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -127,7 +127,6 @@
+       -Wformat \
+       -Wshadow \
+       -fno-omit-frame-pointer \
+-      -fstack-protector \
+       $(GLIB2_CFLAGS) \
+       $(LIBNL_CFLAGS) \
+       $(NCURSES_CFLAGS) \
diff --git a/package/powertop/0002-dont-force-stack-smashing-protection.patch b/package/powertop/0002-dont-force-stack-smashing-protection.patch
deleted file mode 100644 (file)
index 75ed2d1..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-Do not pass -fstack-protector unconditionally
-
-Using -fstack-protector only works when the toolchain has SSP support.
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-
-Index: b/src/Makefile.am
-===================================================================
---- a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -127,7 +127,6 @@
-       -Wformat \
-       -Wshadow \
-       -fno-omit-frame-pointer \
--      -fstack-protector \
-       $(GLIB2_CFLAGS) \
-       $(LIBNL_CFLAGS) \
-       $(NCURSES_CFLAGS) \
diff --git a/package/powertop/0003-add-missing-sys-time.h-header.patch b/package/powertop/0003-add-missing-sys-time.h-header.patch
deleted file mode 100644 (file)
index 7156e42..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-From 283cab667a9ac3ae3a675b5e5d1a42191188699f Mon Sep 17 00:00:00 2001
-From: Romain Naour <romain.naour@openwide.fr>
-Date: Sat, 8 Aug 2015 18:24:48 +0200
-Subject: [PATCH] add missing sys/time.h header
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-struct timeval is defined in sys/time.h with a musl toolchain.
-
-Fixes:
-In file included from devices/devfreq.cpp:35:0:
-devices/devfreq.h:35:18: error: field ‘stamp_before’ has incomplete type ‘timeval’
-  struct timeval  stamp_before, stamp_after;
-
-Signed-off-by: Romain Naour <romain.naour@openwide.fr>
----
- src/devices/devfreq.h | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/devices/devfreq.h b/src/devices/devfreq.h
-index 16a60fb..4a8983b 100644
---- a/src/devices/devfreq.h
-+++ b/src/devices/devfreq.h
-@@ -27,6 +27,7 @@
- #include "device.h"
- #include "../parameters/parameters.h"
-+#include <sys/time.h>
- struct frequency;
--- 
-2.4.3
-
diff --git a/package/powertop/0004-add-missing-stdio.h-header.patch b/package/powertop/0004-add-missing-stdio.h-header.patch
deleted file mode 100644 (file)
index 7619cca..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-From e6cfd977c81b335664db1d5d3d6b5488c245e30f Mon Sep 17 00:00:00 2001
-From: Romain Naour <romain.naour@openwide.fr>
-Date: Sat, 8 Aug 2015 18:26:15 +0200
-Subject: [PATCH] add missing stdio.h header
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-snprinf is defined in stdio.h.
-
-Fixes:
-perf/perf_bundle.cpp: In function ‘void parse_event_format(const char*)’:
-perf/perf_bundle.cpp:141:75: error: ‘sprintf’ was not declared in this scope
-  sprintf(file, "/sys/kernel/debug/tracing/events/%s/%s/format", sys, event);
-
-Signed-off-by: Romain Naour <romain.naour@openwide.fr>
----
- src/perf/perf_bundle.cpp | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/perf/perf_bundle.cpp b/src/perf/perf_bundle.cpp
-index cf1ae11..3d216ff 100644
---- a/src/perf/perf_bundle.cpp
-+++ b/src/perf/perf_bundle.cpp
-@@ -31,6 +31,7 @@
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <unistd.h>
-+#include <stdio.h>
- #include "perf_bundle.h"
- #include "perf_event.h"
--- 
-2.4.3
-
index b64981ea7a637f1abbc9768989f0a430b68ad472..0f9acdc277cb86f478396c98203fffa95b4575e4 100644 (file)
@@ -1,2 +1,2 @@
 # Locally-generated hash
-sha256 8d4b1490e2baad4467c0ded3c423db4472dcbf7b2dd8f8f2a928f54047c678ca        powertop-2.7.tar.gz
+sha256 aa7fb7d8e9a00f05e7d8a7a2866d85929741e0d03a5bf40cab22d2021c959250        powertop-v2.9.tar.gz
index bd73e19b4d74f194a38988005482228eb402f6c3..62b716f0f1a916844cd810557a9b2f5d856949df 100644 (file)
@@ -4,14 +4,12 @@
 #
 ################################################################################
 
-POWERTOP_VERSION = 2.7
+POWERTOP_VERSION = 2.9
 POWERTOP_SITE = https://01.org/sites/default/files/downloads/powertop
+POWERTOP_SOURCE = powertop-v$(POWERTOP_VERSION).tar.gz
 POWERTOP_DEPENDENCIES = pciutils ncurses libnl host-gettext host-pkgconf
 POWERTOP_LICENSE = GPL-2.0
 POWERTOP_LICENSE_FILES = COPYING
-# We're patching Makefile.am
-POWERTOP_AUTORECONF = YES
-POWERTOP_GETTEXTIZE = YES
 
 ifeq ($(BR2_NEEDS_GETTEXT),y)
 POWERTOP_DEPENDENCIES += gettext