diff options
Diffstat (limited to 'lang/rust-bootstrap')
| -rw-r--r-- | lang/rust-bootstrap/Makefile | 2 | ||||
| -rw-r--r-- | lang/rust-bootstrap/distinfo | 6 | ||||
| -rw-r--r-- | lang/rust-bootstrap/sync.sh | 10 |
3 files changed, 13 insertions, 5 deletions
diff --git a/lang/rust-bootstrap/Makefile b/lang/rust-bootstrap/Makefile index f0694e3a6143..b9cfd2d41bb7 100644 --- a/lang/rust-bootstrap/Makefile +++ b/lang/rust-bootstrap/Makefile @@ -2,7 +2,7 @@ # to upload them to ~/public_distfiles on freefall in preparation # for the next lang/rust update. PORTNAME= rust -PORTVERSION= 1.91.0 +PORTVERSION= 1.92.0 CATEGORIES= lang MASTER_SITES= https://static.rust-lang.org/dist/ PKGNAMEPREFIX= ${FLAVOR:S/_/-/g}- diff --git a/lang/rust-bootstrap/distinfo b/lang/rust-bootstrap/distinfo index 4a89d6c71a4e..4ea8437304c8 100644 --- a/lang/rust-bootstrap/distinfo +++ b/lang/rust-bootstrap/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1761898188 -SHA256 (rust/rustc-1.91.0-src.tar.xz) = 9b94161dba3aa32192e0e75f7891912d98095ffb86087b07a05af35a0265a938 -SIZE (rust/rustc-1.91.0-src.tar.xz) = 270987196 +TIMESTAMP = 1765474851 +SHA256 (rust/rustc-1.92.0-src.tar.xz) = ebee170bfe4c4dfc59521a101de651e5534f4dae889756a5c97ca9ea40d0c307 +SIZE (rust/rustc-1.92.0-src.tar.xz) = 271887480 diff --git a/lang/rust-bootstrap/sync.sh b/lang/rust-bootstrap/sync.sh index 80b0471e1015..258f9b7cbc61 100644 --- a/lang/rust-bootstrap/sync.sh +++ b/lang/rust-bootstrap/sync.sh @@ -1,4 +1,5 @@ #!/bin/sh +# Requires: pkg install yq # Upload Rust bootstraps available on pkg.FreeBSD.org to your # ~/public_distfiles on freefall for the next lang/rust update. # Change ABI below to select from which build to fetch the packages @@ -7,8 +8,15 @@ set -xeu : "${PORTSDIR=/usr/ports}" : "${DATADIR=/tmp/rust-bootstrap}" +fetch -qo /tmp/channel-rust-stable.toml https://dev-static.rust-lang.org/dist/channel-rust-stable.toml +version=$(</tmp/channel-rust-stable.toml tomlq -r '.pkg.rustc.version | split(" ")[0]') +new_commit=$(</tmp/channel-rust-stable.toml tomlq -r '.pkg.rustc.git_commit_hash') +rm /tmp/channel-rust-stable.toml + +fetch -qo /tmp/stage0 https://raw.githubusercontent.com/rust-lang/rust/${new_commit}/src/stage0 +date=$(awk -F "=" /^compiler_date/'{print $2}' /tmp/stage0) + version=$(make -C "${PORTSDIR}/lang/rust" -V PORTVERSION) -date=$(fetch -qo- https://static.rust-lang.org/dist/channel-rust-stable-date.txt) export ABI=FreeBSD:13:amd64 export INSTALL_AS_USER=1 |
