CVS commit: src/external/mit/xorg/lib/libxcb/xinput

2023-09-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Sep  5 04:16:56 UTC 2023

Modified Files:
src/external/mit/xorg/lib/libxcb/xinput: Makefile

Log Message:
turn off -Walloc-size-larger-than for xinput.c

on 32-bit platforms, an expression claims the input can exceed 2G,
more than malloc() can take.  i'm pretty sure that the maximum is
actually quite a lot less (seems to be max 255*12 plus <100.)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/lib/libxcb/xinput/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/libxcb/xinput/Makefile
diff -u src/external/mit/xorg/lib/libxcb/xinput/Makefile:1.4 src/external/mit/xorg/lib/libxcb/xinput/Makefile:1.5
--- src/external/mit/xorg/lib/libxcb/xinput/Makefile:1.4	Sun Mar  5 09:27:53 2017
+++ src/external/mit/xorg/lib/libxcb/xinput/Makefile	Tue Sep  5 04:16:56 2023
@@ -1,5 +1,11 @@
-#	$NetBSD: Makefile,v 1.4 2017/03/05 09:27:53 mrg Exp $
+#	$NetBSD: Makefile,v 1.5 2023/09/05 04:16:56 mrg Exp $
 
 XCBEXT=	xinput
 
+# XXXGCC12:  avoids
+# xinput.c:491:19: error: argument 1 value '4294967294' exceeds maximum object size 2147483647 [-Werror=alloc-size-larger-than=]
+#  491 | xcb_out = malloc(xcb_buffer_len);
+# it also does not check the return value of this malloc().
+COPTS.xinput.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 12:? -Wno-alloc-size-larger-than :}
+
 .include "../xcb.mk"



CVS commit: src/external/mit/xorg/lib/libxcb/xinput

2023-09-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Sep  5 04:16:56 UTC 2023

Modified Files:
src/external/mit/xorg/lib/libxcb/xinput: Makefile

Log Message:
turn off -Walloc-size-larger-than for xinput.c

on 32-bit platforms, an expression claims the input can exceed 2G,
more than malloc() can take.  i'm pretty sure that the maximum is
actually quite a lot less (seems to be max 255*12 plus <100.)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/lib/libxcb/xinput/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/mit/xorg/lib/libxcb/libxcb

2022-07-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Jul 12 02:53:11 UTC 2022

Modified Files:
src/external/mit/xorg/lib/libxcb/libxcb: Makefile

Log Message:
don't build newly obsolete xf86vidmode.h.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/mit/xorg/lib/libxcb/libxcb/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/libxcb/libxcb/Makefile
diff -u src/external/mit/xorg/lib/libxcb/libxcb/Makefile:1.11 src/external/mit/xorg/lib/libxcb/libxcb/Makefile:1.12
--- src/external/mit/xorg/lib/libxcb/libxcb/Makefile:1.11	Sat May 14 11:26:23 2022
+++ src/external/mit/xorg/lib/libxcb/libxcb/Makefile	Tue Jul 12 02:53:11 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.11 2022/05/14 11:26:23 rillig Exp $
+#	$NetBSD: Makefile,v 1.12 2022/07/12 02:53:11 mrg Exp $
 
 .include 
 
@@ -68,7 +68,6 @@ INCS=	\
 	xcb.h \
 	xcbext.h \
 	xf86dri.h \
-	xf86vidmode.h \
 	xfixes.h \
 	xinerama.h \
 	xinput.h \



CVS commit: src/external/mit/xorg/lib/libxcb/libxcb

2022-07-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Jul 12 02:53:11 UTC 2022

Modified Files:
src/external/mit/xorg/lib/libxcb/libxcb: Makefile

Log Message:
don't build newly obsolete xf86vidmode.h.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/mit/xorg/lib/libxcb/libxcb/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/mit/xorg/lib/libxcb/files

2022-07-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Jul 12 02:44:09 UTC 2022

