diff --git a/0005-disable_li_std_wstring.patch b/0005-disable_li_std_wstring.patch new file mode 100644 index 0000000..85e6e18 --- /dev/null +++ b/0005-disable_li_std_wstring.patch @@ -0,0 +1,25 @@ +From: Michel Normand +Subject: 0005 disable li_std_wstring +Date: Mon, 18 May 2020 17:05:27 +0200 + +disable li_std_wstring to avoid test failure +for BE (ppc64 & s390x) as per bug +https://bugzilla.opensuse.org/show_bug.cgi?id=1171368 + +Signed-off-by: Michel Normand +--- + Examples/test-suite/common.mk | 1 - + 1 file changed, 1 deletion(-) + +Index: swig-rel-4.0.1/Examples/test-suite/common.mk +=================================================================== +--- swig-rel-4.0.1.orig/Examples/test-suite/common.mk ++++ swig-rel-4.0.1/Examples/test-suite/common.mk +@@ -657,7 +657,6 @@ CPP_STD_TEST_CASES += \ + li_std_vector_enum \ + li_std_vector_member_var\ + li_std_vector_ptr \ +- li_std_wstring \ + smart_pointer_inherit \ + template_typedef_fnc \ + template_type_namespace \ diff --git a/swig.changes b/swig.changes index e202e7a..20ed9f1 100644 --- a/swig.changes +++ b/swig.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 18 15:46:46 UTC 2020 - Michel Normand + +- Add 0005-disable_li_std_wstring.patch for BE arches + (ppc64 s390 s390x) as bypass boo#1171368 + ------------------------------------------------------------------- Wed Apr 15 08:52:15 UTC 2020 - Klaus Kämpf diff --git a/swig.spec b/swig.spec index 541f74d..51b191e 100644 --- a/swig.spec +++ b/swig.spec @@ -42,6 +42,7 @@ Patch1: 0001-Fix-code-generated-for-Ruby-global-variables.patch Patch2: 0002-Add-support-for-Ruby-2.7.patch Patch3: 0003-Move-new-macros-for-Ruby-to-their-dedicated-namespac.patch Patch4: 0004-Improve-description-of-cast-macros-for-Ruby.patch +Patch5: 0005-disable_li_std_wstring.patch Patch308: swig308-isfinite.diff @@ -119,7 +120,18 @@ understandig SWIG usage. %prep %setup -q -n %{name}-rel-%{version} +# for BE (Big Endian) do all patch (with 0005-disable_li_std_wstring.patch) +# bypass https://bugzilla.opensuse.org/show_bug.cgi?id=1171368 +# for all other arches do all BUT that specific one +%ifarch ppc64 s390 s390x %autopatch -p1 +%else +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch308 -p1 +%endif %build %ifarch s390 s390x