~ubuntu-branches/ubuntu/lucid/jhbuild/lucid

« back to all changes in this revision

Viewing changes to patches/dbus-glib_ignore_namespaces.patch

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort, Loic Minier, Emilio Pozuelo Monfort
  • Date: 2009-11-09 20:28:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091109202848-m9ec7dmzptqtchtj
Tags: 2.28.0-1
[ Loic Minier ]
* Cleanups.
* Ship scripts.
* Don't set GNOME_MODULE as it equals the name of the source package.

[ Emilio Pozuelo Monfort ]
* New upstream release. Closes: #524504.
  - Use 'git rev-parse' rather than 'git-rev-parse'. Closes: #544642.
* Ship install-check. Closes: #441008.
* Uploaders list regenerated. Closes: #523542, #554071.
* debian/control.in,
  debian/rules:
  - Stop shipping a copy of subprocess.py. Require python >= 2.4.
  - Switch to python-support.
* debian/control.in:
  - Bump Standards-Version to 3.8.3, no changes needed.
  - Build depend on intltool >= 0.35.0.
  - Build depend on pkg-config, gnome-doc-utils and rarian-compat to build
    the documentation.
  - Make jhbuild arch any since install-check is a binary. Depend on
    ${shlibs:Depends}.
  - Recommend, and not suggest, git-core. Also recommend mercurial.
* debian/watch:
  - Added.
* debian/patches/01_import_from_pkgdatadir.patch:
  - Added, import jhbuild from pkgdatadir if everything else fails.
    This way we can ship the jhbuild private modules in /usr/sharejhbuild.
* debian/jhbuild.docs:
  - Removed, the necessary docs are now installed by the upstream Makefile.
* debian/rules:
  - Include autotools.mk and gnome.mk.
  - Remove all the manual build process, autotools.mk does everything now.
  - Install the jhbuild modules in /usr/share/jhbuild.
* debian/install:
  - Install the modulesets and patches from here since the upstream build
    system doesn't install them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -up dbus-glib-0.73/dbus/dbus-gparser.c.ignore-namespaces dbus-glib-0.73/dbus/dbus-gparser.c
 
2
--- dbus-glib-0.73/dbus/dbus-gparser.c.ignore-namespaces        2006-09-27 08:27:24.000000000 -0400
 
3
+++ dbus-glib-0.73/dbus/dbus-gparser.c  2008-03-13 08:54:14.000000000 -0400
 
4
@@ -128,13 +128,17 @@ locate_attributes (const char  *element_
 
5
 
 
6
       if (!found)
 
7
         {
 
8
-          g_set_error (error,
 
9
-                       G_MARKUP_ERROR,
 
10
-                       G_MARKUP_ERROR_PARSE,
 
11
-                       _("Attribute \"%s\" is invalid on <%s> element in this context"),
 
12
-                       attribute_names[i], element_name);
 
13
-          retval = FALSE;
 
14
-          goto out;
 
15
+          /* We want to passthrough namespaced XML nodes that we don't know anything about. */
 
16
+          if (strchr (attribute_names[i], ':') == NULL)
 
17
+            {
 
18
+              g_set_error (error,
 
19
+                           G_MARKUP_ERROR,
 
20
+                           G_MARKUP_ERROR_PARSE,
 
21
+                           _("Attribute \"%s\" is invalid on <%s> element in this context"),
 
22
+                           attribute_names[i], element_name);
 
23
+              retval = FALSE;
 
24
+              goto out;
 
25
+            }
 
26
         }
 
27
 
 
28
       ++i;
 
29
@@ -177,6 +181,7 @@ struct Parser
 
30
   PropertyInfo *property;
 
31
   ArgInfo *arg;
 
32
   gboolean in_annotation;
 
33
+  guint unknown_namespaced_depth;
 
34
 };
 
35
 
 
36
 Parser*
 
37
@@ -791,10 +796,14 @@ parser_start_element (Parser      *parse
 
38
     }
 
39
   else
 
40
     {
 
41
-      g_set_error (error, G_MARKUP_ERROR,
 
42
-                   G_MARKUP_ERROR_PARSE,
 
43
-                   _("Element <%s> not recognized"),
 
44
-                   element_name);
 
45
+      if (strchr (element_name, ':') != NULL)
 
46
+        /* Passthrough XML-namespaced nodes */
 
47
+        parser->unknown_namespaced_depth += 1;
 
48
+      else if (parser->unknown_namespaced_depth == 0)
 
49
+        g_set_error (error, G_MARKUP_ERROR,
 
50
+                     G_MARKUP_ERROR_PARSE,
 
51
+                     _("Element <%s> not recognized"),
 
52
+                     element_name);
 
53
     }
 
54
   
 
55
   return TRUE;
 
56
@@ -844,6 +853,15 @@ parser_end_element (Parser      *parser,
 
57
       if (parser->node_stack == NULL)
 
58
         parser->result = top; /* We are done, store the result */      
 
59
     }
 
60
+  else if (strchr (element_name, ':') != NULL)
 
61
+    {
 
62
+      /* Passthrough XML-namespaced nodes */
 
63
+      parser->unknown_namespaced_depth -= 1;
 
64
+    }
 
65
+  else if (parser->unknown_namespaced_depth > 0)
 
66
+    {
 
67
+               /* pass through unknown elements underneath a namespace */
 
68
+    }
 
69
   else
 
70
     g_assert_not_reached (); /* should have had an error on start_element */
 
71
   
 
72
diff -up dbus-glib-0.73/dbus/dbus-glib-tool.c.ignore-namespaces dbus-glib-0.73/dbus/dbus-glib-tool.c
 
73
--- dbus-glib-0.73/dbus/dbus-glib-tool.c.ignore-namespaces      2008-03-13 08:31:21.000000000 -0400
 
74
+++ dbus-glib-0.73/dbus/dbus-glib-tool.c        2008-03-13 08:32:15.000000000 -0400
 
75
@@ -414,7 +414,7 @@ main (int argc, char **argv)
 
76
                                          &error);
 
77
       if (node == NULL)
 
78
         {
 
79
-         lose_gerror (_("Unable to load \"%s\""), error);
 
80
+         lose (_("Unable to load \"%s\": %s"), filename, error->message);
 
81
         }
 
82
       else
 
83
        {