[Pkg-rust-maintainers] Bug#1076209: cargo-deb fails to install on cargo 1.65.0

Blair Noctis n at sail.ng
Fri Jul 12 17:25:06 BST 2024


On Fri, 12 Jul 2024 11:35:06 -0400 Ernesto Alfonso <erjoalgo at gmail.com> wrote:
> Package: cargo
> Version: 0.66.0+ds1-1
> Severity: normal
> X-Debbugs-Cc: erjoalgo at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20240713/d38de437/attachment.sig>


More information about the Pkg-rust-maintainers mailing list