author | Andreas Radke
<andyrtr@archlinux.org> 2015-04-17 20:40:44 UTC |
committer | Andreas Radke
<andyrtr@archlinux.org> 2015-04-17 20:40:44 UTC |
parent | 6c60fdceaa173683db06db9eaef8db176e338240 |
PKGBUILD | +6 | -3 |
gnutls-3.4.0.patch | +20 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index f242e0b..307fe69 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ pkgname=loudmouth pkgver=1.4.3 -pkgrel=4 +pkgrel=5 pkgdesc="A lightweight Jabber client library written in C/Glib" arch=('i686' 'x86_64') license=('LGPL') @@ -17,13 +17,15 @@ source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/1.4/${pkgname}-${pkgve 03-drop-stanzas-on-fail.patch 04-use-pkg-config-for-gnutls.patch 07-glib-single-include.patch - 08-fix-ipv6-connect.patch) + 08-fix-ipv6-connect.patch + gnutls-3.4.0.patch) md5sums=('55339ca42494690c3942ee1465a96937' 'dc799cea18b24847b1e008c7424010a3' 'b7b2d81b01a5eee5fd5e21cae67b4af7' 'bffb25b9551df43255fe1706588582f3' 'd1546ed54740de536f6bb79a18c5dccb' - '8e3071299776d32b9be27bba7d3f9ae0') + '8e3071299776d32b9be27bba7d3f9ae0' + '868f08345d9c7a42f19290d8caf8aff1') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" @@ -32,6 +34,7 @@ prepare() { patch -Np1 -i ../04-use-pkg-config-for-gnutls.patch patch -Np1 -i ../07-glib-single-include.patch patch -Np1 -i ../08-fix-ipv6-connect.patch + patch -Np0 -i ../gnutls-3.4.0.patch libtoolize --force aclocal autoconf diff --git a/gnutls-3.4.0.patch b/gnutls-3.4.0.patch new file mode 100644 index 0000000..20cb09b --- /dev/null +++ b/gnutls-3.4.0.patch @@ -0,0 +1,20 @@ +--- loudmouth/lm-ssl-gnutls.c 2008-10-29 14:45:10.000000000 +0100 ++++ loudmouth/lm-ssl-gnutls.c.new 2015-04-17 22:35:06.703672306 +0200 +@@ -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_credentials_set (ssl->gnutls_session, + GNUTLS_CRD_CERTIFICATE, + ssl->gnutls_xcred);