Modify info print of ESMF_CPP due to permission denied errors in spack on MSU Hercules (#35969)

* Skip info print of ESMF_CPP due to permission denied errors in spack on MSU Hercules
* Better version of patch
This commit is contained in:
Dom Heinzeller 2023-03-16 13:22:57 -06:00 committed by GitHub
parent ba00da61e4
commit 4572052c63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- a/makefile 2023-03-08 22:04:26.000000000 -0600
+++ b/makefile 2023-03-08 22:05:14.000000000 -0600
@@ -97,7 +97,7 @@
-@echo "C Compiler version:"; $(ESMF_CCOMPILER_VERSION); echo ""
-@echo "--------------------------------------------------------------"
-@echo "Preprocessor version:"
- @$(ESMF_CPP) --version $(ESMF_DIR)/scripts/empty.C
+ -@echo `$(ESMF_CPP) --version $(ESMF_DIR)/scripts/empty.C`
ifeq ($(pathtype),abs)
-@echo "--------------------------------------------------------------"
-@echo "NetCDF library version: `$(ESMF_NETCDF) --version`"

View file

@ -102,6 +102,10 @@ class Esmf(MakefilePackage):
# https://trac.macports.org/ticket/57493
patch("cstddef.patch", when="@7.1.0r %gcc@8:")
# Skip info print of ESMF_CPP due to permission denied errors
# https://github.com/spack/spack/issues/35957
patch("esmf_cpp_info.patch")
# Make script from mvapich2.patch executable
@when("@:7.0")
@run_before("build")