diff options
-rw-r--r-- | var/spack/repos/builtin/packages/netcdf-cxx/macos.patch | 11 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/netcdf-cxx/package.py | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/netcdf-cxx/macos.patch b/var/spack/repos/builtin/packages/netcdf-cxx/macos.patch new file mode 100644 index 0000000000..0f81a3d763 --- /dev/null +++ b/var/spack/repos/builtin/packages/netcdf-cxx/macos.patch @@ -0,0 +1,11 @@ +--- a/configure 2011-09-30 09:34:31.000000000 -0500 ++++ b/configure 2022-12-16 22:16:06.250866499 -0600 +@@ -2329,7 +2329,7 @@ + + # Create the VERSION file, which contains the package version from + # AC_INIT. +-echo -n 4.2>VERSION ++echo -n 4.2>VERSION.txt + + + { $as_echo "$as_me:${as_lineno-$LINENO}: netCDF-cxx 4.2" >&5 diff --git a/var/spack/repos/builtin/packages/netcdf-cxx/package.py b/var/spack/repos/builtin/packages/netcdf-cxx/package.py index 270408d83d..bec5fee2ec 100644 --- a/var/spack/repos/builtin/packages/netcdf-cxx/package.py +++ b/var/spack/repos/builtin/packages/netcdf-cxx/package.py @@ -21,6 +21,9 @@ class NetcdfCxx(AutotoolsPackage): variant("netcdf4", default=True, description="Compile with netCDF4 support") + # https://github.com/Unidata/netcdf-cxx4/pull/112 + patch("macos.patch") + @property def libs(self): shared = True |