On Fri, 12 Jul 2024 11:35:06 -0400 Ernesto Alfonso <erjoa...@gmail.com> wrote:
> Package: cargo
> Version: 0.66.0+ds1-1
> Severity: normal
> X-Debbugs-Cc: erjoa...@gmail.com
> 
> Dear Maintainer,
> 
> Attempting to install cargo-deb using the cargo version from debian fails:
> 
>     + cargo install cargo-deb
>         Updating crates.io index
>       Installing cargo-deb v2.4.0
>     error: failed to compile `cargo-deb v2.4.0`, intermediate artifacts can
> be found at `/tmp/cargo-installkCdqlr` 
>     Caused by:
>       failed to select a version for `env_logger`.
>           ... required by package `cargo-deb v2.4.0`
>       versions that meet the requirements `^0.11` are: 0.11.3, 0.11.2,
> 0.11.1, 0.11.0 
>       the package `cargo-deb` 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 does not have an implicit feature with that name. 
>       failed to select a version for `env_logger` which could resolve this
> conflict 
>     Compilation exited abnormally with code 101 at Fri Jul 12 11:09:07
>     
> 
> As a workaround, I had to remove the apt-get installed cargo version and
> install the latest version.
> 
> Ernesto
> 
> -- System Information:
> Debian Release: 12.6
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
> 'stable') Architecture: amd64 (x86_64)

For maintainer information:

This is https://github.com/rust-lang/cargo/issues/10788,
fixed in https://github.com/rust-lang/cargo/pull/12130,
released with cargo 1.71.0.

I thought to patch env_logger since it's easy to get rid of a few "dep:"s,
but there are subsequent dependencies mandating newer cargo or rustc.

-- 
Sdrager,
Blair Noctis

Attachment: pgpU6Kjyis16P.pgp
Description: OpenPGP digital signature

Reply via email to