1 |
commit: 7e853c664f4abbe5e1e82abca97f41e193c6c624 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 2 21:17:04 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 2 21:17:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e853c66 |
7 |
|
8 |
net-proxy/havp: fix build with GCC 12 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/855575 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-proxy/havp/files/havp-0.92a-gcc12-time.patch | 11 +++++++++++ |
14 |
net-proxy/havp/havp-0.92a-r3.ebuild | 3 ++- |
15 |
2 files changed, 13 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/net-proxy/havp/files/havp-0.92a-gcc12-time.patch b/net-proxy/havp/files/havp-0.92a-gcc12-time.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..0faf90dca3a6 |
20 |
--- /dev/null |
21 |
+++ b/net-proxy/havp/files/havp-0.92a-gcc12-time.patch |
22 |
@@ -0,0 +1,11 @@ |
23 |
+https://bugs.gentoo.org/855575 |
24 |
+--- a/havp/logfile.cpp |
25 |
++++ b/havp/logfile.cpp |
26 |
+@@ -30,6 +30,7 @@ |
27 |
+ #include <map> |
28 |
+ #include <cstdlib> |
29 |
+ #include <cstring> |
30 |
++#include <ctime> |
31 |
+ |
32 |
+ #define LOGSTRINGLENGTH 1000 |
33 |
+ |
34 |
|
35 |
diff --git a/net-proxy/havp/havp-0.92a-r3.ebuild b/net-proxy/havp/havp-0.92a-r3.ebuild |
36 |
index 682e96119730..ff931e27294d 100644 |
37 |
--- a/net-proxy/havp/havp-0.92a-r3.ebuild |
38 |
+++ b/net-proxy/havp/havp-0.92a-r3.ebuild |
39 |
@@ -22,8 +22,9 @@ RDEPEND=" |
40 |
" |
41 |
|
42 |
PATCHES=( |
43 |
- "${FILESDIR}"/havp-0.92a-run.patch |
44 |
+ "${FILESDIR}"/${P}-run.patch |
45 |
"${FILESDIR}"/${P}-pkg-config-libclamav.patch |
46 |
+ "${FILESDIR}"/${P}-gcc12-time.patch |
47 |
) |
48 |
|
49 |
src_prepare() { |