From 467342d0e84cce34f618590afd01eb70f31d2868 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 03 2016 06:16:28 +0000 Subject: import xorg-x11-proto-devel-7.7-13.el7 --- diff --git a/SOURCES/xproto-increase-number-of-file-descriptors.patch b/SOURCES/xproto-increase-number-of-file-descriptors.patch new file mode 100644 index 0000000..03de7a5 --- /dev/null +++ b/SOURCES/xproto-increase-number-of-file-descriptors.patch @@ -0,0 +1,83 @@ +From 2c94cdb453bc641246cc8b9a876da9799bee1ce7 Mon Sep 17 00:00:00 2001 +From: Olivier Fourdan +Date: Fri, 29 May 2015 18:16:34 +0200 +Subject: [PATCH 1/2] Increase the number of file descriptors + +To allow up to 512 clients, the number of file descriptors being +monitored need to be increased accordingly. + +Signed-off-by: Adam Jackson +Signed-off-by: Olivier Fourdan +Reviewed-by: Alan Coopersmith +--- + Xpoll.h.in | 13 +++++++++++-- + 1 file changed, 11 insertions(+), 2 deletions(-) + +diff --git a/Xpoll.h.in b/Xpoll.h.in +index 0a05424..01be164 100644 +--- a/Xpoll.h.in ++++ b/Xpoll.h.in +@@ -67,7 +67,7 @@ typedef long fd_mask; + # endif + #endif + +-#define XFD_SETSIZE 256 ++#define XFD_SETSIZE 512 + + #ifndef FD_SETSIZE + #define FD_SETSIZE XFD_SETSIZE +@@ -127,7 +127,16 @@ typedef struct fd_set { + (howmany(FD_SETSIZE, NFDBITS) > 4 && (__XFDS_BITS(p, 4))) || \ + (howmany(FD_SETSIZE, NFDBITS) > 5 && (__XFDS_BITS(p, 5))) || \ + (howmany(FD_SETSIZE, NFDBITS) > 6 && (__XFDS_BITS(p, 6))) || \ +- (howmany(FD_SETSIZE, NFDBITS) > 7 && (__XFDS_BITS(p, 7)))) ++ (howmany(FD_SETSIZE, NFDBITS) > 7 && (__XFDS_BITS(p, 7))) || \ ++ (howmany(FD_SETSIZE, NFDBITS) > 8 && (__XFDS_BITS(p, 8))) || \ ++ (howmany(FD_SETSIZE, NFDBITS) > 9 && (__XFDS_BITS(p, 9))) || \ ++ (howmany(FD_SETSIZE, NFDBITS) > 10 && (__XFDS_BITS(p, 10))) || \ ++ (howmany(FD_SETSIZE, NFDBITS) > 11 && (__XFDS_BITS(p, 11))) || \ ++ (howmany(FD_SETSIZE, NFDBITS) > 12 && (__XFDS_BITS(p, 12))) || \ ++ (howmany(FD_SETSIZE, NFDBITS) > 13 && (__XFDS_BITS(p, 13))) || \ ++ (howmany(FD_SETSIZE, NFDBITS) > 14 && (__XFDS_BITS(p, 14))) || \ ++ (howmany(FD_SETSIZE, NFDBITS) > 15 && (__XFDS_BITS(p, 15)))) ++ + + #define XFD_COPYSET(src,dst) { \ + int __i__; \ +-- +2.5.0 + +From edc04f87c74abacb57782dc947f81a2810a72537 Mon Sep 17 00:00:00 2001 +From: Olivier Fourdan +Date: Wed, 26 Aug 2015 10:11:11 +0200 +Subject: [PATCH 2/2] Raise the number of FD on WIN32 as well + +Commit 2c94cdb raised the number of file descriptors from 256 to 512 +but only for non-WIN32 platforms. + +The definition of XFD_SETSIZE being duplicated, we need to do the same +for WIN32 builds as well otherwise a newer X server trying to +use more than 256 clients would fail on that platform. + +Signed-off-by: Olivier Fourdan +Reviewed-by: Jon TURNEY +--- + Xpoll.h.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Xpoll.h.in b/Xpoll.h.in +index 01be164..2878591 100644 +--- a/Xpoll.h.in ++++ b/Xpoll.h.in +@@ -165,7 +165,7 @@ typedef struct fd_set { + + #else /* WIN32 */ + +-#define XFD_SETSIZE 256 ++#define XFD_SETSIZE 512 + #ifndef FD_SETSIZE + #define FD_SETSIZE XFD_SETSIZE + #endif +-- +2.5.0 + diff --git a/SPECS/xorg-x11-proto-devel.spec b/SPECS/xorg-x11-proto-devel.spec index fff7a29..c57ee35 100644 --- a/SPECS/xorg-x11-proto-devel.spec +++ b/SPECS/xorg-x11-proto-devel.spec @@ -7,7 +7,7 @@ Summary: X.Org X11 Protocol headers Name: xorg-x11-proto-devel Version: 7.7 -Release: 12%{?dist} +Release: 13%{?dist} License: MIT Group: Development/System URL: http://www.x.org @@ -47,6 +47,7 @@ Source40: make-git-snapshot.sh Patch1: presentproto-0001-Force-Window-and-Pixmap-to-be-CARD32-on-the-wire.patch Patch2: randrproto-0001-Add-a-GUID-property.patch +Patch3: xproto-increase-number-of-file-descriptors.patch BuildRequires: pkgconfig BuildRequires: xorg-x11-util-macros >= 1.0.2-1 @@ -73,6 +74,9 @@ pushd randrproto-* %patch2 -p1 popd +pushd xproto-* +%patch3 -p1 +popd %build @@ -287,6 +291,9 @@ rm -f $RPM_BUILD_ROOT%{_docdir}/*/*.{html,svg} %{_datadir}/pkgconfig/xproxymngproto.pc %changelog +* Tue Mar 22 2016 Olivier Fourdan - 7.7-13 +- xproto: Increase number of file descriptors to 512 + * Thu Jun 12 2014 Hans de Goede - 7.7-12 - inputproto-2.3.1