iozone: adds 3.491 and fixes permissions (#22817)
This commit is contained in:
parent
b7d72e26bb
commit
41ed95dbdf
1 changed files with 7 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue