Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/xorg]: xsrc/external/mit/libxcb/dist initial import of libxcb-1.14



details:   https://anonhg.NetBSD.org/xsrc/rev/fca80bb2e91e
branches:  xorg
changeset: 10602:fca80bb2e91e
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Nov 01 11:07:13 2020 +0000

description:
initial import of libxcb-1.14

diffstat:

 external/mit/libxcb/dist/ChangeLog              |   138 +
 external/mit/libxcb/dist/Makefile.am            |     1 +
 external/mit/libxcb/dist/Makefile.in            |    10 +-
 external/mit/libxcb/dist/NEWS                   |     7 +
 external/mit/libxcb/dist/README.md              |    41 +
 external/mit/libxcb/dist/aclocal.m4             |    51 +-
 external/mit/libxcb/dist/build-aux/config.guess |   372 ++-
 external/mit/libxcb/dist/build-aux/config.sub   |  2695 +++++++++++-----------
 external/mit/libxcb/dist/build-aux/ltmain.sh    |   670 ++---
 external/mit/libxcb/dist/configure              |   201 +-
 external/mit/libxcb/dist/configure.ac           |    14 +-
 external/mit/libxcb/dist/doc/Makefile.in        |     1 -
 external/mit/libxcb/dist/m4/libtool.m4          |    68 +-
 external/mit/libxcb/dist/man/Makefile.in        |     1 -
 external/mit/libxcb/dist/src/Makefile.in        |     1 -
 external/mit/libxcb/dist/src/c_client.py        |     2 +-
 external/mit/libxcb/dist/src/xcb.h              |    29 +
 external/mit/libxcb/dist/src/xcb_auth.c         |     1 +
 external/mit/libxcb/dist/src/xcb_conn.c         |    28 +
 external/mit/libxcb/dist/src/xcb_in.c           |     3 +-
 external/mit/libxcb/dist/src/xcbint.h           |     2 +
 external/mit/libxcb/dist/tests/Makefile.in      |     1 -
 external/mit/libxcb/dist/tests/check_all.c      |     9 +
 external/mit/libxcb/dist/tests/check_suites.h   |     4 +
 24 files changed, 2362 insertions(+), 1988 deletions(-)

diffs (truncated from 6124 to 300 lines):

