File feature-suse-python-interp-search-order.patch of Package cmake
---
Modules/FindPythonInterp.cmake | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Index: cmake-4.1.3/Modules/FindPythonInterp.cmake
===================================================================
--- cmake-4.1.3.orig/Modules/FindPythonInterp.cmake 2025-11-18 15:55:48.000000000 +0100
+++ cmake-4.1.3/Modules/FindPythonInterp.cmake 2026-01-28 16:44:12.726637412 +0100
@@ -138,8 +138,9 @@
list(GET _PYTHONLIBS_VERSION 1 _PYTHONLIBS_VERSION_MINOR)
list(APPEND _Python_VERSIONS ${_PYTHONLIBS_VERSION_MAJOR}.${_PYTHONLIBS_VERSION_MINOR})
endif()
-# Search for the current active python version first
-list(APPEND _Python_VERSIONS ";")
+
+# Search python versions from newest to oldest as python3 is the default and
+# /usr/bin/python doesn't mean the systemd on SUSE / openSUSE systems
list(APPEND _Python_VERSIONS ${_PYTHON_FIND_OTHER_VERSIONS})
unset(_PYTHON_FIND_OTHER_VERSIONS)