Merge lp:~cyphermox/indicator-session/g_type_init into lp:indicator-session/13.04

Proposed by Mathieu Trudel-Lapierre
Status: Merged
Approved by: Didier Roche-Tolomelli
Approved revision: 384
Merged at revision: 382
Proposed branch: lp:~cyphermox/indicator-session/g_type_init
Merge into: lp:indicator-session/13.04
Diff against target: 81 lines (+6/-7)
6 files modified
configure.ac (+1/-1)
debian/changelog (+1/-0)
debian/control (+2/-1)
src/session-service.c (+0/-2)
tests/Makefile.am (+2/-2)
tests/test-service.cc (+0/-1)
To merge this branch: bzr merge lp:~cyphermox/indicator-session/g_type_init
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Didier Roche-Tolomelli Approve
Review via email: mp+144322@code.launchpad.net

Description of the change

Misc fixes for build on raring:

 - Drop deprecated calls to g_type_init().
 - Update paths to gtest source files due to changes in xorg-gtest.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

the change is good to me, but it seems tests are still failing due to jenkins ^

384. By Mathieu Trudel-Lapierre

Add libxorg-gtest-dev to Build-Depends.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Let's try to get that in!

review: Approve
Revision history for this message
Allan LeSage (allanlesage) wrote :

I see the problem and will fix.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'configure.ac'
2--- configure.ac 2012-11-30 16:24:17 +0000
3+++ configure.ac 2013-01-22 15:51:20 +0000
4@@ -26,7 +26,7 @@
5 ###########################
6
7 GIO_REQUIRED_VERSION=2.33
8-GLIB_REQUIRED_VERSION=2.33
9+GLIB_REQUIRED_VERSION=2.35.4
10 GTK_REQUIRED_VERSION=3.0
11 INDICATOR_REQUIRED_VERSION=0.3.19
12 DBUSMENUGTK_REQUIRED_VERSION=0.5.90
13
14=== modified file 'debian/changelog'
15--- debian/changelog 2013-01-15 22:52:32 +0000
16+++ debian/changelog 2013-01-22 15:51:20 +0000
17@@ -15,6 +15,7 @@
18 from Build-Depends. (LP: #1085100)
19 - Remove packagekit from Recommends
20 - Add XS-Testsuite: autopkgtest.
21+ - Add libxorg-gtest-dev to Build-Depends.
22 * debian/tests:
23 - Add start-service test; verify that the indicator can be started from
24 DBUS.
25
26=== modified file 'debian/control'
27--- debian/control 2013-01-15 22:52:32 +0000
28+++ debian/control 2013-01-22 15:51:20 +0000
29@@ -8,10 +8,11 @@
30 intltool,
31 gnome-common,
32 libgtest-dev,
33+ libxorg-gtest-dev,
34 libdbustest1-dev,
35 dbus-test-runner,
36 libgtk-3-dev,
37- libglib2.0-dev (>= 2.33),
38+ libglib2.0-dev (>= 2.35.4),
39 gnome-doc-utils,
40 libindicator3-dev (>= 0.3.90),
41 libdbusmenu-glib-dev (>= 0.5.90),
42
43=== modified file 'src/session-service.c'
44--- src/session-service.c 2012-08-31 17:37:39 +0000
45+++ src/session-service.c 2013-01-22 15:51:20 +0000
46@@ -71,8 +71,6 @@
47 int
48 main (int argc, char ** argv)
49 {
50- g_type_init();
51-
52 /* Setting up i18n and gettext.
53 Apparently we need all of these. */
54 setlocale (LC_ALL, "");
55
56=== modified file 'tests/Makefile.am'
57--- tests/Makefile.am 2013-01-14 19:36:28 +0000
58+++ tests/Makefile.am 2013-01-22 15:51:20 +0000
59@@ -15,8 +15,8 @@
60
61 check_LIBRARIES = libgtest.a
62 nodist_libgtest_a_SOURCES = \
63- $(GTEST_SOURCE)/src/gtest-all.cc \
64- $(GTEST_SOURCE)/src/gtest_main.cc
65+ $(GTEST_SOURCE)/gtest-all.cc \
66+ $(GTEST_SOURCE)/gtest_main.cc
67
68 AM_CPPFLAGS = $(GTEST_CPPFLAGS) -I${top_srcdir}/src -Wall -Werror
69 AM_CXXFLAGS = $(GTEST_CXXFLAGS)
70
71=== modified file 'tests/test-service.cc'
72--- tests/test-service.cc 2012-11-13 20:08:13 +0000
73+++ tests/test-service.cc 2013-01-22 15:51:20 +0000
74@@ -49,7 +49,6 @@
75 static bool first_run = true;
76 if (first_run)
77 {
78- g_type_init();
79 g_setenv ("INDICATOR_SERVICE_SHUTDOWN_TIMEOUT", "1000", TRUE);
80 g_unsetenv ("INDICATOR_ALLOW_NO_WATCHERS");
81 g_unsetenv ("INDICATOR_SERVICE_REPLACE_MODE");

Subscribers

People subscribed via source and target branches