* [Buildroot] [PATCH 1/1] package/trousers: fix build with libressl >= 2.7.0
@ 2022-04-10 15:43 Fabrice Fontaine
2022-04-11 7:10 ` Peter Korsgaard
2022-04-11 9:45 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2022-04-10 15:43 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine, Noé Rubinstein
Fix the following build failure with libressl >= 2.7.0:
crypto/openssl/rsa.c:43:1: error: static declaration of 'RSA_set0_key' follows non-static declaration
43 | RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
| ^~~~~~~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/607131255453da2dc0dab20a24264b3e74001525
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
.../0003-Fix-build-with-LibreSSL-2-7.patch | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 package/trousers/0003-Fix-build-with-LibreSSL-2-7.patch
diff --git a/package/trousers/0003-Fix-build-with-LibreSSL-2-7.patch b/package/trousers/0003-Fix-build-with-LibreSSL-2-7.patch
new file mode 100644
index 0000000000..65da979f22
--- /dev/null
+++ b/package/trousers/0003-Fix-build-with-LibreSSL-2-7.patch
@@ -0,0 +1,24 @@
+Fix build with LibreSSL 2.7
+
+LibreSSL 2.7 implemented OpenSSL 1.1 API
+
+See also: https://reviews.freebsd.org/D14849#change-KhYbRXBMIBod
+
+Cheers,
+Bernard Spil (brnrd@FreeBSD.org)
+
+[Retrieved (and backported) from:
+https://sourceforge.net/p/trousers/bugs/234]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+
+--- ./src/trspi/crypto/openssl/rsa.c.orig 2016-11-23 12:26:19 UTC
++++ ./src/trspi/crypto/openssl/rsa.c
+@@ -38,7 +38,7 @@
+ #define DEBUG_print_openssl_errors()
+ #endif
+
+-#if (OPENSSL_VERSION_NUMBER < 0x10100001L) || defined(LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER < 0x10100001L) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
+ static int
+ RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
+ {
--
2.35.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/trousers: fix build with libressl >= 2.7.0
2022-04-10 15:43 [Buildroot] [PATCH 1/1] package/trousers: fix build with libressl >= 2.7.0 Fabrice Fontaine
@ 2022-04-11 7:10 ` Peter Korsgaard
2022-04-11 9:45 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-04-11 7:10 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Noé Rubinstein, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure with libressl >= 2.7.0:
> crypto/openssl/rsa.c:43:1: error: static declaration of 'RSA_set0_key' follows non-static declaration
> 43 | RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
> | ^~~~~~~~~~~~
> Fixes:
> - http://autobuild.buildroot.org/results/607131255453da2dc0dab20a24264b3e74001525
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed, 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
* Re: [Buildroot] [PATCH 1/1] package/trousers: fix build with libressl >= 2.7.0
2022-04-10 15:43 [Buildroot] [PATCH 1/1] package/trousers: fix build with libressl >= 2.7.0 Fabrice Fontaine
2022-04-11 7:10 ` Peter Korsgaard
@ 2022-04-11 9:45 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-04-11 9:45 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Noé Rubinstein, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure with libressl >= 2.7.0:
> crypto/openssl/rsa.c:43:1: error: static declaration of 'RSA_set0_key' follows non-static declaration
> 43 | RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
> | ^~~~~~~~~~~~
> Fixes:
> - http://autobuild.buildroot.org/results/607131255453da2dc0dab20a24264b3e74001525
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2022.02.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:[~2022-04-11 9:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-10 15:43 [Buildroot] [PATCH 1/1] package/trousers: fix build with libressl >= 2.7.0 Fabrice Fontaine
2022-04-11 7:10 ` Peter Korsgaard
2022-04-11 9:45 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.