diff options
| -rw-r--r-- | meta/recipes-graphics/xorg-lib/xkeyboard-config/0001-fix-python3-support.patch | 34 | ||||
| -rw-r--r-- | meta/recipes-graphics/xorg-lib/xkeyboard-config_2.30.bb (renamed from meta/recipes-graphics/xorg-lib/xkeyboard-config_2.29.bb) | 7 |
2 files changed, 2 insertions, 39 deletions
diff --git a/meta/recipes-graphics/xorg-lib/xkeyboard-config/0001-fix-python3-support.patch b/meta/recipes-graphics/xorg-lib/xkeyboard-config/0001-fix-python3-support.patch deleted file mode 100644 index f723f70332..0000000000 --- a/meta/recipes-graphics/xorg-lib/xkeyboard-config/0001-fix-python3-support.patch +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | From 168ac446cdd9a1b59d6b708360a9556515ba56b9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: MilhouseVH <milhouseVH.github@nmacleod.com> | ||
| 3 | Date: Sun, 16 Feb 2020 09:41:43 +0000 | ||
| 4 | Subject: [PATCH] fix python3 support | ||
| 5 | |||
| 6 | https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/issues/197 | ||
| 7 | |||
| 8 | Upstream-Status: Backport | ||
| 9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 10 | --- | ||
| 11 | rules/compat/map-variants.py | 6 +++--- | ||
| 12 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/rules/compat/map-variants.py b/rules/compat/map-variants.py | ||
| 15 | index ebbfec9..979ba43 100755 | ||
| 16 | --- a/rules/compat/map-variants.py | ||
| 17 | +++ b/rules/compat/map-variants.py | ||
| 18 | @@ -1,4 +1,4 @@ | ||
| 19 | -#!/usr/bin/python3 | ||
| 20 | +#!/usr/bin/env python3 | ||
| 21 | |||
| 22 | import argparse | ||
| 23 | import re | ||
| 24 | @@ -12,8 +12,8 @@ class Layout(object): | ||
| 25 | assert variant is None | ||
| 26 | # parse a layout(variant) string | ||
| 27 | match = re.match(r'([^(]+)\(([^)]+)\)', layout) | ||
| 28 | - self.layout = match[1] | ||
| 29 | - self.variant = match[2] | ||
| 30 | + self.layout = match.groups()[0] | ||
| 31 | + self.variant = match.groups()[1] | ||
| 32 | |||
| 33 | def __str__(self): | ||
| 34 | if self.variant: | ||
diff --git a/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.29.bb b/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.30.bb index 598b584787..a4d67cd2ce 100644 --- a/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.29.bb +++ b/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.30.bb | |||
| @@ -12,11 +12,8 @@ BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=xkeyboard-confi | |||
| 12 | LICENSE = "MIT & MIT-style" | 12 | LICENSE = "MIT & MIT-style" |
| 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=0e7f21ca7db975c63467d2e7624a12f9" | 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=0e7f21ca7db975c63467d2e7624a12f9" |
| 14 | 14 | ||
| 15 | SRC_URI = "${XORG_MIRROR}/individual/data/xkeyboard-config/${BPN}-${PV}.tar.bz2 \ | 15 | SRC_URI = "${XORG_MIRROR}/individual/data/xkeyboard-config/${BPN}-${PV}.tar.bz2" |
| 16 | file://0001-fix-python3-support.patch \ | 16 | SRC_URI[sha256sum] = "095a524f7b633ed257617202d06c9c71fe020c8897b106cf0dcdd0c6e8b797d4" |
| 17 | " | ||
| 18 | SRC_URI[md5sum] = "b5980bdc6c7d79f6dcccba8c76bb6c5d" | ||
| 19 | SRC_URI[sha256sum] = "1d4175278bf06000683656763a8b1d3282c61a314b6db41260c8efe92d621802" | ||
| 20 | 17 | ||
| 21 | SECTION = "x11/libs" | 18 | SECTION = "x11/libs" |
| 22 | DEPENDS = "util-macros libxslt-native" | 19 | DEPENDS = "util-macros libxslt-native" |
