diff options
author | t-nojiri <68096132+t-nojiri@users.noreply.github.com> | 2020-10-11 10:25:36 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 20:25:36 -0500 |
commit | 1bd825674a98c6fea80aa0820c550651d6cfd77c (patch) | |
tree | 38af31c8fe71e5c7fc9a146472da44977094c801 | |
parent | b3eb07cae06e200fe47b622353e951aced4ac10a (diff) | |
download | spack-1bd825674a98c6fea80aa0820c550651d6cfd77c.tar.gz spack-1bd825674a98c6fea80aa0820c550651d6cfd77c.tar.bz2 spack-1bd825674a98c6fea80aa0820c550651d6cfd77c.tar.xz spack-1bd825674a98c6fea80aa0820c550651d6cfd77c.zip |
fl: Fix for aarch64 (#19089)
* fl: Fix for aarch64
* fl: Revise the points indicated by the review.
-rw-r--r-- | var/spack/repos/builtin/packages/fl/package.py | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/fl/package.py b/var/spack/repos/builtin/packages/fl/package.py index 98809a21f1..7270365413 100644 --- a/var/spack/repos/builtin/packages/fl/package.py +++ b/var/spack/repos/builtin/packages/fl/package.py @@ -4,6 +4,14 @@ # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * +import platform + +_versions = { + '0.79.47': { + 'Linux-x86_64': ('b8a4a74118c1a024313bf912261fbc016a53f2d15adb1226217f2a10a9f7ca9a', 'https://www.flxpert.hu/fl/fl_0.79.47-amd64-linux.tar.gz'), + 'Linux-aarch64': ('3ff052013daf319927d04ba83b8f90c12575983911faf6c1559437062032b669', 'http://www.flxpert.hu/fl/fl_0.79.47-aarch64-linux.tar.gz') + } +} class Fl(Package): @@ -13,12 +21,16 @@ class Fl(Package): homepage = "https://www.flxpert.hu/fl/" url = "https://www.flxpert.hu/fl/fl_0.79.47-amd64-linux.tar.gz" - version('0.79.47', sha256='b8a4a74118c1a024313bf912261fbc016a53f2d15adb1226217f2a10a9f7ca9a') + for ver, packages in _versions.items(): + key = "{0}-{1}".format(platform.system(), platform.machine()) + pkg = packages.get(key) + if pkg: + version(ver, sha256=pkg[0], url=pkg[1]) def install(self, spec, prefix): if (self.spec.satisfies('platform=linux') and - self.spec.target.family == 'x86_64'): + self.spec.target.family in ['x86_64', 'aarch64']): with working_dir('fl_{0}'.format(spec.version)): install_tree('.', prefix) else: - raise InstallError('fl is built for Linux x86_64 platform only.') + raise InstallError('fl requires Linux x86_64 or aarch64 platform.') |