summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Peterson <lavajoe@gentoo.org>2007-11-21 01:31:18 +0000
committerJoe Peterson <lavajoe@gentoo.org>2007-11-21 01:31:18 +0000
commit1e91807564eef1653a0f4b1f50ae561639cd03b4 (patch)
tree2cba5d66feb02f4e7b77496005fc04a07c522c44 /dev-python/numpy/files
parentversion bump + removal (diff)
downloadgentoo-2-1e91807564eef1653a0f4b1f50ae561639cd03b4.tar.gz
gentoo-2-1e91807564eef1653a0f4b1f50ae561639cd03b4.tar.bz2
gentoo-2-1e91807564eef1653a0f4b1f50ae561639cd03b4.zip
Patch for FreeBSD, and add ~x86-fbsd keyword (bug #199825)
(Portage version: 2.1.3.19)
Diffstat (limited to 'dev-python/numpy/files')
-rw-r--r--dev-python/numpy/files/numpy-1.0.4-freebsd.patch69
1 files changed, 69 insertions, 0 deletions
diff --git a/dev-python/numpy/files/numpy-1.0.4-freebsd.patch b/dev-python/numpy/files/numpy-1.0.4-freebsd.patch
new file mode 100644
index 000000000000..a0d86f13e8ec
--- /dev/null
+++ b/dev-python/numpy/files/numpy-1.0.4-freebsd.patch
@@ -0,0 +1,69 @@
+diff -Nur numpy-1.0.4.old/numpy/core/include/numpy/ufuncobject.h numpy-1.0.4/numpy/core/include/numpy/ufuncobject.h
+--- numpy-1.0.4.old/numpy/core/include/numpy/ufuncobject.h 2007-11-07 15:05:15 -0700
++++ numpy-1.0.4/numpy/core/include/numpy/ufuncobject.h 2007-11-20 18:10:46 -0700
+@@ -223,6 +223,10 @@
+ /* This code checks the IEEE status flags in a platform-dependent way */
+ /* Adapted from Numarray */
+
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++
+ /* OSF/Alpha (Tru64) ---------------------------------------------*/
+ #if defined(__osf__) && defined(__alpha)
+
+@@ -267,7 +271,7 @@
+ /* Solaris --------------------------------------------------------*/
+ /* --------ignoring SunOS ieee_flags approach, someone else can
+ ** deal with that! */
+-#elif defined(sun) || defined(__BSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
++#elif defined(sun) || defined(__BSD__) || defined(__OpenBSD__) || (defined(__FreeBSD__) && (__FreeBSD_version < 502114)) || defined(__NetBSD__)
+ #include <ieeefp.h>
+
+ #define UFUNC_CHECK_STATUS(ret) { \
+@@ -281,9 +285,9 @@
+ (void) fpsetsticky(0); \
+ }
+
+-#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__)
++#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
+
+-#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__)
++#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__) || defined(__FreeBSD__)
+ #include <fenv.h>
+ #elif defined(__CYGWIN__)
+ #include "fenv/fenv.c"
+diff -Nur numpy-1.0.4.old/numpy/numarray/_capi.c numpy-1.0.4/numpy/numarray/_capi.c
+--- numpy-1.0.4.old/numpy/numarray/_capi.c 2007-11-07 15:05:16 -0700
++++ numpy-1.0.4/numpy/numarray/_capi.c 2007-11-20 18:05:20 -0700
+@@ -4,7 +4,11 @@
+ #include "numpy/libnumarray.h"
+ #include <float.h>
+
+-#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__)
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++
++#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
+ #include <fenv.h>
+ #elif defined(__CYGWIN__)
+ #include "numpy/fenv/fenv.h"
+@@ -231,7 +235,7 @@
+ }
+
+ /* Likewise for Integer overflows */
+-#if defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__)
++#if defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
+ static int int_overflow_error(Float64 value) { /* For x86_64 */
+ feraiseexcept(FE_OVERFLOW);
+ return (int) value;
+@@ -2939,7 +2943,7 @@
+ return retstatus;
+ }
+
+-#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__)
++#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
+
+ static int
+ NA_checkFPErrors(void)