From cb1082148b16c1cc60b51288f88f3485280a216a Mon Sep 17 00:00:00 2001 From: Harshula Jayasuriya Date: Mon, 6 Nov 2023 10:07:05 +1100 Subject: [PATCH] mom5: new switch --no_version is required * The MOM5 commit d7ba13a3f364ce130b6ad0ba813f01832cada7a2 requires the --no_version switch to avoid git hashes being embedded in the binary. --- packages/mom5/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/mom5/package.py b/packages/mom5/package.py index b7ce065..06949b1 100644 --- a/packages/mom5/package.py +++ b/packages/mom5/package.py @@ -312,12 +312,16 @@ def build(self, spec, prefix): if "+optimisation_report" in self.spec: build.add_default_env("REPORT", "true") + # The MOM5 commit d7ba13a3f364ce130b6ad0ba813f01832cada7a2 + # requires the --no_version switch to avoid git hashes being + # embedded in the binary. build( "--type", self._mom_type, "--platform", self._platform, - "--no_environ" + "--no_environ", + "--no_version" ) def install(self, spec, prefix):