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/hugin] rawhide: Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
Date: Tue, 11 Aug 2026 10:22:57 GMT	[thread overview]
Message-ID: <178644377764.1.11968684247438450883.rpms-hugin-e81eb6f0c3ce@fedoraproject.org> (raw)

A new commit has been pushed.

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

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

---
diff --git a/hugin-swig45.patch b/hugin-swig45.patch
new file mode 100644
index 0000000..cea4f56
--- /dev/null
+++ b/hugin-swig45.patch
@@ -0,0 +1,12 @@
+diff -up hugin-2025.0.1/src/hugin_script_interface/hpi_classes.cpp.swig45 hugin-2025.0.1/src/hugin_script_interface/hpi_classes.cpp
+--- hugin-2025.0.1/src/hugin_script_interface/hpi_classes.cpp.swig45	2026-07-28 08:28:02.211218757 +0200
++++ hugin-2025.0.1/src/hugin_script_interface/hpi_classes.cpp	2026-07-28 08:28:02.213082688 +0200
+@@ -112,7 +112,7 @@ int python_interface::call_hpi ( const c
+         if ( pValue != NULL )
+         {
+             // the function should have returned an integer
+-            result = PyInt_AsLong ( pValue ) ;
++            result = PyLong_AsLong ( pValue ) ;
+             Py_DECREF(pValue);
+         }
+     }

diff --git a/hugin.spec b/hugin.spec
index 3457bf9..34e81b4 100644
--- a/hugin.spec
+++ b/hugin.spec
@@ -1,7 +1,7 @@
 Summary: A panoramic photo stitcher and more
 Name: hugin
 Version: 2025.0.1
-Release: 7%{?dist}
+Release: 8%{?dist}
 License: GPL-2.0-or-later
 Source: https://downloads.sourceforge.net/hugin/%{name}-%{version}.tar.bz2
 URL: http://hugin.sourceforge.net/
@@ -15,6 +15,9 @@ BuildRequires: cmake desktop-file-utils OpenEXR-devel exiv2-devel libepoxy-devel
 BuildRequires: python3-devel swig perl-Image-ExifTool
 BuildRequires: mesa-libGLU-devel libXmu-devel sqlite-devel vigra-devel
 BuildRequires: perl-podlators fftw-devel lcms2-devel
+# Replace removed Python 2 C API macros with Python 3 equivalents
+# for compatibility with SWIG 4.5.0
+Patch0:         hugin-swig45.patch
 # contains deprecated distutils
 BuildRequires: python3-setuptools
 
@@ -188,6 +191,9 @@ EOF
 %{_mandir}/man1/hugin_lensdb.*
 
 %changelog
+* Tue Jul 28 2026 Jitka Plesnikova <jplesnik@redhat.com> - 2025.0.1-8
+- Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
+
 * Wed Jul 22 2026 Python Maint <python-maint@redhat.com> - 2025.0.1-7
 - Rebuilt for Python 3.15.0b4 ABI change
 

                 reply	other threads:[~2026-08-11 10:22 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=178644377764.1.11968684247438450883.rpms-hugin-e81eb6f0c3ce@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