From 74c07b6309ebd7b0dcbfbb980c3ba87f31708c0facd49f2bac96c7f9e9e8b2e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Thu, 7 Jan 2016 21:11:18 +0000 Subject: [PATCH] - Add swig308-Fix-li_boost_array-test.patch to fix boost::array test on PPC. OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=87 --- swig.changes | 6 ++++++ swig.spec | 2 ++ swig308-Fix-li_boost_array-test.patch | 12 ++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 swig308-Fix-li_boost_array-test.patch diff --git a/swig.changes b/swig.changes index c54d281..664e8db 100644 --- a/swig.changes +++ b/swig.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 7 21:08:33 UTC 2016 - idonmez@suse.com + +- Add swig308-Fix-li_boost_array-test.patch to fix boost::array + test on PPC. + ------------------------------------------------------------------- Thu Jan 7 08:13:38 UTC 2016 - kkaempf@suse.com diff --git a/swig.spec b/swig.spec index c10ccc8..ee3e3f4 100644 --- a/swig.spec +++ b/swig.spec @@ -25,6 +25,7 @@ Group: Development/Languages/C and C++ Url: http://www.swig.org/ Source: http://sourceforge.net/projects/swig/files/swig/%{name}-%{version}/%{name}-%{version}.tar.gz Source1: %{name}.rpmlintrc +Patch1: swig308-Fix-li_boost_array-test.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: boost-devel @@ -118,6 +119,7 @@ understandig SWIG usage. %prep %setup -q +%patch1 -p1 %build ./autogen.sh diff --git a/swig308-Fix-li_boost_array-test.patch b/swig308-Fix-li_boost_array-test.patch new file mode 100644 index 0000000..ba57231 --- /dev/null +++ b/swig308-Fix-li_boost_array-test.patch @@ -0,0 +1,12 @@ +diff -up swig-3.0.8/Examples/test-suite/li_boost_array.i.orig swig-3.0.8/Examples/test-suite/li_boost_array.i +--- swig-3.0.8/Examples/test-suite/li_boost_array.i.orig 2016-01-06 08:09:48.851786620 +0100 ++++ swig-3.0.8/Examples/test-suite/li_boost_array.i 2016-01-06 08:10:54.028471052 +0100 +@@ -31,7 +31,7 @@ namespace boost { + + %inline %{ + boost::array arrayOutVal() { +- const char carray[] = { -2, -1, 0, 0, 1, 2 }; ++ const signed char carray[] = { -2, -1, 0, 0, 1, 2 }; + boost::array myarray; + for (size_t i=0; i<6; ++i) { + myarray[i] = carray[i];