Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/x2vnc/files/, x11-misc/x2vnc/
Date: Thu, 29 Sep 2022 04:28:05
Message-Id: 1664425074.3e39e020cf77a03bf4672fc281dec55f1df53042.ionen@gentoo
1 commit: 3e39e020cf77a03bf4672fc281dec55f1df53042
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 29 03:03:35 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 04:17:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e39e020
7
8 x11-misc/x2vnc: fix build with clang16
9
10 Skipping revbump (for potential runtime fixes with other
11 compilers) given was done in previous commit.
12
13 Closes: https://bugs.gentoo.org/870652
14 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
15
16 x11-misc/x2vnc/files/x2vnc-1.7.2-clang16.patch | 33 ++++++++++++++++++++++++++
17 x11-misc/x2vnc/x2vnc-1.7.2-r2.ebuild | 1 +
18 2 files changed, 34 insertions(+)
19
20 diff --git a/x11-misc/x2vnc/files/x2vnc-1.7.2-clang16.patch b/x11-misc/x2vnc/files/x2vnc-1.7.2-clang16.patch
21 new file mode 100644
22 index 000000000000..7b9cd1b50b69
23 --- /dev/null
24 +++ b/x11-misc/x2vnc/files/x2vnc-1.7.2-clang16.patch
25 @@ -0,0 +1,33 @@
26 +https://bugs.gentoo.org/870652
27 +--- a/rfbproto.c
28 ++++ b/rfbproto.c
29 +@@ -25,2 +25,4 @@
30 +
31 ++#include <ctype.h>
32 ++#include <time.h>
33 + #include <unistd.h>
34 +--- a/sockets.c
35 ++++ b/sockets.c
36 +@@ -33,2 +33,3 @@
37 + void PrintInHex(char *buf, int len);
38 ++int tunnel(char *gatewayhost, char *remotehost, int remoteport);
39 +
40 +--- a/vncauth.c
41 ++++ b/vncauth.c
42 +@@ -28,2 +28,4 @@
43 + #include <sys/stat.h>
44 ++#include <time.h>
45 ++#include <unistd.h>
46 + #include <vncauth.h>
47 +--- a/x.c
48 ++++ b/x.c
49 +@@ -26,2 +26,3 @@
50 + #include <sys/types.h>
51 ++#include <time.h>
52 + #include <unistd.h>
53 +--- a/x2vnc.c
54 ++++ b/x2vnc.c
55 +@@ -25,2 +25,3 @@
56 +
57 ++#include <time.h>
58 + #include <unistd.h>
59
60 diff --git a/x11-misc/x2vnc/x2vnc-1.7.2-r2.ebuild b/x11-misc/x2vnc/x2vnc-1.7.2-r2.ebuild
61 index f148da4c7b74..03384930c47f 100644
62 --- a/x11-misc/x2vnc/x2vnc-1.7.2-r2.ebuild
63 +++ b/x11-misc/x2vnc/x2vnc-1.7.2-r2.ebuild
64 @@ -28,6 +28,7 @@ DEPEND="
65
66 PATCHES=(
67 "${FILESDIR}"/expectk.patch
68 + "${FILESDIR}"/${P}-clang16.patch
69 )
70
71 src_install() {