hpctoolkit: restrict one patch to :2022 (#44268)

Restrict the hpcrun-fmt.txt patch to :2022.  It's fixed in the code
after that, and in recent develop, some code paths have moved causing
this patch to fail.
This commit is contained in:
Mark W. Krentel 2024-05-20 02:44:28 -05:00 committed by GitHub
parent 60d10848c8
commit c61c707aa5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -234,6 +234,7 @@ class Hpctoolkit(AutotoolsPackage, MesonPackage):
# Fix a bug where make would mistakenly overwrite hpcrun-fmt.h. # Fix a bug where make would mistakenly overwrite hpcrun-fmt.h.
# https://gitlab.com/hpctoolkit/hpctoolkit/-/merge_requests/751 # https://gitlab.com/hpctoolkit/hpctoolkit/-/merge_requests/751
@when("@:2022")
def patch(self): def patch(self):
with working_dir(join_path("src", "lib", "prof-lean")): with working_dir(join_path("src", "lib", "prof-lean")):
if os.access("hpcrun-fmt.txt", os.F_OK): if os.access("hpcrun-fmt.txt", os.F_OK):