summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-navigation/omgps
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2013-06-13 09:37:16 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2013-06-20 12:30:07 +0200
commiteccb3d022a063d74727690c8e4f384b8406b13a6 (patch)
tree09ad884675f200b1851cd246ee95dda5c086ac5e /meta-oe/recipes-navigation/omgps
parent006ce59b7b1d8b77fddc1273ba53ad7d535f3ff1 (diff)
downloadmeta-openembedded-eccb3d022a063d74727690c8e4f384b8406b13a6.tar.gz
omgps: Fix build with glib-2.0 > 2.35
Fix errors like | src/main.c: In function 'main': | src/main.c:490:2: error: 'g_type_init' is deprecated (declared at /builds1/angstrom/build/tmp-angstrom_next-eglibc/sysroots/qemuarm/usr/include/glib-2.0/gobject/gtype.h:669) [-Werror=deprecated-declarations] | g_type_init(); | ^ | cc1: all warnings being treated as errors | make[1]: *** [omgps-main.o] Error 1 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-navigation/omgps')
-rw-r--r--meta-oe/recipes-navigation/omgps/omgps/0001-g_type_init-is-deprecated-for-glib-2.35.0.patch33
-rw-r--r--meta-oe/recipes-navigation/omgps/omgps_svn.bb1
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-navigation/omgps/omgps/0001-g_type_init-is-deprecated-for-glib-2.35.0.patch b/meta-oe/recipes-navigation/omgps/omgps/0001-g_type_init-is-deprecated-for-glib-2.35.0.patch
new file mode 100644
index 000000000..6b9f465a2
--- /dev/null
+++ b/meta-oe/recipes-navigation/omgps/omgps/0001-g_type_init-is-deprecated-for-glib-2.35.0.patch
@@ -0,0 +1,33 @@
1From 22bcf06637d64e40af6c152e28b31eef41e3f583 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 13 Jun 2013 02:35:22 -0700
4Subject: [PATCH] g_type_init() is deprecated for glib >= 2.35.0
5
6Call it for old versions.
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9
10Upstream-Status: Pending
11---
12 src/main.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/src/main.c b/src/main.c
16index e984da4..a63ddf3 100644
17--- a/src/main.c
18+++ b/src/main.c
19@@ -486,9 +486,9 @@ int main(int argc, char **argv)
20 if (strcmp(argv[1], "-log2file") == 0)
21 log2console = FALSE;
22 }
23-
24+#if !GLIB_CHECK_VERSION(2,35,0)
25 g_type_init();
26-
27+#endif
28 gdk_threads_init();
29
30 gdk_threads_enter();
31--
321.7.9.5
33
diff --git a/meta-oe/recipes-navigation/omgps/omgps_svn.bb b/meta-oe/recipes-navigation/omgps/omgps_svn.bb
index e1c1a71d8..1a79df486 100644
--- a/meta-oe/recipes-navigation/omgps/omgps_svn.bb
+++ b/meta-oe/recipes-navigation/omgps/omgps_svn.bb
@@ -21,6 +21,7 @@ SRC_URI = "svn://omgps.googlecode.com/svn/trunk;module=omgps;protocol=http \
21 file://use.unused.variable.patch \ 21 file://use.unused.variable.patch \
22 file://fix.build.with.glib.2.34.patch \ 22 file://fix.build.with.glib.2.34.patch \
23 file://gdk-pixbuf-2.26.5.patch \ 23 file://gdk-pixbuf-2.26.5.patch \
24 file://0001-g_type_init-is-deprecated-for-glib-2.35.0.patch \
24" 25"
25 26
26inherit autotools 27inherit autotools