diff -r c611fbc8a974 -r fca80bb2e91e external/mit/libxcb/dist/ChangeLog
--- a/external/mit/libxcb/dist/ChangeLog        Sun Nov 01 10:23:18 2020 +0000
+++ b/external/mit/libxcb/dist/ChangeLog        Sun Nov 01 11:07:13 2020 +0000
@@ -1,3 +1,141 @@
+commit 4b40b44cb6d088b6ffa2fb5cf3ad8f12da588cef
+Author: Matt Turner <mattst88%gmail.com@localhost>
+Date:   Sat Feb 22 12:10:53 2020 -0800
+
+    Release libxcb 1.14
+    
+    Signed-off-by: Matt Turner <mattst88%gmail.com@localhost>
+
+commit 78c492deaa7ae3aad0b0eeb4b126bb291cc637a7
+Author: Matt Turner <mattst88%gmail.com@localhost>
+Date:   Sat Feb 22 12:19:58 2020 -0800
+
+    Build xz tarballs instead of bzip2
+    
+    Signed-off-by: Matt Turner <mattst88%gmail.com@localhost>
+
+commit 8f7e4c4e9fc6ee6b5b5498a7d8af79150be0d26a
+Author: Matt Turner <mattst88%gmail.com@localhost>
+Date:   Sat Feb 22 11:24:11 2020 -0800
+
+    configure.ac: Depend on pthread-stubs only on not-Linux
+    
+    Signed-off-by: Matt Turner <mattst88%gmail.com@localhost>
+
+commit f9f4b00aad69ff36e81c63089b1b16660eaca900
+Author: Sam Varshavchik <mrsam%courier-mta.com@localhost>
+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 <mrsam%courier-mta.com@localhost>
+
+commit 59e271e15bcecf0c461cd5c6c59081fb86b96c22
+Author: A. Wilcox <AWilcox%Wilcox-Tech.com@localhost>
+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 <martid0311%gmail.com@localhost>
+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
+    1059                fprintf(stderr, "Hello World am %s:%i, errno is %s\n", __FILE__, __LINE__, strerror(errno));
+    (gdb) bt
+    0  0x00007fa48fa48639 in _xcb_in_read (c=c@entry=0x55ecbe4aba80) at xcb_in.c:1059
+    1  0x00007fa48fa489d8 in poll_for_next_event (c=0x55ecbe4aba80, queued=queued@entry=0) at xcb_in.c:352
+    2  0x00007fa48fa48a3d in poll_for_next_event (queued=0, c=<optimized out>) at xcb_in.c:722
+    3  0x00007fa48fa48a3d in xcb_poll_for_event (c=<optimized out>) at xcb_in.c:722
+    4  0x00007fa4908d1b7e in poll_for_event (dpy=dpy@entry=0x55ecbe4a9730, queued_only=queued_only@entry=0) at xcb_io.c:245
+    5  0x00007fa4908d1cf0 in poll_for_response (dpy=dpy@entry=0x55ecbe4a9730) at xcb_io.c:303
+    6  0x00007fa4908d1fed in _XEventsQueued (mode=2, dpy=0x55ecbe4a9730) at xcb_io.c:363
+    7  0x00007fa4908d1fed in _XEventsQueued (dpy=dpy@entry=0x55ecbe4a9730, mode=mode@entry=2) at xcb_io.c:344
+    8  0x00007fa4908c3d47 in XPending (dpy=0x55ecbe4a9730) at Pending.c:55
+    9  0x00007fa493cadbc7 in  () at /usr/lib/libgdk-3.so.0
+    10 0x00007fa49234d08a in g_main_context_prepare () at /usr/lib/libglib-2.0.so.0
+    11 0x00007fa49234d6e6 in  () at /usr/lib/libglib-2.0.so.0
+    12 0x00007fa49234d8ae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
+    13 0x00007fa4938b920e in g_application_run () at /usr/lib/libgio-2.0.so.0
+    14 0x000055ecbc820af4 in main (argc=1, argv=0x7ffd06238098) at src/main.c:190
+    
+    Signed-off-by: Martin Dørum <martid0311%gmail.com@localhost>
+
+commit 656c08c5429a3cf53e7abd7fc56cd3c3a79c0f64
+Author: Jon Turney <jon.turney%dronecode.org.uk@localhost>
+Date:   Sun Sep 14 00:05:27 2014 +0100
+
+    Include time.h before using time()
+    
+    Signed-off-by: Jon Turney <jon.turney%dronecode.org.uk@localhost>
+
+commit be1745c8eb00defcb31d336ccc142de056e92bd8
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sun Feb 17 12:06:10 2019 -0800
+
+    Add README.md to EXTRA_DIST
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 58f37377c851960cbf21fac1caf38ab1e66c7d6c
+Author: Eduardo Sánchez Muñoz <esm%eduardosm.net@localhost>
+Date:   Sun Feb 17 13:33:12 2019 +0100
+
+    Add "ge.*" to src/.gitignore
+
+commit 7bac366953005233fc3c8736e6f1cd5798e65e28
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Feb 16 13:41:28 2019 -0800
+
+    Update README for gitlab migration
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 02ff3eadf48e6affe3b59ef688312b4dab538e8b
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Feb 16 13:20:45 2019 -0800
+
+    Update configure.ac bug URL for gitlab migration
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 542befe40a3a7c6a5d1dcb7f38fb9eb261b96b24
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Mon Jan 7 14:42:53 2019 -0800
+
+    c_client: fix "adress" typo
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
 commit 8287ebd7b752c33b0cabc4982606fe4831106f7e
 Author: Uli Schlachter <psychon%znc.in@localhost>
 Date:   Thu Sep 27 14:04:17 2018 +0200
diff -r c611fbc8a974 -r fca80bb2e91e external/mit/libxcb/dist/Makefile.am
--- a/external/mit/libxcb/dist/Makefile.am      Sun Nov 01 10:23:18 2020 +0000
+++ b/external/mit/libxcb/dist/Makefile.am      Sun Nov 01 11:07:13 2020 +0000
@@ -99,6 +99,7 @@
 tools/api_conv.pl \
 tools/constants \
 autogen.sh \
+README.md \
 $(TESTS)
 
 MAINTAINERCLEANFILES = ChangeLog INSTALL
diff -r c611fbc8a974 -r fca80bb2e91e external/mit/libxcb/dist/Makefile.in
--- a/external/mit/libxcb/dist/Makefile.in      Sun Nov 01 10:23:18 2020 +0000
+++ b/external/mit/libxcb/dist/Makefile.in      Sun Nov 01 11:07:13 2020 +0000
@@ -420,7 +420,7 @@
        $(top_srcdir)/build-aux/ltmain.sh \
        $(top_srcdir)/build-aux/missing \
        $(top_srcdir)/build-aux/test-driver COPYING ChangeLog INSTALL \
-       NEWS README build-aux/compile build-aux/config.guess \
+       NEWS build-aux/compile build-aux/config.guess \
        build-aux/config.sub build-aux/install-sh build-aux/ltmain.sh \
        build-aux/missing
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
@@ -458,9 +458,9 @@
     dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
   done; \
   reldir="$$dir2"
-DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
+DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.xz
 GZIP_ENV = --best
