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 627033 - Refactor vapigen to validate .metadata contents
Refactor vapigen to validate .metadata contents
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: Bindings
unspecified
Other All
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-08-16 10:24 UTC by Daniel Hams
Modified: 2010-11-08 10:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Vapigen metadata validation patch v1 (93.62 KB, patch)
2010-08-16 10:25 UTC, Daniel Hams
none Details | Review
V2 of metadata validating vapigen patch including correct copyright header (94.46 KB, patch)
2010-08-16 12:38 UTC, Daniel Hams
none Details | Review
V3 metadata validating vapigen patch (94.55 KB, patch)
2010-08-19 08:43 UTC, Daniel Hams
none Details | Review

Description Daniel Hams 2010-08-16 10:24:38 UTC
This patch refactors the .metadata file handling within vapigen to:

* Enumerate explicitly all metadata attribute keywords inside the vala code

* Centralise parsing/split to double/int/comma delimited etc into one place

* Allow output of a symbols file containing a list of valid attribute keys for each symbol discovered during execution

The patch has been regression tested using:

https://bugzilla.gnome.org/show_bug.cgi?id=624155

The results below reflect equivalent output as non-patched HEAD regression testing, with the added bonus that with the patch the errors listed below become visible.

Report:
  Total candidate vapis:                            75

  Libraries not installed on current machine:       19

  Generated VAPI matches existing version:          52
  Generated VAPI differs from existing version:     4
        gdu
        gdu-gtk
        gtk+-2.0
        libgda-4.0

  Errors encountered during generation:             4
        gdk-pixbuf-2.0
        gedit-2.20
        gstreamer-0.10
        gtk+-2.0

I will create new bugs for fixes to the .metadata files that this patch has found.
Comment 1 Daniel Hams 2010-08-16 10:25:25 UTC
Created attachment 167952 [details] [review]
Vapigen metadata validation patch v1
Comment 2 Daniel Hams 2010-08-16 11:17:17 UTC
For reference, this patch includes the GLib.Critical patch found at:

https://bugzilla.gnome.org/show_bug.cgi?id=622561
Comment 3 Daniel Hams 2010-08-16 12:38:05 UTC
Created attachment 167963 [details] [review]
V2 of metadata validating vapigen patch including correct copyright header
Comment 4 Daniel Hams 2010-08-19 08:43:48 UTC
Created attachment 168270 [details] [review]
V3 metadata validating vapigen patch

* Includes fix to use "hidden" on interfaces.

Bugzilla bug with fix to standard vapigen tree:

https://bugzilla.gnome.org/show_bug.cgi?id=627298
Comment 5 Evan Nemerson 2010-11-08 10:37:33 UTC
The GIR parser now warns about this, and we're moving away from GIDL, so I'm going to mark this as obsolete.