Modified Files:
src/external/mit/xorg/lib/libxcb/files: config.h damage.h dri3.c dri3.h
glx.c randr.h record.h render.h screensaver.c screensaver.h shm.h
xfixes.c xfixes.h xinput.c xinput.h xproto.h xv.h
Removed Files:
src/external/mit/xorg/lib/libxcb/files: xf86vidmode.c xf86vidmode.h

Log Message:
updates for generated files.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/mit/xorg/lib/libxcb/files/config.h \
src/external/mit/xorg/lib/libxcb/files/damage.h \
src/external/mit/xorg/lib/libxcb/files/glx.c \
src/external/mit/xorg/lib/libxcb/files/render.h \
src/external/mit/xorg/lib/libxcb/files/screensaver.c \
src/external/mit/xorg/lib/libxcb/files/screensaver.h \
src/external/mit/xorg/lib/libxcb/files/shm.h \
src/external/mit/xorg/lib/libxcb/files/xfixes.c \
src/external/mit/xorg/lib/libxcb/files/xfixes.h \
src/external/mit/xorg/lib/libxcb/files/xproto.h \
src/external/mit/xorg/lib/libxcb/files/xv.h
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/lib/libxcb/files/dri3.c \
src/external/mit/xorg/lib/libxcb/files/dri3.h \
src/external/mit/xorg/lib/libxcb/files/record.h
cvs rdiff -u -r1.6 -r1.7 src/external/mit/xorg/lib/libxcb/files/randr.h \
src/external/mit/xorg/lib/libxcb/files/xinput.c \
src/external/mit/xorg/lib/libxcb/files/xinput.h
cvs rdiff -u -r1.1 -r0 src/external/mit/xorg/lib/libxcb/files/xf86vidmode.c \
src/external/mit/xorg/lib/libxcb/files/xf86vidmode.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/libxcb/files/config.h
diff -u src/external/mit/xorg/lib/libxcb/files/config.h:1.5 src/external/mit/xorg/lib/libxcb/files/config.h:1.6
--- src/external/mit/xorg/lib/libxcb/files/config.h:1.5	Wed Mar 14 06:47:28 2018
+++ src/external/mit/xorg/lib/libxcb/files/config.h	Tue Jul 12 02:44:09 2022
@@ -28,8 +28,8 @@
 /* Define to 1 if you have the `ws2_32' library (-lws2_32). */
 /* #undef HAVE_LIBWS2_32 */
 
-/* Define to 1 if you have the  header file. */
-#define HAVE_MEMORY_H 1
+/* Define to 1 if you have the  header file. */
+/* #undef HAVE_MINIX_CONFIG_H */
 
 /* Define if your platform supports sendmsg */
 #define HAVE_SENDMSG 1
@@ -40,6 +40,9 @@
 /* Define to 1 if you have the  header file. */
 #define HAVE_STDINT_H 1
 
+/* Define to 1 if you have the  header file. */
+#define HAVE_STDIO_H 1
+
 /* Define to 1 if you have the  header file. */
 #define HAVE_STDLIB_H 1
 
@@ -61,6 +64,9 @@
 /* Define to 1 if you have the  header file. */
 #define HAVE_UNISTD_H 1
 
+/* Define to 1 if you have the  header file. */
+#define HAVE_WCHAR_H 1
+
 /* Define if not provided by  */
 /* #undef IOV_MAX */
 
@@ -71,13 +77,13 @@
 #define PACKAGE "libxcb"
 
 /* Define to the address where bug reports for this package should be sent. */
-#define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=xcb;
+#define PACKAGE_BUGREPORT "https://gitlab.freedesktop.org/xorg/lib/libxcb/issues;
 
 /* Define to the full name of this package. */
 #define PACKAGE_NAME "libxcb"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "libxcb 1.13"
+#define PACKAGE_STRING "libxcb 1.15"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "libxcb"
@@ -86,18 +92,20 @@
 #define PACKAGE_URL ""
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "1.13"
+#define PACKAGE_VERSION "1.15"
 
 /* Major version of this package */
 #define PACKAGE_VERSION_MAJOR 1
 
 /* Minor version of this package */
