#1149824 python-anyio: FTBFS: | ValueError: server_hostname can only be specified in client mode

#1149824#5
Date:
2026-10-03 11:17:20 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/202610/

Note: DeepSeek tells me that this was fixed here yesterday:

https://github.com/agronholm/anyio/commit/818e4ac441fa27e9fac893496fc5a4fbe0a58689


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:python-anyio, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
    |                             server_hostname=server_hostname, session=session)
    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/usr/lib/python3.14/ssl.py", line 381, in _check_sslobject_params
    |     raise ValueError("server_hostname can only be specified "
    |                      "in client mode")
    | ValueError: server_hostname can only be specified in client mode
    +------------------------------------

#1149824#8
Date:
2026-10-03 21:49:58 UTC
From:
To:
Hello,

Bug #1149824 in python-anyio reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/python-anyio/-/commit/99b600ca237d89074f6bbd1bc4b67dde531ebcd6
------------------------------------------------------------------------
Don't pass `hostname` to TLSStream.wrap() for the server stream

Closes: #1149824
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1149824

#1149824#15
Date:
2026-10-03 22:05:02 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-anyio, 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 1149824@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated python-anyio 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: Sat, 03 Oct 2026 22:45:55 +0100
Source: python-anyio
Architecture: source
Version: 4.15.1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1149824
Changes:
 python-anyio (4.15.1-3) unstable; urgency=medium
 .
   * Team upload.
   * Don't pass `hostname` to TLSStream.wrap() for the server stream (closes:
     #1149824).
Checksums-Sha1:
 2980ba3a860bbbd3ea504858385a93b02c3eebc8 2853 python-anyio_4.15.1-3.dsc
 e0e6eca0c32e1a65c154831e61d6692417c3ec41 5588 python-anyio_4.15.1-3.debian.tar.xz
 acab022607457dfe447106e88a1d3f40279bb091 625176 python-anyio_4.15.1-3.git.tar.xz
 6c2c155917984465950769c1af5d37b27dda3810 17748 python-anyio_4.15.1-3_source.buildinfo
Checksums-Sha256:
 a23bb0d26d71c17e7c936ed1912c5561febd35d529538309d9fb05857c4ad218 2853 python-anyio_4.15.1-3.dsc
 4bd7b46c2360c5aac490185ce4b267d0389bd05806eb596e6826627f97efc70c 5588 python-anyio_4.15.1-3.debian.tar.xz
 273acc0e3f9bc474e9a62e1e7e6a083a70998f60b00095558dde6f5162592d4b 625176 python-anyio_4.15.1-3.git.tar.xz
 2e942428b41c9cf91b11f462400b74fc37fd118b21c56721de31022a13c2448b 17748 python-anyio_4.15.1-3_source.buildinfo
Files:
 c0e32f71e2025fe813b3fd003e2d6e15 2853 python optional python-anyio_4.15.1-3.dsc
 de0dd4da6bef57b52c29f21a25a33da5 5588 python optional python-anyio_4.15.1-3.debian.tar.xz
 ae4c4b442ca58105d2990bc5d2652d48 625176 python None python-anyio_4.15.1-3.git.tar.xz
 4f04917a37ca0ea2122ac24841a91878 17748 python optional python-anyio_4.15.1-3_source.buildinfo
Git-Tag-Info: tag=0786cc52b3dd084be56f099481ba90b7fea30856 fp=ac0a4ff12611b6fccf01c111393587d97d86500b
Git-Tag-Tagger: Colin Watson <cjwatson@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmrBeMoACgkQYG0ITkaD
wHmUGw//YS+pS24fHhBP1+KIrSYzHeeRUVnz1ESEoZpVXLwiMR36ztqi8LAUS5Sx
7uYvgmx1R3dQH7PJxDZ0b/9kVhkp1sUvCvq/q98l/GdAqbbGm+S1DC3cTTJQKy7a
wQKMlw36wUchFqqIiXZKl8OogOK0IBCDuFG8/Gxk9NZkRN6vb4iuPNsDTLv1BkRy
Bj8kEkDexwISImEBhhtJpYU5eBFQbq1Huwbga+AprBkdcvxrvuw9Csf20g/pjafA
xUlIxHYbdh4WVW3HHPJx9t4OUafwB4xiRWmBM5Q1vtIAJ/AMoKJB/iy5XQMJd7MS
yCPgi4NxhAiKkELocHBPi0ngt9rlEqg7VqbbmX58y50qWpDjFiNeJtk7sqRk8Qqf
p50mHWRhE/jUzxdu8ZR4X2LNq+3tI+eDvNWmSopOmqiuyjDi7z1P7TM1ApmwBU1h
qf6yAxTK0S/O10B8C1AfGPtZo0AFeOpjsyH/0NQ9F6kCWn9/00wTNMfTBETSyjcC
GQTAjZD3ufqLPI5dDRJLtiPrQ3B0O7N66FWuDInNiE2xb/ItgukPdF9cOBLg1L+S
rNXI9MipIaK+2yiVL3xlQ8vuD3BdMpZQo7GBY3w5rBOztV8sEnbPPh1I1qGI7s4q
hnN7IZpoXe6jVLDX7M0JXG7teKSseM7mnw+0wwB3WgvIVw60D7s=
=oWyU
-----END PGP SIGNATURE-----