xorg-xcb-proto: added python 3.9 gcd patch

This commit is contained in:
Matt Housh 2020-09-07 17:34:42 -05:00
parent b56ab0c067
commit 767370ef78
3 changed files with 20 additions and 4 deletions

View File

@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/xorg.pub
RWTSGWF5Q7TndF8lS8VmFhq1YAVYcVNMKP/ra0edDEvjGSxAYnXpss1LOOaLPC2/r7v1kL6gSPo+GiAW5/ewGnzf7R0w10g3eAE=
SHA256 (Pkgfile) = a18e60a84672cfeae39907054a99d95d50f83fafebd8efa7c82be59746c6e523
RWTSGWF5Q7TndLw0vOdMYWvTHQRI8O2JDs95E28V5rTqN2BATHiKTIpAjUxIpukvzHx+iQPyiydjgTSNGBYmN/UgNGLpUdyffQw=
SHA256 (Pkgfile) = 8f5857bb30214c26f92996edfa0370f77c730e1570a400aea84fcfb4f4826f74
SHA256 (.footprint) = 9dcaa2a17834a40e044e0743974dd6405d06f5ccb916b62d29c810b437703d22
SHA256 (xcb-proto-1.14.tar.xz) = 186a3ceb26f9b4a015f5a44dcc814c93033a5fc39684f36f1ecc79834416a605
SHA256 (python-gcd.patch) = 1f190fb87cdac99a351e4e3928d5360644eee726e11340786929add49c1a9654

View File

@ -5,12 +5,15 @@
name=xorg-xcb-proto
version=1.14
release=3
source=(https://xorg.freedesktop.org/archive/individual/proto/xcb-proto-$version.tar.xz)
release=4
source=(https://xorg.freedesktop.org/archive/individual/proto/xcb-proto-$version.tar.xz \
python-gcd.patch)
build() {
cd xcb-proto-$version
patch -p1 -i $SRC/python-gcd.patch
PYTHON=/usr/bin/python3 \
./configure --prefix=/usr

View File

@ -0,0 +1,12 @@
diff -urN xcb-proto-1.14.orig/xcbgen/align.py xcb-proto-1.14/xcbgen/align.py
--- xcb-proto-1.14.orig/xcbgen/align.py 2020-02-22 20:16:54.000000000 +0000
+++ xcb-proto-1.14/xcbgen/align.py 2020-09-07 22:20:27.046048612 +0000
@@ -2,7 +2,7 @@
This module contains helper classes for alignment arithmetic and checks
'''
-from fractions import gcd
+from math import gcd
class Alignment(object):