[MacPorts] #63801: python ports: update to use openssl 3, allowing dependent binaries to be redistributed

MacPorts noreply at macports.org
Mon Nov 8 08:14:12 UTC 2021


#63801: python ports: update to use openssl 3, allowing dependent binaries to be
redistributed
----------------------+----------------------
  Reporter:  mascguy  |      Owner:  jmroot
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.7.1
Resolution:           |   Keywords:  openssl
      Port:  python   |
----------------------+----------------------

Comment (by cculianu):

 Welp. OpenSSL3 on-by-default broke Python3.x. This no longer works:


 {{{
 $ python3
 Python 3.10.0 (default, Nov  7 2021, 21:08:03) [Clang 12.0.5
 (clang-1205.0.22.11)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import hashlib
 >>> hashlib.algorithms_available
 {'sha512_224', 'ripemd160', 'md5-sha1', 'sha1', 'shake_128', 'shake_256',
 'sha512_256', 'sha256', 'whirlpool', 'blake2b', 'sha3_512', 'sha384',
 'sm3', 'blake2s', 'sha3_224', 'sha224', 'mdc2', 'md4', 'md5', 'sha3_256',
 'sha3_384', 'sha512'}
 >>> hashlib.new('ripemd160')
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/hashlib.py",
 line 160, in __hash_new
     return _hashlib.new(name, data, **kwargs)
 ValueError: [digital envelope routines] initialization error

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/hashlib.py",
 line 166, in __hash_new
     return __get_builtin_constructor(name)(data)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/hashlib.py",
 line 123, in __get_builtin_constructor
     raise ValueError('unsupported hash type ' + name)
 ValueError: unsupported hash type ripemd160
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63801#comment:29>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list