-#define PACKAGE_VERSION_MINOR 13
+#define PACKAGE_VERSION_MINOR 15
 
 /* Patch version of this package */
 #define PACKAGE_VERSION_PATCHLEVEL 0
 
-/* Define to 1 if you have the ANSI C header files. */
+/* Define to 1 if all of the C90 standard headers exist (not just the ones
+   required in a freestanding environment). This macro is provided for
+   backward compatibility; new code need not use it. */
 #define STDC_HEADERS 1
 
 /* poll() function is available */
@@ -107,39 +115,95 @@
 #ifndef _ALL_SOURCE
 # define _ALL_SOURCE 1
 #endif
+/* Enable general extensions on macOS.  */
+#ifndef _DARWIN_C_SOURCE
+# define _DARWIN_C_SOURCE 1
+#endif
+/* Enable general extensions on Solaris.  */
+#ifndef __EXTENSIONS__
+# define __EXTENSIONS__ 1
+#endif
 /* Enable GNU extensions on systems that have them.  */
 #ifndef _GNU_SOURCE
 # define _GNU_SOURCE 1
 #endif
-/* Enable threading extensions on Solaris.  */
+/* Enable X/Open compliant socket functions that do not require linking
+   with -lxnet on HP-UX 11.11.  */
+#ifndef _HPUX_ALT_XOPEN_SOCKET_API
+# define _HPUX_ALT_XOPEN_SOCKET_API 1
+#endif
+/* Identify the host operating system as Minix.
+   This macro does not affect the system headers' behavior.
+   A future release of Autoconf 

CVS commit: src/external/mit/xorg/lib/libxcb/files

2022-07-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Jul 12 02:44:09 UTC 2022

Modified Files:
src/external/mit/xorg/lib/libxcb/files: config.h damage.h dri3.c dri3.h
glx.c randr.h record.h render.h screensaver.c screensaver.h shm.h
xfixes.c xfixes.h xinput.c xinput.h xproto.h xv.h
Removed Files:
src/external/mit/xorg/lib/libxcb/files: xf86vidmode.c xf86vidmode.h

Log Message:
updates for generated files.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/mit/xorg/lib/libxcb/files/config.h \
src/external/mit/xorg/lib/libxcb/files/damage.h \
src/external/mit/xorg/lib/libxcb/files/glx.c \
src/external/mit/xorg/lib/libxcb/files/render.h \
src/external/mit/xorg/lib/libxcb/files/screensaver.c \
src/external/mit/xorg/lib/libxcb/files/screensaver.h \
src/external/mit/xorg/lib/libxcb/files/shm.h \
src/external/mit/xorg/lib/libxcb/files/xfixes.c \
src/external/mit/xorg/lib/libxcb/files/xfixes.h \
src/external/mit/xorg/lib/libxcb/files/xproto.h \
src/external/mit/xorg/lib/libxcb/files/xv.h
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/lib/libxcb/files/dri3.c \
src/external/mit/xorg/lib/libxcb/files/dri3.h \
src/external/mit/xorg/lib/libxcb/files/record.h
cvs rdiff -u -r1.6 -r1.7 src/external/mit/xorg/lib/libxcb/files/randr.h \
src/external/mit/xorg/lib/libxcb/files/xinput.c \
src/external/mit/xorg/lib/libxcb/files/xinput.h
cvs rdiff -u -r1.1 -r0 src/external/mit/xorg/lib/libxcb/files/xf86vidmode.c \
src/external/mit/xorg/lib/libxcb/files/xf86vidmode.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/mit/xorg/lib/libxcb/libxcb

2022-05-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat May 14 11:26:23 UTC 2022

Modified Files:
src/external/mit/xorg/lib/libxcb/libxcb: Makefile

Log Message:
libxcb: suppress lint warnings that are not useful


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/mit/xorg/lib/libxcb/libxcb/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/libxcb/libxcb/Makefile
diff -u src/external/mit/xorg/lib/libxcb/libxcb/Makefile:1.10 src/external/mit/xorg/lib/libxcb/libxcb/Makefile:1.11
--- src/external/mit/xorg/lib/libxcb/libxcb/Makefile:1.10	Thu Jun  7 18:16:55 2018
+++ src/external/mit/xorg/lib/libxcb/libxcb/Makefile	Sat May 14 11:26:23 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.10 2018/06/07 18:16:55 rjs Exp $
+#	$NetBSD: Makefile,v 1.11 2022/05/14 11:26:23 rillig Exp $
 
 .include 
 
@@ -29,6 +29,14 @@ CPPFLAGS+=	-I${X11SRCDIR.${LIB}}/../incl
 #CPPFLAGS+=	-I${.CURDIR}/../files
 CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/xcb
 
+# Mostly autogenerated code, the casts are used in pointer arithmetics as well
+# as for iovec.
+LINTFLAGS+=	-X 132	# conversion from '%s' to '%s' may lose accuracy
+LINTFLAGS+=	-X 135	# converting '%s' to '%s' may cause alignment problem
+LINTFLAGS+=	-X 247	# pointer cast from '%s' to '%s' may be troublesome
+LINTFLAGS+=	-X 275	# cast discards 'const' from type '%s'
+LINTFLAGS+=	-X 298	# conversion from '%s' to '%s' may lose accuracy, arg #%d
+
 LIBDPLIBS=\
 	Xau	${.CURDIR}/../../libXau \
 	Xdmcp	${.CURDIR}/../../libXdmcp



CVS commit: src/external/mit/xorg/lib/libxcb/libxcb

2022-05-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat May 14 11:26:23 UTC 2022

Modified Files:
src/external/mit/xorg/lib/libxcb/libxcb: Makefile

Log Message:
libxcb: suppress lint warnings that are not useful


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/mit/xorg/lib/libxcb/libxcb/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/mit/xorg/lib/libxcb

2019-05-29 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed May 29 13:15:53 UTC 2019

Modified Files:
src/external/mit/xorg/lib/libxcb: xcb.mk

Log Message:
Pick up xcb pkgconfig version automagically from the configure script
PACKAGE_VERSION.

We have failed to update it for netbsd-8 and netbsd-current, resulting
in fallout in pkgsrc, reported by Yasushi Oshima in PR xsrc/54249.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/lib/libxcb/xcb.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/libxcb/xcb.mk
diff -u src/external/mit/xorg/lib/libxcb/xcb.mk:1.4 src/external/mit/xorg/lib/libxcb/xcb.mk:1.5
--- src/external/mit/xorg/lib/libxcb/xcb.mk:1.4	Tue Feb  3 21:31:31 2015
+++ src/external/mit/xorg/lib/libxcb/xcb.mk	Wed May 29 13:15:53 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: xcb.mk,v 1.4 2015/02/03 21:31:31 jmcneill Exp $
+#	$NetBSD: xcb.mk,v 1.5 2019/05/29 13:15:53 maya Exp $
 
 # define XCBEXT to something before including this
 
@@ -17,8 +17,8 @@ LIBDPLIBS=\
 SHLIB_MAJOR?=	0
 SHLIB_MINOR?=	1
 
-PKGCONFIG=	xcb-${XCBEXT}
-PKGCONFIG_VERSION.${PKGCONFIG}= 1.10
+PKGCONFIG=		xcb-${XCBEXT}
+PKGDIST.xcb-${XCBEXT}=	${X11SRCDIR.xcb}
 
 .include 
 .include 



CVS commit: src/external/mit/xorg/lib/libxcb

2019-05-29 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed May 29 13:15:53 UTC 2019

Modified Files:
src/external/mit/xorg/lib/libxcb: xcb.mk

Log Message:
Pick up xcb pkgconfig version automagically from the configure script
PACKAGE_VERSION.

We have failed to update it for netbsd-8 and netbsd-current, resulting
in fallout in pkgsrc, reported by Yasushi Oshima in PR xsrc/54249.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/lib/libxcb/xcb.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.