All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] curl: configure with '--without-ssl' if ssl is disabled
@ 2022-02-15 12:54 Christian Eggers
  2022-02-15 15:12 ` [OE-core] " Robert Joslyn
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Eggers @ 2022-02-15 12:54 UTC (permalink / raw)
  To: openembedded-core; +Cc: Christian Eggers

curl requires that at least one SSL implementation or explicitly
'--without-ssl' is specified. This is particularly the case if
PACKAGECONFIG is empty.

| configure: error: select TLS backend(s) or disable TLS with
--without-ssl.
|
| Select from these:
|
|   --with-amissl
|   --with-bearssl
|   --with-gnutls
|   --with-mbedtls
|   --with-mesalink
|   --with-nss
|   --with-openssl (also works for BoringSSL and libressl)
|   --with-rustls
|   --with-schannel
|   --with-secure-transport
|   --with-wolfssl
|

Fixes: eef6c45fc6ec ("curl: Rework openssl and random PACKAGECONFIGs")
Signed-off-by: Christian Eggers <ceggers@arri.de>
---
 meta/recipes-support/curl/curl_7.81.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-support/curl/curl_7.81.0.bb b/meta/recipes-support/curl/curl_7.81.0.bb
index c22a13cfea3f..e7219def18d8 100644
--- a/meta/recipes-support/curl/curl_7.81.0.bb
+++ b/meta/recipes-support/curl/curl_7.81.0.bb
@@ -67,6 +67,7 @@ EXTRA_OECONF = " \
     --enable-debug \
     --enable-optimize \
     --disable-curldebug \
+    ${@'--without-ssl' if (bb.utils.filter('PACKAGECONFIG', 'gnutls mbedtls nss openssl', d) == '') else ''} \
 "
 
 do_install:append:class-target() {
-- 
2.34.1



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

* Re: [OE-core] [PATCH] curl: configure with '--without-ssl' if ssl is disabled
  2022-02-15 12:54 [PATCH] curl: configure with '--without-ssl' if ssl is disabled Christian Eggers
@ 2022-02-15 15:12 ` Robert Joslyn
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Joslyn @ 2022-02-15 15:12 UTC (permalink / raw)
  To: Christian Eggers; +Cc: openembedded-core


> On Feb 15, 2022, at 4:54 AM, Christian Eggers <ceggers@arri.de> wrote:
> 
> curl requires that at least one SSL implementation or explicitly
> '--without-ssl' is specified. This is particularly the case if
> PACKAGECONFIG is empty.
> 
> | configure: error: select TLS backend(s) or disable TLS with
> --without-ssl.
> |
> | Select from these:
> |
> |   --with-amissl
> |   --with-bearssl
> |   --with-gnutls
> |   --with-mbedtls
> |   --with-mesalink
> |   --with-nss
> |   --with-openssl (also works for BoringSSL and libressl)
> |   --with-rustls
> |   --with-schannel
> |   --with-secure-transport
> |   --with-wolfssl
> |
> 
> Fixes: eef6c45fc6ec ("curl: Rework openssl and random PACKAGECONFIGs")
> Signed-off-by: Christian Eggers <ceggers@arri.de>
> ---
> meta/recipes-support/curl/curl_7.81.0.bb | 1 +
> 1 file changed, 1 insertion(+)
> 
> diff --git a/meta/recipes-support/curl/curl_7.81.0.bb b/meta/recipes-support/curl/curl_7.81.0.bb
> index c22a13cfea3f..e7219def18d8 100644
> --- a/meta/recipes-support/curl/curl_7.81.0.bb
> +++ b/meta/recipes-support/curl/curl_7.81.0.bb
> @@ -67,6 +67,7 @@ EXTRA_OECONF = " \
>     --enable-debug \
>     --enable-optimize \
>     --disable-curldebug \
> +    ${@'--without-ssl' if (bb.utils.filter('PACKAGECONFIG', 'gnutls mbedtls nss openssl', d) == '') else ''} \
> "
> 
> do_install:append:class-target() {
> -- 
> 2.34.1

Somehow I didn’t have an empty PACKAGECONFIG in my test set. I do now!

Tested-by: Robert Joslyn <robert.joslyn@redrectangle.org>

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

end of thread, other threads:[~2022-02-15 15:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-15 12:54 [PATCH] curl: configure with '--without-ssl' if ssl is disabled Christian Eggers
2022-02-15 15:12 ` [OE-core] " Robert Joslyn

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.