1 |
commit: 667a4998e29bec427a8f7ffe29a8de668a24d948 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 29 04:14:52 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 29 04:17:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=667a4998 |
7 |
|
8 |
net-analyzer/jnettop: fix configure with clang16 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/870667 |
11 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/jnettop/files/jnettop-0.13.0-clang16.patch | 9 +++++++++ |
14 |
net-analyzer/jnettop/jnettop-0.13.0-r2.ebuild | 1 + |
15 |
2 files changed, 10 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/jnettop/files/jnettop-0.13.0-clang16.patch b/net-analyzer/jnettop/files/jnettop-0.13.0-clang16.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..d8723b6a5b13 |
20 |
--- /dev/null |
21 |
+++ b/net-analyzer/jnettop/files/jnettop-0.13.0-clang16.patch |
22 |
@@ -0,0 +1,9 @@ |
23 |
+https://bugs.gentoo.org/870667 |
24 |
+--- a/acinclude.m4 |
25 |
++++ b/acinclude.m4 |
26 |
+@@ -151,4 +151,5 @@ |
27 |
+ AC_MSG_CHECKING([if "localhost" resolves]) |
28 |
+ AC_TRY_RUN([ |
29 |
++#include <stdlib.h> |
30 |
+ #include <string.h> |
31 |
+ #include <sys/types.h> |
32 |
|
33 |
diff --git a/net-analyzer/jnettop/jnettop-0.13.0-r2.ebuild b/net-analyzer/jnettop/jnettop-0.13.0-r2.ebuild |
34 |
index f94cbf95ae1c..bfac1d1b3de9 100644 |
35 |
--- a/net-analyzer/jnettop/jnettop-0.13.0-r2.ebuild |
36 |
+++ b/net-analyzer/jnettop/jnettop-0.13.0-r2.ebuild |
37 |
@@ -27,6 +27,7 @@ BDEPEND="virtual/pkgconfig" |
38 |
PATCHES=( |
39 |
"${FILESDIR}/${P}-asneeded.patch" |
40 |
"${FILESDIR}/${P}-tinfo.patch" |
41 |
+ "${FILESDIR}/${P}-clang16.patch" |
42 |
) |
43 |
|
44 |
src_prepare() { |