summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAndrew W Elble <aweits@rit.edu>2021-05-04 09:09:46 -0400
committerGitHub <noreply@github.com>2021-05-04 15:09:46 +0200
commit6714ab9b57ab6ca90837d169ab33bb0b21c9c4d9 (patch)
tree6d9fab63d1d48303bdbdcf1fd1f7f8516ac3e8af /var
parente2933b5c4b0f8814e30257570cdea80806293cd2 (diff)
downloadspack-6714ab9b57ab6ca90837d169ab33bb0b21c9c4d9.tar.gz
spack-6714ab9b57ab6ca90837d169ab33bb0b21c9c4d9.tar.bz2
spack-6714ab9b57ab6ca90837d169ab33bb0b21c9c4d9.tar.xz
spack-6714ab9b57ab6ca90837d169ab33bb0b21c9c4d9.zip
rust: add v1.51.0 (#23064)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/rust/package.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/rust/package.py b/var/spack/repos/builtin/packages/rust/package.py
index 07313b037b..b13a5057f1 100644
--- a/var/spack/repos/builtin/packages/rust/package.py
+++ b/var/spack/repos/builtin/packages/rust/package.py
@@ -88,6 +88,7 @@ class Rust(Package):
# The `x.py` bootstrapping script did not exist prior to Rust 1.17. It
# would be possible to support both, but for simplicitly, we only support
# Rust 1.17 and newer
+ version('1.51.0', sha256='7a6b9bafc8b3d81bbc566e7c0d1f17c9f499fd22b95142f7ea3a8e4d1f9eb847')
version('1.48.0', sha256='0e763e6db47d5d6f91583284d2f989eacc49b84794d1443355b85c58d67ae43b')
version('1.47.0', sha256='3185df064c4747f2c8b9bb8c4468edd58ff4ad6d07880c879ac1b173b768d81d')
version('1.46.0', sha256='2d6a3b7196db474ba3f37b8f5d50a1ecedff00738d7846840605b42bfc922728')
@@ -135,6 +136,12 @@ class Rust(Package):
# This dictionary contains a version: hash dictionary for each supported
# Rust target.
rust_releases = {
+ '1.51.0': {
+ 'x86_64-unknown-linux-gnu': '9e125977aa13f012a68fdc6663629c685745091ae244f0587dd55ea4e3a3e42f',
+ 'powerpc64le-unknown-linux-gnu': '7362f561104d7be4836507d3a53cd39444efcdf065813d559beb1f54ce9f7680',
+ 'aarch64-unknown-linux-gnu': 'fd31c78fffad52c03cac5a7c1ee5db3f34b2a77d7bc862707c0f71e209180a84',
+ 'x86_64-apple-darwin': '765212098a415996b767d1e372ce266caf94027402b269fec33291fffc085ca4'
+ },
'1.48.0': {
'x86_64-unknown-linux-gnu': '950420a35b2dd9091f1b93a9ccd5abc026ca7112e667f246b1deb79204e2038b',
'powerpc64le-unknown-linux-gnu': 'e6457a0214f3b1b04bd5b2618bba7e3826e254216420dede2971b571a1c13bb1',
@@ -476,6 +483,14 @@ class Rust(Package):
return '@{0}:'.format(version) in self.spec
+ def patch(self):
+ if self.spec.satisfies('@1.51.0'):
+ # see 31c93397bde7 upstream
+ filter_file('panic!(out);',
+ 'panic!("{}", out);',
+ 'src/bootstrap/builder.rs',
+ string=True)
+
def configure(self, spec, prefix):
target = self.get_rust_target()