Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/erlang: fix build with libressl >= 3.5.0
@ 2023-02-23 14:06 Fabrice Fontaine
  2023-02-23 22:44 ` Thomas Petazzoni via buildroot
  2023-03-05 17:37 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2023-02-23 14:06 UTC (permalink / raw)
  To: buildroot; +Cc: Will Newton, Fabrice Fontaine

Fix the following build failure with libressl >= 3.5.0 raised since bump
to version 3.5.2 in commit 8b216927db080b38fdbf1f8b025b6f90a89d4bc2:

api_ng.c: In function 'EVP_CIPHER_CTX_copy':
api_ng.c:392:28: error: invalid use of incomplete typedef 'EVP_CIPHER_CTX' {aka 'const struct evp_cipher_ctx_st'}
  392 |     if ((in == NULL) || (in->cipher == NULL))
      |                            ^~

Fixes:
 - http://autobuild.buildroot.org/results/90f7365d8477d35fca452b7b3f38babba086375e

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...0003-crypto-Fixes-for-LibreSSL-3-5-0.patch | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/erlang/0003-crypto-Fixes-for-LibreSSL-3-5-0.patch

diff --git a/package/erlang/0003-crypto-Fixes-for-LibreSSL-3-5-0.patch b/package/erlang/0003-crypto-Fixes-for-LibreSSL-3-5-0.patch
new file mode 100644
index 0000000000..84c75fef83
--- /dev/null
+++ b/package/erlang/0003-crypto-Fixes-for-LibreSSL-3-5-0.patch
@@ -0,0 +1,30 @@
+From 8e5170d79e387d7e898d948a78e0c70407a4030c Mon Sep 17 00:00:00 2001
+From: Hans Nilsson <hans@erlang.org>
+Date: Mon, 14 Feb 2022 15:51:35 +0100
+Subject: [PATCH] crypto: Fixes for LibreSSL 3.5.0
+
+[Retrieved (and backported) from:
+https://github.com/erlang/otp/commit/8e5170d79e387d7e898d948a78e0c70407a4030c]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ lib/crypto/c_src/openssl_config.h | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h
+index 6fdd049fb30a..39e4b2d9d7c0 100644
+--- a/lib/crypto/c_src/openssl_config.h
++++ b/lib/crypto/c_src/openssl_config.h
+@@ -122,7 +122,14 @@
+ # endif
+ #endif
+ 
++#ifdef HAS_LIBRESSL
++# if LIBRESSL_VERSION_NUMBER >= 0x3050000fL
++#  define HAS_EVP_PKEY_CTX
++#  define HAVE_EVP_CIPHER_CTX_COPY
++# endif
++#endif
++
+ #ifndef HAS_LIBRESSL
+ # if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION_PLAIN(1,0,0)
+ #  define HAS_EVP_PKEY_CTX
-- 
2.39.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/erlang: fix build with libressl >= 3.5.0
  2023-02-23 14:06 [Buildroot] [PATCH 1/1] package/erlang: fix build with libressl >= 3.5.0 Fabrice Fontaine
@ 2023-02-23 22:44 ` Thomas Petazzoni via buildroot
  2023-03-05 17:37 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-02-23 22:44 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Will Newton, buildroot

On Thu, 23 Feb 2023 15:06:06 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fix the following build failure with libressl >= 3.5.0 raised since bump
> to version 3.5.2 in commit 8b216927db080b38fdbf1f8b025b6f90a89d4bc2:
> 
> api_ng.c: In function 'EVP_CIPHER_CTX_copy':
> api_ng.c:392:28: error: invalid use of incomplete typedef 'EVP_CIPHER_CTX' {aka 'const struct evp_cipher_ctx_st'}
>   392 |     if ((in == NULL) || (in->cipher == NULL))
>       |                            ^~
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/90f7365d8477d35fca452b7b3f38babba086375e
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...0003-crypto-Fixes-for-LibreSSL-3-5-0.patch | 30 +++++++++++++++++++
>  1 file changed, 30 insertions(+)
>  create mode 100644 package/erlang/0003-crypto-Fixes-for-LibreSSL-3-5-0.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/erlang: fix build with libressl >= 3.5.0
  2023-02-23 14:06 [Buildroot] [PATCH 1/1] package/erlang: fix build with libressl >= 3.5.0 Fabrice Fontaine
  2023-02-23 22:44 ` Thomas Petazzoni via buildroot
@ 2023-03-05 17:37 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-03-05 17:37 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Will Newton, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fix the following build failure with libressl >= 3.5.0 raised since bump
 > to version 3.5.2 in commit 8b216927db080b38fdbf1f8b025b6f90a89d4bc2:

 > api_ng.c: In function 'EVP_CIPHER_CTX_copy':
 > api_ng.c:392:28: error: invalid use of incomplete typedef 'EVP_CIPHER_CTX' {aka 'const struct evp_cipher_ctx_st'}
 >   392 |     if ((in == NULL) || (in->cipher == NULL))
 >       |                            ^~

 > Fixes:
 >  - http://autobuild.buildroot.org/results/90f7365d8477d35fca452b7b3f38babba086375e

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2022.11.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-05 17:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-23 14:06 [Buildroot] [PATCH 1/1] package/erlang: fix build with libressl >= 3.5.0 Fabrice Fontaine
2023-02-23 22:44 ` Thomas Petazzoni via buildroot
2023-03-05 17:37 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox