public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mypaint] rawhide: Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
@ 2026-07-30 17:36 Jitka Plesnikova
  0 siblings, 0 replies; only message in thread
From: Jitka Plesnikova @ 2026-07-30 17:36 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/mypaint
Branch : rawhide
Commit : dbb6bb41ad9401799bd633691d52eba825694e4d
Author : Jitka Plesnikova <jplesnik@redhat.com>
Date   : 2026-07-28T15:29:18+02:00
Stats  : +15/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/mypaint/c/dbb6bb41ad9401799bd633691d52eba825694e4d?branch=rawhide

Log:
Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility

---
diff --git a/mypaint-swig45.patch b/mypaint-swig45.patch
new file mode 100644
index 0000000..2145704
--- /dev/null
+++ b/mypaint-swig45.patch
@@ -0,0 +1,12 @@
+diff -up mypaint-2.0.1/lib/tiledsurface.hpp.swig45 mypaint-2.0.1/lib/tiledsurface.hpp
+--- mypaint-2.0.1/lib/tiledsurface.hpp.swig45	2026-07-28 09:55:49.674904659 +0200
++++ mypaint-2.0.1/lib/tiledsurface.hpp	2026-07-28 09:55:49.677729479 +0200
+@@ -131,7 +131,7 @@ private:
+ static PyObject *
+ get_module(char *name)
+ {
+-    PyObject *pName = PyString_FromString(name);
++    PyObject *pName = PyUnicode_FromString(name);
+     PyObject *pModule = PyImport_Import(pName);
+     Py_DECREF(pName);
+ 

diff --git a/mypaint.spec b/mypaint.spec
index 3d150f0..ab93229 100644
--- a/mypaint.spec
+++ b/mypaint.spec
@@ -18,6 +18,9 @@ Patch2:         0003-fix-deprecations.patch
 Patch3:         0004-pygobject352.patch
 # Backport of https://github.com/mypaint/mypaint/pull/1300
 Patch4:         0005-numpy23.patch
+# Replace removed Python 2 C API macros with Python 3 equivalents
+# for compatibility with SWIG 4.5.0
+Patch5:         mypaint-swig45.patch
 
 BuildRequires:  gcc, gcc-c++
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-30 17:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-30 17:36 [rpms/mypaint] rawhide: Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility Jitka Plesnikova

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox