public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Karolina Surma <ksurma@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/kicad] rawhide: Allow building with Python 3.15
Date: Sat, 06 Jun 2026 13:49:14 GMT	[thread overview]
Message-ID: <178075375456.1.9237947959943941060.rpms-kicad-8d188e62b869@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/kicad
Branch : rawhide
Commit : 8d188e62b869b3bfb598830ed1daf413d71cb92c
Author : Karolina Surma <ksurma@redhat.com>
Date   : 2026-06-06T11:19:39+02:00
Stats  : +44/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/kicad/c/8d188e62b869b3bfb598830ed1daf413d71cb92c?branch=rawhide

Log:
Allow building with Python 3.15

---
diff --git a/Allow-Python-3.15-in-cmake.patch b/Allow-Python-3.15-in-cmake.patch
new file mode 100644
index 0000000..e342675
--- /dev/null
+++ b/Allow-Python-3.15-in-cmake.patch
@@ -0,0 +1,39 @@
+From 9abc8e2c3d66ba26aab433ae98e00ddf2eafe03a Mon Sep 17 00:00:00 2001
+From: Karolina Surma <ksurma@redhat.com>
+Date: Thu, 19 Mar 2026 15:40:18 +0100
+Subject: [PATCH] Allow Python 3.15 in cmake
+
+---
+ cmake/FindPythonInterp.cmake | 2 +-
+ cmake/FindPythonLibs.cmake   | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/cmake/FindPythonInterp.cmake b/cmake/FindPythonInterp.cmake
+index 13735f2..eec6024 100644
+--- a/cmake/FindPythonInterp.cmake
++++ b/cmake/FindPythonInterp.cmake
+@@ -37,7 +37,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.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.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)
+ 
+ # Disabling the "search every possible place" code for now
+ # see https://gitlab.com/kicad/code/kicad/-/issues/8553
+diff --git a/cmake/FindPythonLibs.cmake b/cmake/FindPythonLibs.cmake
+index 096248f..17302fe 100644
+--- a/cmake/FindPythonLibs.cmake
++++ b/cmake/FindPythonLibs.cmake
+@@ -44,7 +44,7 @@ cmake_find_frameworks(Python)
+ 
+ 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.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.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 MATCHES "^[0-9]+\\.[0-9]+(\\.[0-9]+.*)?$")
+-- 
+2.53.0
+

diff --git a/kicad.spec b/kicad.spec
index f090127..1dd3782 100644
--- a/kicad.spec
+++ b/kicad.spec
@@ -14,6 +14,9 @@ Source3:        https://gitlab.com/kicad/libraries/kicad-symbols/-/archive/%{ver
 Source4:        https://gitlab.com/kicad/libraries/kicad-footprints/-/archive/%{version}/kicad-footprints-%{version}.tar.gz
 Source5:        https://gitlab.com/kicad/libraries/kicad-packages3D/-/archive/%{version}/kicad-packages3D-%{version}.tar.gz
 
+# We must add Python 3.15 to cmake scripts
+Patch:          Allow-Python-3.15-in-cmake.patch
+
 # https://gitlab.com/kicad/code/kicad/-/issues/237
 ExclusiveArch:  x86_64 aarch64 ppc64le
 
@@ -94,6 +97,8 @@ Documentation for KiCad.
 %prep
 %setup -q -a 1 -a 2 -a 3 -a 4 -a 5
 
+%patch -P0 -p1
+
 %build
 
 # KiCad application

                 reply	other threads:[~2026-06-06 13:49 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=178075375456.1.9237947959943941060.rpms-kicad-8d188e62b869@fedoraproject.org \
    --to=ksurma@redhat.com \
    --cc=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