diff --git a/swig.changes b/swig.changes index 664e8db..25b20da 100644 --- a/swig.changes +++ b/swig.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 2 14:45:14 UTC 2016 - rguenther@suse.com + +- Add swig308-isfinite.diff to fix isfinite issue with new glibc. + ------------------------------------------------------------------- Thu Jan 7 21:08:33 UTC 2016 - idonmez@suse.com diff --git a/swig.spec b/swig.spec index ee3e3f4..bf19949 100644 --- a/swig.spec +++ b/swig.spec @@ -26,6 +26,7 @@ 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 +Patch2: swig308-isfinite.diff BuildRequires: autoconf BuildRequires: automake BuildRequires: boost-devel @@ -120,6 +121,7 @@ understandig SWIG usage. %prep %setup -q %patch1 -p1 +%patch2 %build ./autogen.sh diff --git a/swig308-isfinite.diff b/swig308-isfinite.diff new file mode 100644 index 0000000..5aa0431 --- /dev/null +++ b/swig308-isfinite.diff @@ -0,0 +1,11 @@ +--- Lib/typemaps/fragments.swg.orig 2016-02-02 14:42:14.223467628 +0000 ++++ Lib/typemaps/fragments.swg 2016-02-02 14:43:41.840491612 +0000 +@@ -175,6 +175,8 @@ + # elif defined(__sun) && defined(__SVR4) + # include + # define SWIG_isfinite(X) (finite(X)) ++# elif defined(__GNUC__) ++# define SWIG_isfinite(X) (__builtin_isfinite(X)) + # endif + #endif + %}