Merge lp:~charlesk/indicator-datetime/lp-1425297-prevent-gdbusproxy-type-init-deadlock-trunk-15.04 into lp:indicator-datetime/15.04

Proposed by Charles Kerr
Status: Merged
Approved by: Ricardo Salveti
Approved revision: 400
Merged at revision: 400
Proposed branch: lp:~charlesk/indicator-datetime/lp-1425297-prevent-gdbusproxy-type-init-deadlock-trunk-15.04
Merge into: lp:indicator-datetime/15.04
Diff against target: 16 lines (+3/-3)
1 file modified
src/main.cpp (+3/-3)
To merge this branch: bzr merge lp:~charlesk/indicator-datetime/lp-1425297-prevent-gdbusproxy-type-init-deadlock-trunk-15.04
Reviewer Review Type Date Requested Status
Ricardo Salveti (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+251371@code.launchpad.net

Commit message

Work around glib's type initialization deadlock.

https://bugzilla.gnome.org/show_bug.cgi?id=674885

Description of the change

=== Change Discussion

Upstream bug https://bugzilla.gnome.org/show_bug.cgi?id=674885 is biting us when GDBusProxy's type is initialized. We've had a sibling bug for GDBusConnection (bug #1239710) in the past; this patch applies the same workaround.

=== Checklist

> Are there any related MPs required for this MP to build/function as expected? Please list.

No

> Is your branch in sync with latest trunk? (e.g. bzr pull lp:trunk -> no changes)

Yes

> Did the code build without warnings?

Yes

> Did the tests run successfully?

Yes

> Did you perform an exploratory manual test run of your code change and any related functionality?

Yes

> If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

N/A

> What device (or emulator) has your component test plan been executed successfully on?

mako vivid 116

> What manual tests are relevant for this MP?

N/A

> Did you include a link to the MR Review Checklist Template to make your reviewer's life easier?

https://wiki.ubuntu.com/Process/Merges/TestPlan/indicator-datetime

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Looks good, tested and works fine.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/main.cpp'
2--- src/main.cpp 2015-01-22 05:53:14 +0000
3+++ src/main.cpp 2015-02-28 18:49:38 +0000
4@@ -118,9 +118,9 @@
5 int
6 main(int /*argc*/, char** /*argv*/)
7 {
8- // Work around a deadlock in glib's type initialization.
9- // It can be removed when https://bugzilla.gnome.org/show_bug.cgi?id=674885 is fixed.
10- g_type_ensure(G_TYPE_DBUS_CONNECTION);
11+ // These can be removed when https://bugzilla.gnome.org/show_bug.cgi?id=674885 is fixed
12+ g_type_ensure(G_TYPE_DBUS_CONNECTION); // http://pad.lv/1239710
13+ g_type_ensure(G_TYPE_DBUS_PROXY); // http://pad.lv/1425297
14
15 // boilerplate i18n
16 setlocale(LC_ALL, "");

Subscribers

People subscribed via source and target branches