Source-Changes-HG archive

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

[src/trunk]: src/external/mit/xorg updates for libxcb 1.15.



details:   https://anonhg.NetBSD.org/src/rev/8ad993fe3cc5
branches:  trunk
changeset: 368451:8ad993fe3cc5
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Jul 12 02:43:46 2022 +0000

description:
updates for libxcb 1.15.

(try to make xcbgen work here still, but still doesn't quite work.)

diffstat:

 external/mit/xorg/include/xcb-proto/Makefile        |  26 +++++++++++++++-----
 external/mit/xorg/lib/libxcb/files/Makefile         |  21 ++++++++++++----
 external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs |   3 +-
 3 files changed, 36 insertions(+), 14 deletions(-)

diffs (100 lines):

diff -r 7672b7e47db8 -r 8ad993fe3cc5 external/mit/xorg/include/xcb-proto/Makefile
--- a/external/mit/xorg/include/xcb-proto/Makefile      Tue Jul 12 02:42:40 2022 +0000
+++ b/external/mit/xorg/include/xcb-proto/Makefile      Tue Jul 12 02:43:46 2022 +0000
@@ -1,20 +1,32 @@
-#      $NetBSD: Makefile,v 1.5 2017/03/05 09:27:53 mrg Exp $
+#      $NetBSD: Makefile,v 1.6 2022/07/12 02:43:46 mrg Exp $
 
 .include <bsd.own.mk>
 
 .PATH: ${X11SRCDIR.xcb-proto} ${X11SRCDIR.xcb-proto}/src
 
-FILES= bigreq.xml composite.xml damage.xml dpms.xml dri2.xml dri3.xml \
-       ge.xml glx.xml present.xml randr.xml record.xml render.xml \
-       res.xml screensaver.xml shape.xml shm.xml sync.xml xc_misc.xml \
-       xcb.xsd xf86dri.xml xf86vidmode.xml xfixes.xml \
-       xinerama.xml xkb.xml \
-       xinput.xml xproto.xml xselinux.xml xtest.xml \
+# dbe.xml
+
+FILES= bigreq.xml \
+       composite.xml \
+       damage.xml dbe.xml dpms.xml dri2.xml dri3.xml \
+       ge.xml glx.xml \
+       present.xml \
+       randr.xml record.xml render.xml res.xml \
+       screensaver.xml shape.xml shm.xml sync.xml \
+       xc_misc.xml xcb.xsd \
+       xf86dri.xml xf86vidmode.xml \
+       xfixes.xml \
+       xinerama.xml xinput.xml \
+       xkb.xml \
+       xproto.xml \
+       xselinux.xml \
+       xtest.xml \
        xv.xml xvmc.xml
 FILESDIR=${X11SHAREDIR}/xcb
 
 PKGCONFIG=     xcb-proto
 PKGCONFIG_SED_FLAGS= \
+       -e "s,@PYTHON_PREFIX@,," \
        -e "s,@pythondir@,,"
 
 NOPROG=        # defined
diff -r 7672b7e47db8 -r 8ad993fe3cc5 external/mit/xorg/lib/libxcb/files/Makefile
--- a/external/mit/xorg/lib/libxcb/files/Makefile       Tue Jul 12 02:42:40 2022 +0000
+++ b/external/mit/xorg/lib/libxcb/files/Makefile       Tue Jul 12 02:43:46 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.2 2014/03/17 07:25:34 mrg Exp $
+#      $NetBSD: Makefile,v 1.3 2022/07/12 02:43:46 mrg Exp $
 
 # This makefile is used to generate the libxcb xml/python generated files.
 # For now it is broken, and these files were copied from a normal libxcb
@@ -7,15 +7,26 @@
 .include <bsd.own.mk>
 .include "Makefile.xmlsrcs"
 
-PYTHON?=       /usr/pkg/bin/python2.7
-PYTHONLIB?=    /usr/pkg/lib/python2.7
+PYTHON?=       /usr/pkg/bin/python3.9
+PYTHONLIB?=    /usr/pkg/lib/python3.9
 C_CLIENT?=     ${X11SRCDIR.xcb}/src/c_client.py
 
 .SUFFIXES: .c .xml
 
-# this doesn't work; needs to run in the xcb tree for some reason?
+# Set this to a r/w location if using r/o sources.
+NEWCONFIGDIR?=  ${.CURDIR}
+
+# this doesn't work yet - needs properly install "xcbgen".
+# these files are copied from a normal build.
 .xml.c:
-       ${PYTHON} ${C_CLIENT} -p ${PYTHONLIB}/site-packages ${.IMPSRC}
+       ( \
+       cd ${NEWCONFIGDIR}; \
+       env PYTHONPATH=${X11SRCDIR.xcb-proto} ${PYTHON} ${C_CLIENT} \
+               -c "libxcb 1.15" \
+               -l "X Version 11" \
+               -s 3 \
+               -p ${PYTHONLIB}/site-packages ${.IMPSRC} \
+       )
 
 generate_from_xml: ${XMLSRCS}
 
diff -r 7672b7e47db8 -r 8ad993fe3cc5 external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs
--- a/external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs       Tue Jul 12 02:42:40 2022 +0000
+++ b/external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs       Tue Jul 12 02:43:46 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.xmlsrcs,v 1.6 2018/06/07 18:16:55 rjs Exp $
+#      $NetBSD: Makefile.xmlsrcs,v 1.7 2022/07/12 02:43:46 mrg Exp $
 
 # list of the libxcb xml-generated .c files.
 
@@ -22,7 +22,6 @@
        sync.c \
        xc_misc.c \
        xf86dri.c \
-       xf86vidmode.c \
        xfixes.c \
        xinerama.c \
        xinput.c \



Home | Main Index | Thread Index | Old Index