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

Subscribers

People subscribed via source and target branches

to all changes: