Hello community, here is the log from the commit of package dbus-1-glib checked in at Fri Feb 29 22:37:13 CET 2008. -------- --- dbus-1-glib/dbus-1-glib.changes 2007-06-27 15:31:28.000000000 +0200 +++ dbus-1-glib/dbus-1-glib.changes 2008-02-29 20:10:28.051540000 +0100 @@ -1,0 +2,10 @@ +Fri Feb 29 20:10:01 CET 2008 - tambet@suse.de + +- Fix the generated introspection XML (patch from upstream). +- Fix the bug where GObject signals get emitted twice per dbus signal + (bfo #12505). +- Make the dbus-binding-tool ignore XML namespaces it doesn't understand, + making it possible to add documentation to the same place where interface + definitions live (bfo #14429). + +------------------------------------------------------------------- New: ---- dbus-glib-ignore-namespaces.patch dbus-glib-introspection-xml.patch dbus-glib-proxy-signals-once.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dbus-1-glib.spec ++++++ --- /var/tmp/diff_new_pack.o20697/_old 2008-02-29 22:34:49.000000000 +0100 +++ /var/tmp/diff_new_pack.o20697/_new 2008-02-29 22:34:49.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package dbus-1-glib (Version 0.74) # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -10,34 +10,40 @@ # norootforbuild + Name: dbus-1-glib BuildRequires: dbus-1 dbus-1-devel dbus-1-x11 glib2-devel gtk-doc libexpat-devel libxml2-devel -URL: http://dbus.freedesktop.org/ -License: GNU General Public License (GPL), Other uncritical OpenSource License, D-BUS is licensed to you under your choice of the Academic Free +Url: http://dbus.freedesktop.org/ +License: GPL v2 or later; Other uncritical OpenSource License Group: Development/Libraries/Other Version: 0.74 -Release: 1 -Autoreqprov: on +Release: 61 +AutoReqProv: on Summary: GLib-based library for using D-Bus Source0: dbus-glib-%{version}.tar.gz Patch0: dbus-glib-nameownerchange-workaround-thoenig-01.patch Patch1: dbus-glib-gvalue-utils-fix-thoenig-01.patch +Patch2: dbus-glib-introspection-xml.patch +Patch3: dbus-glib-proxy-signals-once.patch +Patch4: dbus-glib-ignore-namespaces.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: dbus-1 >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus-1`) + %package -n dbus-1-glib-devel Summary: Developer package for D-Bus/GLib bindings Requires: dbus-1 >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus-1`) Requires: dbus-1-devel >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus-1-devel`) Requires: dbus-1-glib = %{version} Requires: glib2-devel -Autoreqprov: on +AutoReqProv: on Group: Development/Libraries/Other + %package -n dbus-1-glib-doc Summary: Documentation for the D-Bus/GLib bindings Requires: dbus-1 >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus-1`) Requires: dbus-1-devel >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus-1-devel`) Requires: dbus-1-glib = %{version} -Autoreqprov: on +AutoReqProv: on Group: Documentation/HTML %description @@ -63,7 +69,6 @@ Colin Walters <walters@gnu.org> David Zeuthen <david@fubar.dk> - %description -n dbus-1-glib-devel D-Bus add-on library to integrate the standard D-Bus library with the GLib thread abstraction and main loop. @@ -87,7 +92,6 @@ Colin Walters <walters@gnu.org> David Zeuthen <david@fubar.dk> - %description -n dbus-1-glib-doc D-Bus add-on library to integrate the standard D-Bus library with the GLib thread abstraction and main loop. @@ -115,6 +119,9 @@ %setup -n dbus-glib-%{version} -q %patch0 -p0 %patch1 -p0 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 %build autoreconf -fi @@ -160,7 +167,14 @@ %{_datadir}/gtk-doc/html/dbus-glib/* %changelog -* Wed Jun 27 2007 - thoenig@suse.de +* Fri Feb 29 2008 tambet@suse.de +- Fix the generated introspection XML (patch from upstream). +- Fix the bug where GObject signals get emitted twice per dbus signal + (bfo #12505). +- Make the dbus-binding-tool ignore XML namespaces it doesn't understand, + making it possible to add documentation to the same place where interface + definitions live (bfo #14429). +* Wed Jun 27 2007 thoenig@suse.de - Update to dbus-1-glib 0.74 - Changes: * Init threading first to stop a warning from new GLib. @@ -176,19 +190,19 @@ * Update abstract socket test from DBus, which now cross-compiles * Rename the error quark to be unique * Update AUTHORS -* Sat Apr 28 2007 - aj@suse.de +* Sat Apr 28 2007 aj@suse.de - Add libexpat-devel to build requires. -* Thu Mar 01 2007 - thoenig@suse.de +* Thu Mar 01 2007 thoenig@suse.de - new upstream version 0.73 - new package dbus-1-glib-doc - drop patch dbus-glib-introspect-fix-thoenig-01.patch -* Mon Nov 06 2006 - thoenig@suse.de +* Mon Nov 06 2006 thoenig@suse.de - loosen dependency to D-Bus -* Tue Aug 01 2006 - thoenig@suse.de +* Wed Aug 02 2006 thoenig@suse.de - new upstream version 0.71 - new package: dbus-1-glib-devel - moved dbus-binding-tool from dbus-1-glib to dbus-1-glib-devel - moved GLib header and .la files from dbus-1-devel to dbus-1-glib-devel -* Tue Aug 01 2006 - thoenig@suse.de +* Wed Aug 02 2006 thoenig@suse.de - split out binings to sparate spec files ++++++ dbus-glib-ignore-namespaces.patch ++++++ Index: dbus-glib-0.74/dbus/dbus-gparser.c =================================================================== --- dbus-glib-0.74.orig/dbus/dbus-gparser.c +++ dbus-glib-0.74/dbus/dbus-gparser.c @@ -128,13 +128,17 @@ locate_attributes (const char *element_ if (!found) { - g_set_error (error, - G_MARKUP_ERROR, - G_MARKUP_ERROR_PARSE, - _("Attribute \"%s\" is invalid on <%s> element in this context"), - attribute_names[i], element_name); - retval = FALSE; - goto out; + /* We want to passthrough namespaced XML nodes that we don't know anything about. */ + if (strchr (attribute_names[i], ':') == NULL) + { + g_set_error (error, + G_MARKUP_ERROR, + G_MARKUP_ERROR_PARSE, + _("Attribute \"%s\" is invalid on <%s> element in this context"), + attribute_names[i], element_name); + retval = FALSE; + goto out; + } } ++i; @@ -177,6 +181,7 @@ struct Parser PropertyInfo *property; ArgInfo *arg; gboolean in_annotation; + guint unknown_namespaced_depth; }; Parser* @@ -791,10 +796,14 @@ parser_start_element (Parser *parse } else { - g_set_error (error, G_MARKUP_ERROR, - G_MARKUP_ERROR_PARSE, - _("Element <%s> not recognized"), - element_name); + if (strchr (element_name, ':') != NULL) + /* Passthrough XML-namespaced nodes */ + parser->unknown_namespaced_depth += 1; + else + g_set_error (error, G_MARKUP_ERROR, + G_MARKUP_ERROR_PARSE, + _("Element <%s> not recognized"), + element_name); } return TRUE; @@ -844,6 +853,11 @@ parser_end_element (Parser *parser, if (parser->node_stack == NULL) parser->result = top; /* We are done, store the result */ } + else if (strchr (element_name, ':') != NULL) + { + /* Passthrough XML-namespaced nodes */ + parser->unknown_namespaced_depth -= 1; + } else g_assert_not_reached (); /* should have had an error on start_element */ ++++++ dbus-glib-introspection-xml.patch ++++++ Index: dbus-glib-0.74/dbus/dbus-gobject.c =================================================================== --- dbus-glib-0.74.orig/dbus/dbus-gobject.c +++ dbus-glib-0.74/dbus/dbus-gobject.c @@ -488,8 +488,6 @@ write_interface (gpointer key, gpointer } g_free (dbus_type); - - g_string_append (xml, " </property>\n"); } g_slist_free (values->properties); ++++++ dbus-glib-proxy-signals-once.patch ++++++ Index: dbus-glib-0.74/dbus/dbus-gproxy.c =================================================================== --- dbus-glib-0.74.orig/dbus/dbus-gproxy.c +++ dbus-glib-0.74/dbus/dbus-gproxy.c @@ -1239,8 +1239,15 @@ dbus_g_proxy_manager_filter (DBusConnect dbus_message_get_interface (message)); owner_list = g_hash_table_lookup (manager->proxy_lists, tri); - if (owner_list != NULL) - full_list = g_slist_concat (full_list, g_slist_copy (owner_list->proxies)); + if (owner_list != NULL) { + GSList *elt; + + /* Ignore duplicates when adding to full_list */ + for (elt = owner_list->proxies; elt; elt = g_slist_next (elt)) { + if (!g_slist_find (full_list, elt->data)) + full_list = g_slist_append (full_list, elt->data); + } + } g_free (tri); } } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de