cmake/feature-suse-python-interp-search-order.patch
Dirk Mueller 761def9716 - update to 3.31.5
* Clang/CUDA: Fix language-wide flags when linking .so with
    compiler driver
  * Tests: Update expected results for ninja post-1.12 development
  * FindMatlab: Fix multi-signature function documentation anchors
  * IAR: decouple linker location from toolkit's bin dir
  * install: Generate InstallScripts.json in consistent location
- update to 3.31.4
  * LFortran: Remove hard-coded --generate-object-code flag
  * FindBoost: Add support for Boost 1.87

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=614
2025-02-05 16:19:11 +00:00

17 lines
779 B
Diff

Index: cmake-3.27.7/Modules/FindPythonInterp.cmake
===================================================================
--- cmake-3.27.7.orig/Modules/FindPythonInterp.cmake
+++ cmake-3.27.7/Modules/FindPythonInterp.cmake
@@ -105,8 +105,9 @@ if(DEFINED PYTHONLIBS_VERSION_STRING)
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)