Accepting request 947401 from devel:tools:building

OBS-URL: https://build.opensuse.org/request/show/947401
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/swig?expand=0&rev=75
This commit is contained in:
2022-01-21 00:25:09 +00:00
committed by Git OBS Bridge
3 changed files with 30 additions and 1 deletions

23
fix-gcc12-error.patch Normal file
View File

@@ -0,0 +1,23 @@
From 76d5a9ec270a763c892ae28070e391cf99e0b7cd Mon Sep 17 00:00:00 2001
From: William S Fulton <wsf@fultondesigns.co.uk>
Date: Tue, 18 Jan 2022 21:37:02 +0000
Subject: [PATCH] gcc-12 warning fix in test-case
Closes #2145
---
Examples/test-suite/nested_class.i | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Examples/test-suite/nested_class.i b/Examples/test-suite/nested_class.i
index b10c339493e..c778a12cf7c 100644
--- a/Examples/test-suite/nested_class.i
+++ b/Examples/test-suite/nested_class.i
@@ -201,7 +201,7 @@ struct Outer {
Integer xx;
} MultipleInstanceAnonDerived1, MultipleInstanceAnonDerived2, *MultipleInstanceAnonDerived3, MultipleInstanceAnonDerived4[2];
-#if defined(__GNUC__) || defined(_MSC_VER) || defined(SWIG)
+#if (defined(__GNUC__) && __GNUC__ < 12) || defined(_MSC_VER) || defined(SWIG)
/* some compilers do not accept these */
struct : public InnerMultiple {
Integer xx;

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 19 09:23:35 UTC 2022 - Martin Liška <mliska@suse.cz>
- Add fix-gcc12-error.patch in order to fix GCC 12 compilation error.
-------------------------------------------------------------------
Tue Jun 8 22:19:19 UTC 2021 - Atri Bhattacharya <badshah400@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package swig
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -41,6 +41,7 @@ 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
Patch308: swig308-isfinite.diff
BuildRequires: autoconf