Accepting request 357387 from devel:tools:building
1 OBS-URL: https://build.opensuse.org/request/show/357387 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/swig?expand=0&rev=55
This commit is contained in:
commit
6646ae9fe7
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
11
swig308-isfinite.diff
Normal file
11
swig308-isfinite.diff
Normal file
@ -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 <ieeefp.h>
|
||||
# define SWIG_isfinite(X) (finite(X))
|
||||
+# elif defined(__GNUC__)
|
||||
+# define SWIG_isfinite(X) (__builtin_isfinite(X))
|
||||
# endif
|
||||
#endif
|
||||
%}
|
Loading…
x
Reference in New Issue
Block a user