1 |
commit: 40559d7761064c24a692fbf4ec9fa97f450958b2 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 19 19:01:43 2022 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 19 19:12:51 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40559d77 |
7 |
|
8 |
net-vpn/openconnect: include inttypes.h in jsondump.c |
9 |
|
10 |
Closes: https://bugs.gentoo.org/865797 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
.../files/openconnect-9.01-inttypes.patch | 32 ++++++++++++++++++++++ |
14 |
net-vpn/openconnect/openconnect-9.01.ebuild | 3 ++ |
15 |
2 files changed, 35 insertions(+) |
16 |
|
17 |
diff --git a/net-vpn/openconnect/files/openconnect-9.01-inttypes.patch b/net-vpn/openconnect/files/openconnect-9.01-inttypes.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..c9b28913ce9f |
20 |
--- /dev/null |
21 |
+++ b/net-vpn/openconnect/files/openconnect-9.01-inttypes.patch |
22 |
@@ -0,0 +1,32 @@ |
23 |
+From c0775e6cd46fb5df6c6aab52314e3038c44d2152 Mon Sep 17 00:00:00 2001 |
24 |
+From: Mike Gilbert <floppym@g.o> |
25 |
+Date: Fri, 19 Aug 2022 11:55:42 -0400 |
26 |
+Subject: [PATCH] jsondump.c: include <inttypes.h> for PRId64 |
27 |
+ |
28 |
+Fixes a build failure with gnutls and a json-parser snapshot taken on |
29 |
+2021-12-08. |
30 |
+ |
31 |
+Building with openssl or with the bundled copy of json-parser causes |
32 |
+inttypes.h to be included indirectly. |
33 |
+ |
34 |
+Bug: https://bugs.gentoo.org/865797 |
35 |
+Signed-off-by: Mike Gilbert <floppym@g.o> |
36 |
+--- |
37 |
+ jsondump.c | 1 + |
38 |
+ 1 file changed, 1 insertion(+) |
39 |
+ |
40 |
+diff --git a/jsondump.c b/jsondump.c |
41 |
+index a18780b5..2b097e8a 100644 |
42 |
+--- a/jsondump.c |
43 |
++++ b/jsondump.c |
44 |
+@@ -24,6 +24,7 @@ |
45 |
+ #include <string.h> |
46 |
+ #include <ctype.h> |
47 |
+ #include <errno.h> |
48 |
++#include <inttypes.h> |
49 |
+ |
50 |
+ /* |
51 |
+ * Copyright (C) 2015 Mirko Pasqualetti All rights reserved. |
52 |
+-- |
53 |
+GitLab |
54 |
+ |
55 |
|
56 |
diff --git a/net-vpn/openconnect/openconnect-9.01.ebuild b/net-vpn/openconnect/openconnect-9.01.ebuild |
57 |
index 824c77958d4b..e4aa08f994e4 100644 |
58 |
--- a/net-vpn/openconnect/openconnect-9.01.ebuild |
59 |
+++ b/net-vpn/openconnect/openconnect-9.01.ebuild |
60 |
@@ -85,6 +85,9 @@ src_unpack() { |
61 |
} |
62 |
|
63 |
src_prepare() { |
64 |
+ local PATCHES=( |
65 |
+ "${FILESDIR}/openconnect-9.01-inttypes.patch" |
66 |
+ ) |
67 |
default |
68 |
if [[ ${PV} == 9999 ]]; then |
69 |
eautoreconf |