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

Ernesto Alfonso erjoalgo at gmail.com
Fri Jul 12 16:35:06 BST 2024


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)
Foreign Architectures: i386

Kernel: Linux 6.1.0-21-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cargo depends on:
ii  binutils             2.40-2
ii  gcc [c-compiler]     4:12.2.0-3
ii  gcc-10 [c-compiler]  10.2.1-6
ii  gcc-12 [c-compiler]  12.2.0-14
ii  libc6                2.36-9+deb12u7
ii  libcurl3-gnutls      7.88.1-10+deb12u6
ii  libgcc-s1            12.2.0-14
ii  libgit2-1.5          1.5.1+ds-1+deb12u1
ii  libssh2-1            1.10.0-3+b1
ii  libssl3              3.0.13-1~deb12u1
pn  rustc                <none>
ii  zlib1g               1:1.2.13.dfsg-1

cargo recommends no packages.

Versions of packages cargo suggests:
pn  cargo-doc  <none>
ii  python3    3.11.2-1+b1



More information about the Pkg-rust-maintainers mailing list