-DIST_TARGETS = dist-bzip2 dist-gzip
+DIST_TARGETS = dist-xz dist-gzip
 distuninstallcheck_listfiles = find . -type f -print
 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
   | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
@@ -623,7 +623,6 @@
 psdir = @psdir@
 pyexecdir = @pyexecdir@
 pythondir = @pythondir@
-runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
@@ -655,6 +654,7 @@
 tools/api_conv.pl \
 tools/constants \
 autogen.sh \
+README.md \
 $(TESTS)
 
 MAINTAINERCLEANFILES = ChangeLog INSTALL
@@ -1124,6 +1124,7 @@
 dist-gzip: distdir
        tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
        $(am__post_remove_distdir)
+
 dist-bzip2: distdir
        tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
        $(am__post_remove_distdir)
@@ -1131,7 +1132,6 @@
 dist-lzip: distdir
        tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
        $(am__post_remove_distdir)
-
 dist-xz: distdir
        tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
        $(am__post_remove_distdir)
diff -r c611fbc8a974 -r fca80bb2e91e external/mit/libxcb/dist/NEWS
--- a/external/mit/libxcb/dist/NEWS     Sun Nov 01 10:23:18 2020 +0000
+++ b/external/mit/libxcb/dist/NEWS     Sun Nov 01 11:07:13 2020 +0000
@@ -1,3 +1,10 @@
+Release 1.14 (2020-02-22)
+=========================
+* Add xcb_total_read() and xcb_total_written() API
+* Support check >= 0.13 API (for make check)
+* Bug fix to handle EINTR from recvmsg
+* Only require pthread-stubs on non-Linux platforms
+
 Release 1.13.1 (2018-09-27)
 ===========================
 * Don't flag extra reply in xcb_take_socket
diff -r c611fbc8a974 -r fca80bb2e91e external/mit/libxcb/dist/README.md
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/libxcb/dist/README.md        Sun Nov 01 11:07:13 2020 +0000
@@ -0,0 +1,41 @@
+About libxcb
+============
+
+libxcb provides an interface to the X Window System protocol, which
+replaces the traditional Xlib interface. It has several advantages over
+Xlib, including:
+- size: small, simple library, and lower memory footprint
+- latency hiding: batch several requests and wait for the replies later
+- direct protocol access: interface and protocol correspond exactly
+- proven thread support: transparently access XCB from multiple threads
+- easy extension implementation: interfaces auto-generated from XML-XCB
+
+Xlib also uses XCB as a transport layer, allowing software to make
+requests and receive responses with both, which eases porting to XCB.
+However, client programs, libraries, and toolkits will gain the most
+benefit from a native XCB port.
+
+More information about xcb is available from our website:
+
+  https://xcb.freedesktop.org/
+
+Please report any issues you find to the freedesktop.org bug tracker at:
+
+  https://gitlab.freedesktop.org/xorg/lib/libxcb/issues
+
+Discussion about XCB occurs on the XCB mailing list:
+
+  https://lists.freedesktop.org/mailman/listinfo/xcb
+
+You can obtain the latest development versions of XCB using GIT from
+the libxcb code repository at:
+
+  https://gitlab.freedesktop.org/xorg/lib/libxcb
+
+  For anonymous checkouts, use:
+
+    git clone https://gitlab.freedesktop.org/xorg/lib/libxcb.git
+
+  For developers, use:
+
+    git clone git%gitlab.freedesktop.org@localhost:xorg/lib/libxcb.git
diff -r c611fbc8a974 -r fca80bb2e91e external/mit/libxcb/dist/aclocal.m4
--- a/external/mit/libxcb/dist/aclocal.m4       Sun Nov 01 10:23:18 2020 +0000
+++ b/external/mit/libxcb/dist/aclocal.m4       Sun Nov 01 11:07:13 2020 +0000
@@ -366,7 +366,7 @@
 
 dnl xorg-macros.m4.  Generated from xorg-macros.m4.in xorgversion.m4 by configure.
 dnl
-dnl Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
+dnl Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
 dnl
 dnl Permission is hereby granted, free of charge, to any person obtaining a
 dnl copy of this software and associated documentation files (the "Software"),
@@ -403,7 +403,7 @@
 # See the "minimum version" comment for each macro you use to see what
 # version you require.
 m4_defun([XORG_MACROS_VERSION],[
-m4_define([vers_have], [1.19.0])
+m4_define([vers_have], [1.19.2])
 m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
 m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
 m4_if(m4_cmp(maj_have, maj_needed), 0,,
@@ -480,6 +480,17 @@
 AC_REQUIRE([AC_CANONICAL_HOST])
 AC_REQUIRE([AC_PROG_SED])
 
+case $host_os in
+    solaris*)
+        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
+        # check for a man page file found in later versions that use



Home | Main Index | Thread Index | Old Index