summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomoyasu Nojiri <68096132+t-nojiri@users.noreply.github.com>2020-12-14 17:18:19 +0900
committerGitHub <noreply@github.com>2020-12-14 09:18:19 +0100
commit12c8be73b397066ce7a2b3eaf9fc0192940797b2 (patch)
tree421d7d9d36d0d1ba28aefd3ffa253a7b46a6bcc1
parentcf37e9276d826a4607afcc307f765c0708e83311 (diff)
downloadspack-12c8be73b397066ce7a2b3eaf9fc0192940797b2.tar.gz
spack-12c8be73b397066ce7a2b3eaf9fc0192940797b2.tar.bz2
spack-12c8be73b397066ce7a2b3eaf9fc0192940797b2.tar.xz
spack-12c8be73b397066ce7a2b3eaf9fc0192940797b2.zip
wps: fix build for aarch64 (#20363)
-rw-r--r--var/spack/repos/builtin/packages/wps/for_aarch64.patch11
-rw-r--r--var/spack/repos/builtin/packages/wps/package.py2
2 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/wps/for_aarch64.patch b/var/spack/repos/builtin/packages/wps/for_aarch64.patch
new file mode 100644
index 0000000000..fc71d97a1f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/wps/for_aarch64.patch
@@ -0,0 +1,11 @@
+--- spack-src/arch/configure.defaults.bak 2020-04-24 04:31:06.000000000 +0900
++++ spack-src/arch/configure.defaults 2020-12-11 15:33:51.215405970 +0900
+@@ -168,7 +168,7 @@
+ RANLIB = ranlib
+
+ ########################################################################################################################
+-#ARCH Linux x86_64, gfortran # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
++#ARCH Linux aarch64, gfortran # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
+ #
+ COMPRESSION_LIBS = CONFIGURE_COMP_L
+ COMPRESSION_INC = CONFIGURE_COMP_I
diff --git a/var/spack/repos/builtin/packages/wps/package.py b/var/spack/repos/builtin/packages/wps/package.py
index 70cbc030ad..d70207f6b9 100644
--- a/var/spack/repos/builtin/packages/wps/package.py
+++ b/var/spack/repos/builtin/packages/wps/package.py
@@ -45,6 +45,8 @@ class Wps(Package):
depends_on('jasper')
phases = ['configure', 'build', 'install']
+ patch('for_aarch64.patch', when='target=aarch64:')
+
def setup_build_environment(self, env):
env.set('WRF_DIR', self.spec['wrf'].prefix)
env.set('NETCDF', self.spec['netcdf-c'].prefix)