Date: Mon, 28 Nov 2022 16:49:26 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-feedback requested: [Bug 268043] devel/py-twisted regression with openssl port Message-ID: <bug-268043-21822-GP6oqzmOpD@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-268043-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-268043-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-python (Nobody) <python@FreeBSD.org> for maintainer-feedback: Bug 268043: devel/py-twisted regression with openssl port https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268043 --- Description --- Enviroment: make.conf: DEFAULT_VERSIONS+=3D ssl=3Dopenssl after upgrading matrix-synapse and its dependencies, server fails to start. Logfile: matrix pkg[26938]: py39-twisted upgraded: 22.4.0 -> 22.10.0 matrix root[37561]: /usr/local/etc/rc.d/synapse: WARNING: failed to start synapse Backtrace ... ends with AttributeError: module 'OpenSSL.SSL' has no attribute 'TLS_METHOD' Crude workaround, I changed 2 files to make synapse starting again. This maybe not well tested. vim /usr/local/lib/python3.9/site-packages/twisted/internet/_sslverify.py line 1492 -self.method =3D SSL.TLS_METHOD +self.method =3D SSL.TLSv1_2_METHOD line 1807 - SSL.TLS_METHOD, + SSL.TLSv1_2_METHOD, vim /usr/local/lib/python3.9/site-packages/twisted/internet/ssl.py" line 95 -sslmethod=3DSSL.TLS_METHOD, +sslmethod=3DSSL.TLSv1_2_METHOD, line 145 -method =3D SSL.TLS_METHOD +method =3D SSL.TLSv1_2_METHOD Aa alternate solution may be adding: ${REINPLACE_CMD} -e 's|TLS_METHOD|TLSv1_2_METHOD|' .... If you pick one of the ways, I will generate a build tested patch.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268043-21822-GP6oqzmOpD>