public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pivy] rawhide: Add a patch to fix the build with Python 3.15
@ 2026-08-07 20:53 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-07 20:53 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pivy
Branch : rawhide
Commit : 6f87cce4aa756255acb938dec90bd4190bd4b2d1
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-08-07T17:53:22-03:00
Stats : +20/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-pivy/c/6f87cce4aa756255acb938dec90bd4190bd4b2d1?branch=rawhide
Log:
Add a patch to fix the build with Python 3.15
---
diff --git a/pivy-python-3.15.patch b/pivy-python-3.15.patch
new file mode 100644
index 0000000..1ee25de
--- /dev/null
+++ b/pivy-python-3.15.patch
@@ -0,0 +1,18 @@
+diff -up pivy-0.6.10/interfaces/pivy_common_typemaps.i.c-api pivy-0.6.10/interfaces/pivy_common_typemaps.i
+--- pivy-0.6.10/interfaces/pivy_common_typemaps.i.c-api 2026-08-07 17:20:00.000000000 -0300
++++ pivy-0.6.10/interfaces/pivy_common_typemaps.i 2026-08-07 17:20:00.000000000 -0300
+@@ -17,6 +17,14 @@
+
+ /* header include needed to let nodekit extensions find the SbTime header */
+ %{
++#if PY_MAJOR_VERSION >= 3
++#define PyInt_FromLong PyLong_FromLong
++#define PyInt_AsLong PyLong_AsLong
++#define PyInt_Check PyLong_Check
++#define PyString_Check PyUnicode_Check
++#define PyString_AsString PyUnicode_AsUTF8
++#endif
++
+ #include <Inventor/SbTime.h>
+
+ #if (PY_VERSION_HEX < 0x02050000)
diff --git a/python-pivy.spec b/python-pivy.spec
index c7e9971..6f39640 100644
--- a/python-pivy.spec
+++ b/python-pivy.spec
@@ -11,9 +11,10 @@ License: ISC
URL: %{forgeurl}
Source0: %{forgesource}
Patch0: pivy-fake-memory-header.patch
+Patch1: pivy-python-3.15.patch
-BuildRequires: cmake
BuildRequires: Coin4-devel
+BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libXmu-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-07 20:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 20:53 [rpms/python-pivy] rawhide: Add a patch to fix the build with Python 3.15 Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox