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 628927 - Update to GIR 1.2
Update to GIR 1.2
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Code Generator
0.9.x
Other Linux
: Normal major
: ---
Assigned To: Vala maintainers
Vala maintainers
wrong-code
Depends on:
Blocks:
 
 
Reported: 2010-09-06 22:44 UTC by Evan Nemerson
Modified: 2010-09-15 21:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Write GIR version 1.2 instead of version 1.1. (16.11 KB, patch)
2010-09-06 22:52 UTC, Evan Nemerson
none Details | Review

Description Evan Nemerson 2010-09-06 22:44:11 UTC
Vala writes GIR 1.1, but gobject-introspection has moved on to 1.2 and no longer supports 1.1.
Comment 1 Evan Nemerson 2010-09-06 22:52:14 UTC
Created attachment 169628 [details] [review]
Write GIR version 1.2 instead of version 1.1.

AFAICT, this patch accounts for all the differences between 1.1 and 1.2:

First, lots of type names changed, adding a 'g' prefix (e.g., gint instead of int). In order to make this work, I added a GIR attribute (and applied it to some stuff in glib-2.0.vapi). Right now it only supports setting the name on struct and class types, provides room to expand in the future if the GIR output needs to be customized.

Next, there is no more "any" type. Other girs seem to use gpointer instead, so that is what I've done.

Finally, instead of <requires><class name="..."/><interface name="..."/></requires>, 1.2 uses a <prerequisite name=""> element.
Comment 2 Jürg Billeter 2010-09-15 21:10:57 UTC
commit c87a98a7de58ac85d8ee742b6680104b78e8dc4c
Author: Evan Nemerson <evan@coeus-group.com>
Date:   Mon Sep 6 15:40:03 2010 -0700

    Write GIR version 1.2 instead of version 1.1
    
    Fixes bug 628927.