#1151585 Test failure due to stale dependency on syn 2.0

#1151585#5
Date:
2026-10-21 21:19:00 UTC
From:
To:
From ci.debian.net:

329s autopkgtest [05:59:06]: test rust-test-case-core-3:@: [-----------------------
329s debian cargo wrapper: options, profiles, parallel, lto: ['parallel=48'] [] ['-j48'] 0
329s debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu, x86_64-linux-gnu
329s debian cargo wrapper: linking /usr/share/cargo/registry/* into /tmp/tmp.mlAiIsVnBA/registry/
329s debian cargo wrapper: options, profiles, parallel, lto: ['parallel=48'] [] ['-j48'] 0
329s debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu, x86_64-linux-gnu
329s debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', '-Zavoid-dev-deps', 'test', '--profile', 'release', '--verbose', '--verbose', '-j48', '--target', 'x86_64-unknown-linux-gnu', '--config', 'profile.release.debug-assertions=true', '--config', 'profile.release.overflow-checks=true', '--config', 'profile.release.panic="unwind"', '--lib', '--bins', '--examples', '--all-features'],) {}
329s error: failed to select a version for the requirement `syn = "^2.0"`
329s candidate versions found which didn't match: 3.0.9, 1.0.109
329s location searched: directory source `/tmp/tmp.mlAiIsVnBA/registry` (which is replacing registry `crates-io`)
329s required by package `test-case-core v3.3.1 (/usr/share/cargo/registry/test-case-core-3.3.1)`
329s note: perhaps a crate was updated and forgotten to be re-vendored?
329s autopkgtest [05:59:06]: test rust-test-case-core-3:@: -----------------------]

https://ci.debian.net/packages/r/rust-test-case/testing/amd64/76956858/

The current rust-test-case expects syn 2.0 which is no longer in debian. This also causes testing failures in other packages that wish to use test-case. Please update the dependency to syn 3.0 or package new test-case 3.4 which has this fix upstream.

#1151585#10
Date:
2026-10-21 23:45:56 UTC
From:
To:
Yes, it does. The problem is that rust-test-case's debian/control
(Build-)Depends against librust-syn-dev rather than the
librust-syn-2-dev that aligns with Cargo.toml.

Cheers,

#1151585#15
Date:
2026-10-22 05:16:32 UTC
From:
To:
* James McCoy (jamessan@debian.org) wrote:

Ah yes fair, I thought for some reason librust-syn-2-dev had already
been removed from the archive.

#1151585#20
Date:
2026-10-22 05:57:27 UTC
From:
To:
Quoting James McCoy (2026-10-22 01:45:56)

Right - I had attempted to make the frequent version migrations easier
by relaxing dependencies, but was unaware that the Rust team also
deviates from common Debian logics in how unversioned provisions are
used.

I am now tightening dependencies again whenever I make package updates.

Am working on the test-case crate now.

 - Jonas

#1151585#25
Date:
2026-10-22 06:49:05 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rust-test-case, 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 1151585@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-test-case 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: Thu, 22 Oct 2026 08:23:11 +0200
Source: rust-test-case
Architecture: source
Version: 3.4.0+ds-1
Distribution: unstable
Urgency: medium
Maintainer: Jonas Smedegaard <dr@jones.dk>
Changed-By: Jonas Smedegaard <dr@jones.dk>
Closes: 1151585
Changes:
 rust-test-case (3.4.0+ds-1) unstable; urgency=medium
 .
   [ upstream ]
   * new release;
     closes: bug#1151585, thanks to Eric Dorland
 .
   [ Jonas Smedegaard ]
   * update watch file:
     + capitalize file format field label
     + stop set auto-mangling of upstream version (now done by default)
     + limit to STABLE_VERSION
   * bump project versions in virtual packages and autopkgtests
   * update patches
   * tighten (build-, autopkgtest-)dependencies
   * use debhelper compatibility level 14 (not 13)
Checksums-Sha1:
 8dde5dad2be69f698ab84edeee7a0cf1083c6e4b 2294 rust-test-case_3.4.0+ds-1.dsc
 b1549eb365d9afcb1dea6c64e2ce07126d9bbf4c 29568 rust-test-case_3.4.0+ds.orig.tar.xz
 62b857dbd30d96235eacbd8fedf6645cff2ea695 5656 rust-test-case_3.4.0+ds-1.debian.tar.xz
 a4d6661a1a6d22894d5fe5319168b5394d5987e2 18654 rust-test-case_3.4.0+ds-1_amd64.buildinfo
Checksums-Sha256:
 46d0188d399d5e074d138a57f0fdfab3b37a69923af663b2eb6f441305b31023 2294 rust-test-case_3.4.0+ds-1.dsc
 95b8e32e30bf023fc52c8d96ebc11309b9fae543fc55960fb736081958a6923d 29568 rust-test-case_3.4.0+ds.orig.tar.xz
 be3303153c37cec3bebd8c7cafa36d163ad1e1db9a9944911673061fe39e15ac 5656 rust-test-case_3.4.0+ds-1.debian.tar.xz
 42d0026d622c915c12652ba494f4f62d4c5475d54b63963ad0be376f199280df 18654 rust-test-case_3.4.0+ds-1_amd64.buildinfo
Files:
 b4d39128377f600fe3c0d43d7a7926a5 2294 rust optional rust-test-case_3.4.0+ds-1.dsc
 48ff4081256f6432fcad496022ee9c86 29568 rust optional rust-test-case_3.4.0+ds.orig.tar.xz
 8ed9f95f82e596c175d7809518e93c6b 5656 rust optional rust-test-case_3.4.0+ds-1.debian.tar.xz
 23f2b48a19eb58dbb9e8103c5ad6266a 18654 rust optional rust-test-case_3.4.0+ds-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJABAEBCgAqFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAmrZrh0MHGRyQGpvbmVz
LmRrAAoJECx8MUbBoAEhgbkP/3l+MgIrEdAZC2kqGJUwgsomOcz4bW3dsauoeMMs
sC8vTMp6qU7Ijsseyg/HxIbjOWznGX9cQKgzAPZFwqNb3lSpDWOMPKuzIp4zfUBH
j/Co+i6Kfv4Tp9BbHMTPzt2IkIvt+wV+OInRlfDUsfBbmn9zvRY2ENiCgyfy4DSM
lD3u6Q6HGk0a/JQW3G2mR7FRYNeXHnFNgtosPreJuDs/4v52/sgUJFeAsR2Tpwxw
KI4ZW7A1NqWIKJJTCRBHBXb3DA68gSPzjBPy/BX8VnRV4UaedCqdNrK7OBhsU79R
0n6AQIGsNc0K1ZnY9Y6Ywj7ZlWqjFpiZ5T0OQJMKrsNhXyvGLVDXOFyhzJF07f4k
4G71Lbux6Gp40Te5axHlZ7Nll0+vEt8Bfj2ynP/WBRThoToa5IfqAiO7UaZUKt19
wyGzivK6wufBkvs5hTQkTh/ULq1fhnVW4ka4KggW735gdtiqE55OxxGHh3xeaNsV
2SdOXkYgZJLT+Ltpyzbl0/4W0hwGGRHB5mOPNTuSfCTM6FU+N+rd1ZlVEK8jY8cW
uS0Vh/G/fJgtA2VF8/aiT8IQkAsf6JfPM3hfTcwKfV9aVSt31+2Gb7SaHyiqxalR
M6gYvux/3bTaESexpSEDIu4ywIvz3F5U40GXeZKt8oLUF/KC14X51IoQmcEzY36o
DJXs
=dUA9
-----END PGP SIGNATURE-----