File python-3.11.patch of Package xkeyboard-config

Index: xkeyboard-config-2.46/meson.build
===================================================================
--- xkeyboard-config-2.46.orig/meson.build
+++ xkeyboard-config-2.46/meson.build
@@ -90,7 +90,7 @@ endif
 # If needed, copy our data files over to the build directory
 # so we can use the builddir as XKB_CONFIG_ROOT
 pymod = import('python')
-python = pymod.find_installation('python3',
+python = pymod.find_installation('python3.11',
                                  modules: ['pytest'],
                                  required: false)
 pytest = find_program('pytest-3', 'pytest', required: false)
@@ -154,7 +154,7 @@ if enable_pytest
     endif
     # use pytest xdist if available, it really speeds up the tests cases
     optional_python_modules = ['xdist']
-    if pymod.find_installation('python3', modules: optional_python_modules, required: false).found()
+    if pymod.find_installation('python3.11', modules: optional_python_modules, required: false).found()
         pytest_args += ['-n', 'auto']
     endif
 
Index: xkeyboard-config-2.46/rules/compat/map-variants.py
===================================================================
--- xkeyboard-config-2.46.orig/rules/compat/map-variants.py
+++ xkeyboard-config-2.46/rules/compat/map-variants.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python3.11
 # SPDX-License-Identifier: MIT
 
 from __future__ import annotations
Index: xkeyboard-config-2.46/rules/generate-options-symbols.py
===================================================================
--- xkeyboard-config-2.46.orig/rules/generate-options-symbols.py
+++ xkeyboard-config-2.46/rules/generate-options-symbols.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python3.11
 #
 # This file is formatted with python black
 #
Index: xkeyboard-config-2.46/rules/merge.py
===================================================================
--- xkeyboard-config-2.46.orig/rules/merge.py
+++ xkeyboard-config-2.46/rules/merge.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python3.11
 # SPDX-License-Identifier: MIT
 
 from __future__ import annotations
Index: xkeyboard-config-2.46/scripts/symbols-tree.py
===================================================================
--- xkeyboard-config-2.46.orig/scripts/symbols-tree.py
+++ xkeyboard-config-2.46/scripts/symbols-tree.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python3.11
 #
 # Builds a tree view of a symbols file (showing all includes)
 #
Index: xkeyboard-config-2.46/tests/test_rules_xml.py
===================================================================
--- xkeyboard-config-2.46.orig/tests/test_rules_xml.py
+++ xkeyboard-config-2.46/tests/test_rules_xml.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python3.11
 #
 # Call with pytest. Requires XKB_CONFIG_ROOT to be set
 
Index: xkeyboard-config-2.46/tests/test_xkb_symbols.py
===================================================================
--- xkeyboard-config-2.46.orig/tests/test_xkb_symbols.py
+++ xkeyboard-config-2.46/tests/test_xkb_symbols.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python3.11
 #
 # Call with pytest. Requires XKB_CONFIG_ROOT to be set
 
openSUSE Build Service is sponsored by