1 |
commit: 2bac2b7b6edcd8b849b20578bc9e70302091f6a3 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 19 02:04:10 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 19 02:07:38 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bac2b7b |
7 |
|
8 |
app-emulation/aranym: fix configure w/ clang 16 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/883583 |
11 |
Closes: https://bugs.gentoo.org/900322 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
...{aranym-1.1.0.ebuild => aranym-1.1.0-r1.ebuild} | 1 + |
15 |
.../files/aranym-1.1.0-configure-clang16.patch | 30 ++++++++++++++++++++++ |
16 |
2 files changed, 31 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/aranym/aranym-1.1.0.ebuild b/app-emulation/aranym/aranym-1.1.0-r1.ebuild |
19 |
similarity index 98% |
20 |
rename from app-emulation/aranym/aranym-1.1.0.ebuild |
21 |
rename to app-emulation/aranym/aranym-1.1.0-r1.ebuild |
22 |
index 5c33cc4b867c..6746e9ba4b47 100644 |
23 |
--- a/app-emulation/aranym/aranym-1.1.0.ebuild |
24 |
+++ b/app-emulation/aranym/aranym-1.1.0-r1.ebuild |
25 |
@@ -41,6 +41,7 @@ PATCHES=( |
26 |
"${FILESDIR}"/${PN}-1.1.0-libcwrap.patch |
27 |
"${FILESDIR}"/${PN}-1.1.0-ar.patch |
28 |
"${FILESDIR}"/${PN}-1.1.0-clang-16-register.patch |
29 |
+ "${FILESDIR}"/${PN}-1.1.0-configure-clang16.patch |
30 |
) |
31 |
|
32 |
ECONF_SOURCE="${S}" |
33 |
|
34 |
diff --git a/app-emulation/aranym/files/aranym-1.1.0-configure-clang16.patch b/app-emulation/aranym/files/aranym-1.1.0-configure-clang16.patch |
35 |
new file mode 100644 |
36 |
index 000000000000..66d2c091b860 |
37 |
--- /dev/null |
38 |
+++ b/app-emulation/aranym/files/aranym-1.1.0-configure-clang16.patch |
39 |
@@ -0,0 +1,30 @@ |
40 |
+https://github.com/aranym/aranym/pull/102 |
41 |
+ |
42 |
+From ef9ba74fcbf868aeb1b0e0b02e53775a14cda0f7 Mon Sep 17 00:00:00 2001 |
43 |
+From: Sam James <sam@g.o> |
44 |
+Date: Sun, 19 Mar 2023 01:56:56 +0000 |
45 |
+Subject: [PATCH] configure.ac: fix -Wimplicit-function-declaration in TUN/TAP |
46 |
+ test |
47 |
+ |
48 |
+Clang 16 makes -Wimplicit-function-declaration an error by default. |
49 |
+ |
50 |
+Unfortunately, this can lead to misconfiguration or miscompilation of software as configure |
51 |
+tests may then return the wrong result. |
52 |
+ |
53 |
+For more information, see LWN.net [0] or LLVM's Discourse [1], the Gentoo wiki [2], |
54 |
+or the (new) c-std-porting mailing list [3]. |
55 |
+ |
56 |
+[0] https://lwn.net/Articles/913505/ |
57 |
+[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213 |
58 |
+[2] https://wiki.gentoo.org/wiki/Modern_C_porting |
59 |
+[3] hosted at lists.linux.dev. |
60 |
+--- a/configure.ac |
61 |
++++ b/configure.ac |
62 |
+@@ -539,6 +539,7 @@ AC_CACHE_CHECK([whether TUN/TAP is supported], |
63 |
+ #include <net/if.h> |
64 |
+ #include <net/if_tun.h> |
65 |
+ #endif |
66 |
++ #include <string.h> |
67 |
+ ], [ |
68 |
+ struct ifreq ifr; |
69 |
+ memset(&ifr, 0, sizeof(ifr)); |