From c853e18cc8287c38effe781835ca5127d3a9812c Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Fri, 9 Oct 2020 13:06:11 +0300 Subject: xcb-proto: bump to 1.14.1 --- xorg/xcb-proto/build | 2 - xorg/xcb-proto/checksums | 3 +- xorg/xcb-proto/patches/python-3.9.patch | 95 --------------------------------- xorg/xcb-proto/sources | 3 +- xorg/xcb-proto/version | 2 +- 5 files changed, 3 insertions(+), 102 deletions(-) delete mode 100644 xorg/xcb-proto/patches/python-3.9.patch (limited to 'xorg') diff --git a/xorg/xcb-proto/build b/xorg/xcb-proto/build index 4eb8bff5..6daf22f8 100755 --- a/xorg/xcb-proto/build +++ b/xorg/xcb-proto/build @@ -1,7 +1,5 @@ #!/bin/sh -e -patch -p1 < python-3.9.patch - ./configure \ --prefix=/usr diff --git a/xorg/xcb-proto/checksums b/xorg/xcb-proto/checksums index d3954b89..4d0c34f7 100644 --- a/xorg/xcb-proto/checksums +++ b/xorg/xcb-proto/checksums @@ -1,2 +1 @@ -186a3ceb26f9b4a015f5a44dcc814c93033a5fc39684f36f1ecc79834416a605 xcb-proto-1.14.tar.xz -7d56cff42bf9d5430394e30b87cf5fa6d570a9f8864af1cfc1568f2afc70269a python-3.9.patch +f04add9a972ac334ea11d9d7eb4fc7f8883835da3e4859c9afa971efdf57fcc3 xcb-proto-1.14.1.tar.xz diff --git a/xorg/xcb-proto/patches/python-3.9.patch b/xorg/xcb-proto/patches/python-3.9.patch deleted file mode 100644 index ce7cd498..00000000 --- a/xorg/xcb-proto/patches/python-3.9.patch +++ /dev/null @@ -1,95 +0,0 @@ -From 426ae35bee1fa0fdb8b5120b1dcd20cee6e34512 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= -Date: Mon, 1 Jun 2020 12:24:16 +0200 -Subject: [PATCH 1/2] xcbgen: Use math.gcd() for Python >= 3.5. -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -fractions.gcd() has been deprecated since Python 3.5, and -was finally dropped in Python 3.9. It is recommended to -use math.gcd() instead. - -Signed-off-by: Björn Esser ---- - xcbgen/align.py | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/xcbgen/align.py b/xcbgen/align.py -index d4c12ee..5c4f517 100644 ---- a/xcbgen/align.py -+++ b/xcbgen/align.py -@@ -2,7 +2,12 @@ - This module contains helper classes for alignment arithmetic and checks - ''' - --from fractions import gcd -+from sys import version_info -+ -+if version_info[:2] >= (3, 5): -+ from math import gcd -+else: -+ from fractions import gcd - - class Alignment(object): - --- -GitLab - - -From 7d58eed95f796fc764741d7549ee2214bbbcc64c Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= -Date: Mon, 1 Jun 2020 12:29:01 +0200 -Subject: [PATCH 2/2] xcbgen: xml.etree.cElementTree has been dropped in Python - 3.9. -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -It can be replaced with xml.etree.ElementTree safely. - -Signed-off-by: Björn Esser ---- - xcbgen/matcher.py | 7 ++++++- - xcbgen/state.py | 7 ++++++- - 2 files changed, 12 insertions(+), 2 deletions(-) - -diff --git a/xcbgen/matcher.py b/xcbgen/matcher.py -index 97a8b43..a13ef28 100644 ---- a/xcbgen/matcher.py -+++ b/xcbgen/matcher.py -@@ -7,7 +7,12 @@ we do not create a new type object, we just record the existing one under a new - ''' - - from os.path import join --from xml.etree.cElementTree import parse -+from sys import version_info -+ -+if version_info[:2] >= (3, 9): -+ from xml.etree.ElementTree import parse -+else: -+ from xml.etree.cElementTree import parse - - from xcbgen.xtypes import * - -diff --git a/xcbgen/state.py b/xcbgen/state.py -index 0dbecdc..3b7eeb4 100644 ---- a/xcbgen/state.py -+++ b/xcbgen/state.py -@@ -2,7 +2,12 @@ - This module contains the namespace class and the singleton module class. - ''' - from os.path import dirname, basename --from xml.etree.cElementTree import parse -+from sys import version_info -+ -+if version_info[:2] >= (3, 9): -+ from xml.etree.ElementTree import parse -+else: -+ from xml.etree.cElementTree import parse - - from xcbgen import matcher - from xcbgen.error import * --- -GitLab - diff --git a/xorg/xcb-proto/sources b/xorg/xcb-proto/sources index 158b0a5b..71818530 100644 --- a/xorg/xcb-proto/sources +++ b/xorg/xcb-proto/sources @@ -1,2 +1 @@ -https://xorg.freedesktop.org/archive/individual/proto/xcb-proto-1.14.tar.xz -patches/python-3.9.patch +https://xorg.freedesktop.org/archive/individual/proto/xcb-proto-1.14.1.tar.xz diff --git a/xorg/xcb-proto/version b/xorg/xcb-proto/version index 3e158c07..045ad770 100644 --- a/xorg/xcb-proto/version +++ b/xorg/xcb-proto/version @@ -1 +1 @@ -1.14 2 +1.14.1 1 -- cgit v1.2.3