Remove '-funroll-loops' to workaround a segmentation fault on powerpc when

building py-scipy.

maintainer timeout
discussed with and ok eric@, ok jasper@
This commit is contained in:
ajacoutot 2010-01-17 19:45:47 +00:00
parent 13d502e738
commit 7bc017f4ee
2 changed files with 21 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.18 2009/10/14 18:44:04 sthen Exp $
# $OpenBSD: Makefile,v 1.19 2010/01/17 19:45:47 ajacoutot Exp $
COMMENT= fast array and numeric programming library for Python
MODPY_EGG_VERSION= 1.3.0
DISTNAME= numpy-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}p1
PKGNAME= py-${DISTNAME}p2
CATEGORIES= math devel
HOMEPAGE= http://numpy.scipy.org/
@ -16,6 +16,7 @@ PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= blas m g2c
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=numpy/}
@ -28,6 +29,11 @@ REGRESS_DEPENDS= ::devel/py-nose
LIB_DEPENDS= lapack::math/lapack
# XXX Segmentation fault on powerpc when building py-scipy:
# remove '-funroll-loops'
.if ${MACHINE_ARCH} == "powerpc"
PATCH_LIST= patch-* powerpc-patch-numpy_distutils_fcompiler_gnu_py
.endif
pre-build:
cp -f ${WRKSRC}/numpy/distutils/site.cfg ${WRKSRC}/site.cfg

View File

@ -0,0 +1,13 @@
$OpenBSD: powerpc-patch-numpy_distutils_fcompiler_gnu_py,v 1.1 2010/01/17 19:45:47 ajacoutot Exp $
--- numpy/distutils/fcompiler/gnu.py.orig Fri Jan 15 11:07:00 2010
+++ numpy/distutils/fcompiler/gnu.py Fri Jan 15 11:07:50 2010
@@ -191,7 +191,8 @@ class GnuFCompiler(FCompiler):
opt = ['-O2']
else:
opt = ['-O3']
- opt.append('-funroll-loops')
+# Segmentation fault on powerpc when building py-scipy
+# opt.append('-funroll-loops')
return opt
def get_flags_arch(self):