Hello community, here is the log from the commit of package purple-facebook for openSUSE:Factory checked in at 2017-06-10 17:51:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/purple-facebook (Old) and /work/SRC/openSUSE:Factory/.purple-facebook.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "purple-facebook" Sat Jun 10 17:51:38 2017 rev:3 rq:502646 version:0.9.4 Changes: -------- --- /work/SRC/openSUSE:Factory/purple-facebook/purple-facebook.changes 2017-04-14 13:42:01.118948274 +0200 +++ /work/SRC/openSUSE:Factory/.purple-facebook.new/purple-facebook.changes 2017-06-10 17:51:45.997341020 +0200 @@ -1,0 +2,8 @@ +Fri Jun 9 11:47:35 UTC 2017 - michal.hruse...@opensuse.org + +- update to version 0.9.4 + * Add content-type header to all requests, fixes http error 400 + * Change error message when sync_sequence_id is missing, for clarity + * Bump orca version. Purely speculative, may not help with anything. + +------------------------------------------------------------------- Old: ---- purple-facebook-0.9.3-c9b74a765767.tar.gz New: ---- purple-facebook-0.9.4-c9b74a765767.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ purple-facebook.spec ++++++ --- /var/tmp/diff_new_pack.ywyt2D/_old 2017-06-10 17:51:46.641250101 +0200 +++ /var/tmp/diff_new_pack.ywyt2D/_new 2017-06-10 17:51:46.645249536 +0200 @@ -18,7 +18,7 @@ %define _rev c9b74a765767 Name: purple-facebook -Version: 0.9.3 +Version: 0.9.4 Release: 0 Summary: Facebook protocol plugin for libpurple License: GPL-2.0+ ++++++ purple-facebook-0.9.3-c9b74a765767.tar.gz -> purple-facebook-0.9.4-c9b74a765767.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/purple-facebook-0.9.3-c9b74a765767/Makefile.in new/purple-facebook-0.9.4-c9b74a765767/Makefile.in --- old/purple-facebook-0.9.3-c9b74a765767/Makefile.in 2017-03-30 07:29:18.000000000 +0200 +++ new/purple-facebook-0.9.4-c9b74a765767/Makefile.in 2017-06-08 20:18:17.000000000 +0200 @@ -166,8 +166,8 @@ $(top_srcdir)/build-aux/ltmain.sh \ $(top_srcdir)/build-aux/missing AUTHORS COPYING ChangeLog \ INSTALL NEWS README build-aux/compile build-aux/config.guess \ - build-aux/config.sub build-aux/depcomp build-aux/install-sh \ - build-aux/ltmain.sh build-aux/missing + build-aux/config.sub build-aux/install-sh build-aux/ltmain.sh \ + build-aux/missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/purple-facebook-0.9.3-c9b74a765767/Makefile.mingw new/purple-facebook-0.9.4-c9b74a765767/Makefile.mingw --- old/purple-facebook-0.9.3-c9b74a765767/Makefile.mingw 2017-03-30 07:27:57.000000000 +0200 +++ new/purple-facebook-0.9.4-c9b74a765767/Makefile.mingw 2017-06-08 18:59:57.000000000 +0200 @@ -1,4 +1,4 @@ -PLUGIN_VERSION = 0.9.3-$(shell cat VERSION) +PLUGIN_VERSION = 0.9.4-$(shell cat VERSION) PURPLE_VERSION = 2.10.11 TREE_TOP = ../../../.. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/purple-facebook-0.9.3-c9b74a765767/aclocal.m4 new/purple-facebook-0.9.4-c9b74a765767/aclocal.m4 --- old/purple-facebook-0.9.3-c9b74a765767/aclocal.m4 2017-03-30 07:29:17.000000000 +0200 +++ new/purple-facebook-0.9.4-c9b74a765767/aclocal.m4 2017-06-08 20:18:17.000000000 +0200 @@ -20,9 +20,9 @@ If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) -dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- -dnl serial 11 (pkg-config-0.29.1) -dnl +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +# serial 12 (pkg-config-0.29.2) + dnl Copyright © 2004 Scott James Remnant <sc...@netsplit.com>. dnl Copyright © 2012-2015 Dan Nicholson <dbn.li...@gmail.com> dnl @@ -63,7 +63,7 @@ dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], -[m4_define([PKG_MACROS_VERSION], [0.29.1]) +[m4_define([PKG_MACROS_VERSION], [0.29.2]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ @@ -164,7 +164,7 @@ AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no -AC_MSG_CHECKING([for $1]) +AC_MSG_CHECKING([for $2]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) @@ -174,11 +174,11 @@ See the pkg-config man page for more details.]) if test $pkg_failed = yes; then - AC_MSG_RESULT([no]) + AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` - else + else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs @@ -195,7 +195,7 @@ _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then - AC_MSG_RESULT([no]) + AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/purple-facebook-0.9.3-c9b74a765767/configure new/purple-facebook-0.9.4-c9b74a765767/configure --- old/purple-facebook-0.9.3-c9b74a765767/configure 2017-03-30 07:29:18.000000000 +0200 +++ new/purple-facebook-0.9.4-c9b74a765767/configure 2017-06-08 20:18:17.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for purple-facebook 0.9.3-c9b74a765767. +# Generated by GNU Autoconf 2.69 for purple-facebook 0.9.4-c9b74a765767. # # Report bugs to <https://github.com/dequis/purple-facebook/issues>. # @@ -590,8 +590,8 @@ # Identity of this package. PACKAGE_NAME='purple-facebook' PACKAGE_TARNAME='purple-facebook' -PACKAGE_VERSION='0.9.3-c9b74a765767' -PACKAGE_STRING='purple-facebook 0.9.3-c9b74a765767' +PACKAGE_VERSION='0.9.4-c9b74a765767' +PACKAGE_STRING='purple-facebook 0.9.4-c9b74a765767' PACKAGE_BUGREPORT='https://github.com/dequis/purple-facebook/issues' PACKAGE_URL='https://github.com/dequis/purple-facebook' @@ -1340,7 +1340,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures purple-facebook 0.9.3-c9b74a765767 to adapt to many kinds of systems. +\`configure' configures purple-facebook 0.9.4-c9b74a765767 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1410,7 +1410,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of purple-facebook 0.9.3-c9b74a765767:";; + short | recursive ) echo "Configuration of purple-facebook 0.9.4-c9b74a765767:";; esac cat <<\_ACEOF @@ -1539,7 +1539,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -purple-facebook configure 0.9.3-c9b74a765767 +purple-facebook configure 0.9.4-c9b74a765767 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1817,7 +1817,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by purple-facebook $as_me 0.9.3-c9b74a765767, which was +It was created by purple-facebook $as_me 0.9.4-c9b74a765767, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2682,7 +2682,7 @@ # Define the identity of the package. PACKAGE='purple-facebook' - VERSION='0.9.3-c9b74a765767' + VERSION='0.9.4-c9b74a765767' cat >>confdefs.h <<_ACEOF @@ -12084,8 +12084,8 @@ fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 -$as_echo_n "checking for GLIB... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.28.0 gio-2.0 gobject-2.0" >&5 +$as_echo_n "checking for glib-2.0 >= 2.28.0 gio-2.0 gobject-2.0... " >&6; } if test -n "$GLIB_CFLAGS"; then pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" @@ -12125,7 +12125,7 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then @@ -12152,7 +12152,7 @@ and GLIB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} @@ -12175,8 +12175,8 @@ fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5 -$as_echo_n "checking for JSON... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-glib-1.0 >= 0.14.0" >&5 +$as_echo_n "checking for json-glib-1.0 >= 0.14.0... " >&6; } if test -n "$JSON_CFLAGS"; then pkg_cv_JSON_CFLAGS="$JSON_CFLAGS" @@ -12216,7 +12216,7 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then @@ -12243,7 +12243,7 @@ and JSON_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} @@ -12266,8 +12266,8 @@ fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PURPLE" >&5 -$as_echo_n "checking for PURPLE... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for purple < 3" >&5 +$as_echo_n "checking for purple < 3... " >&6; } if test -n "$PURPLE_CFLAGS"; then pkg_cv_PURPLE_CFLAGS="$PURPLE_CFLAGS" @@ -12307,7 +12307,7 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then @@ -12334,7 +12334,7 @@ and PURPLE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} @@ -13004,7 +13004,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by purple-facebook $as_me 0.9.3-c9b74a765767, which was +This file was extended by purple-facebook $as_me 0.9.4-c9b74a765767, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -13062,7 +13062,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -purple-facebook config.status 0.9.3-c9b74a765767 +purple-facebook config.status 0.9.4-c9b74a765767 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/purple-facebook-0.9.3-c9b74a765767/configure.ac new/purple-facebook-0.9.4-c9b74a765767/configure.ac --- old/purple-facebook-0.9.3-c9b74a765767/configure.ac 2017-03-30 07:28:03.000000000 +0200 +++ new/purple-facebook-0.9.4-c9b74a765767/configure.ac 2017-06-08 19:00:12.000000000 +0200 @@ -17,7 +17,7 @@ AC_INIT( [purple-facebook], - m4_join([-], [0.9.3], m4_esyscmd_s([cat VERSION])), + m4_join([-], [0.9.4], m4_esyscmd_s([cat VERSION])), [https://github.com/dequis/purple-facebook/issues], [purple-facebook], [https://github.com/dequis/purple-facebook], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/purple-facebook-0.9.3-c9b74a765767/patches/12-http-agent.patch new/purple-facebook-0.9.4-c9b74a765767/patches/12-http-agent.patch --- old/purple-facebook-0.9.3-c9b74a765767/patches/12-http-agent.patch 2017-03-30 07:26:49.000000000 +0200 +++ new/purple-facebook-0.9.4-c9b74a765767/patches/12-http-agent.patch 2017-06-08 18:59:34.000000000 +0200 @@ -18,7 +18,7 @@ + * + */ + -+#define FB_ORCA_AGENT "[FBAN/Orca-Android;FBAV/38.0.0.22.155;FBBV/14477681]" ++#define FB_ORCA_AGENT "[FBAN/Orca-Android;FBAV/109.0.0.17.70;FBPN/com.facebook.orca;FBLC/en_US;FBBV/52182662]" + +/** * FB_API_AGENT: @@ -26,7 +26,7 @@ * The HTTP User-Agent header. */ -#define FB_API_AGENT "Facebook plugin / Purple / 0.9" -+#define FB_API_AGENT "Facebook plugin / Purple / 0.9.3 " FB_ORCA_AGENT ++#define FB_API_AGENT "Facebook plugin / Purple / 0.9.4 " FB_ORCA_AGENT /** * FB_API_MQTT_AGENT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/purple-facebook-0.9.3-c9b74a765767/patches/13-content-type.patch new/purple-facebook-0.9.4-c9b74a765767/patches/13-content-type.patch --- old/purple-facebook-0.9.3-c9b74a765767/patches/13-content-type.patch 1970-01-01 01:00:00.000000000 +0100 +++ new/purple-facebook-0.9.4-c9b74a765767/patches/13-content-type.patch 2017-06-08 18:52:32.000000000 +0200 @@ -0,0 +1,10 @@ +--- a/libpurple/protocols/facebook/api.c 2017-06-08 13:50:51.660801537 -0300 ++++ b/libpurple/protocols/facebook/api.c 2017-06-08 13:50:48.960852585 -0300 +@@ -763,6 +763,7 @@ + } + + purple_http_request_header_set(req, "User-Agent", FB_API_AGENT); ++ purple_http_request_header_set(req, "Content-Type", "application/x-www-form-urlencoded; charset=utf-8"); + + data = fb_http_params_close(params, NULL); + purple_http_request_set_contents(req, data, -1); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/purple-facebook-0.9.3-c9b74a765767/patches/14-sync-seq-error.patch new/purple-facebook-0.9.4-c9b74a765767/patches/14-sync-seq-error.patch --- old/purple-facebook-0.9.3-c9b74a765767/patches/14-sync-seq-error.patch 1970-01-01 01:00:00.000000000 +0100 +++ new/purple-facebook-0.9.4-c9b74a765767/patches/14-sync-seq-error.patch 2017-06-08 20:15:33.000000000 +0200 @@ -0,0 +1,26 @@ +--- a/libpurple/protocols/facebook/api.c 2017-06-08 15:02:12.965124587 -0300 ++++ b/libpurple/protocols/facebook/api.c 2017-06-08 15:14:32.217748548 -0300 +@@ -1033,7 +1033,7 @@ + } + + values = fb_json_values_new(root); +- fb_json_values_add(values, FB_JSON_TYPE_STR, TRUE, ++ fb_json_values_add(values, FB_JSON_TYPE_STR, FALSE, + "$.viewer.message_threads.sync_sequence_id"); + fb_json_values_add(values, FB_JSON_TYPE_INT, TRUE, + "$.viewer.message_threads.unread_count"); +@@ -1049,7 +1049,13 @@ + priv->sid = g_ascii_strtoll(str, NULL, 10); + priv->unread = fb_json_values_next_int(values, 0); + +- fb_api_connect_queue(api); ++ if (priv->sid == 0) { ++ fb_api_error(api, FB_API_ERROR_GENERAL, ++ _("Failed to get sync_sequence_id")); ++ } else { ++ fb_api_connect_queue(api); ++ } ++ + g_object_unref(values); + json_node_free(root); + } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/purple-facebook-0.9.3-c9b74a765767/pidgin/libpurple/protocols/facebook/api.c new/purple-facebook-0.9.4-c9b74a765767/pidgin/libpurple/protocols/facebook/api.c --- old/purple-facebook-0.9.3-c9b74a765767/pidgin/libpurple/protocols/facebook/api.c 2017-03-29 14:59:36.000000000 +0200 +++ new/purple-facebook-0.9.4-c9b74a765767/pidgin/libpurple/protocols/facebook/api.c 2017-06-08 20:18:10.000000000 +0200 @@ -763,6 +763,7 @@ } purple_http_request_header_set(req, "User-Agent", FB_API_AGENT); + purple_http_request_header_set(req, "Content-Type", "application/x-www-form-urlencoded; charset=utf-8"); data = fb_http_params_close(params, NULL); purple_http_request_set_contents(req, data, -1); @@ -1032,7 +1033,7 @@ } values = fb_json_values_new(root); - fb_json_values_add(values, FB_JSON_TYPE_STR, TRUE, + fb_json_values_add(values, FB_JSON_TYPE_STR, FALSE, "$.viewer.message_threads.sync_sequence_id"); fb_json_values_add(values, FB_JSON_TYPE_INT, TRUE, "$.viewer.message_threads.unread_count"); @@ -1048,7 +1049,13 @@ priv->sid = g_ascii_strtoll(str, NULL, 10); priv->unread = fb_json_values_next_int(values, 0); - fb_api_connect_queue(api); + if (priv->sid == 0) { + fb_api_error(api, FB_API_ERROR_GENERAL, + _("Failed to get sync_sequence_id")); + } else { + fb_api_connect_queue(api); + } + g_object_unref(values); json_node_free(root); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/purple-facebook-0.9.3-c9b74a765767/pidgin/libpurple/protocols/facebook/api.h new/purple-facebook-0.9.4-c9b74a765767/pidgin/libpurple/protocols/facebook/api.h --- old/purple-facebook-0.9.3-c9b74a765767/pidgin/libpurple/protocols/facebook/api.h 2017-03-30 07:24:46.000000000 +0200 +++ new/purple-facebook-0.9.4-c9b74a765767/pidgin/libpurple/protocols/facebook/api.h 2017-06-08 20:18:10.000000000 +0200 @@ -105,14 +105,14 @@ * */ -#define FB_ORCA_AGENT "[FBAN/Orca-Android;FBAV/38.0.0.22.155;FBBV/14477681]" +#define FB_ORCA_AGENT "[FBAN/Orca-Android;FBAV/109.0.0.17.70;FBPN/com.facebook.orca;FBLC/en_US;FBBV/52182662]" /** * FB_API_AGENT: * * The HTTP User-Agent header. */ -#define FB_API_AGENT "Facebook plugin / Purple / 0.9.3 " FB_ORCA_AGENT +#define FB_API_AGENT "Facebook plugin / Purple / 0.9.4 " FB_ORCA_AGENT /** * FB_API_MQTT_AGENT