Skip to content

use xz files for stage0 download if on system with xz #65757

Closed
@stefson

Description

@stefson

I noticed that if ./x.py is run from a git checkout, the build script downloads the rust-std and rustc, and cargo stage0 archives from static.rust-lang.org in the tar.gz format. Those are a lot bigger in size than the also delivered tar.xz files, usually adds some 30% in download time and consumed bandwith. Do you think you could possibly change the script to use tar.xz in the future?

here's a snipet from my log:

downloading https://static.rust-lang.org/dist/2019-09-26/rust-std-1.38.0-x86_64-unknown-linux-gnu.tar.gz.sha256
running: curl -# -y 30 -Y 10 --connect-timeout 30 --retry 3 -Sf -o /var/tmp/portage/dev-lang/rust-999/temp/tmprecglk92.sha256 https://static.rust-lang.org/dist/2019-09-26/rust-std-1.38.0-x86_64-unknown-linux-gnu.tar.gz.sha256
################################################################################### 100,0%
downloading https://static.rust-lang.org/dist/2019-09-26/rust-std-1.38.0-x86_64-unknown-linux-gnu.tar.gz
running: curl -# -y 30 -Y 10 --connect-timeout 30 --retry 3 -Sf -o /var/tmp/portage/dev-lang/rust-999/temp/tmp_2fjvg1r https://static.rust-lang.org/dist/2019-09-26/rust-std-1.38.0-x86_64-unknown-linux-gnu.tar.gz
################################################################################### 100,0%
verifying /var/tmp/portage/dev-lang/rust-999/temp/tmp_2fjvg1r

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions