pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: py-autobahn build failure, twisted update?



On Fri, Sep 09, 2022 at 07:33:56AM -0400, Greg Troxel wrote:
> On netbsd-9 only a few weeks old, pkgsrc head from about 24h ago,
> py-autobahn fails to build.   I think the problem is in twisted, so I'm
> omitting a fair bit of logs.
> 
> My guess is that this symbol has been removed and the call should just
> be omitted:
>   https://github.com/openssl/openssl/issues/1437
> 
> But py-OpenSSL has not been updated for quite a while, and twisted a
> month ago.   They did just both get rebuilt.
> 
> 
> 
> 
> ----------------------------------------
> copying autobahn/xbr/contracts/XBRToken.json -> build/lib/autobahn/xbr/contracts
> Traceback (most recent call last):
>   File "/tmp/work/www/py-autobahn/work/autobahn-20.1.2/setup.py", line 302, in <module>
>     from twisted.internet import reactor
>   File "/usr/pkg/lib/python3.10/site-packages/twisted/internet/reactor.py", line 38, in <module>
>     from twisted.internet import default
>   File "/usr/pkg/lib/python3.10/site-packages/twisted/internet/default.py", line 55, in <module>
>     install = _getInstallFunction(platform)
>   File "/usr/pkg/lib/python3.10/site-packages/twisted/internet/default.py", line 47, in _getInstallFunction
>     from twisted.internet.pollreactor import install
>   File "/usr/pkg/lib/python3.10/site-packages/twisted/internet/pollreactor.py", line 29, in <module>
>     from twisted.internet import posixbase
>   File "/usr/pkg/lib/python3.10/site-packages/twisted/internet/posixbase.py", line 19, in <module>
>     from twisted.internet import error, tcp, udp
>   File "/usr/pkg/lib/python3.10/site-packages/twisted/internet/tcp.py", line 38, in <module>
>     from twisted.internet._newtls import (
>   File "/usr/pkg/lib/python3.10/site-packages/twisted/internet/_newtls.py", line 18, in <module>
>     from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
>   File "/usr/pkg/lib/python3.10/site-packages/twisted/protocols/tls.py", line 50, in <module>
>     Connection(Context(TLSv1_METHOD), None)
>   File "/usr/pkg/lib/python3.10/site-packages/OpenSSL/SSL.py", line 674, in __init__
>     res = _lib.SSL_CTX_set_ecdh_auto(context, 1)
> AttributeError: module 'lib' has no attribute 'SSL_CTX_set_ecdh_auto'
> *** Error code 1

This also seems to have broken py-txrequests (a dependency of
py-buildbot).

Not sure what's the root cause.

Updating py-OpenSSL to the latest version removes python 2.x support.
 Thomas


Home | Main Index | Thread Index | Old Index