Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-base/xorg-server/, x11-base/xorg-server/files/
Date: Thu, 23 Nov 2017 05:11:24
Message-Id: 1511406974.bc62a23618028a4a4c7d0a94ac8531a03fe3f3e8.mattst88@gentoo
1 commit: bc62a23618028a4a4c7d0a94ac8531a03fe3f3e8
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 23 03:12:27 2017 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 23 03:16:14 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc62a236
7
8 x11-base/xorg-server: Drop old versions
9
10 These were only in the tree for old versions of the nvidia-drivers,
11 which were removed in commit 075b72245180.
12
13 x11-base/xorg-server/Manifest | 6 +-
14 x11-base/xorg-server/files/xdm.initd-9 | 215 -------------------
15 .../files/xorg-server-1.12-cve-2013-1940.patch | 34 ---
16 .../files/xorg-server-1.12-cve-2013-4396.patch | 75 -------
17 .../files/xorg-server-1.12-cve-2015-3418.patch | 29 ---
18 .../files/xorg-server-1.12-disable-acpi.patch | 11 -
19 .../files/xorg-server-1.12-ia64-fix_inx_outx.patch | 60 ------
20 .../files/xorg-server-1.17-cve-2015-0255-0.patch | 102 ---------
21 .../files/xorg-server-1.17-cve-2015-0255-1.patch | 138 ------------
22 ...xorg-server-1.17.2-uninit-clientsWritable.patch | 65 ------
23 .../files/xorg-server-1.18-sysmacros.patch | 59 ------
24 x11-base/xorg-server/xorg-server-1.12.4-r7.ebuild | 225 --------------------
25 x11-base/xorg-server/xorg-server-1.15.2-r4.ebuild | 233 ---------------------
26 13 files changed, 1 insertion(+), 1251 deletions(-)
27
28 diff --git a/x11-base/xorg-server/Manifest b/x11-base/xorg-server/Manifest
29 index 76e64eb035d..3c7db008745 100644
30 --- a/x11-base/xorg-server/Manifest
31 +++ b/x11-base/xorg-server/Manifest
32 @@ -1,5 +1 @@
33 -DIST xorg-server-1.12-cve-2014-8091..8103.patches.tar.xz 14832 SHA256 a98fd1589ef92d6f8a633326d387f2f203df72452788a6aaa2bcd4242700fe7f SHA512 2ac18d36cd8b6d9fcaf98a32e3e6b9107e420476e066a4ac9581f12e9afb7e397614761373a20d96c8fa840886b81ee0ec5cfc812e16876b4922bf6c5fe3f736 WHIRLPOOL 5c3ddd654fdecf3285d865b4b864bcaa3de87cd6005f8d500da4250b5b659db69e103743109ec3c72cb79abf24910b6de4ac05c0a7b7bcb2656d5a95c9703d38
34 -DIST xorg-server-1.12.4.tar.bz2 5444761 SHA256 8ac07c35306ba3fb3c0972722dd4e919303039eca1d40ac7862560e0b2c94cf7 SHA512 70997e8ba4f948829c158e52924753c5691a783dd14e5a86fdce4fc601638dd4e0b281590876b0315a303bf8d5195bdf43ede7113d1d569415a41ab03d938d85 WHIRLPOOL bfee61329ca85ecedb991ca933de6e3a1e94e34a04d9a723a0e9c90a36e067824701c38e8a0034498ed28dfca82eb653d1e1ab5c0223020f5da69cbbf80bbf98
35 -DIST xorg-server-1.15.2.tar.bz2 5551426 SHA256 3c0585607c654ded836da43a45a75492fc13454ff4149704fb08dac39f051163 SHA512 5fcbf0012af309f80e1db206e05d7861796146d765cd17f3963fde6da7f43f0e57d63dbbdbf2c554612a557aa4dee623ef62f7ca7d007834aafd7a46ca7bb1d6 WHIRLPOOL 22cdbad68462f9bac32b13be958df496411ca72fe47435ec7e3ebb470b121ba4b4a0e023913f31a92113c5a56bc4be660dfec5086bc1fb72a617d2cdeaa8adf1
36 -DIST xorg-server-1.16-cve-2014-8091..8103.patches.tar.xz 27892 SHA256 47d8c9bb79c829389e7599aef1110d43afbc5bf744dbcf73d8f3cf01796d287a SHA512 f8b55c009166883b3e6ec2c8c7a2ff4ed61df6970afcc4f0efb9efa36741af194456a368d4b1c7ba9345ef973fb139a48eb50cb5a7ebc144b43749b9ffdb1f7b WHIRLPOOL 2f8b26c018f4ad4cf780ed7dcb0b844de64e7a612adc30c622d1956dfcee710086ffcc837ff0a64cdcc14d47720d82d8797374488bf0b52d77ca63adf6806885
37 -DIST xorg-server-1.19.5.tar.bz2 5965044 SHA256 18fffa8eb93d06d2800d06321fc0df4d357684d8d714315a66d8dfa7df251447 SHA512 928dea5850b98cd815004cfa133eca23cfa9521920c934c68a92787f2cae13cca1534eee772a4fb74b8ae8cb92662b5d68b95b834c8aa8ec57cd57cb4e5dd45c WHIRLPOOL 01039d524a876ba6bd72713993b1d4d6e21f8ba53536ee3189dce9cc7186010e143754fa708d2ccf10905dd272bc68b14c63f4322548e041dfc23cf00e4c364e
38 +DIST xorg-server-1.19.5.tar.bz2 5965044 BLAKE2B 23375793ea4459a962f412440e307081ce2acd3c646e5db4d1bfac20e267bcbb1752ba8f6de66df06d25eaf92d1b55082a80eced0d44c257a757d5926ca6a7f3 SHA512 928dea5850b98cd815004cfa133eca23cfa9521920c934c68a92787f2cae13cca1534eee772a4fb74b8ae8cb92662b5d68b95b834c8aa8ec57cd57cb4e5dd45c
39
40 diff --git a/x11-base/xorg-server/files/xdm.initd-9 b/x11-base/xorg-server/files/xdm.initd-9
41 deleted file mode 100644
42 index d6e20a6dd73..00000000000
43 --- a/x11-base/xorg-server/files/xdm.initd-9
44 +++ /dev/null
45 @@ -1,215 +0,0 @@
46 -#!/sbin/openrc-run
47 -# Copyright 1999-2012 Gentoo Foundation
48 -# Distributed under the terms of the GNU General Public License, v2
49 -
50 -# This is here to serve as a note to myself, and future developers.
51 -#
52 -# Any Display manager (gdm,kdm,xdm) has the following problem: if
53 -# it is started before any getty, and no vt is specified, it will
54 -# usually run on vt2. When the getty on vt2 then starts, and the
55 -# DM is already started, the getty will take control of the keyboard,
56 -# leaving us with a "dead" keyboard.
57 -#
58 -# Resolution: add the following line to /etc/inittab
59 -#
60 -# x:a:once:/etc/X11/startDM.sh
61 -#
62 -# and have /etc/X11/startDM.sh start the DM in daemon mode if
63 -# a lock is present (with the info of what DM should be started),
64 -# else just fall through.
65 -#
66 -# How this basically works, is the "a" runlevel is a additional
67 -# runlevel that you can use to fork processes with init, but the
68 -# runlevel never gets changed to this runlevel. Along with the "a"
69 -# runlevel, the "once" key word means that startDM.sh will only be
70 -# run when we specify it to run, thus eliminating respawning
71 -# startDM.sh when "xdm" is not added to the default runlevel, as was
72 -# done previously.
73 -#
74 -# This script then just calls "telinit a", and init will run
75 -# /etc/X11/startDM.sh after the current runlevel completes (this
76 -# script should only be added to the actual runlevel the user is
77 -# using).
78 -#
79 -# Martin Schlemmer
80 -# aka Azarah
81 -# 04 March 2002
82 -
83 -depend() {
84 - need localmount xdm-setup
85 -
86 - # this should start as early as possible
87 - # we can't do 'before *' as that breaks it
88 - # (#139824) Start after ypbind and autofs for network authentication
89 - # (#145219 #180163) Could use lirc mouse as input device
90 - # (#70689 comment #92) Start after consolefont to avoid display corruption
91 - # (#291269) Start after quota, since some dm need readable home
92 - # (#390609) gdm-3 will fail when dbus is not running
93 - # (#366753) starting keymaps after X causes problems
94 - after bootmisc consolefont modules netmount
95 - after readahead-list ypbind autofs openvpn gpm lircmd
96 - after quota keymaps
97 - before alsasound
98 -
99 - # Start before X
100 - use consolekit dbus xfs
101 -}
102 -
103 -setup_dm() {
104 - local MY_XDM
105 -
106 - MY_XDM=$(echo "${DISPLAYMANAGER}" | tr '[:upper:]' '[:lower:]')
107 -
108 - # Load our root path from profile.env
109 - # Needed for kdm
110 - PATH=${PATH}:$(. /etc/profile.env; echo "${ROOTPATH}")
111 -
112 - NAME=
113 - case "${MY_XDM}" in
114 - kdm|kde)
115 - EXE=/usr/bin/kdm
116 - PIDFILE=/var/run/kdm.pid
117 - ;;
118 - entrance*)
119 - EXE=/usr/sbin/entrance
120 - PIDFILE=/var/run/entrance.pid
121 - ;;
122 - gdm|gnome)
123 - EXE=/usr/bin/gdm
124 - [ "${RC_UNAME}" != "Linux" ] && NAME=gdm-binary
125 - PIDFILE=/var/run/gdm.pid
126 - ;;
127 - wdm)
128 - EXE=/usr/bin/wdm
129 - PIDFILE=
130 - ;;
131 - gpe)
132 - EXE=/usr/bin/gpe-dm
133 - PIDFILE=/var/run/gpe-dm.pid
134 - ;;
135 - lxdm)
136 - EXE=/usr/sbin/lxdm-binary
137 - PIDFILE=/var/run/lxdm.pid
138 - START_STOP_ARGS="--background"
139 - ;;
140 - lightdm)
141 - EXE=/usr/sbin/lightdm
142 - PIDFILE=/var/run/lightdm.pid
143 - START_STOP_ARGS="--background"
144 - ;;
145 - *)
146 - # first find out if there is such executable
147 - EXE="$(command -v ${MY_XDM} 2>/dev/null)"
148 - PIDFILE="/var/run/${MY_XDM}.pid"
149 -
150 - # warn user that he is doing sick things if the exe was not found
151 - if [ -z "${EXE}" ]; then
152 - echo "ERROR: Your XDM value is invalid."
153 - echo " No ${MY_XDM} executable could be found on your system."
154 - fi
155 - ;;
156 - esac
157 -
158 - if ! [ -x "${EXE}" ]; then
159 - EXE=/usr/bin/xdm
160 - PIDFILE=/var/run/xdm.pid
161 - if ! [ -x "/usr/bin/xdm" ]; then
162 - echo "ERROR: Please set your DISPLAYMANAGER variable in /etc/conf.d/xdm,"
163 - echo " or install x11-apps/xdm package"
164 - eend 255
165 - fi
166 - fi
167 -}
168 -
169 -# Check to see if something is defined on our VT
170 -vtstatic() {
171 - if [ -e /etc/inittab ] ; then
172 - grep -Eq "^[^#]+.*\<tty$1\>" /etc/inittab
173 - elif [ -e /etc/ttys ] ; then
174 - grep -q "^ttyv$(($1 - 1))" /etc/ttys
175 - else
176 - return 1
177 - fi
178 -}
179 -
180 -start() {
181 - local EXE NAME PIDFILE
182 - setup_dm
183 -
184 - if [ -f /etc/.noxdm ]; then
185 - einfo "Skipping ${EXE##*/}, /etc/.noxdm found or \"nox\" bootparam passed."
186 - rm /etc/.noxdm
187 - return 0
188 - fi
189 -
190 - ebegin "Setting up ${EXE##*/}"
191 -
192 - # save the prefered DM
193 - save_options "service" "${EXE}"
194 - save_options "name" "${NAME}"
195 - save_options "pidfile" "${PIDFILE}"
196 - save_options "start_stop_args" "${START_STOP_ARGS}"
197 -
198 - if [ -n "${CHECKVT-y}" ] ; then
199 - if vtstatic "${CHECKVT:-7}" ; then
200 - if [ -x /sbin/telinit ] && [ "${SOFTLEVEL}" != "BOOT" ] && [ "${RC_SOFTLEVEL}" != "BOOT" ]; then
201 - ewarn "Something is already defined on VT ${CHECKVT:-7}, will start X later"
202 - telinit a >/dev/null 2>&1
203 - return 0
204 - else
205 - eerror "Something is already defined on VT ${CHECKVT:-7}, not starting"
206 - return 1
207 - fi
208 - fi
209 - fi
210 -
211 - /etc/X11/startDM.sh
212 - eend 0
213 -}
214 -
215 -stop() {
216 - local curvt retval
217 -
218 - retval=0
219 - if [ -t 0 ]; then
220 - if type fgconsole >/dev/null 2>&1; then
221 - curvt=$(fgconsole 2>/dev/null)
222 - else
223 - curvt=$(tty)
224 - case "${curvt}" in
225 - /dev/ttyv[0-9]*) curvt=${curvt#/dev/ttyv} ;;
226 - *) curvt= ;;
227 - esac
228 - fi
229 - fi
230 - local myexe myname mypidfile myservice
231 - myexe=$(get_options "service")
232 - myname=$(get_options "name")
233 - mypidfile=$(get_options "pidfile")
234 - myservice=${myexe##*/}
235 -
236 - [ -z "${myexe}" ] && return 0
237 -
238 - ebegin "Stopping ${myservice}"
239 -
240 - if start-stop-daemon --quiet --test --stop --exec "${myexe}"; then
241 - start-stop-daemon --stop --exec "${myexe}" --retry TERM/5/TERM/5 \
242 - ${mypidfile:+--pidfile} ${mypidfile} \
243 - ${myname:+--name} ${myname}
244 - retval=${?}
245 - fi
246 -
247 - # switch back to original vt
248 - if [ -n "${curvt}" ]; then
249 - if type chvt >/dev/null 2>&1; then
250 - chvt "${curvt}"
251 - else
252 - vidcontrol -s "$((curvt + 1))"
253 - fi
254 - fi
255 -
256 - eend ${retval} "Error stopping ${myservice}"
257 - return ${retval}
258 -}
259 -
260 -# vim: set ts=4 :
261
262 diff --git a/x11-base/xorg-server/files/xorg-server-1.12-cve-2013-1940.patch b/x11-base/xorg-server/files/xorg-server-1.12-cve-2013-1940.patch
263 deleted file mode 100644
264 index d85494f9029..00000000000
265 --- a/x11-base/xorg-server/files/xorg-server-1.12-cve-2013-1940.patch
266 +++ /dev/null
267 @@ -1,34 +0,0 @@
268 -From 6ca03b9161d33b1d2b55a3a1a913cf88deb2343f Mon Sep 17 00:00:00 2001
269 -From: Dave Airlie <airlied@×××××.com>
270 -Date: Wed, 10 Apr 2013 06:09:01 +0000
271 -Subject: xf86: fix flush input to work with Linux evdev devices.
272 -
273 -So when we VT switch back and attempt to flush the input devices,
274 -we don't succeed because evdev won't return part of an event,
275 -since we were only asking for 4 bytes, we'd only get -EINVAL back.
276 -
277 -This could later cause events to be flushed that we shouldn't have
278 -gotten.
279 -
280 -This is a fix for CVE-2013-1940.
281 -
282 -Signed-off-by: Dave Airlie <airlied@××××××.com>
283 -Reviewed-by: Peter Hutterer <peter.hutterer@×××××.net>
284 -Signed-off-by: Peter Hutterer <peter.hutterer@×××××.net>
285 ----
286 -diff --git a/hw/xfree86/os-support/shared/posix_tty.c b/hw/xfree86/os-support/shared/posix_tty.c
287 -index ab3757a..4d08c1e 100644
288 ---- a/hw/xfree86/os-support/shared/posix_tty.c
289 -+++ b/hw/xfree86/os-support/shared/posix_tty.c
290 -@@ -421,7 +421,8 @@ xf86FlushInput(int fd)
291 - {
292 - fd_set fds;
293 - struct timeval timeout;
294 -- char c[4];
295 -+ /* this needs to be big enough to flush an evdev event. */
296 -+ char c[256];
297 -
298 - DebugF("FlushingSerial\n");
299 - if (tcflush(fd, TCIFLUSH) == 0)
300 ---
301 -cgit v0.9.0.2-2-gbebe
302
303 diff --git a/x11-base/xorg-server/files/xorg-server-1.12-cve-2013-4396.patch b/x11-base/xorg-server/files/xorg-server-1.12-cve-2013-4396.patch
304 deleted file mode 100644
305 index 4b6727e61c0..00000000000
306 --- a/x11-base/xorg-server/files/xorg-server-1.12-cve-2013-4396.patch
307 +++ /dev/null
308 @@ -1,75 +0,0 @@
309 -From 7bddc2ba16a2a15773c2ea8947059afa27727764 Mon Sep 17 00:00:00 2001
310 -From: Alan Coopersmith <alan.coopersmith@××××××.com>
311 -Date: Mon, 16 Sep 2013 21:47:16 -0700
312 -Subject: [PATCH] Avoid use-after-free in dix/dixfonts.c: doImageText()
313 - [CVE-2013-4396]
314 -
315 -Save a pointer to the passed in closure structure before copying it
316 -and overwriting the *c pointer to point to our copy instead of the
317 -original. If we hit an error, once we free(c), reset c to point to
318 -the original structure before jumping to the cleanup code that
319 -references *c.
320 -
321 -Since one of the errors being checked for is whether the server was
322 -able to malloc(c->nChars * itemSize), the client can potentially pass
323 -a number of characters chosen to cause the malloc to fail and the
324 -error path to be taken, resulting in the read from freed memory.
325 -
326 -Since the memory is accessed almost immediately afterwards, and the
327 -X server is mostly single threaded, the odds of the free memory having
328 -invalid contents are low with most malloc implementations when not using
329 -memory debugging features, but some allocators will definitely overwrite
330 -the memory there, leading to a likely crash.
331 -
332 -Reported-by: Pedro Ribeiro <pedrib@×××××.com>
333 -Signed-off-by: Alan Coopersmith <alan.coopersmith@××××××.com>
334 -Reviewed-by: Julien Cristau <jcristau@××××××.org>
335 ----
336 - dix/dixfonts.c | 5 +++++
337 - 1 file changed, 5 insertions(+)
338 -
339 -diff --git a/dix/dixfonts.c b/dix/dixfonts.c
340 -index feb765d..2e34d37 100644
341 ---- a/dix/dixfonts.c
342 -+++ b/dix/dixfonts.c
343 -@@ -1425,6 +1425,7 @@ doImageText(ClientPtr client, ITclosurePtr c)
344 - GC *pGC;
345 - unsigned char *data;
346 - ITclosurePtr new_closure;
347 -+ ITclosurePtr old_closure;
348 -
349 - /* We're putting the client to sleep. We need to
350 - save some state. Similar problem to that handled
351 -@@ -1436,12 +1437,14 @@ doImageText(ClientPtr client, ITclosurePtr c)
352 - err = BadAlloc;
353 - goto bail;
354 - }
355 -+ old_closure = c;
356 - *new_closure = *c;
357 - c = new_closure;
358 -
359 - data = malloc(c->nChars * itemSize);
360 - if (!data) {
361 - free(c);
362 -+ c = old_closure;
363 - err = BadAlloc;
364 - goto bail;
365 - }
366 -@@ -1452,6 +1455,7 @@ doImageText(ClientPtr client, ITclosurePtr c)
367 - if (!pGC) {
368 - free(c->data);
369 - free(c);
370 -+ c = old_closure;
371 - err = BadAlloc;
372 - goto bail;
373 - }
374 -@@ -1464,6 +1468,7 @@ doImageText(ClientPtr client, ITclosurePtr c)
375 - FreeScratchGC(pGC);
376 - free(c->data);
377 - free(c);
378 -+ c = old_closure;
379 - err = BadAlloc;
380 - goto bail;
381 - }
382 ---
383 -1.7.9.2
384
385 diff --git a/x11-base/xorg-server/files/xorg-server-1.12-cve-2015-3418.patch b/x11-base/xorg-server/files/xorg-server-1.12-cve-2015-3418.patch
386 deleted file mode 100644
387 index 4b6a6aeab29..00000000000
388 --- a/x11-base/xorg-server/files/xorg-server-1.12-cve-2015-3418.patch
389 +++ /dev/null
390 @@ -1,29 +0,0 @@
391 -From dc777c346d5d452a53b13b917c45f6a1bad2f20b Mon Sep 17 00:00:00 2001
392 -From: Keith Packard <keithp@××××××.com>
393 -Date: Sat, 3 Jan 2015 08:46:45 -0800
394 -Subject: dix: Allow zero-height PutImage requests
395 -
396 -The length checking code validates PutImage height and byte width by
397 -making sure that byte-width >= INT32_MAX / height. If height is zero,
398 -this generates a divide by zero exception. Allow zero height requests
399 -explicitly, bypassing the INT32_MAX check.
400 -
401 -Signed-off-by: Keith Packard <keithp@××××××.com>
402 -Reviewed-by: Alan Coopersmith <alan.coopersmith@××××××.com>
403 -
404 -diff --git a/dix/dispatch.c b/dix/dispatch.c
405 -index 55b978d..9044ac7 100644
406 ---- a/dix/dispatch.c
407 -+++ b/dix/dispatch.c
408 -@@ -2000,7 +2000,7 @@ ProcPutImage(ClientPtr client)
409 - tmpImage = (char *) &stuff[1];
410 - lengthProto = length;
411 -
412 -- if (lengthProto >= (INT32_MAX / stuff->height))
413 -+ if (stuff->height != 0 && lengthProto >= (INT32_MAX / stuff->height))
414 - return BadLength;
415 -
416 - if ((bytes_to_int32(lengthProto * stuff->height) +
417 ---
418 -cgit v0.10.2
419 -
420
421 diff --git a/x11-base/xorg-server/files/xorg-server-1.12-disable-acpi.patch b/x11-base/xorg-server/files/xorg-server-1.12-disable-acpi.patch
422 deleted file mode 100644
423 index df43dbde828..00000000000
424 --- a/x11-base/xorg-server/files/xorg-server-1.12-disable-acpi.patch
425 +++ /dev/null
426 @@ -1,11 +0,0 @@
427 -diff -ur a/configure.ac b/configure.ac
428 ---- a/configure.ac 2011-10-31 19:40:02.000000000 +0100
429 -+++ b/configure.ac 2011-10-31 19:41:02.372745481 +0100
430 -@@ -1624,7 +1624,6 @@
431 - linux_alpha=yes
432 - ;;
433 - i*86|amd64*|x86_64*|ia64*)
434 -- linux_acpi="yes"
435 - ;;
436 - *)
437 - ;;
438
439 diff --git a/x11-base/xorg-server/files/xorg-server-1.12-ia64-fix_inx_outx.patch b/x11-base/xorg-server/files/xorg-server-1.12-ia64-fix_inx_outx.patch
440 deleted file mode 100644
441 index 24a5a02f4fd..00000000000
442 --- a/x11-base/xorg-server/files/xorg-server-1.12-ia64-fix_inx_outx.patch
443 +++ /dev/null
444 @@ -1,60 +0,0 @@
445 -diff -r --context xorg-server-1.12.3/hw/xfree86/common/compiler.h xorg-server-1.12.3-fix/hw/xfree86/common/compiler.h
446 -*** xorg-server-1.12.3/hw/xfree86/common/compiler.h 2012-07-06 07:17:19.000000000 +0200
447 ---- xorg-server-1.12.3-fix/hw/xfree86/common/compiler.h 2012-08-29 00:14:39.000000000 +0200
448 -***************
449 -*** 421,426 ****
450 ---- 421,474 ----
451 - #include <machine/pio.h>
452 - #endif /* __NetBSD__ */
453 -
454 -+ #elif defined(linux) && defined(__ia64__)
455 -+ /* for Linux on ia64, we use the LIBC _inx/_outx routines */
456 -+ /* note that the appropriate setup via "ioperm" needs to be done */
457 -+ /* *before* any inx/outx is done. */
458 -+
459 -+ extern _X_EXPORT void _outb(unsigned char val, unsigned long port);
460 -+ extern _X_EXPORT void _outw(unsigned short val, unsigned long port);
461 -+ extern _X_EXPORT void _outl(unsigned int val, unsigned long port);
462 -+ extern _X_EXPORT unsigned int _inb(unsigned long port);
463 -+ extern _X_EXPORT unsigned int _inw(unsigned long port);
464 -+ extern _X_EXPORT unsigned int _inl(unsigned long port);
465 -+
466 -+ static __inline__ void
467 -+ outb(unsigned long port, unsigned char val)
468 -+ {
469 -+ _outb(val, port);
470 -+ }
471 -+
472 -+ static __inline__ void
473 -+ outw(unsigned long port, unsigned short val)
474 -+ {
475 -+ _outw(val, port);
476 -+ }
477 -+
478 -+ static __inline__ void
479 -+ outl(unsigned long port, unsigned int val)
480 -+ {
481 -+ _outl(val, port);
482 -+ }
483 -+
484 -+ static __inline__ unsigned int
485 -+ inb(unsigned long port)
486 -+ {
487 -+ return _inb(port);
488 -+ }
489 -+
490 -+ static __inline__ unsigned int
491 -+ inw(unsigned long port)
492 -+ {
493 -+ return _inw(port);
494 -+ }
495 -+
496 -+ static __inline__ unsigned int
497 -+ inl(unsigned long port)
498 -+ {
499 -+ return _inl(port);
500 -+ }
501 -+
502 - #elif (defined(linux) || defined(__FreeBSD__)) && defined(__amd64__)
503 -
504 - #include <inttypes.h>
505
506 diff --git a/x11-base/xorg-server/files/xorg-server-1.17-cve-2015-0255-0.patch b/x11-base/xorg-server/files/xorg-server-1.17-cve-2015-0255-0.patch
507 deleted file mode 100644
508 index 9540e31694e..00000000000
509 --- a/x11-base/xorg-server/files/xorg-server-1.17-cve-2015-0255-0.patch
510 +++ /dev/null
511 @@ -1,102 +0,0 @@
512 -From 81c90dc8f0aae3b65730409b1b615b5fa7280ebd Mon Sep 17 00:00:00 2001
513 -From: Olivier Fourdan <ofourdan@××××××.com>
514 -Date: Fri, 16 Jan 2015 20:08:59 +0100
515 -Subject: xkb: Don't swap XkbSetGeometry data in the input buffer
516 -
517 -The XkbSetGeometry request embeds data which needs to be swapped when the
518 -server and the client have different endianess.
519 -
520 -_XkbSetGeometry() invokes functions that swap these data directly in the
521 -input buffer.
522 -
523 -However, ProcXkbSetGeometry() may call _XkbSetGeometry() more than once
524 -(if there is more than one keyboard), thus causing on swapped clients the
525 -same data to be swapped twice in memory, further causing a server crash
526 -because the strings lengths on the second time are way off bounds.
527 -
528 -To allow _XkbSetGeometry() to run reliably more than once with swapped
529 -clients, do not swap the data in the buffer, use variables instead.
530 -
531 -Signed-off-by: Olivier Fourdan <ofourdan@××××××.com>
532 -Signed-off-by: Peter Hutterer <peter.hutterer@×××××.net>
533 -
534 -diff --git a/xkb/xkb.c b/xkb/xkb.c
535 -index 15c7f34..b9a3ac4 100644
536 ---- a/xkb/xkb.c
537 -+++ b/xkb/xkb.c
538 -@@ -4961,14 +4961,13 @@ static char *
539 - _GetCountedString(char **wire_inout, Bool swap)
540 - {
541 - char *wire, *str;
542 -- CARD16 len, *plen;
543 -+ CARD16 len;
544 -
545 - wire = *wire_inout;
546 -- plen = (CARD16 *) wire;
547 -+ len = *(CARD16 *) wire;
548 - if (swap) {
549 -- swaps(plen);
550 -+ swaps(&len);
551 - }
552 -- len = *plen;
553 - str = malloc(len + 1);
554 - if (str) {
555 - memcpy(str, &wire[2], len);
556 -@@ -4985,25 +4984,28 @@ _CheckSetDoodad(char **wire_inout,
557 - {
558 - char *wire;
559 - xkbDoodadWireDesc *dWire;
560 -+ xkbAnyDoodadWireDesc any;
561 -+ xkbTextDoodadWireDesc text;
562 - XkbDoodadPtr doodad;
563 -
564 - dWire = (xkbDoodadWireDesc *) (*wire_inout);
565 -+ any = dWire->any;
566 - wire = (char *) &dWire[1];
567 - if (client->swapped) {
568 -- swapl(&dWire->any.name);
569 -- swaps(&dWire->any.top);
570 -- swaps(&dWire->any.left);
571 -- swaps(&dWire->any.angle);
572 -+ swapl(&any.name);
573 -+ swaps(&any.top);
574 -+ swaps(&any.left);
575 -+ swaps(&any.angle);
576 - }
577 - CHK_ATOM_ONLY(dWire->any.name);
578 -- doodad = XkbAddGeomDoodad(geom, section, dWire->any.name);
579 -+ doodad = XkbAddGeomDoodad(geom, section, any.name);
580 - if (!doodad)
581 - return BadAlloc;
582 - doodad->any.type = dWire->any.type;
583 - doodad->any.priority = dWire->any.priority;
584 -- doodad->any.top = dWire->any.top;
585 -- doodad->any.left = dWire->any.left;
586 -- doodad->any.angle = dWire->any.angle;
587 -+ doodad->any.top = any.top;
588 -+ doodad->any.left = any.left;
589 -+ doodad->any.angle = any.angle;
590 - switch (doodad->any.type) {
591 - case XkbOutlineDoodad:
592 - case XkbSolidDoodad:
593 -@@ -5026,12 +5028,13 @@ _CheckSetDoodad(char **wire_inout,
594 - dWire->text.colorNdx);
595 - return BadMatch;
596 - }
597 -+ text = dWire->text;
598 - if (client->swapped) {
599 -- swaps(&dWire->text.width);
600 -- swaps(&dWire->text.height);
601 -+ swaps(&text.width);
602 -+ swaps(&text.height);
603 - }
604 -- doodad->text.width = dWire->text.width;
605 -- doodad->text.height = dWire->text.height;
606 -+ doodad->text.width = text.width;
607 -+ doodad->text.height = text.height;
608 - doodad->text.color_ndx = dWire->text.colorNdx;
609 - doodad->text.text = _GetCountedString(&wire, client->swapped);
610 - doodad->text.font = _GetCountedString(&wire, client->swapped);
611 ---
612 -cgit v0.10.2
613 -
614
615 diff --git a/x11-base/xorg-server/files/xorg-server-1.17-cve-2015-0255-1.patch b/x11-base/xorg-server/files/xorg-server-1.17-cve-2015-0255-1.patch
616 deleted file mode 100644
617 index be131c2762f..00000000000
618 --- a/x11-base/xorg-server/files/xorg-server-1.17-cve-2015-0255-1.patch
619 +++ /dev/null
620 @@ -1,138 +0,0 @@
621 -From 20079c36cf7d377938ca5478447d8b9045cb7d43 Mon Sep 17 00:00:00 2001
622 -From: Olivier Fourdan <ofourdan@××××××.com>
623 -Date: Fri, 16 Jan 2015 08:44:45 +0100
624 -Subject: xkb: Check strings length against request size
625 -
626 -Ensure that the given strings length in an XkbSetGeometry request remain
627 -within the limits of the size of the request.
628 -
629 -Signed-off-by: Olivier Fourdan <ofourdan@××××××.com>
630 -Reviewed-by: Peter Hutterer <peter.hutterer@×××××.net>
631 -Signed-off-by: Peter Hutterer <peter.hutterer@×××××.net>
632 -
633 -diff --git a/xkb/xkb.c b/xkb/xkb.c
634 -index b9a3ac4..f3988f9 100644
635 ---- a/xkb/xkb.c
636 -+++ b/xkb/xkb.c
637 -@@ -4957,25 +4957,29 @@ ProcXkbGetGeometry(ClientPtr client)
638 -
639 - /***====================================================================***/
640 -
641 --static char *
642 --_GetCountedString(char **wire_inout, Bool swap)
643 -+static Status
644 -+_GetCountedString(char **wire_inout, ClientPtr client, char **str)
645 - {
646 -- char *wire, *str;
647 -+ char *wire, *next;
648 - CARD16 len;
649 -
650 - wire = *wire_inout;
651 - len = *(CARD16 *) wire;
652 -- if (swap) {
653 -+ if (client->swapped) {
654 - swaps(&len);
655 - }
656 -- str = malloc(len + 1);
657 -- if (str) {
658 -- memcpy(str, &wire[2], len);
659 -- str[len] = '\0';
660 -- }
661 -- wire += XkbPaddedSize(len + 2);
662 -- *wire_inout = wire;
663 -- return str;
664 -+ next = wire + XkbPaddedSize(len + 2);
665 -+ /* Check we're still within the size of the request */
666 -+ if (client->req_len <
667 -+ bytes_to_int32(next - (char *) client->requestBuffer))
668 -+ return BadValue;
669 -+ *str = malloc(len + 1);
670 -+ if (!*str)
671 -+ return BadAlloc;
672 -+ memcpy(*str, &wire[2], len);
673 -+ *(*str + len) = '\0';
674 -+ *wire_inout = next;
675 -+ return Success;
676 - }
677 -
678 - static Status
679 -@@ -4987,6 +4991,7 @@ _CheckSetDoodad(char **wire_inout,
680 - xkbAnyDoodadWireDesc any;
681 - xkbTextDoodadWireDesc text;
682 - XkbDoodadPtr doodad;
683 -+ Status status;
684 -
685 - dWire = (xkbDoodadWireDesc *) (*wire_inout);
686 - any = dWire->any;
687 -@@ -5036,8 +5041,14 @@ _CheckSetDoodad(char **wire_inout,
688 - doodad->text.width = text.width;
689 - doodad->text.height = text.height;
690 - doodad->text.color_ndx = dWire->text.colorNdx;
691 -- doodad->text.text = _GetCountedString(&wire, client->swapped);
692 -- doodad->text.font = _GetCountedString(&wire, client->swapped);
693 -+ status = _GetCountedString(&wire, client, &doodad->text.text);
694 -+ if (status != Success)
695 -+ return status;
696 -+ status = _GetCountedString(&wire, client, &doodad->text.font);
697 -+ if (status != Success) {
698 -+ free (doodad->text.text);
699 -+ return status;
700 -+ }
701 - break;
702 - case XkbIndicatorDoodad:
703 - if (dWire->indicator.onColorNdx >= geom->num_colors) {
704 -@@ -5072,7 +5083,9 @@ _CheckSetDoodad(char **wire_inout,
705 - }
706 - doodad->logo.color_ndx = dWire->logo.colorNdx;
707 - doodad->logo.shape_ndx = dWire->logo.shapeNdx;
708 -- doodad->logo.logo_name = _GetCountedString(&wire, client->swapped);
709 -+ status = _GetCountedString(&wire, client, &doodad->logo.logo_name);
710 -+ if (status != Success)
711 -+ return status;
712 - break;
713 - default:
714 - client->errorValue = _XkbErrCode2(0x4F, dWire->any.type);
715 -@@ -5304,18 +5317,20 @@ _CheckSetGeom(XkbGeometryPtr geom, xkbSetGeometryReq * req, ClientPtr client)
716 - char *wire;
717 -
718 - wire = (char *) &req[1];
719 -- geom->label_font = _GetCountedString(&wire, client->swapped);
720 -+ status = _GetCountedString(&wire, client, &geom->label_font);
721 -+ if (status != Success)
722 -+ return status;
723 -
724 - for (i = 0; i < req->nProperties; i++) {
725 - char *name, *val;
726 -
727 -- name = _GetCountedString(&wire, client->swapped);
728 -- if (!name)
729 -- return BadAlloc;
730 -- val = _GetCountedString(&wire, client->swapped);
731 -- if (!val) {
732 -+ status = _GetCountedString(&wire, client, &name);
733 -+ if (status != Success)
734 -+ return status;
735 -+ status = _GetCountedString(&wire, client, &val);
736 -+ if (status != Success) {
737 - free(name);
738 -- return BadAlloc;
739 -+ return status;
740 - }
741 - if (XkbAddGeomProperty(geom, name, val) == NULL) {
742 - free(name);
743 -@@ -5349,9 +5364,9 @@ _CheckSetGeom(XkbGeometryPtr geom, xkbSetGeometryReq * req, ClientPtr client)
744 - for (i = 0; i < req->nColors; i++) {
745 - char *name;
746 -
747 -- name = _GetCountedString(&wire, client->swapped);
748 -- if (!name)
749 -- return BadAlloc;
750 -+ status = _GetCountedString(&wire, client, &name);
751 -+ if (status != Success)
752 -+ return status;
753 - if (!XkbAddGeomColor(geom, name, geom->num_colors)) {
754 - free(name);
755 - return BadAlloc;
756 ---
757 -cgit v0.10.2
758 -
759
760 diff --git a/x11-base/xorg-server/files/xorg-server-1.17.2-uninit-clientsWritable.patch b/x11-base/xorg-server/files/xorg-server-1.17.2-uninit-clientsWritable.patch
761 deleted file mode 100644
762 index 681819619eb..00000000000
763 --- a/x11-base/xorg-server/files/xorg-server-1.17.2-uninit-clientsWritable.patch
764 +++ /dev/null
765 @@ -1,65 +0,0 @@
766 -https://bugs.gentoo.org/show_bug.cgi?id=555776
767 -
768 -From 7cc7ffd25d5e50b54cb942d07d4cb160f20ff9c5 Mon Sep 17 00:00:00 2001
769 -From: Martin Peres <martin.peres@×××××××××××.com>
770 -Date: Fri, 17 Jul 2015 17:21:26 +0300
771 -Subject: [PATCH] os: make sure the clientsWritable fd_set is initialized
772 - before use
773 -
774 -In WaitForSomething(), the fd_set clientsWritable may be used unitialized when
775 -the boolean AnyClientsWriteBlocked is set in the WakeupHandler(). This leads to
776 -a crash in FlushAllOutput() after x11proto's commit
777 -2c94cdb453bc641246cc8b9a876da9799bee1ce7.
778 -
779 -The problem did not manifest before because both the XFD_SIZE and the maximum
780 -number of clients were set to 256. As the connectionTranslation table was
781 -initalized for the 256 clients to 0, the test on the index not being 0 was
782 -aborting before dereferencing the client #0.
783 -
784 -As of commit 2c94cdb453bc641246cc8b9a876da9799bee1ce7 in x11proto, the XFD_SIZE
785 -got bumped to 512. This lead the OutputPending fd_set to have any fd above 256
786 -to be uninitialized which in turns lead to reading an index after the end of
787 -the ConnectionTranslation table. This index would then be used to find the
788 -client corresponding to the fd marked as pending writes and would also result
789 -to an out-of-bound access which would usually be the fatal one.
790 -
791 -Fix this by zeroing the clientsWritable fd_set at the beginning of
792 -WaitForSomething(). In this case, the bottom part of the loop, which would
793 -indirectly call FlushAllOutput, will not do any work but the next call to
794 -select will result in the execution of the right codepath. This is exactly what
795 -we want because we need to know the writable clients before handling them. In
796 -the end, it also makes sure that the fds above MaxClient are initialized,
797 -preventing the crash in FlushAllOutput().
798 -
799 -Thanks to everyone involved in tracking this one down!
800 -
801 -Reported-by: Karol Herbst <freedesktop@×××××××××××.de>
802 -Reported-by: Tobias Klausmann <tobias.klausmann@×××××××.de>
803 -Signed-off-by: Martin Peres <martin.peres@×××××××××××.com>
804 -Tested-by: Martin Peres <martin.peres@×××××××××××.com>
805 -Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91316
806 -Cc: Ilia Mirkin <imirkin@××××××××.edu>
807 -Cc: Martin Peres <martin.peres@×××××××××××.com>
808 -Cc: Olivier Fourdan <ofourdan@××××××.com
809 -Cc: Adam Jackson <ajax@××××××.com>
810 -Cc: Alan Coopersmith <alan.coopersmith@××××××.com
811 -Cc: Chris Wilson <chris@×××××××××××××××.uk>
812 ----
813 - os/WaitFor.c | 1 +
814 - 1 file changed, 1 insertion(+)
815 -
816 -diff --git a/os/WaitFor.c b/os/WaitFor.c
817 -index 431f1a6..993c14e 100644
818 ---- a/os/WaitFor.c
819 -+++ b/os/WaitFor.c
820 -@@ -158,6 +158,7 @@ WaitForSomething(int *pClientsReady)
821 - Bool someReady = FALSE;
822 -
823 - FD_ZERO(&clientsReadable);
824 -+ FD_ZERO(&clientsWritable);
825 -
826 - if (nready)
827 - SmartScheduleStopTimer();
828 ---
829 -2.4.5
830 -
831
832 diff --git a/x11-base/xorg-server/files/xorg-server-1.18-sysmacros.patch b/x11-base/xorg-server/files/xorg-server-1.18-sysmacros.patch
833 deleted file mode 100644
834 index 5a3dea36612..00000000000
835 --- a/x11-base/xorg-server/files/xorg-server-1.18-sysmacros.patch
836 +++ /dev/null
837 @@ -1,59 +0,0 @@
838 -From 1df7e4f5c1090631ff6584176f7d1370d08bc15e Mon Sep 17 00:00:00 2001
839 -From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <petr.pisar@×××××.cz>
840 -Date: Sat, 16 Apr 2016 13:04:59 +0200
841 -Subject: [PATCH] Include sys/sysmacros.h for major(3)
842 -MIME-Version: 1.0
843 -Content-Type: text/plain; charset=UTF-8
844 -Content-Transfer-Encoding: 8bit
845 -
846 -GNU major(3) manual page prescribes <sys/types.h>, but that does not work with
847 -sys-libs/glibc-2.23-r1.
848 -
849 -https://bugs.gentoo.org/show_bug.cgi?id=580044
850 -Signed-off-by: Petr Písař <petr.pisar@×××××.cz>
851 ----
852 - config/udev.c | 1 +
853 - hw/xfree86/common/xf86Xinput.c | 2 ++
854 - hw/xfree86/os-support/linux/lnx_init.c | 1 +
855 - 3 files changed, 4 insertions(+)
856 -
857 -diff --git a/config/udev.c b/config/udev.c
858 -index 28c2658..62908f4 100644
859 ---- a/config/udev.c
860 -+++ b/config/udev.c
861 -@@ -30,6 +30,7 @@
862 - #include <libudev.h>
863 - #include <ctype.h>
864 - #include <unistd.h>
865 -+#include <sys/sysmacros.h>
866 -
867 - #include "input.h"
868 - #include "inputstr.h"
869 -diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
870 -index c56a2b9..d33c165 100644
871 ---- a/hw/xfree86/common/xf86Xinput.c
872 -+++ b/hw/xfree86/common/xf86Xinput.c
873 -@@ -86,6 +86,8 @@
874 - #include <unistd.h>
875 - #ifdef HAVE_SYS_MKDEV_H
876 - #include <sys/mkdev.h> /* for major() & minor() on Solaris */
877 -+#else
878 -+#include <sys/sysmacros.h>
879 - #endif
880 -
881 - #include "mi.h"
882 -diff --git a/hw/xfree86/os-support/linux/lnx_init.c b/hw/xfree86/os-support/linux/lnx_init.c
883 -index 1ed213c..6caf531 100644
884 ---- a/hw/xfree86/os-support/linux/lnx_init.c
885 -+++ b/hw/xfree86/os-support/linux/lnx_init.c
886 -@@ -38,6 +38,7 @@
887 - #include "xf86_OSlib.h"
888 -
889 - #include <sys/stat.h>
890 -+#include <sys/sysmacros.h>
891 -
892 - #ifndef K_OFF
893 - #define K_OFF 0x4
894 ---
895 -2.8.1
896 -
897
898 diff --git a/x11-base/xorg-server/xorg-server-1.12.4-r7.ebuild b/x11-base/xorg-server/xorg-server-1.12.4-r7.ebuild
899 deleted file mode 100644
900 index 3948af492ea..00000000000
901 --- a/x11-base/xorg-server/xorg-server-1.12.4-r7.ebuild
902 +++ /dev/null
903 @@ -1,225 +0,0 @@
904 -# Copyright 1999-2017 Gentoo Foundation
905 -# Distributed under the terms of the GNU General Public License v2
906 -
907 -EAPI=5
908 -
909 -XORG_DOC=doc
910 -inherit xorg-2 multilib versionator flag-o-matic
911 -EGIT_REPO_URI="https://anongit.freedesktop.org/git/xorg/xserver.git"
912 -
913 -DESCRIPTION="X.Org X servers"
914 -SLOT="0/${PV}"
915 -KEYWORDS="~alpha amd64 arm ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
916 -
917 -SRC_URI="${SRC_URI} mirror://gentoo/${PN}-1.12-cve-2014-8091..8103.patches.tar.xz"
918 -
919 -IUSE_SERVERS="dmx kdrive xnest xorg xvfb"
920 -IUSE="${IUSE_SERVERS} ipv6 minimal nptl selinux tslib +udev"
921 -
922 -RDEPEND=">=app-eselect/eselect-opengl-1.3.0
923 - dev-libs/openssl:0=
924 - >=x11-apps/iceauth-1.0.2
925 - >=x11-apps/rgb-1.0.3
926 - >=x11-apps/xauth-1.0.3
927 - x11-apps/xkbcomp
928 - >=x11-libs/libpciaccess-0.12.901
929 - >=x11-libs/libXau-1.0.4
930 - >=x11-libs/libXdmcp-1.0.2
931 - >=x11-libs/libXfont-1.4.2
932 - <x11-libs/libXfont-1.5.0
933 - >=x11-libs/libxkbfile-1.0.4
934 - >=x11-libs/pixman-0.21.8
935 - >=x11-libs/xtrans-1.2.2
936 - >=x11-misc/xbitmaps-1.0.1
937 - >=x11-misc/xkeyboard-config-2.4.1-r3
938 - dmx? (
939 - x11-libs/libXt
940 - >=x11-libs/libdmx-1.0.99.1
941 - >=x11-libs/libX11-1.1.5
942 - >=x11-libs/libXaw-1.0.4
943 - >=x11-libs/libXext-1.0.99.4
944 - >=x11-libs/libXfixes-5.0
945 - >=x11-libs/libXi-1.2.99.1
946 - >=x11-libs/libXmu-1.0.3
947 - x11-libs/libXrender
948 - >=x11-libs/libXres-1.0.3
949 - >=x11-libs/libXtst-1.0.99.2
950 - )
951 - kdrive? (
952 - >=x11-libs/libXext-1.0.5
953 - x11-libs/libXv
954 - )
955 - !minimal? (
956 - >=x11-libs/libX11-1.1.5
957 - >=x11-libs/libXext-1.0.5
958 - >=media-libs/mesa-10.3.7-r2[nptl=]
959 - )
960 - tslib? ( >=x11-libs/tslib-1.0 )
961 - udev? ( >=virtual/udev-150 )
962 - >=x11-apps/xinit-1.3
963 - selinux? ( sec-policy/selinux-xserver )"
964 -
965 -DEPEND="${RDEPEND}
966 - sys-devel/flex
967 - >=x11-proto/bigreqsproto-1.1.0
968 - >=x11-proto/compositeproto-0.4
969 - >=x11-proto/damageproto-1.1
970 - >=x11-proto/fixesproto-5.0
971 - >=x11-proto/fontsproto-2.0.2
972 - <x11-proto/fontsproto-2.1.3
973 - >=x11-proto/glproto-1.4.17-r1
974 - >=x11-proto/inputproto-2.1.99.3
975 - >=x11-proto/kbproto-1.0.3
976 - >=x11-proto/randrproto-1.2.99.3
977 - >=x11-proto/recordproto-1.13.99.1
978 - >=x11-proto/renderproto-0.11
979 - >=x11-proto/resourceproto-1.0.2
980 - >=x11-proto/scrnsaverproto-1.1
981 - >=x11-proto/trapproto-3.4.3
982 - >=x11-proto/videoproto-2.2.2
983 - >=x11-proto/xcmiscproto-1.2.0
984 - >=x11-proto/xextproto-7.1.99
985 - >=x11-proto/xf86dgaproto-2.0.99.1
986 - >=x11-proto/xf86rushproto-1.1.2
987 - >=x11-proto/xf86vidmodeproto-2.2.99.1
988 - >=x11-proto/xineramaproto-1.1.3
989 - >=x11-proto/xproto-7.0.22
990 - dmx? (
991 - >=x11-proto/dmxproto-2.2.99.1
992 - doc? (
993 - || (
994 - www-client/links
995 - www-client/lynx
996 - www-client/w3m
997 - )
998 - )
999 - )
1000 - !minimal? (
1001 - >=x11-proto/xf86driproto-2.1.0
1002 - >=x11-proto/dri2proto-2.6
1003 - >=x11-libs/libdrm-2.4.20
1004 - )"
1005 -
1006 -PDEPEND="
1007 - xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )"
1008 -
1009 -REQUIRED_USE="!minimal? (
1010 - || ( ${IUSE_SERVERS} )
1011 - )"
1012 -
1013 -# Security patches taken from Debian from their 1.12 package
1014 -UPSTREAMED_PATCHES=(
1015 - "${WORKDIR}"/patches/${PN}-1.12-cve-2014-8091..8103.patch
1016 -)
1017 -
1018 -PATCHES=(
1019 - "${UPSTREAMED_PATCHES[@]}"
1020 - "${FILESDIR}"/${PN}-1.12-disable-acpi.patch
1021 - "${FILESDIR}"/${PN}-1.12-cve-2013-1940.patch
1022 - "${FILESDIR}"/${PN}-1.12-cve-2013-4396.patch
1023 - "${FILESDIR}"/${PN}-1.17-cve-2015-0255-0.patch
1024 - "${FILESDIR}"/${PN}-1.17-cve-2015-0255-1.patch
1025 - "${FILESDIR}"/${PN}-1.12-cve-2015-3418.patch
1026 - "${FILESDIR}"/${PN}-1.17.2-uninit-clientsWritable.patch
1027 -)
1028 -
1029 -pkg_pretend() {
1030 - # older gcc is not supported
1031 - [[ "${MERGE_TYPE}" != "binary" && $(gcc-major-version) -lt 4 ]] && \
1032 - die "Sorry, but gcc earlier than 4.0 wont work for xorg-server."
1033 -}
1034 -
1035 -src_configure() {
1036 - # localstatedir is used for the log location; we need to override the default
1037 - # from ebuild.sh
1038 - # sysconfdir is used for the xorg.conf location; same applies
1039 - # --enable-install-setuid needed because sparcs default off
1040 - # NOTE: fop is used for doc generating ; and i have no idea if gentoo
1041 - # package it somewhere
1042 - XORG_CONFIGURE_OPTIONS=(
1043 - $(use_enable ipv6)
1044 - $(use_enable dmx)
1045 - $(use_enable kdrive)
1046 - $(use_enable kdrive kdrive-kbd)
1047 - $(use_enable kdrive kdrive-mouse)
1048 - $(use_enable kdrive kdrive-evdev)
1049 - $(use_enable tslib)
1050 - $(use_enable !minimal record)
1051 - $(use_enable !minimal xfree86-utils)
1052 - $(use_enable !minimal install-libxf86config)
1053 - $(use_enable !minimal dri)
1054 - $(use_enable !minimal dri2)
1055 - $(use_enable !minimal glx)
1056 - $(use_enable xnest)
1057 - $(use_enable xorg)
1058 - $(use_enable xvfb)
1059 - $(use_enable nptl glx-tls)
1060 - $(use_enable udev config-udev)
1061 - $(use_with doc doxygen)
1062 - $(use_with doc xmlto)
1063 - --sysconfdir=/etc/X11
1064 - --localstatedir=/var
1065 - --enable-install-setuid
1066 - --with-fontrootdir=/usr/share/fonts
1067 - --with-xkb-output=/var/lib/xkb
1068 - --disable-config-hal
1069 - --without-dtrace
1070 - --without-fop
1071 - --with-os-vendor=Gentoo
1072 - )
1073 -
1074 - xorg-2_src_configure
1075 -}
1076 -
1077 -src_install() {
1078 - xorg-2_src_install
1079 -
1080 - server_based_install
1081 -
1082 - if ! use minimal && use xorg; then
1083 - # Install xorg.conf.example into docs
1084 - dodoc "${AUTOTOOLS_BUILD_DIR}"/hw/xfree86/xorg.conf.example
1085 - fi
1086 -
1087 - newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup
1088 - newinitd "${FILESDIR}"/xdm.initd-9 xdm
1089 - newconfd "${FILESDIR}"/xdm.confd-4 xdm
1090 -
1091 - # install the @x11-module-rebuild set for Portage
1092 - insinto /usr/share/portage/config/sets
1093 - newins "${FILESDIR}"/xorg-sets.conf xorg.conf
1094 -}
1095 -
1096 -pkg_postinst() {
1097 - # sets up libGL and DRI2 symlinks if needed (ie, on a fresh install)
1098 - eselect opengl set xorg-x11 --use-old
1099 -
1100 - if [[ ${PV} != 9999 && $(get_version_component_range 2 ${REPLACING_VERSIONS}) != $(get_version_component_range 2 ${PV}) ]]; then
1101 - ewarn "You must rebuild all drivers if upgrading from <xorg-server-$(get_version_component_range 1-2)"
1102 - ewarn "because the ABI changed. If you cannot start X because"
1103 - ewarn "of module version mismatch errors, this is your problem."
1104 -
1105 - echo
1106 - ewarn "You can generate a list of all installed packages in the x11-drivers"
1107 - ewarn "category using this command:"
1108 - ewarn " emerge portage-utils; qlist -I -C x11-drivers/"
1109 - ewarn "or using sets from portage-2.2:"
1110 - ewarn " emerge @x11-module-rebuild"
1111 - fi
1112 -}
1113 -
1114 -pkg_postrm() {
1115 - # Get rid of module dir to ensure opengl-update works properly
1116 - if [[ -z ${REPLACED_BY_VERSION} && -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then
1117 - rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules
1118 - fi
1119 -}
1120 -
1121 -server_based_install() {
1122 - if ! use xorg; then
1123 - rm "${D}"/usr/share/man/man1/Xserver.1x \
1124 - "${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \
1125 - "${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
1126 - "${D}"/usr/share/man/man1/Xserver.1x
1127 - fi
1128 -}
1129
1130 diff --git a/x11-base/xorg-server/xorg-server-1.15.2-r4.ebuild b/x11-base/xorg-server/xorg-server-1.15.2-r4.ebuild
1131 deleted file mode 100644
1132 index 9ba84cb401c..00000000000
1133 --- a/x11-base/xorg-server/xorg-server-1.15.2-r4.ebuild
1134 +++ /dev/null
1135 @@ -1,233 +0,0 @@
1136 -# Copyright 1999-2017 Gentoo Foundation
1137 -# Distributed under the terms of the GNU General Public License v2
1138 -
1139 -EAPI=5
1140 -
1141 -XORG_EAUTORECONF=yes
1142 -XORG_DOC=doc
1143 -inherit xorg-2 multilib versionator flag-o-matic
1144 -EGIT_REPO_URI="https://anongit.freedesktop.org/git/xorg/xserver.git"
1145 -
1146 -DESCRIPTION="X.Org X servers"
1147 -SLOT="0/${PV}"
1148 -KEYWORDS="~alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
1149 -
1150 -SRC_URI="${SRC_URI} mirror://gentoo/${PN}-1.16-cve-2014-8091..8103.patches.tar.xz"
1151 -
1152 -IUSE_SERVERS="dmx kdrive xnest xorg xvfb"
1153 -IUSE="${IUSE_SERVERS} ipv6 minimal nptl selinux +suid tslib +udev unwind"
1154 -
1155 -CDEPEND=">=app-eselect/eselect-opengl-1.3.0
1156 - dev-libs/openssl:0=
1157 - >=x11-apps/iceauth-1.0.2
1158 - >=x11-apps/rgb-1.0.3
1159 - >=x11-apps/xauth-1.0.3
1160 - x11-apps/xkbcomp
1161 - >=x11-libs/libdrm-2.4.20
1162 - >=x11-libs/libpciaccess-0.12.901
1163 - >=x11-libs/libXau-1.0.4
1164 - >=x11-libs/libXdmcp-1.0.2
1165 - >=x11-libs/libXfont-1.4.2
1166 - <x11-libs/libXfont-1.5.0
1167 - >=x11-libs/libxkbfile-1.0.4
1168 - >=x11-libs/libxshmfence-1.1
1169 - >=x11-libs/pixman-0.27.2
1170 - >=x11-libs/xtrans-1.3.2
1171 - >=x11-misc/xbitmaps-1.0.1
1172 - >=x11-misc/xkeyboard-config-2.4.1-r3
1173 - dmx? (
1174 - x11-libs/libXt
1175 - >=x11-libs/libdmx-1.0.99.1
1176 - >=x11-libs/libX11-1.1.5
1177 - >=x11-libs/libXaw-1.0.4
1178 - >=x11-libs/libXext-1.0.99.4
1179 - >=x11-libs/libXfixes-5.0
1180 - >=x11-libs/libXi-1.2.99.1
1181 - >=x11-libs/libXmu-1.0.3
1182 - x11-libs/libXrender
1183 - >=x11-libs/libXres-1.0.3
1184 - >=x11-libs/libXtst-1.0.99.2
1185 - )
1186 - kdrive? (
1187 - >=x11-libs/libXext-1.0.5
1188 - x11-libs/libXv
1189 - )
1190 - !minimal? (
1191 - >=x11-libs/libX11-1.1.5
1192 - >=x11-libs/libXext-1.0.5
1193 - >=media-libs/mesa-10.3.7-r2[nptl=]
1194 - )
1195 - tslib? ( >=x11-libs/tslib-1.0 )
1196 - udev? ( >=virtual/udev-150 )
1197 - unwind? ( sys-libs/libunwind )
1198 - >=x11-apps/xinit-1.3"
1199 -
1200 -DEPEND="${CDEPEND}
1201 - sys-devel/flex
1202 - >=x11-proto/bigreqsproto-1.1.0
1203 - >=x11-proto/compositeproto-0.4
1204 - >=x11-proto/damageproto-1.1
1205 - >=x11-proto/fixesproto-5.0
1206 - >=x11-proto/fontsproto-2.0.2
1207 - <x11-proto/fontsproto-2.1.3
1208 - >=x11-proto/glproto-1.4.17-r1
1209 - >=x11-proto/inputproto-2.2.99.1
1210 - >=x11-proto/kbproto-1.0.3
1211 - >=x11-proto/randrproto-1.4.0
1212 - >=x11-proto/recordproto-1.13.99.1
1213 - >=x11-proto/renderproto-0.11
1214 - >=x11-proto/resourceproto-1.2.0
1215 - >=x11-proto/scrnsaverproto-1.1
1216 - >=x11-proto/trapproto-3.4.3
1217 - >=x11-proto/videoproto-2.2.2
1218 - >=x11-proto/xcmiscproto-1.2.0
1219 - >=x11-proto/xextproto-7.2.99.901
1220 - >=x11-proto/xf86dgaproto-2.0.99.1
1221 - >=x11-proto/xf86rushproto-1.1.2
1222 - >=x11-proto/xf86vidmodeproto-2.2.99.1
1223 - >=x11-proto/xineramaproto-1.1.3
1224 - >=x11-proto/xproto-7.0.22
1225 - >=x11-proto/presentproto-1.0
1226 - >=x11-proto/dri3proto-1.0
1227 - dmx? (
1228 - >=x11-proto/dmxproto-2.2.99.1
1229 - doc? (
1230 - || (
1231 - www-client/links
1232 - www-client/lynx
1233 - www-client/w3m
1234 - )
1235 - )
1236 - )
1237 - !minimal? (
1238 - >=x11-proto/xf86driproto-2.1.0
1239 - >=x11-proto/dri2proto-2.8
1240 - )"
1241 -
1242 -RDEPEND="${CDEPEND}
1243 - selinux? ( sec-policy/selinux-xserver )
1244 -"
1245 -
1246 -PDEPEND="
1247 - xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )"
1248 -
1249 -REQUIRED_USE="!minimal? (
1250 - || ( ${IUSE_SERVERS} )
1251 - )"
1252 -
1253 -pkg_pretend() {
1254 - # older gcc is not supported
1255 - [[ "${MERGE_TYPE}" != "binary" && $(gcc-major-version) -lt 4 ]] && \
1256 - die "Sorry, but gcc earlier than 4.0 will not work for xorg-server."
1257 -}
1258 -
1259 -src_prepare() {
1260 - UPSTREAMED_PATCHES=(
1261 - "${WORKDIR}"/patches/*.patch
1262 - )
1263 - PATCHES=(
1264 - "${UPSTREAMED_PATCHES[@]}"
1265 - "${FILESDIR}"/${PN}-1.12-ia64-fix_inx_outx.patch
1266 - "${FILESDIR}"/${PN}-1.12-unloadsubmodule.patch
1267 - "${FILESDIR}"/${PN}-1.17-cve-2015-0255-0.patch
1268 - "${FILESDIR}"/${PN}-1.17-cve-2015-0255-1.patch
1269 - "${FILESDIR}"/${PN}-1.17.2-uninit-clientsWritable.patch
1270 - )
1271 - xorg-2_src_prepare
1272 -}
1273 -
1274 -src_configure() {
1275 - # localstatedir is used for the log location; we need to override the default
1276 - # from ebuild.sh
1277 - # sysconfdir is used for the xorg.conf location; same applies
1278 - # NOTE: fop is used for doc generating ; and i have no idea if gentoo
1279 - # package it somewhere
1280 - XORG_CONFIGURE_OPTIONS=(
1281 - $(use_enable ipv6)
1282 - $(use_enable dmx)
1283 - $(use_enable kdrive)
1284 - $(use_enable kdrive kdrive-kbd)
1285 - $(use_enable kdrive kdrive-mouse)
1286 - $(use_enable kdrive kdrive-evdev)
1287 - $(use_enable suid install-setuid)
1288 - $(use_enable tslib)
1289 - $(use_enable unwind libunwind)
1290 - $(use_enable !minimal record)
1291 - $(use_enable !minimal xfree86-utils)
1292 - $(use_enable !minimal install-libxf86config)
1293 - $(use_enable !minimal dri)
1294 - $(use_enable !minimal dri2)
1295 - $(use_enable !minimal glx)
1296 - $(use_enable xnest)
1297 - $(use_enable xorg)
1298 - $(use_enable xvfb)
1299 - $(use_enable nptl glx-tls)
1300 - $(use_enable udev config-udev)
1301 - $(use_with doc doxygen)
1302 - $(use_with doc xmlto)
1303 - --enable-libdrm
1304 - --sysconfdir="${EPREFIX}"/etc/X11
1305 - --localstatedir="${EPREFIX}"/var
1306 - --with-fontrootdir="${EPREFIX}"/usr/share/fonts
1307 - --with-xkb-output="${EPREFIX}"/var/lib/xkb
1308 - --disable-config-hal
1309 - --disable-linux-acpi
1310 - --without-dtrace
1311 - --without-fop
1312 - --with-os-vendor=Gentoo
1313 - --with-sha1=libcrypto
1314 - )
1315 -
1316 - xorg-2_src_configure
1317 -}
1318 -
1319 -src_install() {
1320 - xorg-2_src_install
1321 -
1322 - server_based_install
1323 -
1324 - if ! use minimal && use xorg; then
1325 - # Install xorg.conf.example into docs
1326 - dodoc "${AUTOTOOLS_BUILD_DIR}"/hw/xfree86/xorg.conf.example
1327 - fi
1328 -
1329 - newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup
1330 - newinitd "${FILESDIR}"/xdm.initd-11 xdm
1331 - newconfd "${FILESDIR}"/xdm.confd-4 xdm
1332 -
1333 - # install the @x11-module-rebuild set for Portage
1334 - insinto /usr/share/portage/config/sets
1335 - newins "${FILESDIR}"/xorg-sets.conf xorg.conf
1336 -}
1337 -
1338 -pkg_postinst() {
1339 - # sets up libGL and DRI2 symlinks if needed (ie, on a fresh install)
1340 - eselect opengl set xorg-x11 --use-old
1341 -
1342 - if [[ ${PV} != 9999 && $(get_version_component_range 2 ${REPLACING_VERSIONS}) != $(get_version_component_range 2 ${PV}) ]]; then
1343 - ewarn "You must rebuild all drivers if upgrading from <xorg-server-$(get_version_component_range 1-2)"
1344 - ewarn "because the ABI changed. If you cannot start X because"
1345 - ewarn "of module version mismatch errors, this is your problem."
1346 -
1347 - echo
1348 - ewarn "You can rebuild all installed packages in the x11-drivers"
1349 - ewarn "category using this command:"
1350 - ewarn " emerge @x11-module-rebuild"
1351 - fi
1352 -}
1353 -
1354 -pkg_postrm() {
1355 - # Get rid of module dir to ensure opengl-update works properly
1356 - if [[ -z ${REPLACED_BY_VERSION} && -e ${EROOT}/usr/$(get_libdir)/xorg/modules ]]; then
1357 - rm -rf "${EROOT}"/usr/$(get_libdir)/xorg/modules
1358 - fi
1359 -}
1360 -
1361 -server_based_install() {
1362 - if ! use xorg; then
1363 - rm "${ED}"/usr/share/man/man1/Xserver.1x \
1364 - "${ED}"/usr/$(get_libdir)/xserver/SecurityPolicy \
1365 - "${ED}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
1366 - "${ED}"/usr/share/man/man1/Xserver.1x
1367 - fi
1368 -}