GNOME Bugzilla – Bug 679423
GLib.VariantType.BYTESTRING missing from GLib bindings
Last modified: 2015-02-07 16:49:18 UTC
Gnome-contacts fails to build on Ubuntu Quantal with the follow error: contacts-contact.vala:168.49-168.70: error: The name `BYTESTRING' does not exist in the context of `GLib.VariantType' var pixel_data = Variant.new_from_data (VariantType.BYTESTRING, Indeed, bytestring doesn't appear to end up in the GLib gir file /usr/share/gir-1.0/GLib-2.0.gir (with gobject-introspection 1.33.3). I tried to apply the additional scanner patches from git for error domains without luck in case it would change the behavior, namely e4879c84a121cb2046fb64d30ca90f136802d90f and b87a149dfbc5ce416e86e8f4aa9b45fc8a8cc791. Package was being build with vala 0.17.2, glib 2.33.3. I was able to build gnome-contacts successfully with VariantType.ARRAY; but it seems like it's not totally the same thing; and documentation does seem to show that BYTESTRING should exist (and so do headers).
I'm not sure how this worked before...I don't think it's a regression (but it's possble). Is VariantType being defined manually in vala?
(In reply to comment #1) > Is VariantType being defined manually in vala? The low-level GLib bindings for Vala are hand-written and this includes VariantType. VariantType.BYTESTRING was added in Vala 0.17.3.
Ok, so this isn't a g-i bug, gnome-contacts just requires a newer version of vala. Thanks Jürg!
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]