summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort-nojiri <68096132+t-nojiri@users.noreply.github.com>2020-10-31 04:54:04 +0900
committerGitHub <noreply@github.com>2020-10-30 14:54:04 -0500
commitae3178f4ebd083127aaba005b8f4505026a70dc0 (patch)
treefc258867b69ae4116105d715c1887cf62c0e1f45
parent31f57e56bb3c71f03d2ea2d265d0fa4713f0baa6 (diff)
downloadspack-ae3178f4ebd083127aaba005b8f4505026a70dc0.tar.gz
spack-ae3178f4ebd083127aaba005b8f4505026a70dc0.tar.bz2
spack-ae3178f4ebd083127aaba005b8f4505026a70dc0.tar.xz
spack-ae3178f4ebd083127aaba005b8f4505026a70dc0.zip
py-pycbc: Fix for aarch64 (#19563)
* py-pycbc: Fix for aarch64 * py-pycbc: Change patch application conditions
-rw-r--r--var/spack/repos/builtin/packages/py-pycbc/for_aarch64.patch11
-rw-r--r--var/spack/repos/builtin/packages/py-pycbc/package.py2
2 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pycbc/for_aarch64.patch b/var/spack/repos/builtin/packages/py-pycbc/for_aarch64.patch
new file mode 100644
index 0000000000..22425f3a45
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pycbc/for_aarch64.patch
@@ -0,0 +1,11 @@
+--- spack-src/setup.py.bak 2019-07-02 09:00:09.000000000 +0900
++++ spack-src/setup.py 2020-10-28 10:58:22.559034050 +0900
+@@ -207,7 +207,7 @@
+ 'filter.matchedfilter',
+ 'vetoes.chisq']
+ ext = []
+-cython_compile_args = ['-O3', '-w', '-msse4.2', '-ffast-math',
++cython_compile_args = ['-O3', '-w', '-ffast-math',
+ '-ffinite-math-only']
+ cython_link_args = []
+ # Mac's clang compiler doesn't have openMP support by default. Therefore
diff --git a/var/spack/repos/builtin/packages/py-pycbc/package.py b/var/spack/repos/builtin/packages/py-pycbc/package.py
index f7e96a3221..d315133885 100644
--- a/var/spack/repos/builtin/packages/py-pycbc/package.py
+++ b/var/spack/repos/builtin/packages/py-pycbc/package.py
@@ -38,3 +38,5 @@ class PyPycbc(PythonPackage):
depends_on('py-six@1.10.0:', type=('build', 'run'))
depends_on('py-ligo-segments', type=('build', 'run'))
depends_on('py-weave@0.16.0:', when='^python@:2', type=('build', 'run'))
+
+ patch('for_aarch64.patch', when='@:1.14.1 target=aarch64:')