Gentoo Archives: gentoo-commits

From: Jan Psota <jasiupsota@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/bleeding-edge:master commit in: net-misc/tigervnc/files/
Date: Thu, 16 Aug 2018 18:47:03
Message-Id: 1534445164.6cbfd3348bda1e12d471a5cbf612417ebd521f53.jasiupsota@gentoo
1 commit: 6cbfd3348bda1e12d471a5cbf612417ebd521f53
2 Author: Jan Psota <jasiupsota <AT> gmail <DOT> com>
3 AuthorDate: Thu Aug 16 18:46:04 2018 +0000
4 Commit: Jan Psota <jasiupsota <AT> gmail <DOT> com>
5 CommitDate: Thu Aug 16 18:46:04 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/user/bleeding-edge.git/commit/?id=6cbfd334
7
8 net-misc/tigervnc-9999 missing files added to git
9
10 .../files/tigervnc-9999-030_manpages.patch | 55 +++++++++++++
11 .../files/tigervnc-9999-055_xstartup.patch | 33 ++++++++
12 net-misc/tigervnc/files/xserver120.patch | 91 ++++++++++++++++++++++
13 3 files changed, 179 insertions(+)
14
15 diff --git a/net-misc/tigervnc/files/tigervnc-9999-030_manpages.patch b/net-misc/tigervnc/files/tigervnc-9999-030_manpages.patch
16 new file mode 100644
17 index 0000000..8a30f18
18 --- /dev/null
19 +++ b/net-misc/tigervnc/files/tigervnc-9999-030_manpages.patch
20 @@ -0,0 +1,55 @@
21 +diff --git a/unix/vncserver b/unix/vncserver
22 +index 9e7a6ac5..139f9601 100755
23 +--- a/unix/vncserver
24 ++++ b/unix/vncserver
25 +@@ -684,6 +684,7 @@ sub Usage
26 + " [-geometry <width>x<height>]\n".
27 + " [-pixelformat rgbNNN|bgrNNN]\n".
28 + " [-fp <font-path>]\n".
29 ++ " [-cc <visual>]\n".
30 + " [-fg]\n".
31 + " [-autokill]\n".
32 + " [-noxstartup]\n".
33 +diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx
34 +index f076565f..05669a42 100644
35 +--- a/vncviewer/vncviewer.cxx
36 ++++ b/vncviewer/vncviewer.cxx
37 +@@ -352,6 +352,11 @@ static void usage(const char *programName)
38 + " %s [parameters] -listen [port] [parameters]\n"
39 + " %s [parameters] [.tigervnc file]\n",
40 + programName, programName, programName);
41 ++ fprintf(stderr,"\n"
42 ++ "Options:\n\n"
43 ++ " -display Xdisplay - Specifies the X display for the viewer window\n"
44 ++ " -geometry geometry - Standard X position and sizing specification.\n");
45 ++
46 + fprintf(stderr,"\n"
47 + "Parameters can be turned on with -<param> or off with -<param>=0\n"
48 + "Parameters which take a value can be specified as "
49 +diff --git a/vncviewer/vncviewer.man b/vncviewer/vncviewer.man
50 +index 729c01d6..07dc58f1 100644
51 +--- a/vncviewer/vncviewer.man
52 ++++ b/vncviewer/vncviewer.man
53 +@@ -240,6 +240,10 @@ This option specifies the preferred encoding to use from one of "Tight", "ZRLE",
54 + Disable lossy JPEG compression in Tight encoding. Default is off.
55 + .
56 + .TP
57 ++.B \-ImprovedHextile
58 ++Try harder to compress data (default).
59 ++.
60 ++.TP
61 + .B \-QualityLevel \fIlevel\fP
62 + JPEG quality level. 0 = Low, 9 = High. May be adjusted automatically if
63 + \fB-AutoSelect\fP is turned on. Default is 8.
64 +@@ -296,6 +300,11 @@ respectively.
65 + .B \-AlertOnFatalError
66 + Display a dialog with any fatal error before exiting. Default is on.
67 +
68 ++.
69 ++.TP
70 ++.B \-ZlibLevel
71 ++Zlib compression level.
72 ++
73 + .SH FILES
74 + .TP
75 + $HOME/.vnc/default.tigervnc
76
77 diff --git a/net-misc/tigervnc/files/tigervnc-9999-055_xstartup.patch b/net-misc/tigervnc/files/tigervnc-9999-055_xstartup.patch
78 new file mode 100644
79 index 0000000..8b50d8c
80 --- /dev/null
81 +++ b/net-misc/tigervnc/files/tigervnc-9999-055_xstartup.patch
82 @@ -0,0 +1,33 @@
83 +diff --git a/unix/vncserver b/unix/vncserver
84 +index 9e7a6ac5..fff53bdb 100755
85 +--- a/unix/vncserver
86 ++++ b/unix/vncserver
87 +@@ -63,27 +63,7 @@ $defaultXStartup
88 + = ("#!/bin/sh\n\n".
89 + "unset SESSION_MANAGER\n".
90 + "unset DBUS_SESSION_BUS_ADDRESS\n".
91 +- "OS=`uname -s`\n".
92 +- "if [ \$OS = 'Linux' ]; then\n".
93 +- " case \"\$WINDOWMANAGER\" in\n".
94 +- " \*gnome\*)\n".
95 +- " if [ -e /etc/SuSE-release ]; then\n".
96 +- " PATH=\$PATH:/opt/gnome/bin\n".
97 +- " export PATH\n".
98 +- " fi\n".
99 +- " ;;\n".
100 +- " esac\n".
101 +- "fi\n".
102 +- "if [ -x /etc/X11/xinit/xinitrc ]; then\n".
103 +- " exec /etc/X11/xinit/xinitrc\n".
104 +- "fi\n".
105 +- "if [ -f /etc/X11/xinit/xinitrc ]; then\n".
106 +- " exec sh /etc/X11/xinit/xinitrc\n".
107 +- "fi\n".
108 +- "[ -r \$HOME/.Xresources ] && xrdb \$HOME/.Xresources\n".
109 +- "xsetroot -solid grey\n".
110 +- "xterm -geometry 80x24+10+10 -ls -title \"\$VNCDESKTOP Desktop\" &\n".
111 +- "twm &\n");
112 ++ "exec /etc/X11/xinit/xinitrc\n");
113 +
114 + $defaultConfig
115 + = ("## Supported server options to pass to vncserver upon invocation can be listed\n".
116
117 diff --git a/net-misc/tigervnc/files/xserver120.patch b/net-misc/tigervnc/files/xserver120.patch
118 new file mode 100644
119 index 0000000..e823a65
120 --- /dev/null
121 +++ b/net-misc/tigervnc/files/xserver120.patch
122 @@ -0,0 +1,91 @@
123 +diff -urpN xorg-server-1.20.0.orig/configure.ac xorg-server-1.20.0/configure.ac
124 +--- xorg-server-1.20.0.orig/configure.ac 2018-05-10 09:32:34.000000000 -0700
125 ++++ xorg-server-1.20.0/configure.ac 2018-06-13 19:04:47.536413626 -0700
126 +@@ -74,6 +74,7 @@ dnl forcing an entire recompile.x
127 + AC_CONFIG_HEADERS(include/version-config.h)
128 +
129 + AM_PROG_AS
130 ++AC_PROG_CXX
131 + AC_PROG_LN_S
132 + LT_PREREQ([2.2])
133 + LT_INIT([disable-static win32-dll])
134 +@@ -1777,6 +1778,10 @@ if test "x$XVFB" = xyes; then
135 + AC_SUBST([XVFB_SYS_LIBS])
136 + fi
137 +
138 ++dnl Xvnc DDX
139 ++AC_SUBST([XVNC_CPPFLAGS], ["-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"])
140 ++AC_SUBST([XVNC_LIBS], ["$FB_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $MAIN_LIB"])
141 ++AC_SUBST([XVNC_SYS_LIBS], ["$GLX_SYS_LIBS"])
142 +
143 + dnl Xnest DDX
144 +
145 +@@ -1812,6 +1817,8 @@ if test "x$XORG" = xauto; then
146 + fi
147 + AC_MSG_RESULT([$XORG])
148 +
149 ++AC_DEFINE_UNQUOTED(XORG_VERSION_CURRENT, [$VENDOR_RELEASE], [Current Xorg version])
150 ++
151 + if test "x$XORG" = xyes; then
152 + XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
153 + XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
154 +@@ -2029,7 +2036,6 @@ if test "x$XORG" = xyes; then
155 + AC_DEFINE(XORG_SERVER, 1, [Building Xorg server])
156 + AC_DEFINE(XORGSERVER, 1, [Building Xorg server])
157 + AC_DEFINE(XFree86Server, 1, [Building XFree86 server])
158 +- AC_DEFINE_UNQUOTED(XORG_VERSION_CURRENT, [$VENDOR_RELEASE], [Current Xorg version])
159 + AC_DEFINE(NEED_XF86_TYPES, 1, [Need XFree86 typedefs])
160 + AC_DEFINE(NEED_XF86_PROTOTYPES, 1, [Need XFree86 helper functions])
161 + AC_DEFINE(__XSERVERNAME__, "Xorg", [Name of X server])
162 +@@ -2565,6 +2571,7 @@ hw/dmx/Makefile
163 + hw/dmx/man/Makefile
164 + hw/vfb/Makefile
165 + hw/vfb/man/Makefile
166 ++hw/vnc/Makefile
167 + hw/xnest/Makefile
168 + hw/xnest/man/Makefile
169 + hw/xwin/Makefile
170 +diff -urpN xorg-server-1.20.0.orig/hw/Makefile.am xorg-server-1.20.0/hw/Makefile.am
171 +--- xorg-server-1.20.0.orig/hw/Makefile.am 2018-05-10 09:32:34.000000000 -0700
172 ++++ xorg-server-1.20.0/hw/Makefile.am 2018-06-13 19:04:47.536413626 -0700
173 +@@ -38,7 +38,8 @@ SUBDIRS = \
174 + $(DMX_SUBDIRS) \
175 + $(KDRIVE_SUBDIRS) \
176 + $(XQUARTZ_SUBDIRS) \
177 +- $(XWAYLAND_SUBDIRS)
178 ++ $(XWAYLAND_SUBDIRS) \
179 ++ vnc
180 +
181 + DIST_SUBDIRS = dmx xfree86 vfb xnest xwin xquartz kdrive xwayland
182 +
183 +diff -urpN xorg-server-1.20.0.orig/include/os.h xorg-server-1.20.0/include/os.h
184 +--- xorg-server-1.20.0.orig/include/os.h 2018-05-10 09:32:36.000000000 -0700
185 ++++ xorg-server-1.20.0/include/os.h 2018-06-13 19:04:47.537413618 -0700
186 +@@ -633,7 +633,7 @@ LogSetDisplay(void);
187 + extern _X_EXPORT void
188 + LogClose(enum ExitCode error);
189 + extern _X_EXPORT Bool
190 +-LogSetParameter(LogParameter param, int value);
191 ++LogSetParameter(enum _LogParameter param, int value);
192 + extern _X_EXPORT void
193 + LogVWrite(int verb, const char *f, va_list args)
194 + _X_ATTRIBUTE_PRINTF(2, 0);
195 +diff -urpN xorg-server-1.20.0.orig/mi/miinitext.c xorg-server-1.20.0/mi/miinitext.c
196 +--- xorg-server-1.20.0.orig/mi/miinitext.c 2018-05-10 09:32:37.000000000 -0700
197 ++++ xorg-server-1.20.0/mi/miinitext.c 2018-06-13 19:05:14.742200675 -0700
198 +@@ -107,8 +107,15 @@ SOFTWARE.
199 + #include "os.h"
200 + #include "globals.h"
201 +
202 ++#ifdef TIGERVNC
203 ++extern void vncExtensionInit(INITARGS);
204 ++#endif
205 ++
206 + /* List of built-in (statically linked) extensions */
207 + static const ExtensionModule staticExtensions[] = {
208 ++#ifdef TIGERVNC
209 ++ {vncExtensionInit, "VNC-EXTENSION", NULL},
210 ++#endif
211 + {GEExtensionInit, "Generic Event Extension", &noGEExtension},
212 + {ShapeExtensionInit, "SHAPE", NULL},
213 + #ifdef MITSHM