Skip to contentSkip to conversation

curl: option to enable http2 protocol support.

PATCH In review baali 2 participants 2 messages Sep 25, 2017

lore
Share & tools
lore

baali

author
#0 lore raw

PATCH 1/1 curl: option to enable http2 protocol support.

From: baali <[email protected]>

With default --without-nghttp2 flag set there was no way to get http2 protocol support using nghttp2 library. Instead moved it to PACKAGECONFIG options.

---
 meta/recipes-support/curl/curl_7.54.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/curl/curl_7.54.1.bb +1 -1
index 54f3b66..c22c827 100644
@@ -48,13 +48,13 @@ PACKAGECONFIG[tftp] = "--enable-tftp,--disable-tftp,"
 PACKAGECONFIG[threaded-resolver] = "--enable-threaded-resolver,--disable-threaded-resolver"
 PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib"
 PACKAGECONFIG[krb5] = "--with-gssapi,--without-gssapi,krb5"
+PACKAGECONFIG[nghttp2] = "--with-nghttp2,--without-nghttp2"
 
 EXTRA_OECONF = " \
     --enable-crypto-auth \
     --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \
     --without-libmetalink \
     --without-libpsl \
-    --without-nghttp2 \
 "
 
 do_install_append() {
Signature · 1 line
2.7.4
#1 lore raw
Quoted 5 lines · baali

From: baali <[email protected]>

With default --without-nghttp2 flag set there was no way to get http2 protocol support using nghttp2 library. Instead moved it to PACKAGECONFIG options

Wrong list: oe-core patches go to openembedded-core@ instead of -devel@.

Quoted 1 line

+PACKAGECONFIG[nghttp2] = "--with-nghttp2,--without-nghttp2"

The configure.ac then checks for the libnghttp2 library which isn't listed as a build dependency, so you'll need to add this here.

Ross