Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/files/
Date: Mon, 29 Jul 2019 15:49:08
Message-Id: 1564415334.fc6854ed667f0b5298ebb508eca9a0adf6052f39.mattst88@gentoo
1 commit: fc6854ed667f0b5298ebb508eca9a0adf6052f39
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 29 15:45:15 2019 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 29 15:48:54 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc6854ed
7
8 sys-power/powertop: Restore mistakenly removed patch
9
10 When cleaning up, I deleted the wrong patch and left the unused one in
11 place.
12
13 Closes: https://bugs.gentoo.org/690992
14 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
15
16 .../files/powertop-2.8-ncurses_tinfo.patch | 41 ++++++++++++++++++++
17 sys-power/powertop/files/powertop-2.9-libc++.patch | 44 ----------------------
18 2 files changed, 41 insertions(+), 44 deletions(-)
19
20 diff --git a/sys-power/powertop/files/powertop-2.8-ncurses_tinfo.patch b/sys-power/powertop/files/powertop-2.8-ncurses_tinfo.patch
21 new file mode 100644
22 index 00000000000..97769fb6728
23 --- /dev/null
24 +++ b/sys-power/powertop/files/powertop-2.8-ncurses_tinfo.patch
25 @@ -0,0 +1,41 @@
26 +From e1295099f8b42670718ba875cb6749a90042293f Mon Sep 17 00:00:00 2001
27 +From: Zentaro Kavanagh <zentaro@××××××××.org>
28 +Date: Thu, 14 Jun 2018 13:13:37 -0700
29 +Subject: [PATCH] Fix configure to support ncurses w/ tinfo
30 +
31 +- The existing code checked for both ncursesw and ncurses and if
32 + both were not found, NCURSES_LIBS was not set correctly.
33 +- Removed redundant concatenation to $LIBS since the makefile.am
34 + already maps NCURSES_LIBS into LIBS.
35 +- Patch sent upstream to powertop mailing list [1]
36 +
37 +[1] - https://lists.01.org/pipermail/powertop/2018-June/002021.html
38 +---
39 + configure.ac | 11 +++++++----
40 + 1 file changed, 7 insertions(+), 4 deletions(-)
41 +
42 +diff --git a/configure.ac b/configure.ac
43 +index d6a15e1..c6ee50a 100644
44 +--- a/configure.ac
45 ++++ b/configure.ac
46 +@@ -110,10 +110,13 @@ AC_CHECK_FUNCS([ \
47 +
48 + AC_SEARCH_LIBS([clock_gettime], [rt])
49 +
50 +-PKG_CHECK_MODULES([NCURSES], [ncursesw ncurses], [LIBS="$LIBS $ncurses_LIBS"], [
51 +- AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], [
52 +- AC_MSG_ERROR([ncurses is required but was not found])
53 +- ], [])
54 ++PKG_CHECK_MODULES([ncursesw], [ncursesw],
55 ++ [NCURSES_CFLAGS="$ncursesw_CFLAGS"; NCURSES_LIBS="$ncursesw_LIBS"], [
56 ++ PKG_CHECK_MODULES([NCURSES], [ncurses], [], [
57 ++ AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], [
58 ++ AC_MSG_ERROR([ncurses is required but was not found])
59 ++ ])
60 ++ ])
61 + ])
62 +
63 + has_libpci=0
64 +--
65 +2.18.0.rc1.242.g61856ae69a-goog
66 +
67
68 diff --git a/sys-power/powertop/files/powertop-2.9-libc++.patch b/sys-power/powertop/files/powertop-2.9-libc++.patch
69 deleted file mode 100644
70 index d378280f3c6..00000000000
71 --- a/sys-power/powertop/files/powertop-2.9-libc++.patch
72 +++ /dev/null
73 @@ -1,44 +0,0 @@
74 -https://github.com/fenrus75/powertop/commit/b9c431aad6cc5383c9571007469eee8e64ec85a6
75 -
76 -From b9c431aad6cc5383c9571007469eee8e64ec85a6 Mon Sep 17 00:00:00 2001
77 -From: Manoj Gupta <manojgupta@××××××××.org>
78 -Date: Sat, 4 Nov 2017 13:44:04 -0700
79 -Subject: [PATCH] Fix powertop build with libc++.
80 -
81 -<ctime> header is not automatically included with libc++.
82 -Add it explicitly to make powertop build with libc++.
83 -
84 -This fixes the following errors:
85 -devices/gpu_rapl_device.cpp:35:14: error: use of undeclared identifier
86 -'time'; did you mean 'tie'?
87 -last_time = time(NULL);
88 - ^~~~
89 -devices/gpu_rapl_device.cpp:45:14: error:use of undeclared identifier
90 -'time'; did you mean 'tie'?
91 -last_time = time(NULL);
92 - ^~~~
93 -
94 -parameters/learn.cpp:161:10: error: use of undeclared identifier
95 -'time'; did you mean 'tie'?
96 -start = time(NULL);
97 - ^~~~
98 ----
99 - src/lib.h | 2 +-
100 - 1 file changed, 1 insertion(+), 1 deletion(-)
101 -
102 -diff --git a/src/lib.h b/src/lib.h
103 -index b64bb0f5433f..6d85eb6e4b40 100644
104 ---- a/src/lib.h
105 -+++ b/src/lib.h
106 -@@ -54,7 +54,7 @@ extern const char *kernel_function(uint64_t address);
107 -
108 -
109 -
110 --
111 -+#include <ctime>
112 - #include <string>
113 - using namespace std;
114 -
115 ---
116 -2.15.1
117 -