Heads-up for glib 2.35.x: g_type_init() deprecation

Martin Pitt martin.pitt at ubuntu.com
Wed Jan 16 12:34:43 UTC 2013


Hello fellow developers,

This morning I uploaded glib 2.35.4 to raring-proposed, which will
bring us from the last stable release for GNOME 3.6 to the current
development series, as agreed on [1] . It is currently (manually)
blocked from migrating to raring until we get, review, and fix all the
autopkgtest results of reverse dependencies with the new glib version.

This is a heads-up about the most visible change that you will see
during build: g_type_init() has been deprecated, it is not necessary
to call this any more. So if you have a project with overzealous
deprecation checks (such as using -Werror), you will have to fix your
project/package to build with glib 2.35.x. Even if not, you might want
to do it to avoid warnings.

If you bump the build dep up to >= 2.35, you can just drop
g_type_init(). Otherwise, it is recommended to conditionalize it like

  #if !defined(GLIB_VERSION_2_36)
      g_type_init();
  #endif

Thanks,

Martin

[1] https://blueprints.launchpad.net/ubuntu/+spec/desktop-r-gnome-plans-review
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20130116/44a22957/attachment.pgp>


More information about the ubuntu-devel mailing list