summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2023-11-02 15:13:13 +0100
committerGitHub <noreply@github.com>2023-11-02 08:13:13 -0600
commitaf3a29596ea52431155a98895a84f2da1cd31882 (patch)
treebf7af093c7d91ba79c53ce815f7c6efc723972fc /var
parent80944d22f775b014cfd201e895fc8777a2038786 (diff)
downloadspack-af3a29596ea52431155a98895a84f2da1cd31882.tar.gz
spack-af3a29596ea52431155a98895a84f2da1cd31882.tar.bz2
spack-af3a29596ea52431155a98895a84f2da1cd31882.tar.xz
spack-af3a29596ea52431155a98895a84f2da1cd31882.zip
go/rust bootstrap: no versions if unsupported arch (#40841)
The lookup in a dictionary causes KeyError on package load for unsupported architectures such as i386 and ppc big endian.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/go-bootstrap/package.py2
-rw-r--r--var/spack/repos/builtin/packages/rust-bootstrap/package.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/go-bootstrap/package.py b/var/spack/repos/builtin/packages/go-bootstrap/package.py
index 047f9f3353..4f5c8f0073 100644
--- a/var/spack/repos/builtin/packages/go-bootstrap/package.py
+++ b/var/spack/repos/builtin/packages/go-bootstrap/package.py
@@ -59,7 +59,7 @@ class GoBootstrap(Package):
# determine system os and architecture/target
os = platform.system().lower()
- target = go_targets[platform.machine().lower()]
+ target = go_targets.get(platform.machine().lower(), platform.machine().lower())
# construct releases for current system configuration
for release in go_releases:
diff --git a/var/spack/repos/builtin/packages/rust-bootstrap/package.py b/var/spack/repos/builtin/packages/rust-bootstrap/package.py
index 84100bf242..337618e20e 100644
--- a/var/spack/repos/builtin/packages/rust-bootstrap/package.py
+++ b/var/spack/repos/builtin/packages/rust-bootstrap/package.py
@@ -73,7 +73,7 @@ class RustBootstrap(Package):
# Determine system os and architecture/target.
os = platform.system().lower()
- target = rust_targets[platform.machine().lower()]
+ target = rust_targets.get(platform.machine().lower(), platform.machine().lower())
# Pre-release versions of the bootstrap compiler.
# Note: These versions are unchecksumed since they will change