Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307227 - [gnome-overlay] x11-libs/gtk+2.19.6 fails to build (introspection automagically enabled)
Summary: [gnome-overlay] x11-libs/gtk+2.19.6 fails to build (introspection automagical...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-28 20:33 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-03-23 16:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2010-02-28 20:33:07 UTC
Error at line 14, character 40: Could not find GIR file 'Pango-1.0.gir'; check XDG_DATA_DIRS or use --includedir
--- BACKTRACE (9 frames) ---
/usr/bin/g-ir-compiler() [0x408d3c]
/usr/bin/g-ir-compiler() [0x40d246]
/usr/lib/libglib-2.0.so.0(+0x41aea) [0x2b3c0a546aea]
/usr/lib/libglib-2.0.so.0(g_markup_parse_context_parse+0x1096) [0x2b3c0a548576]
/usr/bin/g-ir-compiler(g_ir_parser_parse_string+0x126) [0x408a06]
/usr/bin/g-ir-compiler(g_ir_parser_parse_file+0xf6) [0x408b76]
/usr/bin/g-ir-compiler(main+0x185) [0x403445]
/lib/libc.so.6(__libc_start_main+0xfd) [0x2b3c0aa15bbd]
/usr/bin/g-ir-compiler() [0x4031c9]
--- END BACKTRACE ---
error parsing file Gdk-2.0.gir: Could not find GIR file 'Pango-1.0.gir'; check XDG_DATA_DIRS or use --includedir
make[4]: *** [Gdk-2.0.typelib] Error 1
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-02-28 20:39:09 UTC
Forced Pango to build *with* introspection, gets funkier:

Traceback (most recent call last):
  File "/usr/bin/g-ir-scanner", line 38, in <module>
    sys.exit(scanner_main(sys.argv))
  File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 277, in scanner_main
    transformer.register_include(include_obj)
  File "/usr/lib64/gobject-introspection/giscanner/transformer.py", line 111, in register_include
    filename = self._find_include(include)
  File "/usr/lib64/gobject-introspection/giscanner/transformer.py", line 129, in _find_include
    % (girname, searchdirs))
ValueError: Couldn't find include 'Atk-1.0.gir' (search path: ['../gdk-pixbuf', '../gdk', '/usr/share/gir-1.0', '/usr/local/share/gir-1.0', '/usr/kde/3.5/share/gir-1.0', '/usr/local/xine-lib-1.2/share/gir-1.0', '/usr/share/gdm/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0'])
make[4]: *** [Gtk-2.0.gir] Error 1
make[4]: *** Waiting for unfinished jobs....
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-02-28 20:47:27 UTC
One --disable-introspection later it installed fine.

On the other hand it might be the right time to start introducing USE flags around… probably masked at first would be the best idea…
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-03-01 15:26:44 UTC
Well, even if it worked and generated the .gir properly, it would end up colliding with gir-repository[gtk] :S
Comment 4 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-03-01 15:59:41 UTC
And we cannot disable Gtk-2.0.gir generation in gir-repository because it'll break generation of Notify-0.4.gir, gtksourceview, etc.

Looks like I'll have to do major surgery on gir-repository.
Comment 5 Priit Laes (IRC: plaes) 2010-03-01 16:31:31 UTC
Hmm.. my bad, when I tested the ebuild, introspection didn't get enabled because we still had 0.6.5.

I also fixed similar problem with dev-libs/atk.
Comment 6 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-03-23 16:18:27 UTC
Closing per previous comment, thanks plaes!