summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorh-denpo <57649496+h-denpo@users.noreply.github.com>2020-06-16 12:29:35 +0900
committerGitHub <noreply@github.com>2020-06-16 05:29:35 +0200
commit01d9063bb1f411b9d57b528119e0b080b3a6e6b2 (patch)
tree36beb1a541433c9f48a9468f22be56954b9648bd /var
parente5066664ab6f89464a90efbf85121663dbcd2132 (diff)
downloadspack-01d9063bb1f411b9d57b528119e0b080b3a6e6b2.tar.gz
spack-01d9063bb1f411b9d57b528119e0b080b3a6e6b2.tar.bz2
spack-01d9063bb1f411b9d57b528119e0b080b3a6e6b2.tar.xz
spack-01d9063bb1f411b9d57b528119e0b080b3a6e6b2.zip
ffb: prevent the architecture to be always "x86_64" (#17093)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ffb/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ffb/package.py b/var/spack/repos/builtin/packages/ffb/package.py
index e7c1272a13..d9de2b9862 100644
--- a/var/spack/repos/builtin/packages/ffb/package.py
+++ b/var/spack/repos/builtin/packages/ffb/package.py
@@ -107,6 +107,10 @@ class Ffb(MakefilePackage):
m.filter(r'-lmpi_f77', '')
os.chmod(makeall, 0o755)
+ editfile = join_path('lib', 'src', 'Makeall')
+ m = FileFilter(editfile)
+ m.filter(r'x86_64-linux', '{0}-linux'.format(spec.target.family))
+
editfile = join_path('lib', 'src', 'REVOCAP_Refiner-0.4.3', 'OPTIONS')
m = FileFilter(editfile)
m.filter(r'ARCH\s*=.*$', 'ARCH= $(shell arch)-linux')