GNOME Bugzilla – Bug 703103
Fix compilation with older glibs
Last modified: 2013-06-28 15:17:33 UTC
Created attachment 247801 [details] [review] fix compilation librest requires glib 2.24 but build fails when using it.
Even Debian stable has 2.33, so why not just bump the minimum version instead?
RHEL6 is stuck on something older, I'd like to keep things building there just in case.
Review of attachment 247801 [details] [review]: Fair enough. glib-compat still says "spice", and what happens when an older glib is used at compile time but then at runtime a newer glib is present?
I've tested a build against glib 2.26.0 and then ran examples/test-xml against glib master (double-checked it was being used with pmap), and I did not observe any issues. I'll look at removing the spice mentions.
Created attachment 247991 [details] [review] Fix compilation with older glibs configure.ac requires glib 2.24, but librest is making use of glib functions that were added in later releases (g_clear_object, g_simple_async_report_take_gerror_in_idle, ...). This commit adds reimplementation of these functions which will be used when an older glib is present at build time. glib-compat.[ch] come from spice-gtk.
Review of attachment 247991 [details] [review]: Looks good.
Attachment 247991 [details] pushed as a63c691 - Fix compilation with older glibs