Merge lp:~ivoks/ubuntu/lucid/glib2.0/887946 into lp:ubuntu/lucid-proposed/glib2.0

Proposed by Ante Karamatić on 2011-11-09
Status: Merged
Merge reported by: Chris Halse Rogers
Merged at revision: not available
Proposed branch: lp:~ivoks/ubuntu/lucid/glib2.0/887946
Merge into: lp:ubuntu/lucid-proposed/glib2.0
Diff against target: 61 lines (+41/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/90-context-unlock.patch (+33/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~ivoks/ubuntu/lucid/glib2.0/887946
Reviewer Review Type Date Requested Status
Stéphane Graber 2012-01-16 Approve on 2012-01-17
Ante Karamatić Resubmit on 2011-11-10
Dave Walker 2011-11-09 Needs Fixing on 2011-11-10
Ubuntu Sponsors Team 2012-05-29 Pending
Review via email: mp+81703@code.launchpad.net

Description of the Change

gmain: move finalization of GSource outside of context lock
(LP: #887946)

To post a comment you must log in.
Dave Walker (davewalker) wrote :

Hey Ante,

Thanks for the merge proposal. I did have a comment:
 - It seems to edit files directly, when the package already makes use of a patching system. Would you be able to convert this to a standalone patch (using DEP-3 headers, http://dep.debian.net/deps/dep3/)?

Thanks.

review: Needs Fixing
59. By Ante Karamatić on 2011-11-10

Revert direct changes to files

60. By Ante Karamatić on 2011-11-10

Add patch debian/patches/patch90-context-unlock.patch from upstream commit 1f853c75ccb0a42757c3661ed36427e69e416af3
(LP: #887946)
Explain patch in debian/changelog

Ante Karamatić (ivoks) wrote :

Addressed issue mentioned in comment.

review: Resubmit
Stéphane Graber (stgraber) wrote :

Thanks for the changes, the packaging now looks good except that whoever uploads it will need to change the version number to -0ubuntu1.1 instead of -0ubuntu2 and target lucid-proposed.

I'm just commenting rather than uploading because I don't have enough knowledge about glib to properly review the change and as it's a pretty critical package, I'd rather have someone familiar with it do the final review and upload.

review: Approve
Chris Halse Rogers (raof) wrote :

This looks ok to me; I've uploaded it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-05-05 12:42:47 +0000
3+++ debian/changelog 2011-11-10 20:03:27 +0000
4@@ -1,3 +1,10 @@
5+glib2.0 (2.24.1-0ubuntu2) UNRELEASED; urgency=low
6+
7+ * debian/patches/90-context-unlock.patch (LP: #887946):
8+ - gmain: move finalization of GSource outside of context lock
9+
10+ -- Ante Karamatic <ivoks@ubuntu.com> Wed, 09 Nov 2011 10:33:37 +0100
11+
12 glib2.0 (2.24.1-0ubuntu1) lucid-proposed; urgency=low
13
14 * New upstream version (lp: #575777):
15
16=== added file 'debian/patches/90-context-unlock.patch'
17--- debian/patches/90-context-unlock.patch 1970-01-01 00:00:00 +0000
18+++ debian/patches/90-context-unlock.patch 2011-11-10 20:03:27 +0000
19@@ -0,0 +1,33 @@
20+commit 1f853c75ccb0a42757c3661ed36427e69e416af3
21+Author: Dan Winship <danw gnome org>
22+Date: Sat Nov 6 09:35:25 2010 -0400
23+
24+ gmain: move finalization of GSource outside of context lock
25+
26+ This avoids ugly deadlock situations such as in
27+ https://bugzilla.gnome.org/show_bug.cgi?id=586432
28+
29+ https://bugzilla.gnome.org/show_bug.cgi?id=626702
30+
31+ glib/gmain.c | 8 +++++++-
32+ 1 files changed, 7 insertions(+), 1 deletions(-)
33+---
34+Index: 887946/glib/gmain.c
35+===================================================================
36+--- 887946.orig/glib/gmain.c 2011-11-10 20:53:31.000000000 +0100
37++++ 887946/glib/gmain.c 2011-11-10 20:53:14.000000000 +0100
38+@@ -1332,7 +1332,13 @@
39+ g_source_list_remove (source, context);
40+
41+ if (source->source_funcs->finalize)
42+- source->source_funcs->finalize (source);
43++ {
44++ if (context)
45++ UNLOCK_CONTEXT (context);
46++ source->source_funcs->finalize (source);
47++ if (context)
48++ LOCK_CONTEXT (context);
49++ }
50+
51+ g_slist_free (source->poll_fds);
52+ source->poll_fds = NULL;
53
54=== modified file 'debian/patches/series'
55--- debian/patches/series 2010-03-15 12:25:27 +0000
56+++ debian/patches/series 2011-11-10 20:03:27 +0000
57@@ -5,3 +5,4 @@
58 60_wait-longer-for-threads-to-die.patch
59 71_gio_launch_handler.patch
60 80-gtester-subunit.patch
61+90-context-unlock.patch

Subscribers

People subscribed via source and target branches