[Bug 59165] g_type_init is deprecated from GLib 2.35.1

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jan 9 14:05:14 CET 2013


https://bugs.freedesktop.org/show_bug.cgi?id=59165

--- Comment #7 from Simon McVittie <simon.mcvittie at collabora.co.uk> ---
(In reply to comment #5)
> This is getting confusing.
> 
> GLIB_VERSION_MIN_REQUIRED is available since 2.32, but that is also when
> GValueArray got deprecated.

With an older GLib, the autoconf runes will expand to "#define
GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_30" (or whatever) in config.h. That's
fine, even though older GLib doesn't define GLIB_VERSION_2_30, because nothing
in those versions will expand GLIB_VERSION_MIN_REQUIRED either :-)

> Which means our minimum GLib version will be 2.32 if we use
> GLIB_VERSION_MIN_REQUIRED, but ignoring post 2.32 deprecations won't help
> because of GValueArray.

Depending on 2.32, but ignoring post-2.30 deprecations, is fine. However, we
can probably depend on 2.30 or even older.

telepathy-glib currently depends on 2.30 so that's effectively our baseline
version. I would not object to a dependency on 2.32 either.

> Oh, so the logger depends on 2.25.11. So we can replace it with:
> AC_DEFINE(GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_2_25).

No, you can't; there are only GLIB_VERSION_X_Y macros for stable branches
(actually, stable branches >= 2.26). 2.25.x, 2.33.x etc. are effectively
considered to be part of the 2.26, 2.34.x, etc. stable branch that they led to.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list