Package Details: flexo-git 1.6.0.r0.gec0015a-1

Git Clone URL: https://aur.archlinux.org/flexo-git.git (read-only, click to copy)
Package Base: flexo-git
Description: A central pacman cache
Upstream URL: https://github.com/nroi/flexo
Keywords: cache http mirror packages pacman
Licenses: MIT
Provides: flexo
Submitter: nrio
Maintainer: nrio
Last Packager: nrio
Votes: 5
Popularity: 0.045143
First Submitted: 2020-05-10 14:46
Last Updated: 2021-10-02 10:29

Latest Comments

nrio commented on 2021-05-15 09:52

@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.

keijko commented on 2021-05-13 13:57

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.

nrio commented on 2021-04-01 16:51

@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.

keijko commented on 2021-04-01 08:38

First try ended with following error:

Compiling autocfg v1.0.0 Compiling libc v0.2.86

error: linker cc not found | = note: No such file or directory (os error 2) error: aborting due to previous error error: could not compile libc To 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)

nrio commented on 2020-12-20 11:27

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.

nrio commented on 2020-09-08 18:22

@zhimsel sounds reasonable, I've updated the PKGBUILD to use the config from the git repo.

zhimsel commented on 2020-09-08 15:43

Looks like the config file is out of date: https://github.com/nroi/flexo/blob/master/flexo/conf/flexo.toml

Maybe they should be retrieved from the git repo directly, not included in the package.

nrio commented on 2020-05-11 20:32

@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.

cubi commented on 2020-05-10 22:02

Hi, thanks for providing flexo.

I had a error running makepkg:

==> Starting build()...
error: no default toolchain configured

I solved it by adding this

prepare() {
    rustup default stable
}

to the PKGBUILD file. Maybe there is a better solution?

Best regards