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 623526 - Can't compile with Gtk-2.0.gir
Can't compile with Gtk-2.0.gir
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: GObject Introspection
0.9.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on: 635287
Blocks: 559704
 
 
Reported: 2010-07-04 13:41 UTC by Michael Terry
Modified: 2012-06-26 06:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Support nested GIR includes. (7.38 KB, patch)
2010-07-24 21:44 UTC, Luca Bruno
none Details | Review

Description Michael Terry 2010-07-04 13:41:16 UTC
I don't know how good the gir support is supposed to be yet.  But a trivial program:

public static int main(string [] args)
{
  return 0;
}

Has thousands of errors if compiled with --pkg Gtk-2.0 instead of --pkg gtk+-2.0.  The errors are all like:

error: The symbol `Atk' could not be found
error: The symbol `Gdk' could not be found
error: The symbol `GdkPixbuf' could not be found
error: The type name `GLib.Icon' could not be found
error: The symbol `Gdk' could not be found
error: The symbol `Atk' could not be found
error: The symbol `Gdk' could not be found

It seems that when resolving the gir attributes, it is not looking at included gir files and their namespaces.

I've tried the gir file from gtk 2.20 and gtk trunk.
Comment 1 Luca Bruno 2010-07-24 21:44:12 UTC
Created attachment 166501 [details] [review]
Support nested GIR includes.

Fixes bug 623526.
Comment 2 Luca Bruno 2010-11-08 10:26:16 UTC
Comment on attachment 166501 [details] [review]
Support nested GIR includes.

Due to the merge of switch-to-gir branch, this became obsolete.
Now it's possible to use Gtk-2.0.gir but not that straightforward due to <packages> mismatch upstream.
Comment 3 Jürg Billeter 2012-06-26 06:43:16 UTC
Resolving as obsolete as per above comment.