1 |
commit: 14e8c0f75ccd89f10dca5f83b3991c3bab5c7523 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 7 23:44:49 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 7 23:45:29 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14e8c0f7 |
7 |
|
8 |
net-misc/tigervnc: fix 1.12.0 for xorg 1.21.1 |
9 |
|
10 |
Add additional patches and apply the right one in the source tree too. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/746227 |
13 |
Thanks-to: Joakim Tjernlund <joakim.tjernlund <AT> infinera.com> |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
net-misc/tigervnc/Manifest | 1 + |
17 |
.../tigervnc/files/tigervnc-1.12.0-xorg-1.21.patch | 55 ++++++++++++++++++++++ |
18 |
...vnc-1.12.0.ebuild => tigervnc-1.12.0-r1.ebuild} | 15 +++--- |
19 |
3 files changed, 65 insertions(+), 6 deletions(-) |
20 |
|
21 |
diff --git a/net-misc/tigervnc/Manifest b/net-misc/tigervnc/Manifest |
22 |
index d58cbabda1a3..004231b045fb 100644 |
23 |
--- a/net-misc/tigervnc/Manifest |
24 |
+++ b/net-misc/tigervnc/Manifest |
25 |
@@ -1,4 +1,5 @@ |
26 |
DIST tigervnc-1.11.0.tar.gz 1346992 BLAKE2B 4935f78154ea1567d58f542962f1a87688cd195e9d1aff8295e99aedc91a87cea7b686e9ef34e68f4abb1e3ce7a93122baff1d6f3564e4cc60b967a7bca6f8ac SHA512 262676f065de6dfb72b1482c0ef1e6d8b764f53360ae6114debbe0986eede45d27e283e1452a72cb9b7540657ab347fd36df5b30b72d6db4a0f8cbea5b591025 |
27 |
+DIST tigervnc-1.12.0-xserver-21.patch 3642 BLAKE2B 690860c51d9d2e4606b16318237f86e5a042410dd5778e3d99a01df3fedd7f1993b4fc1eaeb9d193ef9e54d5b25b1d99bfb0bedc8cfb6673983625d9b45c2f92 SHA512 8e9a667557d22e908b1f4e58017f822e98bc608d1e27a09e6b8cfb3b01fe0c5cf9bf484fa634e4109eb7a32234df67fcfdeaca92d4ff982de0e83778c359034d |
28 |
DIST tigervnc-1.12.0.tar.gz 1561898 BLAKE2B 891934e48e3c4f2c36c280ad1562874d3c22ca3118e8eda2f68f9ad7cca978c76b8825100f540774b7a6553e981bd9264e0f717c8313585553741d31706cafad SHA512 a16b15e9cda552a49a3934e4174e49d186d06494d90d11582599ab82559014332662aed7760619a6dfb32a8c95f7d63c68ac7d632c29dd662a6b713f036672bb |
29 |
DIST tigervnc-1.9.0.tar.gz 1506520 BLAKE2B 292c2e5fb9ffe2573e216257e889d259abfdca5964559492c318e24ea00563211e7477a4f1b2b09d0e962343d4aeb2c12dcfdd6857a3282882ee9f91fdf8103a SHA512 333910f567e6b5e4a5a22d898b2d4c3f4b834cb4cc8fc13ff55d31401894c0d5122a127692ec5eb51e412c945ff3ea5b8146f9ab22cbe1e47541e09239ec8c9d |
30 |
DIST xorg-server-1.20.0.tar.bz2 6096838 BLAKE2B 34ee6d6dbbde54d54e082a0791e85ad52d728e239a7d8fadb75ebcbdbaab8752b90ca6d075f096d971db7ec68ce4ecac5c70fcf536ce23c20b8dce8f32e2c046 SHA512 1489e8511c9da682ef0460182dfeeddd241c72d4ef4d206d9706f1e39572c09953df851fab18cefb65a1ee4c6710c6ba13c63c9c9fc0bc1b5f12c50780412cde |
31 |
|
32 |
diff --git a/net-misc/tigervnc/files/tigervnc-1.12.0-xorg-1.21.patch b/net-misc/tigervnc/files/tigervnc-1.12.0-xorg-1.21.patch |
33 |
new file mode 100644 |
34 |
index 000000000000..c3e003d328a6 |
35 |
--- /dev/null |
36 |
+++ b/net-misc/tigervnc/files/tigervnc-1.12.0-xorg-1.21.patch |
37 |
@@ -0,0 +1,55 @@ |
38 |
+https://github.com/TigerVNC/tigervnc/commit/736b50d04e1ba965696cd15d456dc2b7fc123150.patch |
39 |
+https://github.com/TigerVNC/tigervnc/commit/f2577107f7f55382c524d8c738a777e5cdd80f60.patch |
40 |
+ |
41 |
+From: Joakim Tjernlund <joakim.tjernlund@××××××××.com> |
42 |
+Date: Wed, 24 Nov 2021 21:09:36 +0100 |
43 |
+Subject: [PATCH] xorg-version.h: Increase supported Xorg version to 1.21 |
44 |
+ |
45 |
+--- a/unix/xserver/hw/vnc/xorg-version.h |
46 |
++++ b/unix/xserver/hw/vnc/xorg-version.h |
47 |
+@@ -33,8 +33,8 @@ |
48 |
+ #error "X.Org older than 1.16 is not supported" |
49 |
+ #endif |
50 |
+ |
51 |
+-#if XORG_AT_LEAST(1, 21, 0) |
52 |
+-#error "X.Org newer than 1.20 is not supported" |
53 |
++#if XORG_AT_LEAST(1, 22, 0) |
54 |
++#error "X.Org newer than 1.21 is not supported" |
55 |
+ #endif |
56 |
+ |
57 |
+ #endif |
58 |
+ |
59 |
+From: Joakim Tjernlund <joakim.tjernlund@××××××××.com> |
60 |
+Date: Wed, 24 Nov 2021 21:10:56 +0100 |
61 |
+Subject: [PATCH] xvnc: adapt for 1.21 |
62 |
+ |
63 |
+VENDOR_STRING is gone as is DEFAULT_LOG_VERBOSITY |
64 |
+site.h has been removed and is not needed. |
65 |
+--- a/unix/xserver/hw/vnc/xvnc.c |
66 |
++++ b/unix/xserver/hw/vnc/xvnc.c |
67 |
+@@ -69,7 +69,6 @@ extern char buildtime[]; |
68 |
+ #undef VENDOR_RELEASE |
69 |
+ #undef VENDOR_STRING |
70 |
+ #include "version-config.h" |
71 |
+-#include "site.h" |
72 |
+ |
73 |
+ #define XVNCVERSION "TigerVNC 1.12.80" |
74 |
+ #define XVNCCOPYRIGHT ("Copyright (C) 1999-2021 TigerVNC Team and many others (see README.rst)\n" \ |
75 |
+@@ -111,14 +110,13 @@ static Bool Render = TRUE; |
76 |
+ static Bool displaySpecified = FALSE; |
77 |
+ static char displayNumStr[16]; |
78 |
+ |
79 |
+-static int vncVerbose = DEFAULT_LOG_VERBOSITY; |
80 |
++static int vncVerbose = 0; |
81 |
+ |
82 |
+ static void |
83 |
+ vncPrintBanner(void) |
84 |
+ { |
85 |
+ ErrorF("\nXvnc %s - built %s\n%s", XVNCVERSION, buildtime, XVNCCOPYRIGHT); |
86 |
+- ErrorF("Underlying X server release %d, %s\n\n", VENDOR_RELEASE, |
87 |
+- VENDOR_STRING); |
88 |
++ ErrorF("Underlying X server release %d\n\n", VENDOR_RELEASE); |
89 |
+ } |
90 |
+ |
91 |
+ static void |
92 |
+ |
93 |
|
94 |
diff --git a/net-misc/tigervnc/tigervnc-1.12.0.ebuild b/net-misc/tigervnc/tigervnc-1.12.0-r1.ebuild |
95 |
similarity index 88% |
96 |
rename from net-misc/tigervnc/tigervnc-1.12.0.ebuild |
97 |
rename to net-misc/tigervnc/tigervnc-1.12.0-r1.ebuild |
98 |
index 3fc099abd296..a00c4d13860f 100644 |
99 |
--- a/net-misc/tigervnc/tigervnc-1.12.0.ebuild |
100 |
+++ b/net-misc/tigervnc/tigervnc-1.12.0-r1.ebuild |
101 |
@@ -11,7 +11,10 @@ XSERVER_VERSION="21.1.1" |
102 |
DESCRIPTION="Remote desktop viewer display system" |
103 |
HOMEPAGE="http://www.tigervnc.org" |
104 |
SRC_URI="https://github.com/TigerVNC/tigervnc/archive/v${PV}.tar.gz -> ${P}.tar.gz |
105 |
- server? ( ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-${XSERVER_VERSION}.tar.xz )" |
106 |
+ server? ( |
107 |
+ ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-${XSERVER_VERSION}.tar.xz |
108 |
+ https://github.com/TigerVNC/tigervnc/commit/0c5a2b2e7759c2829c07186cfce4d24aa9b5274e.patch -> ${P}-xserver-21.patch |
109 |
+ )" |
110 |
|
111 |
LICENSE="GPL-2" |
112 |
SLOT="0" |
113 |
@@ -82,16 +85,18 @@ PATCHES=( |
114 |
src_prepare() { |
115 |
if use server; then |
116 |
cp -r "${WORKDIR}"/xorg-server-${XSERVER_VERSION}/. unix/xserver || die |
117 |
+ eapply "${FILESDIR}"/${P}-xorg-1.21.patch |
118 |
+ eapply "${DISTDIR}"/${P}-xserver-21.patch |
119 |
fi |
120 |
|
121 |
cmake_src_prepare |
122 |
|
123 |
if use server; then |
124 |
cd unix/xserver || die |
125 |
- eapply "${FILESDIR}"/xserver120.patch |
126 |
- eapply "${FILESDIR}"/xserver120-drmfourcc-header.patch |
127 |
- sed -i -e 's/"gl >= .*"/"gl"/' configure.ac || die |
128 |
+ eapply ../xserver${XSERVER_VERSION}.patch |
129 |
eautoreconf |
130 |
+ sed -i 's:\(present.h\):../present/\1:' os/utils.c || die |
131 |
+ sed -i '/strcmp.*-fakescreenfps/,/^ \}/d' os/utils.c || die |
132 |
fi |
133 |
} |
134 |
|
135 |
@@ -116,7 +121,6 @@ src_configure() { |
136 |
--disable-config-hal \ |
137 |
--disable-config-udev \ |
138 |
--disable-devel-docs \ |
139 |
- --disable-dmx \ |
140 |
--disable-dri \ |
141 |
$(use_enable dri3) \ |
142 |
--disable-glamor \ |
143 |
@@ -133,7 +137,6 @@ src_configure() { |
144 |
--disable-xorg \ |
145 |
--disable-xvfb \ |
146 |
--disable-xwin \ |
147 |
- --disable-xwayland \ |
148 |
--enable-dri2 \ |
149 |
--with-pic \ |
150 |
--without-dtrace \ |