summaryrefslogtreecommitdiff
path: root/extra/loudmouth
diff options
context:
space:
mode:
Diffstat (limited to 'extra/loudmouth')
-rw-r--r--extra/loudmouth/07-glib-single-include.patch17
-rw-r--r--extra/loudmouth/08-fix-ipv6-connect.patch28
-rw-r--r--extra/loudmouth/PKGBUILD27
3 files changed, 64 insertions, 8 deletions
diff --git a/extra/loudmouth/07-glib-single-include.patch b/extra/loudmouth/07-glib-single-include.patch
new file mode 100644
index 000000000..074b29526
--- /dev/null
+++ b/extra/loudmouth/07-glib-single-include.patch
@@ -0,0 +1,17 @@
+Description: Fix build failure with glib 2.32
+ where including individual glib headers is no longer allowed.
+Author: Michael Biebl <biebl@debian.org>
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665576
+Index: loudmouth-1.4.3/loudmouth/lm-error.c
+===================================================================
+--- loudmouth-1.4.3.orig/loudmouth/lm-error.c 2008-10-29 21:48:15.000000000 +0100
++++ loudmouth-1.4.3/loudmouth/lm-error.c 2012-03-26 00:24:19.518939657 +0200
+@@ -19,7 +19,7 @@
+ */
+
+ #include <config.h>
+-#include <glib/gerror.h>
++#include <glib.h>
+ #include "lm-error.h"
+
+ /**
diff --git a/extra/loudmouth/08-fix-ipv6-connect.patch b/extra/loudmouth/08-fix-ipv6-connect.patch
new file mode 100644
index 000000000..b8815a7de
--- /dev/null
+++ b/extra/loudmouth/08-fix-ipv6-connect.patch
@@ -0,0 +1,28 @@
+Description: fix crash when falling back from IPv6 to IPv4
+ Previously, loudmouth would set socket->watch_connect to NULL when
+ encountering an error. When the connection attempt (to a different IPv6)
+ succeeded later on, _lm_socket_succeeded would therefore not remove the
+ socket_connect_cb watcher, leading to socket_connect_cb being called upon
+ socket activity and segfaulting the program.
+Author: Michael Stapelberg <stapelberg@debian.org>
+Bug-Debian: http://bugs.debian.org/631729
+Forwarded: no
+Last-Update: 2013-02-03
+--- a/loudmouth/lm-socket.c
++++ b/loudmouth/lm-socket.c
+@@ -529,7 +529,6 @@
+ /* error condition, but might be possible to recover
+ * from it (by connecting to the next host) */
+ if (!_lm_socket_failed_with_error (connect_data, err)) {
+- socket->watch_connect = NULL;
+ goto out;
+ }
+ }
+@@ -560,7 +559,6 @@
+ _lm_sock_close (connect_data->fd);
+ _lm_socket_failed_with_error (connect_data, err);
+
+- socket->watch_connect = NULL;
+ goto out;
+ }
+ }
diff --git a/extra/loudmouth/PKGBUILD b/extra/loudmouth/PKGBUILD
index d1686df56..159f31e5e 100644
--- a/extra/loudmouth/PKGBUILD
+++ b/extra/loudmouth/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=loudmouth
pkgver=1.4.3
-pkgrel=3
+pkgrel=4
pkgdesc="A lightweight Jabber client library written in C/Glib"
arch=('i686' 'x86_64')
license=('LGPL')
@@ -16,19 +16,30 @@ makedepends=('intltool' 'pkgconfig' 'gtk-doc')
source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/1.4/${pkgname}-${pkgver}.tar.bz2
01-fix-sasl-md5-digest-uri.patch
03-drop-stanzas-on-fail.patch
- 04-use-pkg-config-for-gnutls.patch)
+ 04-use-pkg-config-for-gnutls.patch
+ 07-glib-single-include.patch
+ 08-fix-ipv6-connect.patch)
md5sums=('55339ca42494690c3942ee1465a96937'
'dc799cea18b24847b1e008c7424010a3'
'b7b2d81b01a5eee5fd5e21cae67b4af7'
- 'bffb25b9551df43255fe1706588582f3')
+ 'bffb25b9551df43255fe1706588582f3'
+ 'd1546ed54740de536f6bb79a18c5dccb'
+ '8e3071299776d32b9be27bba7d3f9ae0')
-build() {
+prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
- patch -Np1 -i "${srcdir}/01-fix-sasl-md5-digest-uri.patch"
- patch -Np1 -i "${srcdir}/03-drop-stanzas-on-fail.patch"
- patch -Np1 -i "${srcdir}/04-use-pkg-config-for-gnutls.patch"
+ patch -Np1 -i ../01-fix-sasl-md5-digest-uri.patch
+ patch -Np1 -i ../03-drop-stanzas-on-fail.patch
+ 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
libtoolize --force
- autoreconf
+ aclocal
+ autoconf
+ automake --add-missing
+}
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --disable-static
make
}