* [Buildroot] [PATCH 1/2] package/openssl: statically-linked openssl does not provide threads
@ 2023-07-20 17:53 Bernd Kuhls
2023-07-20 17:53 ` [Buildroot] [PATCH 2/2] package/tor: needs openssl with threads Bernd Kuhls
2023-07-20 21:21 ` [Buildroot] [PATCH 1/2] package/openssl: statically-linked openssl does not provide threads Thomas Petazzoni via buildroot
0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2023-07-20 17:53 UTC (permalink / raw)
To: buildroot
Add blind option to mark availability of threads, needed for tor.
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
package/openssl/Config.in | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/openssl/Config.in b/package/openssl/Config.in
index c7641ecefa..f81ed1a00b 100644
--- a/package/openssl/Config.in
+++ b/package/openssl/Config.in
@@ -1,6 +1,9 @@
config BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
bool
+config BR2_PACKAGE_OPENSSL_HAS_THREADS
+ bool
+
config BR2_PACKAGE_OPENSSL
bool "openssl support"
select BR2_PACKAGE_HAS_OPENSSL
@@ -17,6 +20,8 @@ choice
config BR2_PACKAGE_LIBOPENSSL
bool "openssl"
select BR2_PACKAGE_ZLIB
+ # https://github.com/openssl/openssl/issues/14574#issuecomment-1584122617
+ select BR2_PACKAGE_OPENSSL_HAS_THREADS if !BR2_STATIC_LIBS
help
A collaborative effort to develop a robust, commercial-grade,
fully featured, and Open Source toolkit implementing the
@@ -36,6 +41,7 @@ config BR2_PACKAGE_LIBRESSL
depends on BR2_TOOLCHAIN_HAS_THREADS
# uClibc doesn't provide __register_atfork() without NPTL
depends on !BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_HAS_THREADS_NPTL
+ select BR2_PACKAGE_OPENSSL_HAS_THREADS
help
LibreSSL is a version of the TLS/crypto stack forked from
OpenSSL in 2014, with goals of modernizing the codebase,
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 2/2] package/tor: needs openssl with threads
2023-07-20 17:53 [Buildroot] [PATCH 1/2] package/openssl: statically-linked openssl does not provide threads Bernd Kuhls
@ 2023-07-20 17:53 ` Bernd Kuhls
2023-07-20 21:21 ` [Buildroot] [PATCH 1/2] package/openssl: statically-linked openssl does not provide threads Thomas Petazzoni via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Bernd Kuhls @ 2023-07-20 17:53 UTC (permalink / raw)
To: buildroot
Fixes:
http://autobuild.buildroot.net/results/b8e/b8efae5bf6ac3b51e8443951ef1dd88824af3f2b/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
package/tor/Config.in | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/package/tor/Config.in b/package/tor/Config.in
index 52009267e2..de35c34492 100644
--- a/package/tor/Config.in
+++ b/package/tor/Config.in
@@ -2,8 +2,8 @@ config BR2_PACKAGE_TOR
bool "tor"
depends on BR2_USE_MMU # fork()
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
+ depends on BR2_PACKAGE_OPENSSL_HAS_THREADS
select BR2_PACKAGE_LIBEVENT
- select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_ZLIB
help
Tor is free software and an open network that helps you
@@ -17,3 +17,7 @@ config BR2_PACKAGE_TOR
comment "tor needs a toolchain w/ NPTL"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
+
+comment "tor needs a thread-enabled openssl library (libressl or dynamically-linked openssl)"
+ depends on BR2_USE_MMU
+ depends on !BR2_PACKAGE_OPENSSL_HAS_THREADS
--
2.39.2
_______________________________________________
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/2] package/openssl: statically-linked openssl does not provide threads
2023-07-20 17:53 [Buildroot] [PATCH 1/2] package/openssl: statically-linked openssl does not provide threads Bernd Kuhls
2023-07-20 17:53 ` [Buildroot] [PATCH 2/2] package/tor: needs openssl with threads Bernd Kuhls
@ 2023-07-20 21:21 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-07-20 21:21 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot
On Thu, 20 Jul 2023 19:53:18 +0200
Bernd Kuhls <bernd@kuhls.net> wrote:
> Add blind option to mark availability of threads, needed for tor.
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> package/openssl/Config.in | 6 ++++++
> 1 file changed, 6 insertions(+)
Meh, I don't like this very much :-/ But I admit I don't (at this time)
have a much better proposal. Reverting the problematic change from
OpenSSL? But wait, according to the issue you're pointing
(https://github.com/openssl/openssl/issues/14574), it's an OpenSSL
1.1.x issue that won't be fixed because OpenSSL 1.1.x is in maintenance
mode only. But now we're using OpenSSL 3.x so surely this issue needs
to be fixed? If that's the case, a revert of the change seems in order
for now?
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
end of thread, other threads:[~2023-07-20 21:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-20 17:53 [Buildroot] [PATCH 1/2] package/openssl: statically-linked openssl does not provide threads Bernd Kuhls
2023-07-20 17:53 ` [Buildroot] [PATCH 2/2] package/tor: needs openssl with threads Bernd Kuhls
2023-07-20 21:21 ` [Buildroot] [PATCH 1/2] package/openssl: statically-linked openssl does not provide threads Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox