Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust 1.73.0 #149754

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions Formula/r/rust.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@
license any_of: ["Apache-2.0", "MIT"]

stable do
# TODO: try switching to `llvm` 17 at 1.73.0.
# See: https://github.com/rust-lang/rust/issues/116020
url "https://static.rust-lang.org/dist/rustc-1.72.1-src.tar.gz"
sha256 "7f48845f6a52cdbb5d63fb0528fd5f520eb443275b55f98e328159f86568f895"
url "https://static.rust-lang.org/dist/rustc-1.73.0-src.tar.gz"
sha256 "96d62e6d1f2d21df7ac8acb3b9882411f9e7c7036173f7f2ede9e1f1f6b1bb3a"

# From https://github.com/rust-lang/rust/tree/#{version}/src/tools
# When bumping to a new version, check if we can use unversioned `libgit2`.
# See comments below for details.
resource "cargo" do
url "https://github.com/rust-lang/cargo/archive/refs/tags/0.73.1.tar.gz"
sha256 "976fb6f3e773319e60875772478645297d9eacc852857e288e8cec65399d2c88"
url "https://github.com/rust-lang/cargo/archive/9c4383fb55986096b414d98125421ab87b5fd642.tar.gz"
version "0.74.0"
sha256 "f3a6394359882e68ee2bf733f349471ea88c54d8e3f769e2ef431b7cf315cfb1"
end
end

Expand Down Expand Up @@ -46,7 +45,7 @@
# See: https://github.com/rust-lang/git2-rs/commit/59a81cac9ada22b5ea6ca2841f5bd1229f1dd659.
depends_on "[email protected]"
depends_on "libssh2"
depends_on "llvm@16"
depends_on "llvm"
depends_on "openssl@3"
depends_on "pkg-config"

Expand All @@ -58,28 +57,28 @@
resource "cargobootstrap" do
on_macos do
on_arm do
url "https://static.rust-lang.org/dist/2023-07-13/cargo-1.71.0-aarch64-apple-darwin.tar.xz"
sha256 "7637bc54d15cec656d7abb32417316546c7a784eded8677753b5dad7f05b5b09"
url "https://static.rust-lang.org/dist/2023-09-19/cargo-1.72.1-aarch64-apple-darwin.tar.xz"
sha256 "9ddf3aa3fb56a8a6f92c4ba5025c3538cb14729631d963d174804e9d0c2403de"
end
on_intel do
url "https://static.rust-lang.org/dist/2023-07-13/cargo-1.71.0-x86_64-apple-darwin.tar.xz"
sha256 "d83fe33cabf20394168f056ead44d243bd37dc96165d87867ea5114cfb52e739"
url "https://static.rust-lang.org/dist/2023-09-19/cargo-1.72.1-x86_64-apple-darwin.tar.xz"
sha256 "0bdad3ec6f8f08d7969b436dd8f53d88f99d7c3e914eb7d336c2ad3ceb0f6839"
end
end

on_linux do
on_arm do
url "https://static.rust-lang.org/dist/2023-07-13/cargo-1.71.0-aarch64-unknown-linux-gnu.tar.xz"
sha256 "13e8ff23d6af976a45f3ab451bf698e318a8d1823d588ff8a989555096f894a8"
url "https://static.rust-lang.org/dist/2023-09-19/cargo-1.72.1-aarch64-unknown-linux-gnu.tar.xz"
sha256 "40568f88c3efc2f1640e2e881a23e91ee26ec829317c4bbfb70dbd90d2923da4"
end
on_intel do
url "https://static.rust-lang.org/dist/2023-07-13/cargo-1.71.0-x86_64-unknown-linux-gnu.tar.xz"
sha256 "fe6fb520f59966300ee661d18b37c36cb3e614877c4c01dfedf987b8a9c577e9"
url "https://static.rust-lang.org/dist/2023-09-19/cargo-1.72.1-x86_64-unknown-linux-gnu.tar.xz"
sha256 "64eb3dbc8aa1c2ee2e5f12cb4fd0a714219ffec9f503f7bbaac4c92d68017ad7"
end
end
end

def install

Check failure on line 81 in Formula/r/rust.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

`brew install --verbose --build-bottle rust` failed on macOS Ventura (13)!

==> Fetching rust ==> Downloading https://github.com/rust-lang/cargo/archive/9c4383fb55986096b414d98125421ab87b5fd642.tar.gz Already downloaded: /Users/brew/Library/Caches/Homebrew/downloads/b73b0a7f0d6620bb6cede4553d7f7f31db037b6b9d8cf6de0fccea8974333dfd--cargo-9c4383fb55986096b414d98125421ab87b5fd642.tar.gz ==> Verifying checksum for 'b73b0a7f0d6620bb6cede4553d7f7f31db037b6b9d8cf6de0fccea8974333dfd--cargo-9c4383fb55986096b414d98125421ab87b5fd642.tar.gz' ==> Downloading https://static.rust-lang.org/dist/2023-09-19/cargo-1.72.1-x86_64-apple-darwin.tar.xz Already downloaded: /Users/brew/Library/Caches/Homebrew/downloads/daad6b2d9dc4596516ab661a0151c2b5be0be0545adfa8c8d77cfeee5234d393--cargo-1.72.1-x86_64-apple-darwin.tar.xz ==> Verifying checksum for 'daad6b2d9dc4596516ab661a0151c2b5be0be0545adfa8c8d77cfeee5234d393--cargo-1.72.1-x86_64-apple-darwin.tar.xz' ==> Downloading https://static.rust-lang.org/dist/rustc-1.73.0-src.tar.gz Already downloaded: /Users/brew/Library/Caches/Homebrew/downloads/ead178eeadd187a3bf36acdec33a518ee7de353e5dff5bbe966ea313e06f36fe--rustc-1.73.0-src.tar.gz ==> Verifying checksum for 'ead178eeadd187a3bf36acdec33a518ee7de353e5dff5bbe966ea313e06f36fe--rustc-1.73.0-src.tar.gz' /usr/bin/env tar --extract --no-same-owner --file /Users/brew/Library/Caches/Homebrew/downloads/ead178eeadd187a3bf36acdec33a518ee7de353e5dff5bbe966ea313e06f36fe--rustc-1.73.0-src.tar.gz --directory /private/tmp/d20231026-5720-s2oet0 /usr/bin/env cp -pR /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/. /private/tmp/rust-20231026-5720-cl1lfp/rustc-1.73.0-src cp: /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/./src/llvm-project/llvm/test/tools/llvm-extract: unable to copy extended attributes to /private/tmp/rust-20231026-5720-cl1lfp/rustc-1.73.0-src/src/llvm-project/llvm/test/tools/llvm-extract: No such file or directory cp: /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/./src/llvm-project/llvm/test/tools/llvm-extract: No such file or directory cp: /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/./src/llvm-project/llvm/test/Assembler: unable to copy extended attributes to /private/tmp/rust-20231026-5720-cl1lfp/rustc-1.73.0-src/src/llvm-project/llvm/test/Assembler: No such file or directory cp: /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/./src/llvm-project/llvm/test/Assembler: No such file or directory cp: /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/./src/llvm-project/llvm/test/SafepointIRVerifier: unable to copy extended attributes to /private/tmp/rust-20231026-5720-cl1lfp/rustc-1.73.0-src/src/llvm-project/llvm/test/SafepointIRVerifier: No such file or directory cp: /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/./src/llvm-project/llvm/test/SafepointIRVerifier: No such file or directory cp: /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/./src/llvm-project/llvm/test/Integer: unable to copy extended attributes to /private/tmp/rust-20231026-5720-cl1lfp/rustc-1.73.0-src/src/llvm-project/llvm/test/Integer: No such file or directory cp: /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/./src/llvm-project/llvm/test/Integer: No such file or directory Error: Failure while executing; `/usr/bin/env cp -pR /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/. /private/tmp/rust-20231026-5720-cl1lfp/rustc-1.73.0-src` exited with 1. Here's the output: cp: /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/./src/llvm-project/llvm/test/tools/llvm-extract: unable to copy extended attributes to /private/tmp/rust-20231026-5720-cl1lfp/rustc-1.73.0-src/src/llvm-project/llvm/test/tools/llvm-extract: No such file or directory cp: /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/./src/llvm-project/llvm/test/tools/llvm-extract: No such file or directory cp: /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/./src/llvm-project/llvm/test/Assembler: unable to copy extended attributes to /private/tmp/rust-20231026-5720-cl1lfp/rustc-1.73.0-src/src/llvm-project/llvm/test/Assembler: No such file or directory cp: /private/tmp/d20231026-5720-s2oet0/rustc-1.73.0-src/./src/llvm-project/llvm/test/Assembler:

Check failure on line 81 in Formula/r/rust.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

`brew install --verbose --build-bottle rust` failed on macOS Monterey (12) on Apple Silicon!

::endgroup:: ::group::Building tool clippy-driver (stage2 -> stage3, aarch64-apple-darwin) Compiling proc-macro2 v1.0.63 Compiling quote v1.0.29 Compiling serde v1.0.164 Compiling serde_json v1.0.99 Compiling equivalent v1.0.0 Compiling camino v1.1.4 Compiling thiserror v1.0.47 Compiling semver v1.0.17 Compiling hashbrown v0.14.0 Compiling indexmap v2.0.0 Compiling syn v2.0.27 Compiling unicode-normalization v0.1.22 Compiling either v1.8.1 Compiling winnow v0.4.7 Compiling itertools v0.10.5 Compiling idna v0.4.0 Compiling if_chain v1.0.2 Compiling arrayvec v0.7.4 Compiling rustc_tools_util v0.3.0 Compiling rustc-semver v1.1.0 Compiling clippy v0.1.73 (/private/tmp/rust-20231026-5378-1tb0p4o/rustc-1.73.0-src/src/tools/clippy) Compiling clippy_utils v0.1.73 (/private/tmp/rust-20231026-5378-1tb0p4o/rustc-1.73.0-src/src/tools/clippy/clippy_utils) Compiling url v2.4.0 Compiling unicode-script v0.5.5 Compiling quine-mc_cluskey v0.2.4 Compiling serde_derive v1.0.164 Compiling thiserror-impl v1.0.47 Compiling declare_clippy_lint v0.1.73 (/private/tmp/rust-20231026-5378-1tb0p4o/rustc-1.73.0-src/src/tools/clippy/declare_clippy_lint) Compiling termize v0.1.1 Compiling toml_datetime v0.6.3 Compiling serde_spanned v0.6.3 Compiling toml_edit v0.19.11 Compiling cargo-platform v0.1.2 Compiling toml v0.7.5 Compiling cargo_metadata v0.15.4 Compiling clippy_lints v0.1.73 (/private/tmp/rust-20231026-5378-1tb0p4o/rustc-1.73.0-src/src/tools/clippy/clippy_lints) Finished release [optimized] target(s) in 37.70s ::endgroup:: Build completed successfully in 0:13:02 ::group::Building bootstrap Finished dev [unoptimized] target(s) in 0.26s ::endgroup:: Generating unstable book md files (aarch64-apple-darwin) ::group::Building stage0 tool unstable-book-gen (aarch64-apple-darwin) Compiling proc-macro2 v1.0.63 Compiling quote v1.0.29 Compiling unicode-ident v1.0.9 Compiling memchr v2.5.0 Compiling serde v1.0.164 Compiling regex-syntax v0.7.2 Compiling syn v2.0.27 Compiling aho-corasick v1.0.2 Compiling thiserror v1.0.47 Compiling serde_json v1.0.99 Compiling camino v1.1.4 Compiling regex v1.8.4 Compiling serde_derive v1.0.164 Compiling semver v1.0.17 Compiling thiserror-impl v1.0.47 Compiling aho-corasick v0.7.20 Compiling bstr v1.5.0 Compiling itoa v1.0.6 Compiling ryu v1.0.13 Compiling log v0.4.19 Compiling same-file v1.0.6 Compiling fnv v1.0.7 Compiling autocfg v1.1.0 Compiling cfg-if v1.0.0 Compiling once_cell v1.18.0 Compiling globset v0.4.10 Compiling thread_local v1.1.7 Compiling num-traits v0.2.15 Compiling walkdir v2.3.3 Compiling cargo-platform v0.1.2 Compiling lazy_static v1.4.0 Compiling ignore v0.4.20 Compiling cargo_metadata v0.15.4 Compiling miropt-test-tools v0.1.0 (/private/tmp/rust-20231026-5378-1tb0p4o/rustc-1.73.0-src/src/tools/miropt-test-tools) Compiling termcolor v1.2.0 Compiling tidy v0.1.0 (/private/tmp/rust-20231026-5378-1tb0p4o/rustc-1.73.0-src/src/tools/tidy) Compiling unstable-book-gen v0.1.0 (/private/tmp/rust-20231026-5378-1tb0p4o/rustc-1.73.0-src/src/tools/unstable-book-gen) Finished release [optimized] target(s) in 14.26s ::endgroup:: ::group::Building stage0 tool rustbook (aarch64-apple-darwin) Compiling libc v0.2.147 Compiling cfg-if v1.0.0 Compiling ppv-lite86 v0.2.17 Compiling syn v2.0.27 Compiling siphasher v0.3.10 Compiling phf_shared v0.10.0 Compiling rustix v0.38.2 Compiling io-lifetimes v1.0.11 Compiling lock_api v0.4.10 Compiling getrandom v0.2.10 Compiling errno v0.3.1 Compiling rand_core v0.6.4 Compiling bitflags v2.3.3 Compiling rand_chacha v0.3.1 Compiling rustix v0.37.22 Compiling rand v0.8.5 Compiling parking_lot_core v0.9.8 Compiling bitflags v1.3.2 Compiling phf_generator v0.10.0 Compiling thiserror v1.0.47 C

