summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gromacs/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gromacs/package.py b/var/spack/repos/builtin/packages/gromacs/package.py
index 7f8309c851..7804b7ef20 100644
--- a/var/spack/repos/builtin/packages/gromacs/package.py
+++ b/var/spack/repos/builtin/packages/gromacs/package.py
@@ -273,6 +273,15 @@ class Gromacs(CMakePackage):
"#include <queue>\n#include <limits>",
"src/gromacs/modularsimulator/modularsimulator.h",
)
+ # Ref: https://gitlab.com/gromacs/gromacs/-/merge_requests/3504
+ if self.spec.satisfies("@2023"):
+ filter_file(
+ " if (std::filesystem::equivalent(searchPath, buildBinPath))",
+ " if (std::error_code c; std::filesystem::equivalent(searchPath,"
+ " buildBinPath, c))",
+ "src/gromacs/commandline/cmdlineprogramcontext.cpp",
+ string=True,
+ )
if "+plumed" in self.spec:
self.spec["plumed"].package.apply_patch(self)