Re: [UPDATE] xcb-proto and libxcb 1.14

2020-05-14 Thread Theo Buehler
On Sun, Apr 05, 2020 at 12:10:08PM +0200, Matthieu Herrb wrote:
> On Sun, Mar 22, 2020 at 08:13:11PM +0100, Matthieu Herrb wrote:
> > Hi,
> > 
> > the patch below updates XCB (xcb-proto and libxcb) to version 1.14.0.
> > 
> > I've been running this on amd64 for a while. Comments ? ok ?
> > 
> > Note that it goes together with an update to the x11/py-xcbgen port
> > that I'm sending to ports@ at the same time.
> 
> Ping

I had sent an ok off-list before that ping and have been running this on
my main laptop ever since. Once the ports tree unlocks, I think this
should land.

ok tb (including py-xcbgen)

> 
> -- 
> Matthieu Herrb
> 



Re: [UPDATE] xcb-proto and libxcb 1.14

2020-04-05 Thread Matthieu Herrb
On Sun, Mar 22, 2020 at 08:13:11PM +0100, Matthieu Herrb wrote:
> Hi,
> 
> the patch below updates XCB (xcb-proto and libxcb) to version 1.14.0.
> 
> I've been running this on amd64 for a while. Comments ? ok ?
> 
> Note that it goes together with an update to the x11/py-xcbgen port
> that I'm sending to ports@ at the same time.

Ping

-- 
Matthieu Herrb



[UPDATE] xcb-proto and libxcb 1.14

2020-03-22 Thread Matthieu Herrb
Hi,

the patch below updates XCB (xcb-proto and libxcb) to version 1.14.0.

I've been running this on amd64 for a while. Comments ? ok ?

Note that it goes together with an update to the x11/py-xcbgen port
that I'm sending to ports@ at the same time.

