diff options
| author | Ross Burton <ross.burton@intel.com> | 2013-04-19 12:22:57 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-22 14:45:04 +0100 |
| commit | 5460086c453d966500f692e19bd9a9d8353e03de (patch) | |
| tree | b5472f4f53f5bd942f0ea0cfa781f9e9b7502c1d /meta | |
| parent | 824962fcf2f9000f60118cb3496c1bcad195b757 (diff) | |
| download | poky-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')
| -rw-r--r-- | meta/recipes-gnome/gnome/gconf/unable-connect-dbus.patch | 95 | ||||
| -rw-r--r-- | meta/recipes-gnome/gnome/gconf_3.2.6.bb | 1 |
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 @@ | |||
| 1 | Fixes 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: | ||
| 4 | Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead | ||
| 5 | |||
| 6 | Upstream-Status: Backport | ||
| 7 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
| 8 | |||
| 9 | From b0895e1998ebc83ab030ec0f17c0685439f5b404 Mon Sep 17 00:00:00 2001 | ||
| 10 | From: Ray Strode <rstrode@redhat.com> | ||
| 11 | Date: Mon, 15 Apr 2013 09:57:34 -0400 | ||
| 12 | Subject: [PATCH] dbus: Don't spew to console when unable to connect to dbus | ||
| 13 | daemon | ||
| 14 | |||
| 15 | Instead pass the error up for the caller to decide what to do. | ||
| 16 | |||
| 17 | This prevent untrappable warning messages from showing up at the | ||
| 18 | console if gconftool --makefile-install-rule is called. | ||
| 19 | --- | ||
| 20 | gconf/gconf-dbus.c | 24 ++++++++++++------------ | ||
| 21 | 1 file changed, 12 insertions(+), 12 deletions(-) | ||
| 22 | |||
| 23 | diff --git a/gconf/gconf-dbus.c b/gconf/gconf-dbus.c | ||
| 24 | index 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 | -- | ||
| 94 | 1.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 | ||
| 13 | SRC_URI = "${GNOME_MIRROR}/GConf/${@gnome_verdir("${PV}")}/GConf-${PV}.tar.xz;name=archive \ | 13 | SRC_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 | ||
| 17 | SRC_URI[archive.md5sum] = "2b16996d0e4b112856ee5c59130e822c" | 18 | SRC_URI[archive.md5sum] = "2b16996d0e4b112856ee5c59130e822c" |
