Gentoo Archives: gentoo-commits

From: Ian Delaney <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/x11vnc/, x11-misc/x11vnc/files/
Date: Sat, 26 Sep 2015 15:22:10
Message-Id: 1443280866.a57c97265679f39675e243ff1b7e3d17d6e458ad.idella4@gentoo
1 commit: a57c97265679f39675e243ff1b7e3d17d6e458ad
2 Author: Ian Delaney <idella4 <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 26 15:21:06 2015 +0000
4 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 26 15:21:06 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a57c9726
7
8 x11-misc/x11vnc: rm old, clean up for sec bug #515268
9
10 Package-Manager: portage-2.2.20.1
11
12 x11-misc/x11vnc/Manifest | 1 -
13 .../x11vnc/files/x11vnc-0.9.13-shm-cleanup.patch | 35 ----------
14 x11-misc/x11vnc/files/x11vnc-0.9.13-warnings.patch | 42 ------------
15 x11-misc/x11vnc/x11vnc-0.9.13-r1.ebuild | 76 ----------------------
16 x11-misc/x11vnc/x11vnc-0.9.13.ebuild | 74 ---------------------
17 5 files changed, 228 deletions(-)
18
19 diff --git a/x11-misc/x11vnc/Manifest b/x11-misc/x11vnc/Manifest
20 index 4a60226..d072f19 100644
21 --- a/x11-misc/x11vnc/Manifest
22 +++ b/x11-misc/x11vnc/Manifest
23 @@ -1,2 +1 @@
24 DIST 82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a.zip 1830730 SHA256 fc6a28df089e47b68931019ce038b6e2fcd78e93de7f6984a22262252d01c16f SHA512 0fa4f7b52442793ec1bd82c74f9d092c69262e4f1fa93584fef17bbe0e5cbde08bc5ad0924631801bb43b41d90c37077a317c61511553f98698096eab05791eb WHIRLPOOL f1a45b549fb6ff9bea2eb4e3719b5dd43a78f6f418c61691cebab313d56761147d928648e103c654309575bec7c716a6f1cd1ef7a9b484c09edee37233cb0ce7
25 -DIST x11vnc-0.9.13.tar.gz 2853769 SHA256 f6829f2e629667a5284de62b080b13126a0736499fe47cdb447aedb07a59f13b SHA512 7b24e495f29122032e1c8ced7f7d8e0a56a2a8263e761a50725320742c99a0fcd5680d13038dd5d47e1c05d3b889d0caa13ba0b1aeda6fa42d5fb5ef3c43f908 WHIRLPOOL d812b257e70d6caccc6669c7fca89cacc590b5908c7877f62bdd14a159b0712b5b60e8587b6a385a5a68c46e15296ab838b07196786ac354fccb0759725685c4
26
27 diff --git a/x11-misc/x11vnc/files/x11vnc-0.9.13-shm-cleanup.patch b/x11-misc/x11vnc/files/x11vnc-0.9.13-shm-cleanup.patch
28 deleted file mode 100644
29 index 0d5d78b..0000000
30 --- a/x11-misc/x11vnc/files/x11vnc-0.9.13-shm-cleanup.patch
31 +++ /dev/null
32 @@ -1,35 +0,0 @@
33 -fix that is already in upstream x11vnc-0.9.14 dev
34 -
35 -from ChromiumOS:
36 -
37 -x11vnc: Fix shm close on early shutdown.
38 -
39 -Global structures {scanline,fullscreen,scanrect}_shm are initialized to
40 -zero, including the .shmid field. This creates problems when shutdown /
41 -clean_shm is called before these structures are properly initialized in
42 -initialize_polling_images. shm_delete will be called on the structure,
43 -and since the shmid isn't -1, shmctl(id, IPC_RMID...) will be called for
44 -id=0. id=0 is in fact a valid shmid, and it might belong to some other
45 -shared memory for some other processes, creating many potential problems.
46 -
47 -Fix is to initialize shmid to -1 to indicate that it is in fact
48 -uninitialized.
49 -
50 -https://chromium-review.googlesource.com/37971
51 -
52 ---- a/x11vnc/x11vnc_defs.c
53 -+++ b/x11vnc/x11vnc_defs.c
54 -@@ -82,10 +82,10 @@
55 - XImage *raw_fb_image = NULL; /* the raw fb */
56 -
57 - /* corresponding shm structures */
58 --XShmSegmentInfo scanline_shm;
59 --XShmSegmentInfo fullscreen_shm;
60 -+XShmSegmentInfo scanline_shm = {.shmid = -1};
61 -+XShmSegmentInfo fullscreen_shm = {.shmid = -1};
62 - XShmSegmentInfo *tile_row_shm; /* for all possible row runs */
63 --XShmSegmentInfo snaprect_shm;
64 -+XShmSegmentInfo snaprect_shm = {.shmid = -1};
65 -
66 - /* rfb screen info */
67 - rfbScreenInfoPtr screen = NULL;
68
69 diff --git a/x11-misc/x11vnc/files/x11vnc-0.9.13-warnings.patch b/x11-misc/x11vnc/files/x11vnc-0.9.13-warnings.patch
70 deleted file mode 100644
71 index f80e83f..0000000
72 --- a/x11-misc/x11vnc/files/x11vnc-0.9.13-warnings.patch
73 +++ /dev/null
74 @@ -1,42 +0,0 @@
75 ---- x11vnc-0.9.13.orig/x11vnc/remote.c
76 -+++ x11vnc-0.9.13/x11vnc/remote.c
77 -@@ -5860,7 +5860,7 @@
78 - }
79 - if (!strcmp(p, "vncdisplay")) {
80 - snprintf(buf, bufn, "aro=%s:%s", p,
81 -- NONUL(vnc_desktop_name));
82 -+ vnc_desktop_name);
83 - goto qry;
84 - }
85 - if (!strcmp(p, "icon_mode")) {
86 -@@ -6062,7 +6062,7 @@
87 - if (!strcmp(p, "h") || !strcmp(p, "help") ||
88 - !strcmp(p, "V") || !strcmp(p, "version") ||
89 - !strcmp(p, "lastmod")) {
90 -- snprintf(buf, bufn, "aro=%s:%s", p, NONUL(lastmod));
91 -+ snprintf(buf, bufn, "aro=%s:%s", p, lastmod);
92 - goto qry;
93 - }
94 - if (!strcmp(p, "bg")) {
95 ---- x11vnc-0.9.13.orig/x11vnc/sslhelper.c
96 -+++ x11vnc-0.9.13/x11vnc/sslhelper.c
97 -@@ -4041,7 +4041,7 @@
98 - strncpy(last_get, rcookie, 100);
99 - if (db) fprintf(stderr, "last_get: '%s'\n", last_get);
100 - }
101 -- if (rcookie && strstr(rcookie, "VncViewer.class")) {
102 -+ if (strstr(rcookie, "VncViewer.class")) {
103 - rfbLog("\n");
104 - rfbLog("helper[%d]:\n", pid);
105 - rfbLog("***********************************************************\n");
106 ---- x11vnc-0.9.13.orig/x11vnc/userinput.c
107 -+++ x11vnc-0.9.13/x11vnc/userinput.c
108 -@@ -1305,7 +1305,7 @@
109 - int font_size = 15;
110 - int win_y, scr_y, loc_cut = 4*font_size, y_cut = 10*font_size;
111 -
112 -- if (!xrecord_set_by_keys || !xrecord_name_info) {
113 -+ if (!xrecord_set_by_keys) {
114 - return 0;
115 - }
116 - if (xrecord_name_info[0] == '\0') {
117
118 diff --git a/x11-misc/x11vnc/x11vnc-0.9.13-r1.ebuild b/x11-misc/x11vnc/x11vnc-0.9.13-r1.ebuild
119 deleted file mode 100644
120 index 3993d81..0000000
121 --- a/x11-misc/x11vnc/x11vnc-0.9.13-r1.ebuild
122 +++ /dev/null
123 @@ -1,76 +0,0 @@
124 -# Copyright 1999-2015 Gentoo Foundation
125 -# Distributed under the terms of the GNU General Public License v2
126 -# $Id$
127 -
128 -EAPI=5
129 -
130 -inherit eutils
131 -
132 -DESCRIPTION="A VNC server for real X displays"
133 -HOMEPAGE="http://www.karlrunge.com/x11vnc/"
134 -SRC_URI="mirror://sourceforge/libvncserver/${P}.tar.gz"
135 -
136 -LICENSE="GPL-2"
137 -SLOT="0"
138 -KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
139 -IUSE="avahi crypt fbcon +jpeg ssl system-libvncserver threads tk xinerama +zlib"
140 -
141 -RDEPEND="
142 - x11-libs/libXfixes
143 - x11-libs/libXrandr
144 - x11-libs/libX11
145 - >=x11-libs/libXtst-1.1.0
146 - x11-libs/libXdamage
147 - x11-libs/libXext
148 - avahi? ( >=net-dns/avahi-0.6.4 )
149 - ssl? ( dev-libs/openssl )
150 - system-libvncserver? ( >=net-libs/libvncserver-0.9.7[threads=,jpeg=,zlib=] )
151 - !system-libvncserver? (
152 - zlib? ( sys-libs/zlib )
153 - jpeg? ( virtual/jpeg:0 )
154 - )
155 - tk? ( dev-lang/tk )
156 - xinerama? ( x11-libs/libXinerama )"
157 -DEPEND="${RDEPEND}
158 - x11-libs/libXt
159 - x11-proto/inputproto
160 - x11-proto/trapproto
161 - x11-proto/recordproto
162 - x11-proto/xproto
163 - x11-proto/xextproto
164 - xinerama? ( x11-proto/xineramaproto )"
165 -
166 -pkg_setup() {
167 - if use avahi && ! use threads ; then
168 - ewarn "Non-native avahi support has been enabled."
169 - ewarn "Native avahi support can be enabled by also enabling the threads USE flag."
170 - fi
171 -}
172 -
173 -src_prepare() {
174 - epatch "${FILESDIR}"/${P}-warnings.patch \
175 - "${FILESDIR}"/${P}-shm-cleanup.patch
176 -}
177 -
178 -src_configure() {
179 - # --without-v4l because of missing video4linux 2.x support wrt #389079
180 - econf \
181 - $(use_with system-libvncserver) \
182 - $(use_with xinerama) \
183 - --without-v4l \
184 - $(use_with fbcon fbdev) \
185 - $(use_with crypt) \
186 - $(use_with ssl crypto) \
187 - $(use_with ssl) \
188 - $(use_with avahi) \
189 - $(use_with jpeg) \
190 - $(use_with zlib) \
191 - $(use_with threads pthread)
192 -}
193 -
194 -src_install() {
195 - default
196 - dodoc x11vnc/{ChangeLog,README}
197 - # Remove include files, which conflict with net-libs/libvncserver
198 - rm -rf "${ED%/}"/usr/include
199 -}
200
201 diff --git a/x11-misc/x11vnc/x11vnc-0.9.13.ebuild b/x11-misc/x11vnc/x11vnc-0.9.13.ebuild
202 deleted file mode 100644
203 index c8f68aa..0000000
204 --- a/x11-misc/x11vnc/x11vnc-0.9.13.ebuild
205 +++ /dev/null
206 @@ -1,74 +0,0 @@
207 -# Copyright 1999-2013 Gentoo Foundation
208 -# Distributed under the terms of the GNU General Public License v2
209 -# $Id$
210 -
211 -EAPI="4"
212 -
213 -inherit eutils
214 -
215 -DESCRIPTION="A VNC server for real X displays"
216 -HOMEPAGE="http://www.karlrunge.com/x11vnc/"
217 -SRC_URI="mirror://sourceforge/libvncserver/${P}.tar.gz"
218 -
219 -LICENSE="GPL-2"
220 -SLOT="0"
221 -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
222 -IUSE="avahi crypt fbcon +jpeg ssl system-libvncserver threads tk xinerama +zlib"
223 -
224 -RDEPEND="system-libvncserver? ( >=net-libs/libvncserver-0.9.7[threads=,jpeg=,zlib=] )
225 - !system-libvncserver? (
226 - zlib? ( sys-libs/zlib )
227 - jpeg? ( virtual/jpeg:0 )
228 - )
229 - ssl? ( dev-libs/openssl )
230 - tk? ( dev-lang/tk )
231 - avahi? ( >=net-dns/avahi-0.6.4 )
232 - xinerama? ( x11-libs/libXinerama )
233 - x11-libs/libXfixes
234 - x11-libs/libXrandr
235 - x11-libs/libX11
236 - >=x11-libs/libXtst-1.1.0
237 - x11-libs/libXdamage
238 - x11-libs/libXext"
239 -DEPEND="${RDEPEND}
240 - x11-libs/libXt
241 - xinerama? ( x11-proto/xineramaproto )
242 - x11-proto/inputproto
243 - x11-proto/trapproto
244 - x11-proto/recordproto
245 - x11-proto/xproto
246 - x11-proto/xextproto"
247 -
248 -pkg_setup() {
249 - if use avahi && ! use threads ; then
250 - ewarn "Non-native avahi support has been enabled."
251 - ewarn "Native avahi support can be enabled by also enabling the threads USE flag."
252 - fi
253 -}
254 -
255 -src_prepare() {
256 - epatch "${FILESDIR}"/${P}-warnings.patch
257 -}
258 -
259 -src_configure() {
260 - # --without-v4l because of missing video4linux 2.x support wrt #389079
261 - econf \
262 - $(use_with system-libvncserver) \
263 - $(use_with avahi) \
264 - $(use_with xinerama) \
265 - $(use_with ssl) \
266 - $(use_with ssl crypto) \
267 - $(use_with crypt) \
268 - --without-v4l \
269 - $(use_with jpeg) \
270 - $(use_with zlib) \
271 - $(use_with threads pthread) \
272 - $(use_with fbcon fbdev)
273 -}
274 -
275 -src_install() {
276 - emake DESTDIR="${D}" install
277 - dodoc x11vnc/{ChangeLog,README}
278 - # Remove include files, which conflict with net-libs/libvncserver
279 - rm -rf "${D}"/usr/include
280 -}