python3: Fix hashlib module not compiled for host Python
authorJeffery To <jeffery.to@gmail.com>
Mon, 22 May 2023 15:26:19 +0000 (23:26 +0800)
committerJeffery To <jeffery.to@gmail.com>
Wed, 24 May 2023 04:34:18 +0000 (12:34 +0800)
commitcc000a1a2c3946a849d8a557c81dbd5675261b24
tree68fe6c2e92e1cd932afcccd351d9cef666a42431
parent0358c18d023cd889b19b4b0e387695da90631b55
python3: Fix hashlib module not compiled for host Python

026-openssl-feature-flags.patch and
028-host-python-support-ssl-with-libressl.patch were removed in
4ecd9d67e90651a8e93760bf0b5771f7057c74a8 to fix the ssl module after
libressl was upgraded to 3.7.0[1].

However, the cause of the ssl module build failure was only
028-host-python-support-ssl-with-libressl.patch.

Removing 026-openssl-feature-flags.patch caused a build failure for the
hashlib module.

This restores 026-openssl-feature-flags.patch with an updated version of
the patch from OpenBSD[2].

[1]: https://github.com/openwrt/packages/issues/20107
[2]: https://github.com/openbsd/ports/blob/26a04435bf2a09dcbe22b718bfee08997617a906/lang/python/3.10/patches/patch-Modules__hashopenssl_c

Fixes: 4ecd9d67e906 ("python3: fix ssl support by removing libressl patches")
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 02eb5c100c8462823ea19df6af637be97570ccdb)
lang/python/python3/Makefile
lang/python/python3/patches/026-openssl-feature-flags.patch [new file with mode: 0644]