From 2cb198576b382f500fb3bca78fd110c7aa423b2d Mon Sep 17 00:00:00 2001 From: Alex Richert Date: Fri, 30 Aug 2024 17:39:36 -0700 Subject: [PATCH 1/2] Fix grib-util 1.4.0 for older ifort --- var/spack/repos/builtin/packages/grib-util/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/grib-util/package.py b/var/spack/repos/builtin/packages/grib-util/package.py index 76e819348fc1dd..cf7284661dd8e9 100644 --- a/var/spack/repos/builtin/packages/grib-util/package.py +++ b/var/spack/repos/builtin/packages/grib-util/package.py @@ -50,6 +50,10 @@ def cmake_args(self): ] return args + @when("@1.4.0 %intel@:20") + def patch(self): + filter_file("stop iret", "stop 9", "src/grb2index/grb2index.F90") + def check(self): with working_dir(self.builder.build_directory): make("test") From 50c84eabab61ca88eacb708775180caa0311e2e9 Mon Sep 17 00:00:00 2001 From: Alex Richert Date: Fri, 30 Aug 2024 17:43:05 -0700 Subject: [PATCH 2/2] Update package.py --- var/spack/repos/builtin/packages/grib-util/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/grib-util/package.py b/var/spack/repos/builtin/packages/grib-util/package.py index cf7284661dd8e9..5708c29cc93cae 100644 --- a/var/spack/repos/builtin/packages/grib-util/package.py +++ b/var/spack/repos/builtin/packages/grib-util/package.py @@ -53,7 +53,7 @@ def cmake_args(self): @when("@1.4.0 %intel@:20") def patch(self): filter_file("stop iret", "stop 9", "src/grb2index/grb2index.F90") - + def check(self): with working_dir(self.builder.build_directory): make("test")