Description: 'g_type_init' is deprecated Fixes ftbfs: glib2.0: error: 'g_type_init' is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) Starting with 2.35, glib2.0 deprecated the g_type_init function. . * d/p/g_type_init_deprecation.patch: - Fix ftbfs: 'g_type_init' is deprecated. Author: Hector Oron --- gypsy-0.8.orig/docs/gypsy-tutorial.html +++ gypsy-0.8/docs/gypsy-tutorial.html @@ -99,8 +99,9 @@ The simple GPS program now looks like th /* Libgypsy uses GObject, so the type system needs to be started up before any Gypsy calls */ +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init (); - +#endif /* Retrieve the default control */ control = gypsy_control_get_default (); --- gypsy-0.8.orig/examples/simple-gps-gypsy.c +++ gypsy-0.8/examples/simple-gps-gypsy.c @@ -68,8 +68,9 @@ main (int argc, return 0; } +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init (); - +#endif control = gypsy_control_get_default (); path = gypsy_control_create (control, argv[1], &error); if (path == NULL) { --- gypsy-0.8.orig/examples/simple-gps-satellites.c +++ gypsy-0.8/examples/simple-gps-satellites.c @@ -43,7 +43,9 @@ main (int argc, return 0; } +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init (); +#endif control = gypsy_control_get_default (); path = gypsy_control_create (control, argv[1], &error); --- gypsy-0.8.orig/examples/simple-gps-dbus.c +++ gypsy-0.8/examples/simple-gps-dbus.c @@ -122,7 +122,9 @@ main (int argc, DBusError error; GMainLoop *mainloop; +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init (); +#endif conn = get_connection (); dbus_error_init (&error); --- gypsy-0.8.orig/src/main.c +++ gypsy-0.8/src/main.c @@ -144,8 +144,9 @@ main (int argc, g_option_context_free (context); umask (022); - +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init (); +#endif mainloop = g_main_loop_new (NULL, FALSE);