Opened 10 months ago
Closed 10 months ago
#69088 closed defect (fixed)
Rust should not try to fetch non-existing pre-built binaries for unsupported archs
Reported by: | barracuda156 | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | powerpc | Cc: | catap (Kirill A. Korinsky) |
Port: | rust |
Description
To be clear, I did not try to force installation of Rust somehow, I was merely updating a Python port, which, as it turned out, has been broken by a recent update which requires Rust.
At the moment there is no support for any macOS PowerPC systems with Rust, whether upstream or Macports. While it might be feasible to fix it, just no one tried with enough motivation, it is certainly meaningless to fetch pre-built binaries, which cannot exist. It is also misleading because it looks like a fetch error, while in reality it is not.
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option Warning: configured user/group macports does not exist, will build as root ---> Computing dependencies for rust. ---> Fetching distfiles for rust ---> rustc-1.71.1-src.tar.gz does not exist in /opt/local/var/macports/distfiles/rust ---> Attempting to fetch rustc-1.71.1-src.tar.gz from https://static.rust-lang.org/dist % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 263M 100 263M 0 0 251T 0 --:--:-- --:--:-- --:--:-- 1531k ---> rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz does not exist in /opt/local/var/macports/distfiles/rust ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from https://github.com/MarcusCalhoun-Lopez/rust/releases/download/1.71.1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 9 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://distfiles.macports.org/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 126 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://nue.de.distfiles.macports.org/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 291 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://mirror.fcix.net/macports/distfiles/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 153 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://aarnet.au.distfiles.macports.org/pub/macports/distfiles/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 278 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://atl.us.distfiles.macports.org/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 365 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://cjj.kr.distfiles.macports.org/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 146 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://cph.dk.distfiles.macports.org/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 196 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://fco.it.distfiles.macports.org/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 146 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://fra.de.distfiles.macports.org/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 279 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://jog.id.distfiles.macports.org/macports/distfiles/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 168 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://kmq.jp.distfiles.macports.org/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 305 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://mse.uk.distfiles.macports.org/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 196 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://pek.cn.distfiles.macports.org/macports/distfiles/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 153 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 162 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 ---> Attempting to fetch rust-std-1.70.0+0-powerpc-macports-darwin10.tar.gz from http://ywg.ca.distfiles.macports.org/mirror/macports/distfiles/rust % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 153 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 Error: Failed to fetch rust: The requested URL returned error: 404 Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/main.log for details. Error: Problem while installing rust
Change History (4)
comment:1 Changed 10 months ago by catap (Kirill A. Korinsky)
comment:2 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to barracuda156:
At the moment there is no support for any macOS PowerPC systems with Rust, whether upstream or Macports. While it might be feasible to fix it, just no one tried with enough motivation, it is certainly meaningless to fetch pre-built binaries, which cannot exist.
I don't think this port should need to do anything specifically to prevent fetching of archives. Instead, the port should indicate the architectures (using supported_archs
) and OS versions (using platforms
) on which it works and let MacPorts base handle the rest.
it looks like a fetch error, while in reality it is not.
That's tracked in #68869.
comment:3 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)
Er, I see now you were asking about fetching nonexistent distfiles, not archives, which is a valid concern, although possibly still solved by properly indicating which systems are supported.
comment:4 Changed 10 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I believe this can now be closed since the rust Portfile now indicates lack of PowerPC support via supported_archs
(https://github.com/macports/macports-ports/blob/342989ea6af61cc58d6b5a799367a447debad55a/lang/rust/Portfile#L47).
Well,
I'm waiting until mrust fully support rust-1.74 and I think it should happen in month or so.
After that I'll make another attempt to make a self bootstrap of rusts