Accepting request 975651 from home:bnavigator:branches:devel:tools:building

- Add swig-python310.patch -- gh#swig/swig#2064, Fix swig test
  suite with Python 3.10

OBS-URL: https://build.opensuse.org/request/show/975651
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=133
This commit is contained in:
Klaus Kämpf 2022-05-12 10:53:09 +00:00 committed by Git OBS Bridge
parent a3349557bc
commit d158f8f7b9
3 changed files with 31 additions and 0 deletions

23
swig-python310.patch Normal file
View File

@ -0,0 +1,23 @@
From a2850397ba3eec5d4c58304cf8277ca535919760 Mon Sep 17 00:00:00 2001
From: Julien Schueller <schueller@phimeca.com>
Date: Thu, 5 Aug 2021 14:05:10 +0200
Subject: [PATCH] [Python] Fix overload_simple_cast test with 3.10
Closes #2044
---
Examples/test-suite/python/python_overload_simple_cast_runme.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Examples/test-suite/python/python_overload_simple_cast_runme.py b/Examples/test-suite/python/python_overload_simple_cast_runme.py
index fc398ab29b9..7a0174af8a2 100644
--- a/Examples/test-suite/python/python_overload_simple_cast_runme.py
+++ b/Examples/test-suite/python/python_overload_simple_cast_runme.py
@@ -9,6 +9,8 @@ def __init__(self, x):
def __int__(self):
return self.x
+ def __index__(self):
+ return self.x
class Ad:

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun May 8 18:12:21 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Add swig-python310.patch -- gh#swig/swig#2064, Fix swig test
suite with Python 3.10
-------------------------------------------------------------------
Wed Jan 19 09:23:35 UTC 2022 - Martin Liška <mliska@suse.cz>

View File

@ -42,6 +42,8 @@ Source1: %{name}.rpmlintrc
# PATCH-FIX-UPSTREAM swig-octave-6.patch gh#swig/swig#2020 badshah400@gmail.com -- Allow swig to work with octave 6 and above; patch part of upstream merge request
Patch0: swig-octave-6.patch
Patch1: fix-gcc12-error.patch
# PATCH-FIX-UPSTREAM swig-python310.patch -- gh#swig/swig#2064, Fix swig test suite with python310
Patch2: swig-python310.patch
Patch308: swig308-isfinite.diff
BuildRequires: autoconf