Index: dist/libxcb/ChangeLog
===
RCS file: /cvs/OpenBSD/xenocara/dist/libxcb/ChangeLog,v
retrieving revision 1.3
diff -u -p -u -r1.3 ChangeLog
--- dist/libxcb/ChangeLog   4 Oct 2018 20:17:48 -   1.3
+++ dist/libxcb/ChangeLog   8 Mar 2020 17:55:27 -
@@ -1,3 +1,141 @@
+commit 4b40b44cb6d088b6ffa2fb5cf3ad8f12da588cef
+Author: Matt Turner 
+Date:   Sat Feb 22 12:10:53 2020 -0800
+
+Release libxcb 1.14
+
+Signed-off-by: Matt Turner 
+
+commit 78c492deaa7ae3aad0b0eeb4b126bb291cc637a7
+Author: Matt Turner 
+Date:   Sat Feb 22 12:19:58 2020 -0800
+
+Build xz tarballs instead of bzip2
+
+Signed-off-by: Matt Turner 
+
+commit 8f7e4c4e9fc6ee6b5b5498a7d8af79150be0d26a
+Author: Matt Turner 
+Date:   Sat Feb 22 11:24:11 2020 -0800
+
+configure.ac: Depend on pthread-stubs only on not-Linux
+
+Signed-off-by: Matt Turner 
+
+commit f9f4b00aad69ff36e81c63089b1b16660eaca900
+Author: Sam Varshavchik 
+Date:   Sat Jan 4 10:43:59 2020 -0500
+
+Implement xcb_total_read() and xcb_total_written().
+
+Returns raw byte counts that have been read or written to the
+xcb_connection_t.
+
+I found it very useful when developing a high level widget toolkit, to
+track down inefficient/sub-optimum code that generates a lot of X
+protocol traffic.
+
+Signed-off-by: Sam Varshavchik 
+
+commit 59e271e15bcecf0c461cd5c6c59081fb86b96c22
+Author: A. Wilcox 
+Date:   Mon Dec 23 21:49:29 2019 -0600
+
+tests: Support Check 0.13.0 API
+
+[mattst88]: Keep compatibility  with old API via preprocessor
+
+Fixes: #43
+
+commit 21324989b7e121c008a2c4fdf98547541cbf7b83
+Author: Martin Dørum 
+Date:   Sun May 19 16:05:08 2019 +0200
+
+Handle EINTR from recvmsg in _xcb_in_read
+
+I have a GTK application which occasionally crashes with an "interrupted
+system call" g_message from gdk. After a lot of debugging, I've found
+that the call to recvmsg in _xcb_in_read occasionally fails with EINTR,
+and instead of retrying the system call, xcb would just shut down the
+connection.
+
+This change makes _xcb_in_read treat EINTR the same as it would treat
+EAGAIN; it returns 1 and libX11 ends up calling xcb_poll_for_event
+again (from what I have understood).
+
+I have spoken with a few people who think recvmsg failing with EINTR in
+this case shouldn't ever happen, and I don't know enough to agree or
+disagree with that. In case anyone wants to dig further and try to
+figure out why the recvmsg call sometimes fails with EINTR, here's the
+backtrace from inside of _xcb_in_read where that happened:
+
+Thread 1 "beanbar" hit Breakpoint 1, _xcb_in_read 
(c=c@entry=0x55ecbe4aba80) at xcb_in.c:1059
+1059fprintf(stderr, "Hello World am %s:%i, errno is %s\n", 
__FILE__, __LINE__, strerror(errno));
+(gdb) bt
+0  0x7fa48fa48639 in _xcb_in_read (c=c@entry=0x55ecbe4aba80) at 
xcb_in.c:1059
+1  0x7fa48fa489d8 in poll_for_next_event (c=0x55ecbe4aba80, 
queued=queued@entry=0) at xcb_in.c:352
+2  0x7fa48fa48a3d in poll_for_next_event (queued=0, c=) 
at xcb_in.c:722
+3  0x7fa48fa48a3d in xcb_poll_for_event (c=) at 
xcb_in.c:722
+4  0x7fa4908d1b7e in poll_for_event (dpy=dpy@entry=0x55ecbe4a9730, 
queued_only=queued_only@entry=0) at xcb_io.c:245
+5  0x7fa4908d1cf0 in poll_for_response (dpy=dpy@entry=0x55ecbe4a9730) 
at xcb_io.c:303
+6  0x7fa4908d1fed in _XEventsQueued (mode=2, dpy=0x55ecbe4a9730) at 
xcb_io.c:363
+7  0x7fa4908d1fed in _XEventsQueued (dpy=dpy@entry=0x55ecbe4a9730, 
mode=mode@entry=2) at xcb_io.c:344
+8  0x7fa4908c3d47 in XPending (dpy=0x55ecbe4a9730) at Pending.c:55
+9  0x7fa493cadbc7 in  () at /usr/lib/libgdk-3.so.0
+10 0x7fa49234d08a in g_main_context_prepare () at 
/usr/lib/libglib-2.0.so.0
+11 0x7fa49234d6e6 in  () at /usr/lib/libglib-2.0.so.0
+12 0x7fa49234d8ae in g_main_context_iteration () at 
/usr/lib/libglib-2.0.so.0
+13 0x7fa4938b920e in g_application_run () at /usr/lib/libgio-2.0.so.0
+14 0x55ecbc820af4 in main (argc=1, argv=0x7ffd06238098) at 
src/main.c:190
+
+Signed-off-by: Martin Dørum 
+
+commit 656c08c5429a3cf53e7abd7fc56cd3c3a79c0f64
+Author: Jon Turney 
+Date:   Sun Sep 14 00:05:27 2014 +0100
+
+Include time.h before using time()
+
+Signed-off-by: Jon Turney 
+
+commit be1745c8eb00defcb31d336ccc142de056e92bd8
+Author: Alan Coopersmith 
+Date:   Sun Feb 17 12:06:10 2019 -0800
+
+Add README.md to EXTRA_DIST
+
+Signed-off-by: Alan Coopersmith 
+
+commit