Date: Mon, 28 Nov 2022 16:49:26 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 268043] devel/py-twisted regression with openssl port Message-ID: <bug-268043-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268043 Bug ID: 268043 Summary: devel/py-twisted regression with openssl port Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: python@FreeBSD.org Reporter: dinoex@FreeBSD.org Flags: maintainer-feedback?(python@FreeBSD.org) Assignee: python@FreeBSD.org 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268043-7788>