From 65c914fff72861a44bdac20bc1f62fd5ff0879cc Mon Sep 17 00:00:00 2001 From: Brian Vanderwende Date: Mon, 12 Dec 2022 03:04:38 -0700 Subject: netcdf-c: add libxml2 when +dap (#34178) --- var/spack/repos/builtin/packages/netcdf-c/package.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'var') 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 -- cgit v1.2.3-70-g09d2