diff options
author | Julius-Plehn <Julius-Plehn@users.noreply.github.com> | 2021-04-07 12:15:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-07 12:15:21 +0200 |
commit | 41ed95dbdf822c6ee1f4666837718b7a4e3d1160 (patch) | |
tree | d4ea0012e294bc00721fdfba2fd0bd45be5736e9 | |
parent | b7d72e26bb5dae2517d1b91030269144833a6e94 (diff) | |
download | spack-41ed95dbdf822c6ee1f4666837718b7a4e3d1160.tar.gz spack-41ed95dbdf822c6ee1f4666837718b7a4e3d1160.tar.bz2 spack-41ed95dbdf822c6ee1f4666837718b7a4e3d1160.tar.xz spack-41ed95dbdf822c6ee1f4666837718b7a4e3d1160.zip |
iozone: adds 3.491 and fixes permissions (#22817)
-rw-r--r-- | var/spack/repos/builtin/packages/iozone/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
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), |