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/openmeeg] rawhide: Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
Date: Sun, 02 Aug 2026 14:36:39 GMT [thread overview]
Message-ID: <178568139951.1.1972300999984398499.rpms-openmeeg-1c83b1078cc4@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/openmeeg
Branch : rawhide
Commit : 1c83b1078cc443611b964ef2e6f3adfb5caf8596
Author : Jitka Plesnikova <jplesnik@redhat.com>
Date : 2026-07-28T15:29:18+02:00
Stats : +16/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/openmeeg/c/1c83b1078cc443611b964ef2e6f3adfb5caf8596?branch=rawhide
Log:
Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
---
diff --git a/openmeeg-swig45.patch b/openmeeg-swig45.patch
new file mode 100644
index 0000000..cd2da27
--- /dev/null
+++ b/openmeeg-swig45.patch
@@ -0,0 +1,12 @@
+diff -up openmeeg-2.5.16/wrapping/python/openmeeg/_openmeeg.i.swig45 openmeeg-2.5.16/wrapping/python/openmeeg/_openmeeg.i
+--- openmeeg-2.5.16/wrapping/python/openmeeg/_openmeeg.i.swig45 2026-07-28 10:15:42.082507949 +0200
++++ openmeeg-2.5.16/wrapping/python/openmeeg/_openmeeg.i 2026-07-28 10:15:42.087239833 +0200
+@@ -378,7 +378,7 @@ namespace OpenMEEG {
+ // C++ -> Python
+
+ %typemap(out) unsigned& {
+- $result = PyInt_FromLong(*($1));
++ $result = PyLong_FromLong(*($1));
+ }
+ }
+
diff --git a/openmeeg.spec b/openmeeg.spec
index 2563e8f..3b55013 100644
--- a/openmeeg.spec
+++ b/openmeeg.spec
@@ -36,6 +36,9 @@ URL: http://openmeeg.github.io/
Source0: https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: %{name}-use_builtin_find_blas_lapack.patch
Patch1: %{name}-fix-cmake4.patch
+# Replace removed Python 2 C API macros with Python 3 equivalents
+# for compatibility with SWIG 4.5.0
+Patch2: %{name}-swig45.patch
BuildRequires: make
BuildRequires: cmake
@@ -166,6 +169,7 @@ BuildArch: noarch
%patch -P 0 -p1 -b .backup
%endif
%patch -P 1 -p1 -b .backup
+%patch -P 2 -p1
%build
%if %{with debug}
reply other threads:[~2026-08-02 14: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=178568139951.1.1972300999984398499.rpms-openmeeg-1c83b1078cc4@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