Skip to contentSkip to conversation

curl: configure with '--without-ssl' if ssl is disabled

PATCH In review Christian Eggers 2 participants 2 messages Feb 15, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 curl: configure with '--without-ssl' if ssl is disabled

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")
---
 meta/recipes-support/curl/curl_7.81.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-support/curl/curl_7.81.0.bb +1 -0
index c22a13cfea3f..e7219def18d8 100644
@@ -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() {
Signature · 1 line
2.34.1
Tested-by on v1 1/1
#1 lore raw
Quoted 42 lines · 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")

---
meta/recipes-support/curl/curl_7.81.0.bb | 1 +

1 file changed, 1 insertion(+)
meta/recipes-support/curl/curl_7.81.0.bb +1 -0
index c22a13cfea3f..e7219def18d8 100644
@@ -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 ''} \

"

Quoted 3 lines

do_install:append:class-target() {

Signature · 1 line
2.34.1

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