ncl: allow building on aarch64 (#21984)

This commit is contained in:
Tomoyasu Nojiri 2021-02-27 00:39:08 +09:00 committed by GitHub
parent c2784b2d41
commit b6ac3bb6d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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")