SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
|||
XXX recheck powerpc, is this still needed?
|
||||
|
||||
py-numpy only checks for expl to determine whether extended-precision
|
||||
support is present. since we don't have it yet; it implements
|
||||
it's own. however, on alpha, powerpc, it declared functions with
|
||||
types that conflict with C99 (double for *l), therefore failed.
|
||||
|
||||
Index: numpy/core/include/numpy/npy_common.h
|
||||
--- numpy/core/include/numpy/npy_common.h.orig
|
||||
+++ numpy/core/include/numpy/npy_common.h
|
||||
@@ -320,14 +320,8 @@ typedef unsigned char npy_bool;
|
||||
#define NPY_FALSE 0
|
||||
#define NPY_TRUE 1
|
||||
|
||||
-
|
||||
-#if NPY_SIZEOF_LONGDOUBLE == NPY_SIZEOF_DOUBLE
|
||||
- typedef double npy_longdouble;
|
||||
- #define NPY_LONGDOUBLE_FMT "g"
|
||||
-#else
|
||||
- typedef long double npy_longdouble;
|
||||
- #define NPY_LONGDOUBLE_FMT "Lg"
|
||||
-#endif
|
||||
+typedef long double npy_longdouble;
|
||||
+#define NPY_LONGDOUBLE_FMT "Lg"
|
||||
|
||||
#ifndef Py_USING_UNICODE
|
||||
#error Must use Python with unicode enabled.
|
12
math/py2-numpy/patches/patch-numpy_core_setup_common_py
Normal file
12
math/py2-numpy/patches/patch-numpy_core_setup_common_py
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: numpy/core/setup_common.py
|
||||
--- numpy/core/setup_common.py.orig
|
||||
+++ numpy/core/setup_common.py
|
||||
@@ -111,7 +111,7 @@ OPTIONAL_STDFUNCS = ["expm1", "log1p", "acosh", "asinh
|
||||
"rint", "trunc", "exp2", "log2", "hypot", "atan2", "pow",
|
||||
"copysign", "nextafter", "ftello", "fseeko",
|
||||
"strtoll", "strtoull", "cbrt", "strtold_l", "fallocate",
|
||||
- "backtrace", "madvise"]
|
||||
+ "madvise"]
|
||||
|
||||
|
||||
OPTIONAL_HEADERS = [
|
|
@ -0,0 +1,14 @@
|
|||
fix build of other packages (e.g. py-scipy) in some cases (e.g. when
|
||||
WRKOBJDIR has a trailing slash)
|
||||
|
||||
Index: numpy/distutils/command/build_src.py
|
||||
--- numpy/distutils/command/build_src.py.orig
|
||||
+++ numpy/distutils/command/build_src.py
|
||||
@@ -370,6 +370,7 @@ class build_src(build_ext.build_ext):
|
||||
# incl_dirs.append(self.build_src)
|
||||
build_dir = os.path.join(*([self.build_src]\
|
||||
+name.split('.')[:-1]))
|
||||
+ build_dir = os.path.normpath(build_dir)
|
||||
self.mkpath(build_dir)
|
||||
for func in func_sources:
|
||||
source = func(extension, build_dir)
|
|
@ -0,0 +1,16 @@
|
|||
Causes segmentation fault on powerpc when building py-scipy.
|
||||
|
||||
See discussion at:
|
||||
https://github.com/numpy/numpy/issues/5451
|
||||
|
||||
Index: numpy/distutils/fcompiler/gnu.py
|
||||
--- numpy/distutils/fcompiler/gnu.py.orig
|
||||
+++ numpy/distutils/fcompiler/gnu.py
|
||||
@@ -245,7 +245,6 @@ class GnuFCompiler(FCompiler):
|
||||
opt = ['-O2']
|
||||
else:
|
||||
opt = ['-O3']
|
||||
- opt.append('-funroll-loops')
|
||||
return opt
|
||||
|
||||
def _c_arch_flags(self):
|
39
math/py2-numpy/patches/patch-numpy_distutils_site_cfg
Normal file
39
math/py2-numpy/patches/patch-numpy_distutils_site_cfg
Normal file
|
@ -0,0 +1,39 @@
|
|||
--- numpy/distutils/site.cfg.orig Fri Feb 13 15:41:03 2009
|
||||
+++ numpy/distutils/site.cfg Fri Feb 13 15:41:47 2009
|
||||
@@ -0,0 +1,36 @@
|
||||
+[x11]
|
||||
+library_dirs = /usr/X11R6/lib
|
||||
+include_dirs = /usr/X11R6/include
|
||||
+
|
||||
+# Hack to stop numpy linking against random installed libraries
|
||||
+
|
||||
+[mkl]
|
||||
+mkl_libs = XXXnonexistXXX
|
||||
+
|
||||
+[blas_mkl]
|
||||
+blas_mkl_libs = XXXnonexistXXX
|
||||
+
|
||||
+[lapack_mkl]
|
||||
+lapack_mkl_libs = XXXnonexistXXX
|
||||
+
|
||||
+[fftw]
|
||||
+fftw_libs = XXXnonexistXXX
|
||||
+
|
||||
+[lapack_atlas]
|
||||
+lapack_atlas_libs = XXXnonexistXXX
|
||||
+
|
||||
+[atlas]
|
||||
+atlas_libs = XXXnonexistXXX
|
||||
+
|
||||
+[atlas_threads]
|
||||
+atlas_threads_libs = XXXnonexistXXX
|
||||
+
|
||||
+[atlas_blas]
|
||||
+atlas_blas_libs = XXXnonexistXXX
|
||||
+
|
||||
+[atlas_blas_threads]
|
||||
+atlas_blas_threads_libs = XXXnonexistXXX
|
||||
+
|
||||
+[djbfft]
|
||||
+djbfft_libs = XXXnonexistXXX
|
||||
+
|
Loading…
Add table
Add a link
Reference in a new issue