Open vngzs opened 5 months ago
I ran into a similar issue and fixed it by running:
rustup update
After that, paru built like normal.
That worked, but I wonder whether it's not still a PKGBUILD bug. Shouldn't the PKGBUILD ensure we have a sufficient Rust version to correctly execute the build instructions?
With cargo 1.70.0, I found same issue.
$ git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
Cloning into 'paru'...
remote: Enumerating objects: 184, done.
remote: Counting objects: 100% (184/184), done.
remote: Compressing objects: 100% (128/128), done.
remote: Total 184 (delta 57), reused 183 (delta 56), pack-reused 0 (from 0)
Receiving objects: 100% (184/184), 57.78 KiB | 206.00 KiB/s, done.
Resolving deltas: 100% (57/57), done.
==> Making package: paru 2.0.3-1 (2024年05月23日 10時20分45秒)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading paru-2.0.3.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 8049k 0 8049k 0 0 5722k 0 --:--:-- 0:00:01 --:--:-- 9.8M
==> Validating source files with sha256sums...
paru-2.0.3.tar.gz ... Passed
==> Extracting sources...
-> Extracting paru-2.0.3.tar.gz with bsdtar
==> Starting prepare()...
Updating crates.io index
error: failed to select a version for `env_logger`.
... required by package `paru v2.0.3 (/home/kyoh86/paru/src/paru-2.0.3)`
versions that meet the requirements `^0.11.3` (locked to 0.11.3) are: 0.11.3
the package `paru` depends on `env_logger`, with features: `anstream` but `env_logger` does not have these features.
It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it
oes not have an implicit feature with that name.
failed to select a version for `env_logger` which could resolve this conflict
==> ERROR: A failure occurred in prepare().
Aborting...
$ cargo --version
cargo 1.70.0 (ec8a8a0ca 2023-04-25)
$ rustup --version
rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.70.0 (90c541806 2023-05-31)`
Affected Version
2.0.3-1 AUR
Description
This was reported by another user on the AUR page.
Output