erlang: workaround LibreSSL-3.5.0 compat issues
authorSebastian Kemper <sebastian_ml@gmx.net>
Sat, 23 Jul 2022 14:43:28 +0000 (16:43 +0200)
committerRosen Penev <rosenp@gmail.com>
Sat, 23 Jul 2022 19:45:10 +0000 (12:45 -0700)
commit6544b67f1f2cb8fe806c67ef7e1a69a3ed138546
treef4a0db102ee875caf6fa8f93338da759aaf1da7e
parent0a65e4c6fa84e13a1732c26260615c1ad5efea5b
erlang: workaround LibreSSL-3.5.0 compat issues

Cherry-pick four upstream commits that prevent building of
otp_test_engine when LibreSSL-3.5.0 is used.

Since OpenWrt bumped LibreSSL to 3.5.3 the erlang host builds fail to
complete.

 CC ../priv/obj/x86_64-pc-linux-gnu/otp_test_engine.o
otp_test_engine.c: In function 'test_engine_md5_init':
otp_test_engine.c:144:34: error: dereferencing pointer to incomplete type 'EVP_MD_CTX' {aka 'struct env_md_ctx_st'}
 #define data(ctx) ((MD5_CTX *)ctx->md_data)
                                  ^~

Also switch to AUTORELEASE.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
lang/erlang/Makefile
lang/erlang/patches/030-crypto-Make-configure-flag-disable-otp-test-engine.patch [new file with mode: 0644]
lang/erlang/patches/031-Update-configure-scripts.patch [new file with mode: 0644]
lang/erlang/patches/032-crypto-do-disable-otp-test-engine-for-LibreSSL-3.5.0.patch [new file with mode: 0644]
lang/erlang/patches/033-Update-configure-scripts.patch [new file with mode: 0644]