From 2119367742cc770d341271f278bb144557bc288e Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 28 Mar 2009 18:03:22 +0000 Subject: [PATCH] Clifford Wolf: Disabled the (in-)famous libxcb xcb_xlib_lock asserts diff --git a/package/xorg/libxcb/lock_asserts_disable.patch b/package/xorg/libxcb/lock_asserts_disable.patch new file mode 100644 index 0000000..8c4067c [2009012021110716771] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@9406 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- .../xorg/libxcb/lock_asserts_disable.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/xorg/libxcb/lock_asserts_disable.patch diff --git a/package/xorg/libxcb/lock_asserts_disable.patch b/package/xorg/libxcb/lock_asserts_disable.patch new file mode 100644 index 000000000..8c4067c43 --- /dev/null +++ b/package/xorg/libxcb/lock_asserts_disable.patch @@ -0,0 +1,28 @@ + +There is a lot of discussion online about this asserts. + +Fact is that they prohibit a large number of Java and Qt4 apps from starting +up and that 99% of this apps are working fine when this asserts are disabled.. + + - Clifford + +--- ./src/xcb_xlib.c.orig 2009-01-20 20:56:25.000000000 +0100 ++++ ./src/xcb_xlib.c 2009-01-20 20:57:10.000000000 +0100 +@@ -38,7 +38,7 @@ + void xcb_xlib_lock(xcb_connection_t *c) + { + _xcb_lock_io(c); +- assert(!c->xlib.lock); ++ // assert(!c->xlib.lock); + c->xlib.lock = 1; + c->xlib.thread = pthread_self(); + _xcb_unlock_io(c); +@@ -47,7 +47,7 @@ + void xcb_xlib_unlock(xcb_connection_t *c) + { + _xcb_lock_io(c); +- assert(c->xlib.lock); ++ // assert(c->xlib.lock); + assert(pthread_equal(c->xlib.thread, pthread_self())); + c->xlib.lock = 0; + pthread_cond_broadcast(&c->xlib.cond);