After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679423 - GLib.VariantType.BYTESTRING missing from GLib bindings
GLib.VariantType.BYTESTRING missing from GLib bindings
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: general
2.33.x
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-07-04 22:48 UTC by Mathieu Trudel-Lapierre
Modified: 2015-02-07 16:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mathieu Trudel-Lapierre 2012-07-04 22:48:36 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).
Comment 1 Colin Walters 2012-10-30 14:44:31 UTC
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?
Comment 2 Jürg Billeter 2012-10-30 17:39:05 UTC
(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.
Comment 3 Colin Walters 2012-10-30 18:15:07 UTC
Ok, so this isn't a g-i bug, gnome-contacts just requires a newer version of vala.  Thanks Jürg!
Comment 4 André Klapper 2015-02-07 16:49:18 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]