public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kicad] rawhide: Allow building with Python 3.15
@ 2026-06-06 13:49 Karolina Surma
0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-06-06 13:49 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-06 13:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-06 13:49 [rpms/kicad] rawhide: Allow building with Python 3.15 Karolina Surma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox