#1143411 rust-asn1-rs: FTBFS: error: failed to select a version for the requirement `hex-literal = "^0.4"`

#1143411#5
Date:
2026-08-01 22:39:08 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:rust-asn1-rs, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
grep -qv 'workspace' Cargo.toml || dh_auto_clean --buildsystem rust
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean -XCargo.toml.orig
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure --buildsystem=rust
	/usr/share/dh-rust/bin/cargo prepare-debian debian/cargo_registry
debian cargo wrapper: options, profiles, parallel, lto: ['parallel=2'] [] ['-j2'] 0
debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu, x86_64-linux-gnu
debian cargo wrapper: linking /usr/share/cargo/registry/* into /<<PKGBUILDDIR>>/debian/cargo_registry/
	cargo update
error: failed to select a version for the requirement `hex-literal = "^0.4"`
candidate versions found which didn't match: 1.1.0
location searched: directory source `/<<PKGBUILDDIR>>/debian/cargo_registry` (which is replacing registry `crates-io`)
required by package `asn1-rs v0.7.2 (/<<PKGBUILDDIR>>)`
perhaps a crate was updated and forgotten to be re-vendored?
dh_auto_configure: error: cargo update returned exit code 101
make: *** [debian/rules:18: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1143411#10
Date:
2026-08-04 03:19:59 UTC
From:
To:
tags 1143411 +patch
thanks

As well as causing a FTBFS, this also causes an autopkgtest failure, which is
blocking the migration of the new version of rust-hex-literal to testing.

The fix is a trivial bump of the cargo dev-dependency, I have attatched
a debdiff to this mail and if I get no response will probablly NMU in a
week or so.

#1143411#17
Date:
2026-08-05 06:35:43 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rust-asn1-rs, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1143411@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonas Smedegaard <dr@jones.dk> (supplier of updated rust-asn1-rs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 05 Aug 2026 08:10:27 +0200
Source: rust-asn1-rs
Architecture: source
Version: 0.7.2+ds-2
Distribution: unstable
Urgency: medium
Maintainer: Jonas Smedegaard <dr@jones.dk>
Changed-By: Jonas Smedegaard <dr@jones.dk>
Closes: 1143411
Changes:
 rust-asn1-rs (0.7.2+ds-2) unstable; urgency=medium
 .
   * add patch cherry-picked upstream
     to use newer major version of crate hex-literal;
     closes: bug#1143411, thanks to Santiago Vila
   * use debhelper compatibility level 14 (not 13)
   * tighten (build-, autopkgtest-)dependencies
   * update watch file:
     + stop set auto-mangling of upstream version (now done by default)
Checksums-Sha1:
 89cf53ae544f54a26bb6cfd5ee5ff6e55a405537 2761 rust-asn1-rs_0.7.2+ds-2.dsc
 b27a576ff63b1c9cd143d30df80b0ca3493ebf99 6976 rust-asn1-rs_0.7.2+ds-2.debian.tar.xz
 8d14bb7714ed7874eb492b9210639ee115b569f9 12542 rust-asn1-rs_0.7.2+ds-2_amd64.buildinfo
Checksums-Sha256:
 8bc9c5daf1472e6c7d7cf29a9761e0fe059b398ac61315f5b405b4d655380281 2761 rust-asn1-rs_0.7.2+ds-2.dsc
 ed65056ddd4f31717c466d5b3ccd34363a2e7cabe555630d53647e73aa37e854 6976 rust-asn1-rs_0.7.2+ds-2.debian.tar.xz
 e87b39693238319775339845010566ec2e664382dbd208e8010cae48d4b90349 12542 rust-asn1-rs_0.7.2+ds-2_amd64.buildinfo
Files:
 ba515892f5a80098304cb50e5ee01e26 2761 rust optional rust-asn1-rs_0.7.2+ds-2.dsc
 de5c402a227ab6134f3508ca88cfa8d6 6976 rust optional rust-asn1-rs_0.7.2+ds-2.debian.tar.xz
 03c0bebe8209348a005282400c8e9260 12542 rust optional rust-asn1-rs_0.7.2+ds-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJABAEBCgAqFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAmpy1FIMHGRyQGpvbmVz
LmRrAAoJECx8MUbBoAEh6CMP/AqRKldWGgAwP+P2Kc76FyBsYaS7KfJk2Yuc1MOx
yw2vX+FqEu8tgKMGAhTk/Oz5FFX1OkMm+WqRt4Ym1z4GMWj4U5fJ47YicffEd83p
f/GO47p43Dt/aHt+53AK6J8gbbM41GfsbG1FfA6/+xitH3A/cZGNStdVTUbOXL4j
BMhqK9ZP56Z862wzCwCpTAvNFHSYtly6M0sg6CaG1XxSYZjy7TbhlF7W027ssc2u
qsfAWhauNkpaTHMZJsSap7yDnqG0HtRxa1x09Z82CZ4GpZZByBXEk3NiqnFZtr40
H/xlUFhkTK/ydqFSr9DO8kdMUErnvzrMKXRyCsSYBq01QNSN8IV1p3Ex4jOakmAx
b9AQ++jyMQOmFR4dZBlHcI51EHsfoOAXhFTACm0WTIjkviUsUijCaeGJlRe9MgPH
PnKT3UPelN5sU4Ej/vtYarweSYdqc+kcIlfGKQJdxwrMl14phjuTuoKECVC/7DGT
R4AVe+xlOY5+t9VdiNQRUcusB+p82/QaCkWd8jB9t8BFGCwBhORiEi02EZS2g9ay
ccSU120jrJDKRrQMnzlu2VVwSy2XXpy3fcTTXW7ZXsVvFAPD7VLAvMyvp4q5OgbL
RQ0HiBu0zezRlcO6iYi14H9jcIC53FBCsw9zPGf36c+PRmfmG3zeFntqNSGmEzVG
sBkI
=aON7
-----END PGP SIGNATURE-----