public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jitka Plesnikova <jplesnik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mypaint] rawhide: Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
Date: Thu, 30 Jul 2026 17:36:00 GMT	[thread overview]
Message-ID: <178543296035.1.11352317280979458968.rpms-mypaint-dbb6bb41ad94@fedoraproject.org> (raw)

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++
 

                 reply	other threads:[~2026-07-30 17:36 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=178543296035.1.11352317280979458968.rpms-mypaint-dbb6bb41ad94@fedoraproject.org \
    --to=jplesnik@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