summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBrian Vanderwende <vanderwb@ucar.edu>2022-12-12 03:04:38 -0700
committerGitHub <noreply@github.com>2022-12-12 11:04:38 +0100
commit65c914fff72861a44bdac20bc1f62fd5ff0879cc (patch)
tree6f7c8e5f61ae08b9e693f16a3695fd64a0c213ce /var
parentdd7b2deb479006dc22fc60d7f10ea36cdac780b9 (diff)
downloadspack-65c914fff72861a44bdac20bc1f62fd5ff0879cc.tar.gz
spack-65c914fff72861a44bdac20bc1f62fd5ff0879cc.tar.bz2
spack-65c914fff72861a44bdac20bc1f62fd5ff0879cc.tar.xz
spack-65c914fff72861a44bdac20bc1f62fd5ff0879cc.zip
netcdf-c: add libxml2 when +dap (#34178)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/netcdf-c/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/netcdf-c/package.py b/var/spack/repos/builtin/packages/netcdf-c/package.py
index de3f8950cc..1026ce1e83 100644
--- a/var/spack/repos/builtin/packages/netcdf-c/package.py
+++ b/var/spack/repos/builtin/packages/netcdf-c/package.py
@@ -98,6 +98,10 @@ class NetcdfC(AutotoolsPackage):
depends_on("curl@7.18.0:", when="+dap")
# depends_on("curl@7.18.0:", when='+cdmremote')
+ # Need to include libxml2 when using DAP in 4.9.0 and newer to build
+ # https://github.com/Unidata/netcdf-c/commit/53464e89635a43b812b5fec5f7abb6ff34b9be63
+ depends_on("libxml2", when="@4.9.0:+dap")
+
depends_on("parallel-netcdf", when="+parallel-netcdf")
# We need to build with MPI wrappers if any of the two