


















Build fails with:
error: failed to get `crossbeam` as a dependency of package `flexo v1.6.8 (/tmp/yaourt-tmp-dave/aur-flexo/src/flexo-1.6.8/flexo)`
Caused by:
failed to fetch `https://github.com/rust-lang/crates.io-index`
Caused by:
error reading from the zlib stream; class=Zlib (5)
@keijko thanks for the hint, I hadn't updated Rust in a while so this warning did not show up for me. This is now fixed.
Your speed of reaction is madness! :-) ;-)
Just a hint. During compile I get following warning: *F..k markdown syntax! The warning hints shows to serde and Deserialize.
warning: derive helper attribute is used before it is introduced --> src/mirror_config.rs:14:3 | 14 | #[serde(rename_all = "lowercase")] | ^^^^^ 15 | #[derive(Deserialize, Debug, Copy, Clone, PartialEq, Eq)] | ----------- the attribute is introduced here | = note:
#[warn(legacy_derive_helpers)]on by default = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #79202 https://github.com/rust-lang/rust/issues/79202>
Same warnings in same file at line 58/59 and /src/mirror_fetch.rs -> 44/45.
@keijko: Flexo requires gcc during the build process, but gcc is already included in base-devel. According to the Wiki, such dependencies are not required to be included as build-time dependencies: https://wiki.archlinux.org/index.php/makepkg
Thanks for the info about the panic message, this has been fixed on the dev-branch.
First try ended with following error:
Compiling autocfg v1.0.0 Compiling libc v0.2.86
error: linker
ccnot found | = note: No such file or directory (os error 2) error: aborting due to previous error error: could not compilelibcTo learn more, run the command again with --verbose.
After short research I realized cargo wasn't able to find c-compiler. Therefore I installed gcc and retried compiling with success.
Maybe an interesting additional information about a warning:
warning: panic message is not a string literal
--> src/mirror_config.rs:136:26
|
136 | Err(e) => panic!(format!("Unable to parse file {}: {:?}\nPlease make sure that the file contains \
| ____^
137 | | valid TOML syntax and that all required attributes are set.", CONFIG_FILE, e))
| |_________________^
|
= note: #[warn(non_fmt_panic)] on by default
= note: this is no longer accepted in Rust 2021
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
If you have installed Flexo prior to 2020-12-20, please edit your /etc/flexo/flexo.toml file and replace the value of "mirrors_status_json_endpoint" by "https://archlinux.org/mirrors/status/json/". (Notice that the URL does NOT include www). If you don't change this value, Flexo will eventually fail to start.
@zhimsel sounds reasonable, I've updated the PKGBUILD to use the config from the git repo.
@cubie thanks for reporting this. Interestingly, popular packages such as alacritty-git or ripgrep-git have the same issue.
running prepare() like you suggested is not ideal, because I would prefer to not mess with the user's rustup config. Also, the user may not even have rustup installed. Cargo is provided both by rust and rustup, so the user may have installed rust instead of rustup.
I'm still looking for another rust package on AUR that has an elegant solution to this problem, until then, if you run into this issue, just run
rustup install stable
rustup default stable
and build the package again.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
@jooch: The package builds without any issues on my machine. It downloads and compiles crossbeam without any errors.
Does this issue still happen for you? Maybe some remote resource was down temporarily. If it still happens: Do you have any non-standard internet setup, like an HTTP proxy?