From 41ed95dbdf822c6ee1f4666837718b7a4e3d1160 Mon Sep 17 00:00:00 2001 From: Julius-Plehn Date: Wed, 7 Apr 2021 12:15:21 +0200 Subject: [PATCH] iozone: adds 3.491 and fixes permissions (#22817) --- var/spack/repos/builtin/packages/iozone/package.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/var/spack/repos/builtin/packages/iozone/package.py b/var/spack/repos/builtin/packages/iozone/package.py index 2d8645d9df..a11fef0265 100644 --- a/var/spack/repos/builtin/packages/iozone/package.py +++ b/var/spack/repos/builtin/packages/iozone/package.py @@ -4,6 +4,7 @@ # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * +import os class Iozone(MakefilePackage): @@ -14,6 +15,7 @@ class Iozone(MakefilePackage): homepage = "http://www.iozone.org/" url = "http://www.iozone.org/src/current/iozone3_465.tar" + version('3_491', sha256='2cc4842d382e46a585d1df9ae1e255695480dcc0fc05c3b1cb32ef3493d0ec9a') version('3_465', sha256='2e3d72916e7d7340a7c505fc0c3d28553fcc5ff2daf41d811368e55bd4e6a293') # TODO: Add support for other architectures as necessary @@ -22,6 +24,11 @@ class Iozone(MakefilePackage): build_directory = 'src/current' def edit(self, spec, prefix): + for dirpath, dirnames, filenames in os.walk(self.stage.source_path): + for filename in filenames: + path = os.path.join(dirpath, filename) + os.chmod(path, 0o644) + with working_dir(self.build_directory): filter_file(r'^CC\t= cc', r'CC\t= {0}'.format(spack_cc),