Back-port a patch for filesystem logic in gmx
executable. (#35672)
* Backport a patch for relocatable `gmx` executable. * spack style fixes
This commit is contained in:
parent
043a80ff9e
commit
b109e16fba
@ -273,6 +273,15 @@ def patch(self):
|
|||||||
"#include <queue>\n#include <limits>",
|
"#include <queue>\n#include <limits>",
|
||||||
"src/gromacs/modularsimulator/modularsimulator.h",
|
"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:
|
if "+plumed" in self.spec:
|
||||||
self.spec["plumed"].package.apply_patch(self)
|
self.spec["plumed"].package.apply_patch(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user