[packages/loudmouth] - added gnutls patch (fixes build with gnutls 3.4+)

qboosh qboosh at pld-linux.org
Fri Mar 10 22:57:44 CET 2017


commit 7e034b205bda31399896ecb204c6bd4edce45a6d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Mar 10 22:59:52 2017 +0100

    - added gnutls patch (fixes build with gnutls 3.4+)

 loudmouth-gnutls.patch | 22 ++++++++++++++++++++++
 loudmouth.spec         |  2 ++
 2 files changed, 24 insertions(+)
---
diff --git a/loudmouth.spec b/loudmouth.spec
index 285fae4..b4e4752 100644
--- a/loudmouth.spec
+++ b/loudmouth.spec
@@ -16,6 +16,7 @@ Patch0:		%{name}-async_crash.patch
 Patch1:		%{name}-use-gnutls-pc.patch
 Patch2:		%{name}-glib.patch
 Patch3:		%{name}-link.patch
+Patch4:		%{name}-gnutls.patch
 URL:		https://github.com/mhallendal/loudmouth
 # not available (Nov 2013)
 #URL:		http://loudmouth.imendio.org/
@@ -91,6 +92,7 @@ Dokumentacja API biblioteki Loudmouth.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 %{__libtoolize}
diff --git a/loudmouth-gnutls.patch b/loudmouth-gnutls.patch
new file mode 100644
index 0000000..47c86e0
--- /dev/null
+++ b/loudmouth-gnutls.patch
@@ -0,0 +1,22 @@
+Taken from loudmonth 1.5.x development (https://github.com/mcabber/loudmouth/)
+--- loudmouth-1.4.3/loudmouth/lm-ssl-gnutls.c.orig	2008-10-29 14:45:10.000000000 +0100
++++ loudmouth-1.4.3/loudmouth/lm-ssl-gnutls.c	2017-03-10 22:10:49.140876292 +0100
+@@ -196,17 +196,9 @@
+ {
+ 	int ret;
+ 	gboolean auth_ok = TRUE;
+-	const int cert_type_priority[] =
+-		{ GNUTLS_CRT_X509, GNUTLS_CRT_OPENPGP, 0 };
+-	const int compression_priority[] =
+-		{ GNUTLS_COMP_DEFLATE, GNUTLS_COMP_NULL, 0 };
+ 
+ 	gnutls_init (&ssl->gnutls_session, GNUTLS_CLIENT);
+-	gnutls_set_default_priority (ssl->gnutls_session);
+-	gnutls_certificate_type_set_priority (ssl->gnutls_session,
+-					      cert_type_priority);
+-	gnutls_compression_set_priority (ssl->gnutls_session,
+-					 compression_priority);
++	gnutls_priority_set_direct (ssl->gnutls_session, "NORMAL", NULL);
+ 	gnutls_credentials_set (ssl->gnutls_session,
+ 				GNUTLS_CRD_CERTIFICATE,
+ 				ssl->gnutls_xcred);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/loudmouth.git/commitdiff/7e034b205bda31399896ecb204c6bd4edce45a6d



More information about the pld-cvs-commit mailing list