Skip to contentSkip to conversation

libcurl: add brotli optional dependency

PATCH New Baruch Siach 3 participants 4 messages Apr 2, 2018 – Oct 11, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libcurl: add brotli optional dependency

The brotli package has recently been added to Buildroot. Add brotli an an optional dependency to libcurl to make the build consistent.

It turns out that libcurl configure script users pkg-config to figure out link libraries only when --with-brotli is explicitly set. So this also fixes static build failure.

Fixes:
http://autobuild.buildroot.net/results/64b/64bc0dfe284206390ae0680b94c0876863a3c0f3/
http://autobuild.buildroot.net/results/233/23376d8653dea6361e42b0f17b6aaab3c14d99cf/
http://autobuild.buildroot.net/results/b19/b198db4b69e18e6d01ec95aae9c6096c1912dd9c/

Cc Adrian Perez de Castro <[email protected]>
Cc Matt Weber <[email protected]>
---
 package/libcurl/libcurl.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/libcurl/libcurl.mk +7 -0
index c6289e05f4cb..a3e66d094cf3 100644
@@ -76,6 +76,13 @@ else
 LIBCURL_CONF_OPTS += --without-libssh2
 endif
 
+ifeq ($(BR2_PACKAGE_BROTLI),y)
+LIBCURL_DEPENDENCIES += brotli
+LIBCURL_CONF_OPTS += --with-brotli
+else
+LIBCURL_CONF_OPTS += --without-brotli
+endif
+
 define LIBCURL_FIX_DOT_PC
 	printf 'Requires: openssl\n' >>$(@D)/libcurl.pc.in
 endef
Signature · 1 line
2.16.2
#1 lore raw

PATCH 1/1 libcurl: add brotli optional dependency

Baruch,

Quoted 8 lines · Baruch Siach

The brotli package has recently been added to Buildroot. Add brotli an an optional dependency to libcurl to make the build consistent.

It turns out that libcurl configure script users pkg-config to figure out link libraries only when --with-brotli is explicitly set. So this also fixes static build failure.

Quoted 8 lines

Fixes:
http://autobuild.buildroot.net/results/64b/64bc0dfe284206390ae0680b94c0876863a3c0f3/
http://autobuild.buildroot.net/results/233/23376d8653dea6361e42b0f17b6aaab3c14d99cf/
http://autobuild.buildroot.net/results/b19/b198db4b69e18e6d01ec95aae9c6096c1912dd9c/

Cc Adrian Perez de Castro <[email protected]>
Cc Matt Weber <[email protected]>
#2 lore raw

PATCH 1/1 libcurl: add brotli optional dependency

In reply to Baruch Siach
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

The brotli package has recently been added to Buildroot. Add brotli an an optional dependency to libcurl to make the build consistent.

It turns out that libcurl configure script users pkg-config to figure

s/users/uses/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/1 libcurl: add brotli optional dependency

In reply to Baruch Siach
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

The brotli package has recently been added to Buildroot. Add brotli an an optional dependency to libcurl to make the build consistent.

It turns out that libcurl configure script users pkg-config to figure out link libraries only when --with-brotli is explicitly set. So this also fixes static build failure.

Quoted 8 lines

Fixes:
http://autobuild.buildroot.net/results/64b/64bc0dfe284206390ae0680b94c0876863a3c0f3/
http://autobuild.buildroot.net/results/233/23376d8653dea6361e42b0f17b6aaab3c14d99cf/
http://autobuild.buildroot.net/results/b19/b198db4b69e18e6d01ec95aae9c6096c1912dd9c/

Cc Adrian Perez de Castro <[email protected]>
Cc Matt Weber <[email protected]>

Committed to 2018.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard