summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gnome
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-04-19 12:22:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-22 14:45:04 +0100
commit5460086c453d966500f692e19bd9a9d8353e03de (patch)
treeb5472f4f53f5bd942f0ea0cfa781f9e9b7502c1d /meta/recipes-gnome/gnome
parent824962fcf2f9000f60118cb3496c1bcad195b757 (diff)
downloadpoky-5460086c453d966500f692e19bd9a9d8353e03de.tar.gz
gconf: silence some spurious errors
The postinstalls were producing errors like this: (gconftool-2.real:10095): GConf-WARNING **: Client failed to connect to the D-BUS daemon: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead These are harmless but distracting, so take a patch from upstream to silence them. (From OE-Core rev: bc0a4f6e4d01d5912c2589efa9b69d7eda462f73) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/gnome')
-rw-r--r--meta/recipes-gnome/gnome/gconf/unable-connect-dbus.patch95
-rw-r--r--meta/recipes-gnome/gnome/gconf_3.2.6.bb1
2 files changed, 96 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gnome/gconf/unable-connect-dbus.patch b/meta/recipes-gnome/gnome/gconf/unable-connect-dbus.patch
new file mode 100644
index 0000000000..f758a4bcc5
--- /dev/null
+++ b/meta/recipes-gnome/gnome/gconf/unable-connect-dbus.patch
@@ -0,0 +1,95 @@
1Fixes errors such as this in the rootfs generation:
2
3(gconftool-2.real:10095): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
4Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
5
6Upstream-Status: Backport
7Signed-off-by: Ross Burton <ross.burton@intel.com>
8
9From b0895e1998ebc83ab030ec0f17c0685439f5b404 Mon Sep 17 00:00:00 2001
10From: Ray Strode <rstrode@redhat.com>
11Date: Mon, 15 Apr 2013 09:57:34 -0400
12Subject: [PATCH] dbus: Don't spew to console when unable to connect to dbus
13 daemon
14
15Instead pass the error up for the caller to decide what to do.
16
17This prevent untrappable warning messages from showing up at the
18console if gconftool --makefile-install-rule is called.
19---
20 gconf/gconf-dbus.c | 24 ++++++++++++------------
21 1 file changed, 12 insertions(+), 12 deletions(-)
22
23diff --git a/gconf/gconf-dbus.c b/gconf/gconf-dbus.c
24index 5610fcf..048e3ea 100644
25--- a/gconf/gconf-dbus.c
26+++ b/gconf/gconf-dbus.c
27@@ -105,7 +105,7 @@ static GHashTable *engines_by_db = NULL;
28 static GHashTable *engines_by_address = NULL;
29 static gboolean dbus_disconnected = FALSE;
30
31-static gboolean ensure_dbus_connection (void);
32+static gboolean ensure_dbus_connection (GError **error);
33 static gboolean ensure_service (gboolean start_if_not_found,
34 GError **err);
35 static gboolean ensure_database (GConfEngine *conf,
36@@ -383,7 +383,7 @@ gconf_engine_detach (GConfEngine *conf)
37 }
38
39 static gboolean
40-ensure_dbus_connection (void)
41+ensure_dbus_connection (GError **err)
42 {
43 DBusError error;
44
45@@ -392,7 +392,9 @@ ensure_dbus_connection (void)
46
47 if (dbus_disconnected)
48 {
49- g_warning ("The connection to DBus was broken. Can't reinitialize it.");
50+ g_set_error (err, GCONF_ERROR,
51+ GCONF_ERROR_NO_SERVER,
52+ "The connection to DBus was broken. Can't reinitialize it.");
53 return FALSE;
54 }
55
56@@ -402,7 +404,10 @@ ensure_dbus_connection (void)
57
58 if (!global_conn)
59 {
60- g_warning ("Client failed to connect to the D-BUS daemon:\n%s", error.message);
61+ g_set_error (err, GCONF_ERROR,
62+ GCONF_ERROR_NO_SERVER,
63+ "Client failed to connect to the D-BUS daemon:\n%s",
64+ error.message);
65
66 dbus_error_free (&error);
67 return FALSE;
68@@ -431,13 +436,8 @@ ensure_service (gboolean start_if_not_found,
69
70 if (global_conn == NULL)
71 {
72- if (!ensure_dbus_connection ())
73- {
74- g_set_error (err, GCONF_ERROR,
75- GCONF_ERROR_NO_SERVER,
76- _("No D-BUS daemon running\n"));
77- return FALSE;
78- }
79+ if (!ensure_dbus_connection (err))
80+ return FALSE;
81
82 g_assert (global_conn != NULL);
83 }
84@@ -2512,7 +2512,7 @@ gconf_ping_daemon (void)
85 {
86 if (global_conn == NULL)
87 {
88- if (!ensure_dbus_connection ())
89+ if (!ensure_dbus_connection (NULL))
90 {
91 return FALSE;
92 }
93--
941.7.10.4
95
diff --git a/meta/recipes-gnome/gnome/gconf_3.2.6.bb b/meta/recipes-gnome/gnome/gconf_3.2.6.bb
index a245fa234c..a1843d5b04 100644
--- a/meta/recipes-gnome/gnome/gconf_3.2.6.bb
+++ b/meta/recipes-gnome/gnome/gconf_3.2.6.bb
@@ -12,6 +12,7 @@ inherit gnomebase gtk-doc
12 12
13SRC_URI = "${GNOME_MIRROR}/GConf/${@gnome_verdir("${PV}")}/GConf-${PV}.tar.xz;name=archive \ 13SRC_URI = "${GNOME_MIRROR}/GConf/${@gnome_verdir("${PV}")}/GConf-${PV}.tar.xz;name=archive \
14 file://remove_plus_from_invalid_characters_list.patch \ 14 file://remove_plus_from_invalid_characters_list.patch \
15 file://unable-connect-dbus.patch \
15" 16"
16 17
17SRC_URI[archive.md5sum] = "2b16996d0e4b112856ee5c59130e822c" 18SRC_URI[archive.md5sum] = "2b16996d0e4b112856ee5c59130e822c"