public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pivy] rawhide: Add a patch to fix the build with Python 3.15
Date: Fri, 07 Aug 2026 20:53:49 GMT	[thread overview]
Message-ID: <178613602934.1.1400992919466769000.rpms-python-pivy-6f87cce4aa75@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-08-07 20:53 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=178613602934.1.1400992919466769000.rpms-python-pivy-6f87cce4aa75@fedoraproject.org \
    --to=rosset.filipe@gmail.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