public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/cmake] rawhide: FindPython: Add Python 3.16 to the list of hardcoded Python versions
Date: Wed, 11 Nov 2026 16:08:42 GMT	[thread overview]
Message-ID: <179441332225.1.9422636091478564647.rpms-cmake-79d951ca2858@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/cmake
Branch : rawhide
Commit : 79d951ca285898ee30dd0b8b776b8f08033050a5
Author : Miro Hrončok <miro@hroncok.cz>
Date   : 2026-11-11T14:08:08+01:00
Stats  : +60/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/cmake/c/79d951ca285898ee30dd0b8b776b8f08033050a5?branch=rawhide

Log:
FindPython: Add Python 3.16 to the list of hardcoded Python versions

---
diff --git a/12738.patch b/12738.patch
new file mode 100644
index 0000000..f276464
--- /dev/null
+++ b/12738.patch
@@ -0,0 +1,53 @@
+From 62c347f768d6f921267d356a731bc28d2a31d78a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
+Date: Thu, 29 Oct 2026 17:13:43 +0100
+Subject: [PATCH] FindPython: Add support for Python 3.16
+
+---
+ Modules/FindPython/Support.cmake | 2 +-
+ Modules/FindPythonInterp.cmake   | 2 +-
+ Modules/FindPythonLibs.cmake     | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake
+index 857261aca8..5489a0151a 100644
+--- a/Modules/FindPython/Support.cmake
++++ b/Modules/FindPython/Support.cmake
+@@ -26,7 +26,7 @@ if (NOT DEFINED _${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR)
+   message (FATAL_ERROR "FindPython: INTERNAL ERROR")
+ endif()
+ if (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL "3")
+-  set(_${_PYTHON_PREFIX}_VERSIONS 3.15 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
++  set(_${_PYTHON_PREFIX}_VERSIONS 3.16 3.15 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
+ elseif (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL "2")
+   set(_${_PYTHON_PREFIX}_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
+ else()
+diff --git a/Modules/FindPythonInterp.cmake b/Modules/FindPythonInterp.cmake
+index 81d61a84ba..eb5cdf81d3 100644
+--- a/Modules/FindPythonInterp.cmake
++++ b/Modules/FindPythonInterp.cmake
+@@ -117,7 +117,7 @@ unset(_Python_NAMES)
+ 
+ set(_PYTHON1_VERSIONS 1.6 1.5)
+ set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
+-set(_PYTHON3_VERSIONS 3.15 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
++set(_PYTHON3_VERSIONS 3.16 3.15 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
+ 
+ if(PythonInterp_FIND_VERSION)
+     if(PythonInterp_FIND_VERSION_COUNT GREATER 1)
+diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake
+index f8e9705b61..f1eb13e31e 100644
+--- a/Modules/FindPythonLibs.cmake
++++ b/Modules/FindPythonLibs.cmake
+@@ -168,7 +168,7 @@ set(CMAKE_FIND_FRAMEWORK LAST)
+ 
+ set(_PYTHON1_VERSIONS 1.6 1.5)
+ set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
+-set(_PYTHON3_VERSIONS 3.15 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
++set(_PYTHON3_VERSIONS 3.16 3.15 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
+ 
+ if(PythonLibs_FIND_VERSION)
+     if(PythonLibs_FIND_VERSION_COUNT GREATER 1)
+-- 
+GitLab
+

diff --git a/cmake.spec b/cmake.spec
index ed7a3b6..74678c8 100644
--- a/cmake.spec
+++ b/cmake.spec
@@ -74,7 +74,7 @@
 %global patch_version 0
 
 # For handling bump release by rpmdev-bumpspec and mass rebuild
-%global baserelease 6
+%global baserelease 7
 
 # Set to RC version if building RC, else comment out.
 #%%global rcsuf rc3
@@ -128,6 +128,9 @@ Patch100:       %{name}-findruby.patch
 Patch1:         %{name}-rename.patch
 %endif
 
+# FindPython: Add support for Python 3.16
+Patch2:         https://gitlab.kitware.com/cmake/cmake/-/merge_requests/12738.patch
+
 BuildRequires:  coreutils
 BuildRequires:  findutils
 BuildRequires:  gcc-c++
@@ -638,6 +641,9 @@ popd
 
 
 %changelog
+* Thu Oct 29 2026 Miro Hrončok <miro@hroncok.cz> - 4.3.0-7
+- FindPython: Add Python 3.16 to the list of hardcoded Python versions
+
 * Wed Sep 30 2026 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 4.3.0-6
 - Update list of problematic tests on RISC-V
 

                 reply	other threads:[~2026-11-11 16:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179441332225.1.9422636091478564647.rpms-cmake-79d951ca2858@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox