#1150108 rust-service-binding: test service::tests::parse_tcp_localhost fails on IPv4-only machines #1150108
- Package:
- src:rust-service-binding
- Source:
- src:rust-service-binding
- Submitter:
- Nadzeya Hutsko
- Date:
- 2026-10-05 21:17:03 UTC
- Severity:
- normal
Dear Maintainer,
The `service::tests::parse_tcp_localhost` test assumes that "localhost" resolves to both `127.0.0.1` and `::1`
On the machines where localhost only resolves to 127.0.0.1, the test fails:
```
---- service::tests::parse_tcp_localhost stdout ----
thread 'service::tests::parse_tcp_localhost' panicked at src/service.rs:475:9:
assertion `left == right` failed
left: [127.0.0.1:8081]
right: [127.0.0.1:8081, [::1]:8081]
test result: FAILED. 20 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
```
I'd suggest updating the test so it doesn't depend on the host's IPv6 localhost setup. For example, only require that `127.0.0.1:8081` is in the result, or build the expected list from `"localhost:8081".to_socket_addrs()`. Any IPv4-only test environment will hit this error.
The bug has been forwarded upstream: https://github.com/wiktor-k/service-binding/issues/44
Nadzeya
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEuVOE/FJ0HcdfWSw//lAdKwFeZPsFAmrD+KgACgkQ/lAdKwFe
ZPtzfA//dDcsxfjY7jpLHSfq9XOlgcCGFnWcQY6uxGMwQxJ7ONhB5dFnEEVYYrWT
zIlZHv+dz8exB8JoiDZpAwTzui4g4zVCn3IMcD/QCVKUPWmRkB7N9G6M6ukxKDX1
WDM9n9Qwv3vVuEqvx28TAr/yQ/PQjeKkAME0qpy30TljH8+q+4D/fjZ3Tvq1ebvW
ZC/DNxGNCUTpx/bVUQPH3GltuihA0Vu22YVBma/rbyRrsZw89r8HHCnpTnBMYPT0
C3Yddq/ZjcQvz7GFPTTsOGwDNFfbXR2kZtIvRdpqR7CmU8j9ACoDm0o7sgii5kN4
tZvuRo8NRtiF1oXqVgvGGHZ/3xf/uDjpfkm6mqlZ5Om2UUCELC7LNs/b1Bc6HQ8H
G8Gu96jCw3DU/DnH9Lah7PmxPHQM9FnKyppFv8j78y6BJKnksuk0j/Qzu05ZfaGp
HwO7kMpVxtY7M4x7ZWzVmqOqrAtpuMh9Fk2Kc7Ie4LCF/CfMuAq5Qq9Sg7K4AGjI
EYr5p3rbImq2goG6ig5CTAdt6SZrPlZJbViyXS4W0NTvZTUfNIvnnXRZQ4DMY4Gv
D1ccQDpFx2Rbgny1tjeAPIdVPkJ7HWJmtKzDz5Sb2bHKF4dMi/FqMWJfHNZGlYug
MTQsn5NIs8iildeHdgLqe5wESprY0idAq9qCZBb6ngzAWo30vWY=
=95Ph
-----END PGP SIGNATURE-----
We believe that the bug you reported is fixed in the latest version of
rust-service-binding, 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 1150108@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Nadzeya Hutsko <nadzeya@debian.org> (supplier of updated rust-service-binding 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: Mon, 05 Oct 2026 21:45:02 +0200
Source: rust-service-binding
Architecture: source
Version: 3.0.0-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Changed-By: Nadzeya Hutsko <nadzeya@debian.org>
Closes: 1150108
Changes:
rust-service-binding (3.0.0-3) unstable; urgency=medium
.
* Package service-binding 3.0.0 from crates.io using debcargo 2.8.4
* Update my email address to nadzeya@debian.org
* Add d/p/fix-parse-tcp-localhost.patch to work on IPv4/IPv6-only
systems (Closes: #1150108)
Checksums-Sha1:
0f0289b79cbfc3114f90dbfe6e717551cbdc06c3 2519 rust-service-binding_3.0.0-3.dsc
10a2404c6008f5dc4c87211846945c73bfa4d04d 3656 rust-service-binding_3.0.0-3.debian.tar.xz
729f06513122220fdb9d023865bae4f3844e8c83 7801 rust-service-binding_3.0.0-3_source.buildinfo
Checksums-Sha256:
6e3f6a606d0b34f9248a6d4366116bf57c3b0b094ece6a381991b36d50084e3b 2519 rust-service-binding_3.0.0-3.dsc
add2050ac2b148f39d7bc99bc5221091e13bfe6b80f22438833ae5b58a9dd7a6 3656 rust-service-binding_3.0.0-3.debian.tar.xz
59eedd674a742299f2bb439129c5bbfc8d062b1ca36268e93cc2aa19ea2910f9 7801 rust-service-binding_3.0.0-3_source.buildinfo
Files:
f63bfa3c188736fbe6b2ef4d7087a765 2519 rust optional rust-service-binding_3.0.0-3.dsc
549b1f5a51a648289b0992ddb7915e8e 3656 rust optional rust-service-binding_3.0.0-3.debian.tar.xz
5c8f926b3793486ab3d30e6dea9fb46e 7801 rust optional rust-service-binding_3.0.0-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJHBAEBCgAxFiEEuVOE/FJ0HcdfWSw//lAdKwFeZPsFAmrD/kMTHG5hZHpleWFA
ZGViaWFuLm9yZwAKCRD+UB0rAV5k+2TuD/9njy8ooCWfb3sDhSkAl1FdHiRhG/7X
VNnVoN9AOUt3vYKP/13XeuxB2F3lN0QUDPxNWDiR4UJcb3QyNRDSwvDDPdY4Hi+B
6m0eBSZ6ndpRhTYLOF2FtCTD4zxKr5qOtsYnYuo2vfiFiRWAFfQDPtsRaJBTiZIt
w4ZLXOkugh3d/ST39w7dmZ1l3TKTaj3YwWmQ9KmMeHGKU6tpMuuSnSs+SWJFtrdx
X7VN/2TckVsKQ0VqnGZAHEpurgsp8HcQnissxCxToVennJmU1QM5ZVc8VQUUmove
IA0OnLXs3uwL8bQcbCx4CoNmebF1UzY0Ck02jaB0qFikpkXk85qcMTcHnBQgvGuY
Q19OwV8AX2X0mPxi5sXp4uDAIOBmnBUHOjZBUQhKqXmcjdCnhwkEJmIh5TqkTqoY
eevi3jNAmETc+nHis9cvckvCdDkhu0cbK0sB0C4nlpIh4mS+dazY2dWYQ9y9nex1
TfTnhwct4mGe8UJNWby1acqB0L12hdq9P71Eu/8CwUV9JDNcny1iveRAjSCLIRcQ
jquaAY2Rxb99VFPp4+MdXdUITagH+7LRWoQvWv8w+VP4PzF3c4P/DldEMTs6LVP3
B0B3FnzqZxsPCQGudFSh2XvpTjMSWUKWK0kCm6+iuSLbMe8EUx/3qPi3ruTesZcf
5BJBvAKUZx4/nw==
=dh4l
-----END PGP SIGNATURE-----