Merge lp:~l3on/ubuntu/precise/gnurobots/fix-ftbfs into lp:ubuntu/precise/gnurobots

Proposed by Leo Iannacone
Status: Merged
Merge reported by: Andreas Moog
Merged at revision: not available
Proposed branch: lp:~l3on/ubuntu/precise/gnurobots/fix-ftbfs
Merge into: lp:ubuntu/precise/gnurobots
Diff against target: 51 lines (+32/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/02_fix_deprecated_declarations.patch (+24/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~l3on/ubuntu/precise/gnurobots/fix-ftbfs
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+93710@code.launchpad.net

Description of the change

A new patch replacing g_thread_* deprecated functions.

To post a comment you must log in.

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 2011-09-12 17:45:25 +0000
3+++ debian/changelog 2012-02-18 23:57:19 +0000
4@@ -1,3 +1,10 @@
5+gnurobots (2:1.2.0-4ubuntu4) precise; urgency=low
6+
7+ * Fix FTBFS: replacing g_thread_* deprecated functions.
8+ (LP: #935136).
9+
10+ -- Leo Iannacone <l3on@ubuntu.com> Sat, 18 Feb 2012 23:52:11 +0100
11+
12 gnurobots (2:1.2.0-4ubuntu3) oneiric; urgency=low
13
14 * Fix link order to list libraries after the objects that require them
15
16=== added file 'debian/patches/02_fix_deprecated_declarations.patch'
17--- debian/patches/02_fix_deprecated_declarations.patch 1970-01-01 00:00:00 +0000
18+++ debian/patches/02_fix_deprecated_declarations.patch 2012-02-18 23:57:19 +0000
19@@ -0,0 +1,24 @@
20+Descirption: Fix FTBFS with -Werror=deprecated-declarations.
21+ * 'g_thread_init' is deprecated, no longer needed
22+ * 'g_thread_create' is deprecated, using 'g_thread_new' instead.
23+Author: Leo Iannacone <l3on@ubuntu.com>
24+Bug-Ubuntu: https://bugs.launchpad.net/+bug/935136
25+Forwarded: no
26+
27+---
28+ src/main.c | 3 +--
29+ 1 file changed, 1 insertion(+), 2 deletions(-)
30+
31+--- gnurobots.orig/src/main.c
32++++ gnurobots/src/main.c
33+@@ -295,9 +295,8 @@ void main_prog(void *closure, gint argc,
34+ exit_nicely();
35+ }
36+
37+- g_thread_init(NULL);
38+ gdk_threads_init();
39+- g_thread_create(callback, &loading, FALSE, NULL);
40++ g_thread_new(NULL, callback, &loading);
41+
42+ /* ensure the robot is placed properly */
43+ MAP_SET_OBJECT(map, G_ROBOT_POSITION_Y(robot),
44
45=== modified file 'debian/patches/series'
46--- debian/patches/series 2011-09-12 17:45:25 +0000
47+++ debian/patches/series 2012-02-18 23:57:19 +0000
48@@ -1,2 +1,3 @@
49 00_fix_mips_FTBFS.patch
50 01_link_order.patch
51+02_fix_deprecated_declarations.patch

Subscribers

People subscribed via source and target branches

to all changes: