Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=126a400babcc3bbe3580aee7b9c1dd445539e8df
commit 126a400babcc3bbe3580aee7b9c1dd445539e8df Author: Slown <[email protected]> Date: Sat May 14 19:14:58 2016 +0100 loudmouth-1.5.3-1-x86_64 * version bump diff --git a/source/apps/loudmouth/FrugalBuild b/source/apps/loudmouth/FrugalBuild index 1665875..65de96b 100644 --- a/source/apps/loudmouth/FrugalBuild +++ b/source/apps/loudmouth/FrugalBuild @@ -1,42 +1,19 @@ -# Compiling Time: 0.35 SBU +# Compiling Time: 0.10 SBU # Maintainer: crazy <[email protected]> pkgname=loudmouth -pkgver=1.4.3 -pkgrel=5 +pkgver=1.5.3 +pkgrel=1 pkgdesc="A lightweight and easy-to-use C library for programming with the Jabber protocol." -depends=('glib2>=2.46.2-3' 'libasyncns>=0.8-3' 'libidn>=1.32-4' 'gnutls>=3.4.8' 'libffi>=3.2.1') +url="https://mcabber.com" +depends=('glib2>=2.46.2-3' 'gnutls' 'libkrb5') makedepends=('check' 'gtk-doc') options+=('scriptlet') groups=('apps') archs=('i686' 'x86_64') -Finclude gnome -source=($source \ - loudmouth-1.4.3-asyncns-system.patch \ - loudmouth-1.4.3-gnutls28.patch \ - loudmouth-1.4.3-async-fix.patch \ - loudmouth-1.4.3-free-before-closed.patch \ - loudmouth-1.4.3-invalid-unicode.patch \ - loudmouth-1.4.3-glib-2.32.patch \ - loudmouth-1.4.3-disable-examples.patch) -Fconfopts+=" --enable-debug=no --with-ssl=gnutls --with-asyncns=system" -sha1sums=('55dd0475760f98ff0ba1f5c712c52ab776b432be' \ - '7916119f99f4301413c8771a35db22d4ff3084b6' \ - '18c45db10cd3a4f185b73d84f97d9f75f88a7784' \ - 'c7edd56ee0b60524e1cdd3c7d1971e9773024e7e' \ - 'bd525c2b0f6bcf891e6338be8726b5e037abc27e' \ - '2b981b7695bb3f9e68ab603e6cf2c9fcd353f8e2' \ - '32ca56d9aa8c101d24263db3eb9d705fc23e80ab' \ - '04ec33f64acab4c467654e2efcf3a4f81962120c') +up2date="Flasttar $url" +source=($url/files/loudmouth/$pkgname-$pkgver.tar.bz2) +Fconfopts+="--enable-debug=no --with-ssl=gnutls --with-asyncns=system" +sha1sums=('a69ef9a57e0ae993340921e73ada27979850db04') -build() { - - Fcd - Fpatchall - Fsed 'AM_CONFIG_HEADER' 'AC_CONFIG_HEADERS' configure.ac - Fautoreconf - - Fmake - Fmakeinstall -} # optimization OK diff --git a/source/apps/loudmouth/loudmouth-1.4.3-async-fix.patch b/source/apps/loudmouth/loudmouth-1.4.3-async-fix.patch deleted file mode 100644 index 3213d72..0000000 --- a/source/apps/loudmouth/loudmouth-1.4.3-async-fix.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- a/loudmouth/lm-socket.c -+++ b/loudmouth/lm-socket.c -@@ -1022,7 +1022,7 @@ _lm_socket_create_phase2 (LmSocket *socket, struct addrinfo *ans) - if (socket->connect_func) { - (socket->connect_func) (socket, FALSE, socket->user_data; - } -- g_free (socket->connect_data); -+ g_free (socket->connect_data); - socket->connect_data = NULL; - return; - } -@@ -1107,6 +1107,10 @@ lm_socket_create (GMainContext *context, - _lm_socket_create_phase1 (socket, NULL, 0); - } - -+#ifndef HAVE_ASYNCNS -+ /* Only do this check if we are not using asyncns or it will crash. -+ * Report and patch by Senko. -+ */ - if (socket->connect_data == NULL) { - /* Open failed synchronously, probably a DNS lookup problem */ - lm_socket_unref(socket); -@@ -1118,6 +1122,7 @@ lm_socket_create (GMainContext *context, - - return NULL; - } -+#endif /* HAVE_ASYNCNS */ - - - /* If the connection fails synchronously, we don't want to call the diff --git a/source/apps/loudmouth/loudmouth-1.4.3-asyncns-system.patch b/source/apps/loudmouth/loudmouth-1.4.3-asyncns-system.patch deleted file mode 100644 index 9cf5345..0000000 --- a/source/apps/loudmouth/loudmouth-1.4.3-asyncns-system.patch +++ /dev/null @@ -1,83 +0,0 @@ -diff --git a/configure.ac b/configure.ac -index 9369e55..17a9e1d 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -199,19 +199,31 @@ AM_CONDITIONAL(USE_GNUTLS, test x$enable_ssl = xGnuTLS) - dnl +-------------------------------------------------------------------+ - dnl | Checking for libasyncns | - dnl +-------------------------------------------------------------------+ --AC_ARG_WITH(asyncns, [ --with-asyncns=yes/no define whether to use libasyncns, default=no], -- ac_asyncns=$withval, -- ac_asyncns=no -- ) -+AC_ARG_WITH(asyncns, -+ AS_HELP_STRING([--with-asyncns], -+ [define whether to use libasyncns, @<:@default=no@:>@ (internal/system/no)]), -+ ac_asyncns=$withval, -+ ac_asyncns=no) - - enable_asyncns=no -+have_asyncns_system=no - if test x$ac_asyncns != xno; then - enable_asyncns=yes - AC_DEFINE(HAVE_ASYNCNS, 1, [Whether to use libasyncns]) -+ -+ if test x$ac_asyncns = xsystem; then -+ PKG_CHECK_MODULES(ASYNCNS, [libasyncns >= 0.3], -+ [have_asyncns_system=yes], -+ [have_asyncns_system=no]) -+ fi - else - echo "Not using asynchronous dns lookups" - fi - -+AC_SUBST(ASYNCNS_CFLAGS) -+AC_SUBST(ASYNCNS_LIBS) -+AM_CONDITIONAL(USE_SYSTEM_ASYNCNS, test x$have_asyncns_system = xyes) -+ - dnl +-------------------------------------------------------------------+ - dnl | Checking for Linux TCP/IP stack | - dnl +-------------------------------------------------------------------+ -diff --git a/loudmouth/Makefile.am b/loudmouth/Makefile.am -index f73aa0c..e308e1c 100644 ---- a/loudmouth/Makefile.am -+++ b/loudmouth/Makefile.am -@@ -6,6 +6,7 @@ AM_CPPFLAGS = \ - -I. \ - -I$(top_srcdir) \ - $(LOUDMOUTH_CFLAGS) \ -+ $(ASYNCNS_CFLAGS) \ - $(LIBIDN_CFLAGS) \ - -DLM_COMPILATION \ - -DRUNTIME_ENDIAN \ -@@ -51,8 +52,6 @@ libloudmouth_1_la_SOURCES = \ - lm-sock.c \ - lm-socket.c \ - lm-socket.h \ -- asyncns.c \ -- asyncns.h \ - lm-sasl.c \ - lm-sasl.h \ - md5.c \ -@@ -61,6 +60,13 @@ libloudmouth_1_la_SOURCES = \ - base64.h \ - $(NULL) - -+if ! USE_SYSTEM_ASYNCNS -+libloudmouth_1_la_SOURCES += \ -+ asyncns.c \ -+ asyncns.h \ -+ $(NULL) -+endif -+ - libloudmouthinclude_HEADERS = \ - lm-connection.h \ - lm-error.h \ -@@ -75,6 +81,7 @@ libloudmouthinclude_HEADERS = \ - - libloudmouth_1_la_LIBADD = \ - $(LOUDMOUTH_LIBS) \ -+ $(ASYNCNS_LIBS) \ - $(LIBIDN_LIBS) \ - -lresolv - diff --git a/source/apps/loudmouth/loudmouth-1.4.3-disable-examples.patch b/source/apps/loudmouth/loudmouth-1.4.3-disable-examples.patch deleted file mode 100644 index ec09cad..0000000 --- a/source/apps/loudmouth/loudmouth-1.4.3-disable-examples.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff -Naur loudmouth-1.4.3/configure.ac loudmouth-1.4.3-fix/configure.ac ---- loudmouth-1.4.3/configure.ac 2008-10-29 21:23:52.000000000 +0100 -+++ loudmouth-1.4.3-fix/configure.ac 2016-01-10 03:37:38.019693080 +0100 -@@ -263,9 +263,6 @@ - docs/Makefile - docs/reference/Makefile - loudmouth/Makefile --examples/Makefile --tests/Makefile --tests/parser-tests/Makefile - loudmouth-1.0.pc - loudmouth.spec]) - -diff -Naur loudmouth-1.4.3/Makefile.am loudmouth-1.4.3-fix/Makefile.am ---- loudmouth-1.4.3/Makefile.am 2008-10-29 14:19:24.000000000 +0100 -+++ loudmouth-1.4.3-fix/Makefile.am 2016-01-10 03:35:15.109967559 +0100 -@@ -1,4 +1,4 @@ --SUBDIRS = loudmouth docs examples tests -+SUBDIRS = loudmouth docs - - EXTRA_DIST = \ - loudmouth-1.0.pc.in \ -diff -Naur loudmouth-1.4.3/Makefile.in loudmouth-1.4.3-fix/Makefile.in ---- loudmouth-1.4.3/Makefile.in 2008-10-29 21:56:10.000000000 +0100 -+++ loudmouth-1.4.3-fix/Makefile.in 2016-01-10 03:37:06.108861280 +0100 -@@ -220,7 +220,7 @@ - target_alias = @target_alias@ - top_builddir = @top_builddir@ - top_srcdir = @top_srcdir@ --SUBDIRS = loudmouth docs examples tests -+SUBDIRS = loudmouth docs - EXTRA_DIST = \ - loudmouth-1.0.pc.in \ - loudmouth.spec \ diff --git a/source/apps/loudmouth/loudmouth-1.4.3-free-before-closed.patch b/source/apps/loudmouth/loudmouth-1.4.3-free-before-closed.patch deleted file mode 100644 index d6c43ae..0000000 --- a/source/apps/loudmouth/loudmouth-1.4.3-free-before-closed.patch +++ /dev/null @@ -1,137 +0,0 @@ -From ff113220df9073c3e6078487e87b6a7b86e2d952 Mon Sep 17 00:00:00 2001 -From: Mikael Hallendal <[email protected]> -Date: Sun, 30 Nov 2008 09:27:21 +0100 -Subject: [PATCH] Don't free connection internals before it's closed. [#34] - -When the connection freed up internal states (in this case the handler -lists) before closing itself it segfaulted when trying to unregister the -SASL handlers. - -Reported by Julien Puydt. ---- - loudmouth/lm-connection.c | 30 +++++++++++++++++------------- - loudmouth/lm-sasl.c | 18 +++++++++--------- - 2 files changed, 26 insertions(+), 22 deletions(-) - -diff --git a/loudmouth/lm-connection.c b/loudmouth/lm-connection.c -index 915c0ad..dda2978 100644 ---- a/loudmouth/lm-connection.c -+++ b/loudmouth/lm-connection.c -@@ -191,13 +191,21 @@ connection_free (LmConnection *connection) - { - int i; - -+ /* This needs to be run before starting to free internal states. -+ * It used to be run after the handlers where freed which lead to a crash -+ * when the connection was freed prior to running lm_connection_close. -+ */ -+ if (connection->state >= LM_CONNECTION_STATE_OPENING) { -+ connection_do_close (connection); -+ } -+ - g_free (connection->server); - g_free (connection->jid); - g_free (connection->effective_jid); - g_free (connection->stream_id); - g_free (connection->resource); - -- if (connection->sasl) { -+ if (connection->sasl) { - lm_sasl_free (connection->sasl); - } - -@@ -218,13 +226,9 @@ connection_free (LmConnection *connection) - - g_slist_free (connection->handlers[i]); - } -- - g_hash_table_destroy (connection->id_handlers); -- if (connection->state >= LM_CONNECTION_STATE_OPENING) { -- connection_do_close (connection); -- } - -- if (connection->open_cb) { -+ if (connection->open_cb) { - _lm_utils_free_callback (connection->open_cb); - } - -@@ -2030,11 +2034,11 @@ lm_connection_unregister_message_handler (LmConnection *connection, - g_return_if_fail (handler != NULL); - g_return_if_fail (type != LM_MESSAGE_TYPE_UNKNOWN); - -- for (l = connection->handlers[type]; l; l = l->next) { -- HandlerData *hd = (HandlerData *) l->data; -- -+ for (l = connection->handlers[type]; l; l = l->next) { -+ HandlerData *hd = (HandlerData *) l->data; -+ - if (handler == hd->handler) { -- connection->handlers[type] = g_slist_remove_link (connection->handlers[type], l); -+ connection->handlers[type] = g_slist_remove_link (connection->handlers[type], l); - g_slist_free (l); - lm_message_handler_unref (hd->handler); - g_free (hd); -@@ -2140,7 +2144,7 @@ lm_connection_ref (LmConnection *connection) - g_return_val_if_fail (connection != NULL, NULL); - - connection->ref_count++; -- -+ - return connection; - } - -@@ -2157,8 +2161,8 @@ lm_connection_unref (LmConnection *connection) - g_return_if_fail (connection != NULL); - - connection->ref_count--; -- -+ - if (connection->ref_count == 0) { -- connection_free (connection); -+ connection_free (connection); - } - } -diff --git a/loudmouth/lm-sasl.c b/loudmouth/lm-sasl.c -index 42ee0e1..e6a72f5 100644 ---- a/loudmouth/lm-sasl.c -+++ b/loudmouth/lm-sasl.c -@@ -807,27 +807,27 @@ lm_sasl_free (LmSASL *sasl) - g_free (sasl->server); - - if (sasl->features_cb) { -- lm_connection_unregister_message_handler (sasl->connection, -- sasl->features_cb, -- LM_MESSAGE_TYPE_STREAM_FEATURES); -+ lm_connection_unregister_message_handler (sasl->connection, -+ sasl->features_cb, -+ LM_MESSAGE_TYPE_STREAM_FEATURES); - } - - if (sasl->challenge_cb) { - lm_connection_unregister_message_handler (sasl->connection, -- sasl->challenge_cb, -- LM_MESSAGE_TYPE_CHALLENGE); -+ sasl->challenge_cb, -+ LM_MESSAGE_TYPE_CHALLENGE); - } - - if (sasl->success_cb) { - lm_connection_unregister_message_handler (sasl->connection, -- sasl->success_cb, -- LM_MESSAGE_TYPE_SUCCESS); -+ sasl->success_cb, -+ LM_MESSAGE_TYPE_SUCCESS); - } - - if (sasl->failure_cb) { - lm_connection_unregister_message_handler (sasl->connection, -- sasl->failure_cb, -- LM_MESSAGE_TYPE_FAILURE); -+ sasl->failure_cb, -+ LM_MESSAGE_TYPE_FAILURE); - } - - g_free (sasl); --- -1.7.7.1 - diff --git a/source/apps/loudmouth/loudmouth-1.4.3-glib-2.32.patch b/source/apps/loudmouth/loudmouth-1.4.3-glib-2.32.patch deleted file mode 100644 index 87fc170..0000000 --- a/source/apps/loudmouth/loudmouth-1.4.3-glib-2.32.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: loudmouth-1.4.3/loudmouth/lm-error.c -=================================================================== ---- loudmouth-1.4.3.orig/loudmouth/lm-error.c -+++ loudmouth-1.4.3/loudmouth/lm-error.c -@@ -19,7 +19,7 @@ - */ - - #include <config.h> --#include <glib/gerror.h> -+#include <glib.h> - #include "lm-error.h" - - /** diff --git a/source/apps/loudmouth/loudmouth-1.4.3-gnutls28.patch b/source/apps/loudmouth/loudmouth-1.4.3-gnutls28.patch deleted file mode 100644 index a538533..0000000 --- a/source/apps/loudmouth/loudmouth-1.4.3-gnutls28.patch +++ /dev/null @@ -1,15 +0,0 @@ -# Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=272027 -# Patch from mandriva ---- a/configure.ac 2009-05-30 17:59:03.000000000 +0200 -+++ b/configure.ac 2009-05-30 18:02:24.000000000 +0200 -@@ -146,8 +146,9 @@ - enable_ssl=no - if test "x$ac_ssl" = "xgnutls"; then - dnl Look for GnuTLS -- AM_PATH_LM_LIBGNUTLS($GNUTLS_REQUIRED, have_libgnutls=yes, have_libgnutls=no) -+ PKG_CHECK_EXISTS([gnutls >= $GNUTLS_REQUIRED], have_libgnutls=yes, have_libgnutls=no) - if test "x$have_libgnutls" = "xyes"; then -+ PKG_CHECK_MODULES(LIBGNUTLS, [gnutls >= $GNUTLS_REQUIRED]) - CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS" - LIBS="$LIBS $LIBGNUTLS_LIBS" - AC_DEFINE(HAVE_GNUTLS, 1, [whether to use GnuTSL support.]) diff --git a/source/apps/loudmouth/loudmouth-1.4.3-invalid-unicode.patch b/source/apps/loudmouth/loudmouth-1.4.3-invalid-unicode.patch deleted file mode 100644 index 2a97653..0000000 --- a/source/apps/loudmouth/loudmouth-1.4.3-invalid-unicode.patch +++ /dev/null @@ -1,144 +0,0 @@ -From e08dbcca6cf50c834e2fe4e7290cce642903251d Mon Sep 17 00:00:00 2001 -From: Hermitifier <[email protected]> -Date: Mon, 3 Oct 2011 17:06:18 +0200 -Subject: [PATCH] Protect GMarkup parser against invalid unicode characters - -[Alexandre Rostovtsev <[email protected]>: backport to 1.4.3] - -http://loudmouth.lighthouseapp.com/projects/17276/tickets/61 ---- - loudmouth/lm-parser.c | 94 ++++++++++++++++++++++++++++++++++++++++++++----- - 1 files changed, 85 insertions(+), 9 deletions(-) - -diff --git a/loudmouth/lm-parser.c b/loudmouth/lm-parser.c -index 89f6675..0a61a56 100644 ---- a/loudmouth/lm-parser.c -+++ b/loudmouth/lm-parser.c -@@ -43,6 +43,8 @@ struct LmParser { - - GMarkupParser *m_parser; - GMarkupParseContext *context; -+ gchar *incomplete; /* incomplete utf-8 character -+ found at the end of buffer */ - }; - - -@@ -233,25 +235,98 @@ lm_parser_new (LmParserMessageFunction function, - parser->cur_root = NULL; - parser->cur_node = NULL; - -+ parser->incomplete = NULL; -+ - return parser; - } - -+static gchar * -+_lm_parser_make_valid (const gchar *buffer, gchar **incomplete) -+{ -+ GString *string; -+ const gchar *remainder, *invalid; -+ gint remaining_bytes, valid_bytes; -+ gunichar code; /*error code for invalid character*/ -+ -+ g_return_val_if_fail (buffer != NULL, NULL); -+ -+ string = NULL; -+ remainder = buffer; -+ remaining_bytes = strlen (buffer); -+ -+ while (remaining_bytes != 0) -+ { -+ if (g_utf8_validate (remainder, remaining_bytes, &invalid)) -+ break; -+ valid_bytes = invalid - remainder; -+ -+ if (string == NULL) -+ string = g_string_sized_new (remaining_bytes); -+ -+ g_string_append_len (string, remainder, valid_bytes); -+ -+ remainder = g_utf8_find_next_char(invalid, NULL); -+ remaining_bytes -= valid_bytes + (remainder - invalid); -+ -+ code = g_utf8_get_char_validated (invalid, -1); -+ -+ if (code == -1) { -+ /* A complete but invalid codepoint */ -+ /* append U+FFFD REPLACEMENT CHARACTER */ -+ g_string_append (string, "\357\277\275"); -+#ifndef LM_NO_DEBUG -+ g_debug ("invalid character!\n"); -+#endif -+ } else if (code == -2) { -+ /* Beginning of what could be a character */ -+ *incomplete = g_strdup (invalid); -+#ifndef LM_NO_DEBUG -+ g_debug ("incomplete character: %s\n", *incomplete); -+#endif -+ -+ g_assert (remaining_bytes == 0); -+ g_assert (*(g_utf8_find_next_char(invalid, NULL)) == '\0'); -+ } -+ } -+ -+ if (string == NULL) -+ return g_strdup (buffer); -+ -+ g_string_append (string, remainder); -+ -+ g_assert (g_utf8_validate (string->str, -1, NULL)); -+ -+ return g_string_free (string, FALSE); -+} -+ -+ - void - lm_parser_parse (LmParser *parser, const gchar *string) - { -+ gchar *valid, *completed; - g_return_if_fail (parser != NULL); - -- if (!parser->context) { -- parser->context = g_markup_parse_context_new (parser->m_parser, 0, -- parser, NULL); -- } -- -- if (g_markup_parse_context_parse (parser->context, string, -- (gssize)strlen (string), NULL)) { -- } else { -+ if (!parser->context) { -+ parser->context = g_markup_parse_context_new (parser->m_parser, 0, -+ parser, NULL); -+ } -+ -+ if (parser->incomplete) { -+ completed = g_strdup_printf("%s%s", parser->incomplete, string); -+ g_free(parser->incomplete); -+ parser->incomplete = NULL; -+ } else { -+ completed = g_strdup(string); -+ } -+ valid = _lm_parser_make_valid (completed, &parser->incomplete); -+ g_free(completed); -+ if (g_markup_parse_context_parse (parser->context, valid, -+ (gssize)strlen (valid), NULL)) { -+ } else { - g_markup_parse_context_free (parser->context); - parser->context = NULL; -- } -+ } -+ g_free(valid); - } - - void -@@ -264,6 +339,7 @@ lm_parser_free (LmParser *parser) - if (parser->context) { - g_markup_parse_context_free (parser->context); - } -+ g_free (parser->incomplete); - g_free (parser->m_parser); - g_free (parser); - } --- -1.7.7.1 - _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
