summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomoyasu Nojiri <68096132+t-nojiri@users.noreply.github.com>2021-02-27 00:39:08 +0900
committerGitHub <noreply@github.com>2021-02-26 15:39:08 +0000
commitb6ac3bb6d73b63c39f74e91d7a0d49db8e58ac09 (patch)
treeacf6c164e424e7cfc8d70bb063f6cbb1c7aa99ec
parentc2784b2d419a63fc81a52391b93254db2783725c (diff)
downloadspack-b6ac3bb6d73b63c39f74e91d7a0d49db8e58ac09.tar.gz
spack-b6ac3bb6d73b63c39f74e91d7a0d49db8e58ac09.tar.bz2
spack-b6ac3bb6d73b63c39f74e91d7a0d49db8e58ac09.tar.xz
spack-b6ac3bb6d73b63c39f74e91d7a0d49db8e58ac09.zip
ncl: allow building on aarch64 (#21984)
-rw-r--r--var/spack/repos/builtin/packages/ncl/for_aarch64.patch10
-rw-r--r--var/spack/repos/builtin/packages/ncl/package.py2
2 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ncl/for_aarch64.patch b/var/spack/repos/builtin/packages/ncl/for_aarch64.patch
new file mode 100644
index 0000000000..23799d8d00
--- /dev/null
+++ b/var/spack/repos/builtin/packages/ncl/for_aarch64.patch
@@ -0,0 +1,10 @@
+--- spack-src/config/ymake.bak 2021-02-26 14:49:53.611863443 +0900
++++ spack-src/config/ymake 2021-02-26 14:52:08.501852485 +0900
+@@ -367,6 +367,7 @@
+ case x*64:
+ case p*64:
+ case alpha:
++ case aarch64:
+ set model = $mach
+ set arch = $mach
+ set sysincs = LINUX
diff --git a/var/spack/repos/builtin/packages/ncl/package.py b/var/spack/repos/builtin/packages/ncl/package.py
index b4626232e6..df5b8015c1 100644
--- a/var/spack/repos/builtin/packages/ncl/package.py
+++ b/var/spack/repos/builtin/packages/ncl/package.py
@@ -23,6 +23,8 @@ class Ncl(Package):
version('6.5.0', sha256='133446f3302eddf237db56bf349e1ebf228240a7320699acc339a3d7ee414591')
version('6.4.0', sha256='0962ae1a1d716b182b3b27069b4afe66bf436c64c312ddfcf5f34d4ec60153c8')
+ patch('for_aarch64.patch', when='target=aarch64:')
+
patch('spack_ncl.patch')
# Make ncl compile with hdf5 1.10 (upstream as of 6.5.0)
patch('hdf5.patch', when="@6.4.0")