Patchwork [5/7] glib-networking: fix build failure with gnutls3

login
register
mail settings
Submitter Gustavo Zacarias
Date Dec. 28, 2012, 7:47 p.m.
Message ID <1356724043-8879-5-git-send-email-gustavo@zacarias.com.ar>
Download mbox | patch
Permalink /patch/208557/
State Accepted
Commit 484652cbd8d4a647f7833b2e032d0d37147e8424
Headers show

Comments

Gustavo Zacarias - Dec. 28, 2012, 7:47 p.m.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/glib-networking/glib-networking.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

Patch

diff --git a/package/glib-networking/glib-networking.mk b/package/glib-networking/glib-networking.mk
index b1eec4d..e8d71e5 100644
--- a/package/glib-networking/glib-networking.mk
+++ b/package/glib-networking/glib-networking.mk
@@ -25,4 +25,11 @@  else
 GLIB_NETWORKING_CONF_OPT += --without-gnutls
 endif
 
+# gnutls 3.x+ doesn't use libgcrypt, it uses nettle/hogweed
+define GLIB_NETWORKING_NO_LIBGCRYPT
+	$(SED) 's:#include <gcrypt.h>::' $(@D)/tls/gnutls/gtlsbackend-gnutls.c
+endef
+
+GLIB_NETWORKING_POST_EXTRACT_HOOKS += GLIB_NETWORKING_NO_LIBGCRYPT
+
 $(eval $(autotools-package))