/soc/2013/ankitkv/gobjectification: ff7a5660dd4f: Merged default...
Ankit Vani <[email protected]>
| Newsgroups | gmane.comp.gnome.gaim.cvs |
|---|---|
| Message-ID | <[email protected]> |
Changeset: ff7a5660dd4f42e3ee777782176e39d5ef78b9c1 Author: Ankit Vani <[email protected]> Date: 2014-06-18 00:51 +0530 Branch: soc.2013.gobjectification.plugins URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/ff7a5660dd4f Description: Merged default branch diffstat: COPYRIGHT | 4 + ChangeLog | 2 +- configure.ac | 133 +- libpurple/protocols/gg/Makefile.am | 38 +- libpurple/protocols/gg/lib/config.h | 6 +- libpurple/protocols/gg/lib/dcc7.c | 2 +- libpurple/protocols/gg/lib/handlers.c | 26 +- libpurple/protocols/gg/lib/internal.h | 28 +- libpurple/protocols/gg/lib/libgadu.c | 160 +- libpurple/protocols/gg/lib/libgadu.h | 2 +- libpurple/protocols/gg/lib/resolver.c | 6 +- libpurple/protocols/gg/lib/resolver.h | 1 + libpurple/protocols/jabber/Makefile.mingw | 1 + pidgin/gtkdialogs.c | 16 +- po/brx.po | 19799 ++++++++++++++++++++++++++++ po/es_AR.po | 19799 ++++++++++++++++++++++++++++ po/ks.po | 19799 ++++++++++++++++++++++++++++ po/sd.po | 19799 ++++++++++++++++++++++++++++ po/uz.po | 19770 +++++++++++++++++++++++++++ 19 files changed, 99204 insertions(+), 187 deletions(-) diffs (truncated from 99845 to 300 lines): diff --git a/COPYRIGHT b/COPYRIGHT --- a/COPYRIGHT +++ b/COPYRIGHT @@ -148,6 +148,7 @@ Marc Dequènes Philip Derrin Taso N. Devetzis Balwinder Singh Dheeman +Chandrakant Dhutadmal Andrew Dieffenbach Finlay Dobbie Mark Doliner @@ -275,9 +276,11 @@ Tomáš Kebert John Kelm Jochen Kemnade Yann Kerherve +Akmal Khushvakov Gordian Klein Marten Klencke Krzysztof Klinikowski +KNTRO Akuke Kok Kir Kolyshkin Ivan Komarov @@ -378,6 +381,7 @@ Richard Nelson Dennis Nezic Matthew A. Nicholson Andreas Nilsson +Allan Nordhøy Henning Norén Szilard Novaki Novell diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -98,7 +98,7 @@ version 2.10.10 (?/?/?): * Fix build against Python 3. (Ed Catmur) (#15969) Gadu-Gadu: - * Updated internal libgadu to version 1.12.0-rc2. + * Updated internal libgadu to version 1.12.0. IRC: * Fix a possible leak of unencrypted data when using /me command diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -1335,112 +1335,32 @@ if test "x$silcclient" = "xyes"; then fi dnl ####################################################################### -dnl # Check for Gadu-Gadu client includes and libraries +dnl # Check for Gadu-Gadu protocol library (libgadu) dnl ####################################################################### -dnl TODO: we should get rid of manually entered dirs at some point -AC_ARG_WITH(gadu-includes, [AS_HELP_STRING([--with-gadu-includes=DIR], [compile the Gadu-Gadu plugin against includes in DIR])], [ac_gadu_includes="$withval"], [ac_gadu_includes="no"]) -AC_ARG_WITH(gadu-libs, [AS_HELP_STRING([--with-gadu-libs=DIR], [compile the Gadu-Gadu plugin against the libs in DIR])], [ac_gadu_libs="$withval"], [ac_gadu_libs="no"]) -GADU_CFLAGS="" -GADU_LIBS="" -GADU_LIBGADU_MIN_VERSION=1.11.2 -if test -n "$with_gadu_includes" || test -n "$with_gadu_libs"; then - gadu_manual_check="yes" -else - gadu_manual_check="no" -fi -if test "x$gadu_manual_check" = "xno"; then - PKG_CHECK_MODULES(GADU, [libgadu >= $GADU_LIBGADU_MIN_VERSION], [ - gadu_includes="yes" - gadu_libs="yes" - ], [ - gadu_includes="no" + +PKG_CHECK_MODULES(LIBGADU, [libgadu >= 1.12.0], [have_libgadu=yes], [have_libgadu=no]) + +if test "x$have_libgadu" = "xyes"; then + AC_CHECK_LIB(gadu, gg_is_gpl_compliant, , [ + LIBGADU_LIBS="" + LIBGADU_CFLAGS="" + have_libgadu=no + AC_MSG_WARN([ +libgadu is not compatible with the GPL when compiled with OpenSSL support. + +To compile against system libgadu, please recompile libgadu using: +./configure --with-openssl=no +Then rerun this ./configure + +Falling back to using our own copy of libgadu. + ]) ]) -else - if test "$ac_gadu_includes" != "no"; then - GADU_CFLAGS="-I$ac_gadu_includes" - fi - CPPFLAGS_save="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" - AC_CHECK_HEADER(libgadu.h, [gadu_includes=yes]) - CPPFLAGS="$CPPFLAGS_save" - - if test "$ac_gadu_libs" != "no"; then - GADU_LIBS="-L$ac_gadu_libs" - fi - GADU_LIBS="$GADU_LIBS -lgadu" - AC_CHECK_LIB(gadu, gg_libgadu_version, [gadu_libs=yes], , $GADU_LIBS) fi -dnl TODO: it shouldn't be necessary with 1.12.0 and newer -GADU_CFLAGS=`echo $GADU_CFLAGS |$sedpath 's/-Wall//'` - -if test "x$gadu_libs" = "xyes"; then - AC_MSG_CHECKING(for libgadu GPL compatibility) - CPPFLAGS_save="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libgadu.h>]], [[ -#if defined(__GG_LIBGADU_HAVE_OPENSSL) || defined(GG_CONFIG_HAVE_OPENSSL) -#error "libgadu is not compatible with the GPL when compiled with OpenSSL support." -#endif - ]])], [ - AC_MSG_RESULT(yes) - ], [ - AC_MSG_RESULT(no) - echo - echo - echo "libgadu is not compatible with the GPL when compiled with OpenSSL support." - echo "To compile against system libgadu, please recompile libgadu using:" - echo "./autogen.sh --disable-libgadu-openssl --disable-static --enable-shared" - echo "Then rerun this ./configure" - echo - echo "Falling back to using our own copy of libgadu" - echo - GADU_LIBS="" - GADU_CFLAGS="" - gadu_libs=no - ]) - CPPFLAGS="$CPPFLAGS_save" -fi - -dnl TODO: this one shouldn't be necessary too -if test "x$gadu_libs" = "xyes" -a "x$gadu_manual_check" = "xyes"; then - AC_MSG_CHECKING(for supplied libgadu compatibility) - CPPFLAGS_save="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" - - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libgadu.h>]], [[ -#if GG_DEFAULT_PROTOCOL_VERSION < 0x2e -#error "Your libgadu version is too old." -#endif - ]])], [ - AC_MSG_RESULT(yes) - ], [ - AC_MSG_RESULT(no) - echo - echo "Your supplied copy of libgadu is too old." - echo "Install version $GADU_LIBGADU_MIN_VERSION or newer." - echo "Then rerun this ./configure" - echo - echo "Falling back to using our own copy of libgadu" - echo - GADU_LIBS="" - GADU_CFLAGS="" - gadu_libs=no - ]) - - CPPFLAGS="$CPPFLAGS_save" -fi - -AM_CONDITIONAL(HAVE_LIBGADU, test "x$gadu_libs" = "xyes") -AM_CONDITIONAL(USE_INTERNAL_LIBGADU, test "x$gadu_libs" != "xyes") - -if test "x$gadu_libs" = "xyes"; then - AC_DEFINE(HAVE_LIBGADU, 1, [Linked with libgadu]) -fi - -if test "x$gadu_libs" != "xyes"; then - AC_DEFINE(USE_INTERNAL_LIBGADU, 1, [Using internal libgadu]) - +AM_CONDITIONAL(HAVE_LIBGADU, test "x$have_libgadu" = "xyes") +if test "x$have_libgadu" = "xyes"; then + AC_DEFINE(HAVE_LIBGADU, 1, [Linked with external libgadu]) +else AC_CHECK_LIB(gnutls, gnutls_certificate_set_x509_system_trust, [gg_have_gnutls_csxst=yes], [gg_have_gnutls_csxst=no]) gg_gnutls_sts="" @@ -1470,12 +1390,9 @@ if test "x$gadu_libs" != "xyes"; then ],:) fi -if test "x$gadu_libs" = "x"; then - gadu_libs=no -fi +AC_SUBST(LIBGADU_LIBS) +AC_SUBST(LIBGADU_CFLAGS) -AC_SUBST(GADU_LIBS) -AC_SUBST(GADU_CFLAGS) AC_ARG_ENABLE(distrib,,,enable_distrib=no) AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") @@ -2887,7 +2804,7 @@ fi echo Build with Cyrus SASL support. : $enable_cyrus_sasl echo Use kerberos 4 with zephyr.... : $kerberos echo Use external libzephyr........ : $zephyr -echo Use external libgadu.......... : $gadu_libs +echo Use external libgadu.......... : $have_libgadu echo Install pixmaps............... : $enable_pixmaps echo Old tray icon compatibility... : $enable_traycompat echo Install translations.......... : $enable_i18n diff --git a/libpurple/protocols/gg/Makefile.am b/libpurple/protocols/gg/Makefile.am --- a/libpurple/protocols/gg/Makefile.am +++ b/libpurple/protocols/gg/Makefile.am @@ -1,8 +1,3 @@ -#V=0 -#CFLAGS = -g -O0 -GADU_EXTRA = -#GADU_EXTRA += -Werror - pkgdir = @PURPLE_PLUGINDIR@ EXTRA_DIST = \ @@ -11,8 +6,8 @@ EXTRA_DIST = \ Makefile.mingw \ lib/COPYING -if USE_INTERNAL_LIBGADU -INTGGSOURCES = \ +if ! HAVE_LIBGADU +INTGG_SOURCES = \ lib/common.c \ lib/config.h \ lib/dcc.c \ @@ -55,22 +50,17 @@ INTGGSOURCES = \ lib/tvbuilder.c \ lib/tvbuilder.h +INTGG_LIBS = $(ZLIB_LIBS) $(GNUTLS_LIBS) +INTGG_CFLAGS = \ + -I$(top_srcdir)/libpurple/protocols/gg/lib \ + $(ZLIB_CFLAGS) \ + $(GNUTLS_CFLAGS) \ + -DGG_IGNORE_DEPRECATED -INTGG_CFLAGS = -I$(top_srcdir)/libpurple/protocols/gg/lib \ - $(ZLIB_CFLAGS) \ - -DGG_IGNORE_DEPRECATED -GADU_LIBS += $(ZLIB_LIBS) endif -if USE_GNUTLS -GADU_LIBS += $(GNUTLS_LIBS) -GADU_CFLAGS += $(GNUTLS_CFLAGS) -endif - -GADU_LIBS += $(JSON_LIBS) - GGSOURCES = \ - $(INTGGSOURCES) \ + $(INTGG_SOURCES) \ avatar.c \ avatar.h \ blist.c \ @@ -130,27 +120,27 @@ libgg_la_LDFLAGS = -module @PLUGIN_LDFLA if STATIC_GG -st = -DPURPLE_STATIC_PRPL $(GADU_CFLAGS) +st = -DPURPLE_STATIC_PRPL noinst_LTLIBRARIES = libgg.la libgg_la_SOURCES = $(GGSOURCES) libgg_la_CFLAGS = $(AM_CFLAGS) else -st = $(GADU_CFLAGS) +st = pkg_LTLIBRARIES = libgg.la libgg_la_SOURCES = $(GGSOURCES) endif -libgg_la_LIBADD = @PURPLE_LIBS@ $(GADU_LIBS) +libgg_la_LIBADD = @PURPLE_LIBS@ $(LIBGADU_LIBS) $(JSON_LIBS) AM_CPPFLAGS = \ -I$(top_srcdir)/libpurple \ -I$(top_builddir)/libpurple \ + $(LIBGADU_CFLAGS) \ $(INTGG_CFLAGS) \ $(GLIB_CFLAGS) \ $(JSON_CFLAGS) \ $(GPLUGIN_CFLAGS) \ - $(DEBUG_CFLAGS) \ - $(GADU_EXTRA) + $(DEBUG_CFLAGS) diff --git a/libpurple/protocols/gg/lib/config.h b/libpurple/protocols/gg/lib/config.h --- a/libpurple/protocols/gg/lib/config.h +++ b/libpurple/protocols/gg/lib/config.h @@ -5,7 +5,7 @@ /* libpurple's config */ #include <config.h> -#define GG_LIBGADU_VERSION "1.12.0-rc2" +#define GG_LIBGADU_VERSION "1.12.0"