Check failure on line 81 in Formula/r/rust.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

`brew install --verbose --build-bottle rust` failed on macOS Sonoma (14)!

Finished release [optimized] target(s) in 1m 35s ::endgroup:: ::group::Building tool clippy-driver (stage2 -> stage3, x86_64-apple-darwin) Compiling proc-macro2 v1.0.63 Compiling quote v1.0.29 Compiling serde v1.0.164 Compiling semver v1.0.17 Compiling hashbrown v0.14.0 Compiling camino v1.1.4 Compiling serde_json v1.0.99 Compiling thiserror v1.0.47 Compiling equivalent v1.0.0 Compiling indexmap v2.0.0 Compiling unicode-normalization v0.1.22 Compiling either v1.8.1 Compiling winnow v0.4.7 Compiling itertools v0.10.5 Compiling syn v2.0.27 Compiling idna v0.4.0 Compiling rustc_tools_util v0.3.0 Compiling arrayvec v0.7.4 Compiling if_chain v1.0.2 Compiling rustc-semver v1.1.0 Compiling clippy v0.1.73 (/private/tmp/rust-20231026-5977-6cl1re/rustc-1.73.0-src/src/tools/clippy) Compiling clippy_utils v0.1.73 (/private/tmp/rust-20231026-5977-6cl1re/rustc-1.73.0-src/src/tools/clippy/clippy_utils) Compiling url v2.4.0 Compiling quine-mc_cluskey v0.2.4 Compiling unicode-script v0.5.5 Compiling termize v0.1.1 Compiling serde_derive v1.0.164 Compiling thiserror-impl v1.0.47 Compiling declare_clippy_lint v0.1.73 (/private/tmp/rust-20231026-5977-6cl1re/rustc-1.73.0-src/src/tools/clippy/declare_clippy_lint) Compiling serde_spanned v0.6.3 Compiling toml_datetime v0.6.3 Compiling toml_edit v0.19.11 Compiling cargo-platform v0.1.2 Compiling cargo_metadata v0.15.4 Compiling toml v0.7.5 Compiling clippy_lints v0.1.73 (/private/tmp/rust-20231026-5977-6cl1re/rustc-1.73.0-src/src/tools/clippy/clippy_lints) Finished release [optimized] target(s) in 1m 46s ::endgroup:: Build completed successfully in 0:35:04 ::group::Building bootstrap Finished dev [unoptimized] target(s) in 0.49s ::endgroup:: Generating unstable book md files (x86_64-apple-darwin) ::group::Building stage0 tool unstable-book-gen (x86_64-apple-darwin) Compiling proc-macro2 v1.0.63 Compiling unicode-ident v1.0.9 Compiling quote v1.0.29 Compiling memchr v2.5.0 Compiling serde v1.0.164 Compiling regex-syntax v0.7.2 Compiling thiserror v1.0.47 Compiling semver v1.0.17 Compiling camino v1.1.4 Compiling serde_json v1.0.99 Compiling aho-corasick v1.0.2 Compiling syn v2.0.27 Compiling bstr v1.5.0 Compiling aho-corasick v0.7.20 Compiling regex v1.8.4 Compiling same-file v1.0.6 Compiling once_cell v1.18.0 Compiling cfg-if v1.0.0 Compiling fnv v1.0.7 Compiling ryu v1.0.13 Compiling autocfg v1.1.0 Compiling itoa v1.0.6 Compiling log v0.4.19 Compiling serde_derive v1.0.164 Compiling thiserror-impl v1.0.47 Compiling globset v0.4.10 Compiling num-traits v0.2.15 Compiling thread_local v1.1.7 Compiling walkdir v2.3.3 Compiling lazy_static v1.4.0 Compiling ignore v0.4.20 Compiling miropt-test-tools v0.1.0 (/private/tmp/rust-20231026-5977-6cl1re/rustc-1.73.0-src/src/tools/miropt-test-tools) Compiling termcolor v1.2.0 Compiling cargo-platform v0.1.2 Compiling cargo_metadata v0.15.4 Compiling tidy v0.1.0 (/private/tmp/rust-20231026-5977-6cl1re/rustc-1.73.0-src/src/tools/tidy) Compiling unstable-book-gen v0.1.0 (/private/tmp/rust-20231026-5977-6cl1re/rustc-1.73.0-src/src/tools/unstable-book-gen) Finished release [optimized] target(s) in 41.57s ::endgroup:: ::group::Building stage0 tool rustbook (x86_64-apple-darwin) Compiling libc v0.2.147 Compiling cfg-if v1.0.0 Compiling ppv-lite86 v0.2.17 Compiling siphasher v0.3.10 Compiling rustix v0.38.2 Compiling syn v2.0.27 Compiling io-lifetimes v1.0.11 Compiling phf_shared v0.10.0 Compiling lock_api v0.4.10 Compiling parking_lot_core v0.9.8 Compiling bitflags v2.3.3 Compiling bitflags v1.3.2 Compiling rustix v0.37.22 Compiling thiserror v1.0.47 Compiling getrandom v0.2.10 Compiling errno v0.3.1 Compiling syn v1.0.109 Compiling rand_core v0.6.4 Compiling scopeguard v1.1.
# Ensure that the `openssl` crate picks up the intended library.
# https://docs.rs/openssl/latest/openssl/#manual
ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix
Expand Down Expand Up @@ -122,7 +121,7 @@
--prefix=#{prefix}
--sysconfdir=#{etc}
--tools=#{tools.join(",")}
--llvm-root=#{Formula["llvm@16"].opt_prefix}
--llvm-root=#{Formula["llvm"].opt_prefix}
--enable-llvm-link-shared
--enable-vendor
--disable-cargo-native-static
Expand Down
Loading