1 |
commit: f713e72a8e9558c9a00621f7fa1fd2eef29cf2b4 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 9 23:51:39 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 10 01:19:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f713e72a |
7 |
|
8 |
sys-power/powertop: Version bump to 2.14 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/812140 |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
sys-power/powertop/Manifest | 1 + |
14 |
...igure-Remove-AX-macros-from-configure.ac-.patch | 60 ++++++++++++++++++++++ |
15 |
.../2.14-configure-Use-AX_REQUIRE_DEFINED.patch | 28 ++++++++++ |
16 |
.../{powertop-9999.ebuild => powertop-2.14.ebuild} | 9 ++-- |
17 |
sys-power/powertop/powertop-9999.ebuild | 3 -- |
18 |
5 files changed, 95 insertions(+), 6 deletions(-) |
19 |
|
20 |
diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest |
21 |
index 98398aedba9..7509e164f2d 100644 |
22 |
--- a/sys-power/powertop/Manifest |
23 |
+++ b/sys-power/powertop/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST powertop-2.13.tar.gz 303030 BLAKE2B 3c88e05f9889cc4b276bea3bc50a3a83228ca8efae278379a14fadc6104754f2837174e028bf9c5ded9f3af84ce6b8766ac3d24b6ae62b9b192c03fc3afdec11 SHA512 8ebeccd17b6f76d9e445382d9ce5b1c00ab2daf4f1e6e133c249bceb35ea582ca3e76da5415fd0b55a28b8a124655dc5ac7a18aaf2a3df955547d77495e59181 |
26 |
+DIST powertop-2.14.tar.gz 302578 BLAKE2B 5f53f81b01e83004f6436f497818d2a552b5e7ffda5007749aad415773adeab2a256aeffbacbf9e5fe803ff343a0c1954b5264aebdffa841bb70406b8b9611bc SHA512 f3e25901fb29405e0c8016643855a209cf9dba589fe9dd3e27c291d44699cebeb00dc8c7264c24436db08deb496759bd106666cb52d9ebd5f831bbb99e30f20f |
27 |
|
28 |
diff --git a/sys-power/powertop/files/2.14-Revert-configure-Remove-AX-macros-from-configure.ac-.patch b/sys-power/powertop/files/2.14-Revert-configure-Remove-AX-macros-from-configure.ac-.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..7f2b7820ff2 |
31 |
--- /dev/null |
32 |
+++ b/sys-power/powertop/files/2.14-Revert-configure-Remove-AX-macros-from-configure.ac-.patch |
33 |
@@ -0,0 +1,60 @@ |
34 |
+From 2eb781ba822f2d57420400f648f6f531689c8c5d Mon Sep 17 00:00:00 2001 |
35 |
+From: David King <amigadave@×××××××××.com> |
36 |
+Date: Thu, 15 Apr 2021 11:37:24 +0100 |
37 |
+Subject: [PATCH 1/2] Revert "configure: Remove AX macros from configure.ac |
38 |
+ file" |
39 |
+ |
40 |
+This reverts commit 1e478d84f051ba56962a1214cb750b810379ac1d. |
41 |
+--- |
42 |
+ README.md | 4 ++-- |
43 |
+ configure.ac | 9 +++++++++ |
44 |
+ 2 files changed, 11 insertions(+), 2 deletions(-) |
45 |
+ |
46 |
+diff --git a/README.md b/README.md |
47 |
+index 1b17365..43bd5b2 100644 |
48 |
+--- a/README.md |
49 |
++++ b/README.md |
50 |
+@@ -26,7 +26,7 @@ Example packages to install in Ubuntu*: |
51 |
+ |
52 |
+ sudo apt install libpci-dev libnl-3-dev libnl-genl-3-dev gettext \ |
53 |
+ libgettextpo-dev autopoint gettext libncurses5-dev libncursesw5-dev libtool-bin \ |
54 |
+- dh-autoreconf pkg-config |
55 |
++ dh-autoreconf autoconf-archive pkg-config |
56 |
+ |
57 |
+ |
58 |
+ ## Building PowerTOP |
59 |
+@@ -39,7 +39,7 @@ source files are modified. |
60 |
+ To build PowerTOP from the cloned source, use the following commands: |
61 |
+ |
62 |
+ ./autogen.sh |
63 |
+- ./configure LDFLAGS='-pthread' |
64 |
++ ./configure |
65 |
+ make |
66 |
+ |
67 |
+ |
68 |
+diff --git a/configure.ac b/configure.ac |
69 |
+index 2571c5d..7eeeb9c 100644 |
70 |
+--- a/configure.ac |
71 |
++++ b/configure.ac |
72 |
+@@ -36,9 +36,18 @@ AC_PROG_LIBTOOL |
73 |
+ AC_PROG_CC |
74 |
+ AC_PROG_INSTALL |
75 |
+ AM_PROG_CC_C_O |
76 |
++AX_ADD_FORTIFY_SOURCE |
77 |
++AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory]) |
78 |
+ PKG_PROG_PKG_CONFIG |
79 |
+ |
80 |
+ # Checks for libraries. |
81 |
++AX_PTHREAD([ |
82 |
++ LIBS="$PTHREAD_LIBS $LIBS" |
83 |
++ CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
84 |
++ CC="$PTHREAD_CC" |
85 |
++ ], [ |
86 |
++ AC_MSG_ERROR([Could not configure pthreads support]) |
87 |
++]) |
88 |
+ |
89 |
+ # Checks for header files. |
90 |
+ AC_CHECK_HEADERS([ \ |
91 |
+-- |
92 |
+2.32.0 |
93 |
+ |
94 |
|
95 |
diff --git a/sys-power/powertop/files/2.14-configure-Use-AX_REQUIRE_DEFINED.patch b/sys-power/powertop/files/2.14-configure-Use-AX_REQUIRE_DEFINED.patch |
96 |
new file mode 100644 |
97 |
index 00000000000..f036bf73d61 |
98 |
--- /dev/null |
99 |
+++ b/sys-power/powertop/files/2.14-configure-Use-AX_REQUIRE_DEFINED.patch |
100 |
@@ -0,0 +1,28 @@ |
101 |
+From e87357a35f376518c3663a2f5cac53e9c4917427 Mon Sep 17 00:00:00 2001 |
102 |
+From: David King <amigadave@×××××××××.com> |
103 |
+Date: Thu, 15 Apr 2021 11:45:13 +0100 |
104 |
+Subject: [PATCH 2/2] configure: Use AX_REQUIRE_DEFINED |
105 |
+ |
106 |
+Require additional macros to be defined early, to avoid an aclocal |
107 |
+"too many loops" error when copying macros. |
108 |
+--- |
109 |
+ configure.ac | 3 +++ |
110 |
+ 1 file changed, 3 insertions(+) |
111 |
+ |
112 |
+diff --git a/configure.ac b/configure.ac |
113 |
+index 7eeeb9c..37c1304 100644 |
114 |
+--- a/configure.ac |
115 |
++++ b/configure.ac |
116 |
+@@ -29,6 +29,9 @@ AM_GNU_GETTEXT([external]) |
117 |
+ AM_GNU_GETTEXT_VERSION([0.18.2]) |
118 |
+ |
119 |
+ m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
120 |
++AX_REQUIRE_DEFINED([AX_ADD_FORTIFY_SOURCE]) |
121 |
++AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX]) |
122 |
++AX_REQUIRE_DEFINED([AX_PTHREAD]) |
123 |
+ # Checks for programs. |
124 |
+ AC_PROG_CPP |
125 |
+ AC_PROG_CXX |
126 |
+-- |
127 |
+2.32.0 |
128 |
+ |
129 |
|
130 |
diff --git a/sys-power/powertop/powertop-9999.ebuild b/sys-power/powertop/powertop-2.14.ebuild |
131 |
similarity index 94% |
132 |
copy from sys-power/powertop/powertop-9999.ebuild |
133 |
copy to sys-power/powertop/powertop-2.14.ebuild |
134 |
index 92a8b30bd07..378581ae5c2 100644 |
135 |
--- a/sys-power/powertop/powertop-9999.ebuild |
136 |
+++ b/sys-power/powertop/powertop-2.14.ebuild |
137 |
@@ -39,6 +39,12 @@ RDEPEND=" |
138 |
virtual/libintl |
139 |
" |
140 |
|
141 |
+PATCHES=( |
142 |
+ "${FILESDIR}"/${PN}-2.8-ncurses_tinfo.patch |
143 |
+ "${FILESDIR}"/${PV}-Revert-configure-Remove-AX-macros-from-configure.ac-.patch |
144 |
+ "${FILESDIR}"/${PV}-configure-Use-AX_REQUIRE_DEFINED.patch |
145 |
+) |
146 |
+ |
147 |
pkg_setup() { |
148 |
CONFIG_CHECK=" |
149 |
~X86_MSR |
150 |
@@ -100,9 +106,6 @@ pkg_setup() { |
151 |
src_prepare() { |
152 |
default |
153 |
|
154 |
- # Bug 599114 |
155 |
- sed -i '1s|^|AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX])|' configure.ac || die |
156 |
- |
157 |
eautoreconf |
158 |
} |
159 |
|
160 |
|
161 |
diff --git a/sys-power/powertop/powertop-9999.ebuild b/sys-power/powertop/powertop-9999.ebuild |
162 |
index 92a8b30bd07..b0062714c6c 100644 |
163 |
--- a/sys-power/powertop/powertop-9999.ebuild |
164 |
+++ b/sys-power/powertop/powertop-9999.ebuild |
165 |
@@ -100,9 +100,6 @@ pkg_setup() { |
166 |
src_prepare() { |
167 |
default |
168 |
|
169 |
- # Bug 599114 |
170 |
- sed -i '1s|^|AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX])|' configure.ac || die |
171 |
- |
172 |
eautoreconf |
173 |
} |