diff --git a/backport-Suppress-high-keycode-warnings-at-the-default-warning-level.patch b/backport-Suppress-high-keycode-warnings-at-the-default-warning-level.patch new file mode 100644 index 0000000000000000000000000000000000000000..554c02e2c68c4bdafb3714afd94e320b8cb7fd1f --- /dev/null +++ b/backport-Suppress-high-keycode-warnings-at-the-default-warning-level.patch @@ -0,0 +1,39 @@ +From 1fdbacbe34742328b2a95742982b6017f60a1342 Mon Sep 17 00:00:00 2001 +From: Adam Jackson +Date: Wed, 17 Oct 2018 11:44:37 -0400 +Subject: [PATCH] Suppress high-keycode warnings at the default warning level + +We expect evdev to have keycodes above 255, there's no reason to warn about this. + +Signed-off-by: Adam Jackson + +Reference:https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/commit/1fdbacbe34742328b2a95742982b6017f60a1342 + +--- + keycodes.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/keycodes.c b/keycodes.c +index c21f7c4..425ba10 100644 +--- a/keycodes.c ++++ b/keycodes.c +@@ -332,7 +332,7 @@ AddKeyName(KeyNamesInfo * info, + + if ((kc < info->effectiveMin) || (kc > info->effectiveMax)) + { +- if (!high_keycode_warned) ++ if (!high_keycode_warned && warningLevel > 1) + { + WARN2("Unsupported high keycode %d for name <%s> ignored\n", + kc, name); +@@ -596,7 +596,7 @@ HandleKeycodeDef(KeycodeDef * stmt, unsigned merge, KeyNamesInfo * info) + code = result.ival; + if ((code < info->effectiveMin) || (code > info->effectiveMax)) + { +- if (!high_keycode_warned) ++ if (!high_keycode_warned && warningLevel > 1) + { + WARN2("Unsupported high keycode %d for name <%s> ignored\n", + code, stmt->name); +-- +GitLab diff --git a/xorg-x11-xkb-utils.spec b/xorg-x11-xkb-utils.spec index e282015d16865a2c606778e7a4fe90f241d753af..2582d0be2f1a400b16c2dba0e187c529d1cec217 100644 --- a/xorg-x11-xkb-utils.spec +++ b/xorg-x11-xkb-utils.spec @@ -1,7 +1,7 @@ Summary: X.Org X11 xkb utilities Name: xorg-x11-xkb-utils Version: 7.7 -Release: 28 +Release: 29 License: MIT URL: https://www.x.org @@ -11,6 +11,8 @@ Source2: https://www.x.org/pub/individual/app/xkbevd-1.1.4.tar.bz2 Source3: https://www.x.org/pub/individual/app/xkbprint-1.0.4.tar.bz2 Source4: https://www.x.org/pub/individual/app/xkbutils-1.0.4.tar.bz2 +Patch0001: backport-Suppress-high-keycode-warnings-at-the-default-warning-level.patch + BuildRequires: byacc pkgconfig(x11) pkgconfig(xaw7) pkgconfig(xkbfile) pkgconfig(xorg-macros) >= 1.8 pkgconfig(xt) Provides: setxkbmap = 1.3.1 @@ -37,6 +39,9 @@ X.Org X11 xkb utilities development files. %prep %setup -q -c xorg-x11-xkb-utils-%{version} -a1 -a2 -a3 -a4 +pushd xkbcomp-* +%patch0001 -p1 +popd %build { @@ -88,6 +93,12 @@ X.Org X11 xkb utilities development files. %{_libdir}/pkgconfig/xkbcomp.pc %changelog +* Fri Jan 29 2021 chengguipeng - 7.7-29 +- Type: bugfix +- ID: NA +- SUG: NA +- DESC:solve the issue which dispaly X11 cannot support keycodes above 255 + * Thu Sep 12 2019 openEuler Buildteam - 7.7-28 - Package init