diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2022-12-19 04:46:33 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-19 11:46:33 +0100 |
commit | 05c3cb7cc9eca7b787df02911a81b07bcaae1d65 (patch) | |
tree | 586bd6ac6688c0350511c64a4c17f86993b619cd | |
parent | c87b251639bbfb4b3fc73c56b4110ab6908d2e67 (diff) | |
download | spack-05c3cb7cc9eca7b787df02911a81b07bcaae1d65.tar.gz spack-05c3cb7cc9eca7b787df02911a81b07bcaae1d65.tar.bz2 spack-05c3cb7cc9eca7b787df02911a81b07bcaae1d65.tar.xz spack-05c3cb7cc9eca7b787df02911a81b07bcaae1d65.zip |
netcdf-cxx: add patch to fix macOS build (#34588)
-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 |