From defe74c9cba07c321ad2869d8f6872e64a167324 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 2 May 2012 00:01:22 +0000 Subject: Wed May 2 00:01:22 UTC 2012 --- extra/xfce4-mailwatch-plugin/PKGBUILD | 11 +++++++---- ...y-call-gnutls-transport_set_lowat-with-gnutls-2.12.patch | 13 +++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 extra/xfce4-mailwatch-plugin/only-call-gnutls-transport_set_lowat-with-gnutls-2.12.patch (limited to 'extra/xfce4-mailwatch-plugin') diff --git a/extra/xfce4-mailwatch-plugin/PKGBUILD b/extra/xfce4-mailwatch-plugin/PKGBUILD index ebc9be73a..c5a614ce0 100644 --- a/extra/xfce4-mailwatch-plugin/PKGBUILD +++ b/extra/xfce4-mailwatch-plugin/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 135816 2011-08-18 15:04:58Z andyrtr $ +# $Id: PKGBUILD 157861 2012-04-30 04:20:30Z foutrelis $ # Maintainer: AndyRTR # Contributor: Suzy Williams pkgname=xfce4-mailwatch-plugin pkgver=1.1.0 -pkgrel=4 +pkgrel=5 pkgdesc="A mailbox watch/check plugin for the Xfce4 panel" arch=(i686 x86_64) license=('GPL2') @@ -15,12 +15,15 @@ makedepends=('intltool' 'xfce4-dev-tools') options=('!libtool') install=${pkgname}.install source=(http://spuriousinterrupt.org/files/mailwatch/${pkgname}-${pkgver}.tar.bz2 - xfce4-mailwatch-plugin-1.1.0-underlink.patch) + xfce4-mailwatch-plugin-1.1.0-underlink.patch + only-call-gnutls-transport_set_lowat-with-gnutls-2.12.patch) md5sums=('f84dce86be1d7f25f169f262aaacee4e' - '47fe8588e3bb642e1b507a854927e6db') + '47fe8588e3bb642e1b507a854927e6db' + 'd91ca2b9534e9e2d8dcbd94306b91ade') build() { cd ${srcdir}/${pkgname}-${pkgver} + patch -Np0 -i ${srcdir}/only-call-gnutls-transport_set_lowat-with-gnutls-2.12.patch # fix for panel4.8 from Fedora patch -Np1 -i ${srcdir}/xfce4-mailwatch-plugin-1.1.0-underlink.patch xdt-autogen diff --git a/extra/xfce4-mailwatch-plugin/only-call-gnutls-transport_set_lowat-with-gnutls-2.12.patch b/extra/xfce4-mailwatch-plugin/only-call-gnutls-transport_set_lowat-with-gnutls-2.12.patch new file mode 100644 index 000000000..349e78555 --- /dev/null +++ b/extra/xfce4-mailwatch-plugin/only-call-gnutls-transport_set_lowat-with-gnutls-2.12.patch @@ -0,0 +1,13 @@ +--- libmailwatch-core/mailwatch-net-conn.c.orig 2012-04-29 05:38:20.015564589 +0300 ++++ libmailwatch-core/mailwatch-net-conn.c 2012-04-29 05:39:01.943290639 +0300 +@@ -621,8 +621,10 @@ xfce_mailwatch_net_conn_make_secure(Xfce + net_conn->gt_creds); + gnutls_transport_set_ptr(net_conn->gt_session, + (gnutls_transport_ptr_t)net_conn->fd); ++#if GNUTLS_VERSION_NUMBER < 0x020c00 + if(fcntl(net_conn->fd, F_GETFL) & O_NONBLOCK) + gnutls_transport_set_lowat(net_conn->gt_session, 0); ++#endif + + if(!xfce_mailwatch_net_conn_tls_handshake(net_conn, error)) { + #if 0 -- cgit v1.2.3-54-g00ecf