summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMichael Kuhn <suraia@ikkoku.de>2017-10-06 21:53:05 +0200
committerChristoph Junghans <christoph.junghans@gmail.com>2017-10-06 13:53:05 -0600
commit4065ef2106b04c671e1af6690dfb9ca1686f75e8 (patch)
tree00515b2ecbfbf27b9e9ac841fa2fb9b07b7f7a74 /var
parentb9d7903cdb1a18b095c0f3e329407640d19908a2 (diff)
downloadspack-4065ef2106b04c671e1af6690dfb9ca1686f75e8.tar.gz
spack-4065ef2106b04c671e1af6690dfb9ca1686f75e8.tar.bz2
spack-4065ef2106b04c671e1af6690dfb9ca1686f75e8.tar.xz
spack-4065ef2106b04c671e1af6690dfb9ca1686f75e8.zip
ncl: Fix temp directory and depend on esmf (#5636)
* ncl: Fix temp directory Currently, ncl is configured using a transient temp directory. This leads to warnings such as this when executing ncl later on: warning:"/tmp/ncl_ncar_xxxxxx" tmp dir does not exist or is not writable: NCL functionality may be limited -- check TMPDIR environment variable As this also breaks some functionality, use the system temp directory instead (typically /tmp). * ncl: Depend on esmf esmf is required for some ncl scripts (such as ESMF_regridding.ncl).
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ncl/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/ncl/package.py b/var/spack/repos/builtin/packages/ncl/package.py
index a4ccf8bdc1..cbe83de04b 100644
--- a/var/spack/repos/builtin/packages/ncl/package.py
+++ b/var/spack/repos/builtin/packages/ncl/package.py
@@ -86,6 +86,9 @@ class Ncl(Package):
depends_on('hdf5+szip')
depends_on('szip')
+ # ESMF is only required at runtime (for ESMF_regridding.ncl)
+ depends_on('esmf', type='run')
+
# In Spack, we also do not have an option to compile netcdf without DAP
# support, so we will tell the ncl configuration script that we have it.
@@ -186,7 +189,7 @@ class Ncl(Package):
# Parent installation directory :
'\'' + self.spec.prefix + '\'\n',
# System temp space directory :
- '\'' + tempfile.mkdtemp(prefix='ncl_ncar_') + '\'\n',
+ '\'' + tempfile.gettempdir() + '\'\n',
# Build NetCDF4 feature support (optional)?
'y\n'
]