1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

libx11: update to 1.6.7 and sytle cleanup

refresh Fix-hanging-issue-in-_XReply.patch

(From OE-Core rev: 7edcf4f5b54ae713ede600f6c43ae955320efe69)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Armin Kuster
2018-10-20 18:02:55 +01:00
committed by Richard Purdie
parent e1e2581ba0
commit 60dcdbf6bf
2 changed files with 19 additions and 19 deletions
@@ -17,19 +17,19 @@ https://patchwork.freedesktop.org/patch/171458/
Signed-off-by: Tatu Frisk <tatu.frisk@ge.com>
Signed-off-by: Jose Alarcon <jose.alarcon@ge.com>
[Refreshed for 1.6.7 update]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
src/xcb_io.c | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/src/xcb_io.c b/src/xcb_io.c
index 5987329..c64eb04 100644
--- a/src/xcb_io.c
+++ b/src/xcb_io.c
@@ -609,22 +609,17 @@ Status _XReply(Display *dpy, xReply *rep, int extra, Bool discard)
* letting anyone else process this sequence number, we
* need to process any events that should have come
* earlier. */
-
Index: libX11-1.6.7/src/xcb_io.c
===================================================================
--- libX11-1.6.7.orig/src/xcb_io.c
+++ libX11-1.6.7/src/xcb_io.c
@@ -620,18 +620,14 @@ Status _XReply(Display *dpy, xReply *rep
if(dpy->xcb->event_owner == XlibOwnsEventQueue)
{
xcb_generic_reply_t *event;
@@ -42,6 +42,9 @@ index 5987329..c64eb04 100644
- while(dpy->xcb->event_waiter)
- { /* need braces around ConditionWait */
- ConditionWait(dpy, dpy->xcb->event_notify);
- }
- while((event = poll_for_event(dpy, True)))
- handle_response(dpy, event, True);
+
+ /* Assume event queue is empty if another thread is blocking
+ * waiting for event. */
@@ -49,12 +52,7 @@ index 5987329..c64eb04 100644
+ {
+ while((event = poll_for_response(dpy)))
+ handle_response(dpy, event, True);
}
- while((event = poll_for_event(dpy)))
- handle_response(dpy, event, True);
+ }
}
req->reply_waiter = 0;
--
2.10.1
@@ -1,14 +1,16 @@
require libx11.inc
inherit gettext
BBCLASSEXTEND = "native nativesdk"
SRC_URI[md5sum] = "034fdd6cc5393974d88aec6f5bc96162"
SRC_URI[sha256sum] = "910e9e30efba4ad3672ca277741c2728aebffa7bc526f04dcfa74df2e52a1348"
SRC_URI += "file://disable_tests.patch \
file://Fix-hanging-issue-in-_XReply.patch \
"
inherit gettext
do_configure_append () {
sed -i -e "/X11_CFLAGS/d" ${B}/src/util/Makefile
}
SRC_URI[md5sum] = "6b0f83e851b3b469dd660f3a95ac3e42"
SRC_URI[sha256sum] = "65fe181d40ec77f45417710c6a67431814ab252d21c2e85c75dd1ed568af414f"
BBCLASSEXTEND = "native nativesdk"