Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hamlib for openSUSE:Factory checked 
in at 2026-11-17 17:20:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hamlib (Old)
 and      /work/SRC/openSUSE:Factory/.hamlib.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hamlib"

Tue Nov 17 17:20:33 2026 rev:30 rq:1398082 version:4.7.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/hamlib/hamlib.changes    2026-06-22 
17:35:07.629702623 +0200
+++ /work/SRC/openSUSE:Factory/.hamlib.new.1251/hamlib.changes  2026-11-17 
17:23:10.352634485 +0100
@@ -1,0 +2,6 @@
+Mon Nov 16 15:30:00 UTC 2026 - Dominique Leuenberger <[email protected]>
+
+- Add hamlib-swig-py3.patch: replace obsolete PyInt_FromLong with
+  PyLong_FromLong in bindings/hamlib.swg for Python 3.
+
+-------------------------------------------------------------------

New:
----
  hamlib-swig-py3.patch

----------(New B)----------
  New:
- Add hamlib-swig-py3.patch: replace obsolete PyInt_FromLong with
  PyLong_FromLong in bindings/hamlib.swg for Python 3.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ hamlib.spec ++++++
--- /var/tmp/diff_new_pack.iJcyk0/_old  2026-11-17 17:23:11.165669097 +0100
+++ /var/tmp/diff_new_pack.iJcyk0/_new  2026-11-17 17:23:11.166669140 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hamlib
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 # Copyright (c) 2026 Andreas Stieger <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
@@ -30,6 +30,8 @@
 # taken from debian
 Source3:        %{name}.keyring
 Patch0:         hamlib-3.0-perl_install.patch
+# PATCH-FIX-UPSTREAM hamlib-swig-py3.patch -- replace obsolete PyInt_FromLong 
with PyLong_FromLong in bindings/hamlib.swg
+Patch1:         hamlib-swig-py3.patch
 BuildRequires:  c++_compiler
 BuildRequires:  fdupes
 BuildRequires:  libtool


++++++ hamlib-swig-py3.patch ++++++
>From 40579c6213eee8e4d15b45d176deff3dcab79acd Mon Sep 17 00:00:00 2001
From: Daniele Forsi IU5HKX <[email protected]>
Date: Mon, 24 Aug 2026 23:54:45 +0200
Subject: [PATCH] Fix building Python bindings with SWIG 4.5

This change is compatible with SWIG 4.4.

Fixes:
 error: implicit declaration of function 'PyInt_FromLong'

SWIG commit that dropped the macros used for compatibility with Python 2:
 https://github.com/swig/swig/commit/79f7a2b7cb7ddc256eba09c8770133148025171d

Debian bug report:
 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1145352
---
 bindings/hamlib.swg | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bindings/hamlib.swg b/bindings/hamlib.swg
index f820ed14aa..7fb4f9f860 100644
--- a/bindings/hamlib.swg
+++ b/bindings/hamlib.swg
@@ -69,7 +69,7 @@
   len = $1_dim0;
   $result = PyList_New(len);
   for (i = 0; i < len; i++) {
-    PyList_SetItem($result,i,PyInt_FromLong((long)$1[i]));
+    PyList_SetItem($result,i,PyLong_FromLong((long)$1[i]));
   }
 }
 
@@ -78,7 +78,7 @@
   len = $1_dim0;
   $result = PyList_New(len);
   for (i = 0; i < len; i++) {
-    PyList_SetItem($result,i,PyInt_FromLong((long)$1[i]));
+    PyList_SetItem($result,i,PyLong_FromLong((long)$1[i]));
   }
 }
 

Reply via email to