summaryrefslogtreecommitdiff
path: root/debian/patches/0001-Don-t-invoke-g_type_init-for-recent-glib.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0001-Don-t-invoke-g_type_init-for-recent-glib.patch')
-rw-r--r--debian/patches/0001-Don-t-invoke-g_type_init-for-recent-glib.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/0001-Don-t-invoke-g_type_init-for-recent-glib.patch b/debian/patches/0001-Don-t-invoke-g_type_init-for-recent-glib.patch
new file mode 100644
index 0000000..24558b7
--- /dev/null
+++ b/debian/patches/0001-Don-t-invoke-g_type_init-for-recent-glib.patch
@@ -0,0 +1,25 @@
+From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
+Date: Fri, 10 May 2013 16:42:36 +0200
+Subject: Don't invoke g_type_init for recent glib
+
+Since it it's not needed and causes a deprecation warning.
+
+Debian-Bug: #707469
+---
+ src/nm-iodine-service.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/nm-iodine-service.c b/src/nm-iodine-service.c
+index b55ca2d..c99c384 100644
+--- a/src/nm-iodine-service.c
++++ b/src/nm-iodine-service.c
+@@ -687,7 +687,9 @@ int main (int argc, char *argv[])
+ NMIODINEPlugin *plugin;
+ GMainLoop *main_loop;
+
++#if !GLIB_CHECK_VERSION(2,36,0)
+ g_type_init ();
++#endif
+
+ plugin = nm_iodine_plugin_new ();
+ if (!plugin)