#1138707 python3-irc: SSL connections cannot be created due to missing SSLContext patch

#1138707#5
Date:
2026-06-02 16:08:52 UTC
From:
To:
Dear Maintainer,

This package still has ssl.wrap_socket calls, but this was removed in
Python 3.12.  Trixie has 3.13 which means that creating an SSL socket
isn't supported without an extra patch.

This has been fixed upstream, but it looks like bug 783396 isn't going to
get fixed any time soon to bring a newer version to Debian.

Given this, could you consider a patch to move from ssl.wrap_socket to
ssl.SSLContext.wrap_socket.

I have a sample patch available (untested as yet) which would likely
resolve the fact that this package is broken for all SSL connections in
Debian 13 and I will attach this to this bug report shortly.

Thank you in advance for your consideration.

Regards,

Chris Malton

#1138707#10
Date:
2026-10-19 01:48:24 UTC
From:
To:
Control: block -1 by 783396
Control: tags -1 pending

Good news, though: Progress is well along for a Debian release of a newer
upstream version, that addresses bug#783396. As you state, the newer
version resolves this bug report also.

I am marking this bug report as blocked by the bug report requesting
release of the newer upstream version.

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

Debian distribution maintenance software
pp.
Ben Finney <bignose@debian.org> (supplier of updated python-irc 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: Fri, 23 Oct 2026 12:26:18 +1100
Source: python-irc
Architecture: source
Version: 20.5.0+dfsg1-1
Distribution: unstable
Urgency: medium
Maintainer: Ben Finney <bignose@debian.org>
Changed-By: Ben Finney <bignose@debian.org>
Closes: 783396 1085923 1138707 1150253
Changes:
 python-irc (20.5.0+dfsg1-1) unstable; urgency=medium
 .
   * The “Muhammad al-Ghamdi” release.
 .
   [ Ben Finney ]
   * New upstream version.
     Highlights since previous release:
     * Support for Python 3.8 and later.
     * New `irc.client.Reactor` class replaces `IRC` class name.
     * Separate DCC functionality to `DCCConnection` class.
     * `NickMask` now returns `None` (instead of error) when missing attributes.
     * `schedule` module now uses timestamp-aware times by default.
     * Allow text encodings different from UTF-8.
     * New (optional) asynchronous implementation.
     * Support for SASL authentication.
     Closes: bug#783396. Thanks to Daniel Baumann for the report.
     Closes: bug#1085923. Thanks to Graham Inggs for the report.
     Closes: bug#1138707. Thanks to Chris Malton for the report.
     Closes: bug#1150253. Thanks to Alexandre Detiste for the report.
   * Migrate to ‘main’ branch as default for packaging repository.
   * debian/control:
     * Declare conformance to “Standards-Version: 4.7.4”.
     * Declare Debhelper compatibility level 14.
     * Update the project homepage.
     * Enable smoke test of installed Python library in AutoPkgTest.
     * Remove superfluous declaration of “Rules-Requires-Root: no”.
     * Remove superfluous declaration of “Priority: optional”.
     * Mark a build dependency as needed only for built package check.
     * Switch to ‘pyproject’ build system.
   * debian/upstream/metadata:
     * Remove obsolete field from DEP-12 metadata.
     * Record the upstream documentation URL.
   * debian/README.source:
     * Document our preferred VCS collaboration strategy.
     * Document policy on use of Generative AI.
   * debian/watch:
     * Declare that upstream releases have no OpenPGP signature.
   * debian/source/lintian-overrides:
     * Override false positive Lintian check for VCS-* field names.
     * Override false positive Lintian check for IETF copyright conditions.
     * Override false positive check for upstream release OpenPGP signature.
   * debian/rules:
     * Explicitly disable legacy “single-binary” DebHelper behaviour.
   * debian/patches/*:
     * Remove patches incorporated or obsolete upstream.
   * debian/patches/specify-package-data.patch:
     * Specify package data files to install.
   * debian/patches/remove-tracking-from-documentation.patch:
     * Remove tracking images from documentation.
   * debian/patches/remove-tidelift-tracking-banner.patch:
     * Remove tracking banner from documentation.
   * debian/patches/correct-python3-shebang-in-example-scripts.patch:
     * Correct shebang for Python 3 example scripts.
   * debian/python3-irc.lintian-overrides:
     * Override a false positive for documentation that is actually a data file.
 .
   [ Alexandre Detiste ]
   * debian/patches/remove-broken-test-context-manager.patch:
     * Remove a context manager that is breaking upstream test cases.
Checksums-Sha1:
 03b9f4a84269a6baed38d93bc16b923d930fb4cf 2605 python-irc_20.5.0+dfsg1-1.dsc
 fc5d47aedf0344942fdb8c553decefc4b3a9fe2b 46976 python-irc_20.5.0+dfsg1.orig.tar.xz
 8bd35e81cb7d5f234c34b59edfe723a42520da71 230152 python-irc_20.5.0+dfsg1-1.debian.tar.xz
 6bf9578fd616ae39c72b092dd94644d468af0406 7041 python-irc_20.5.0+dfsg1-1_amd64.buildinfo
Checksums-Sha256:
 1f1f7b9b53399b11a95a5a9b113ab5b54bf85275aeb431c05b98ea57dd035cb6 2605 python-irc_20.5.0+dfsg1-1.dsc
 875e3978e02cf45a40e34067e025fb6c5725ddce0019a5833332adb9fa594f26 46976 python-irc_20.5.0+dfsg1.orig.tar.xz
 a55bad1570d9d2be7e3f8d627aab404a219a09b1205f74294cfcbc3da2d2705e 230152 python-irc_20.5.0+dfsg1-1.debian.tar.xz
 e2814267a23d26afb423469aeb0a37b96eae9ea5c262cc13c4307a471905d218 7041 python-irc_20.5.0+dfsg1-1_amd64.buildinfo
Files:
 b6661fd851bfdf9d7e03e8d76724d085 2605 python optional python-irc_20.5.0+dfsg1-1.dsc
 4bd8a45906a4a808a459ca832c9ba130 46976 python optional python-irc_20.5.0+dfsg1.orig.tar.xz
 b458b1413887082120e5a0f4a105f803 230152 python optional python-irc_20.5.0+dfsg1-1.debian.tar.xz
 6740700a820d5cd620a5d73ee63259cb 7041 python optional python-irc_20.5.0+dfsg1-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEXfQ3Ydd+6BMR2Ur+B+hY8vqvVjgFAmrazdYACgkQB+hY8vqv
Vjhpdw//XfWJBCAtzMBi6othEXs9bdAucKhDniz4TU1f997VKsY7rV8fYiglTIT1
vudJZEzQzi5L2mC4/6TVheK9m5k5mMuDFwAmFjINUDIdGmZs2CzLZ/p+tyhmWmFn
CMO9xp7gZtTjK4w4/sDDytmlbABvWfVzxffcJFjpQh0ZRDpZIJNLwHd8GDUDTWHo
7cIBxwAJvjEFi9+06zQ4Jb5oB34jyoQUE+tM+nedv0tJnAPTw3SyMbht/sl6NP9+
Hp5KPa+VJo8O3uT5lkn5+F/cdgAfdM8D3bwYl/J8y64JGomZ6zOiq1U64nkgL7OX
eiJeQlWRVSrDXyjB/+dFmeSFX+pjW6+LU6cE0Uxhvehs6/p7Bdre6BPZjnC99/IX
jPYrLe7vyenw+YBYGDFKDHY8XSVA72PnDSxKoQbS0UK5ODSPpyEbNxsQbBur/q2v
UecttFzlvZCl7bX1dRq2u17vdMiYT0TaHlTY6JMCG5++yiheE/OJNgfhbD+wpNf8
7Ssmlh0Xq8nCSOK2BPLaUkzUvjNebkqpw9QMgoJJRlxe3FbjJaHz5rR8uQbnkavY
s9iK2XCipHEX57rN3aBVD8JKoEOmN4Ex9PAlYkvOFlZ7JSGB+3ZJNsM/JSDReK9I
+aSxxTHe/6W3TKTHMCCkhs141+U/GwA2kP7lD60NlVjyyco+5EI=
=+QI4
-----END PGP SIGNATURE-----