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 589280 - GnomeBluetooth-1.0.gir does not build
GnomeBluetooth-1.0.gir does not build
Status: RESOLVED WONTFIX
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-07-21 18:10 UTC by Götz Waschk
Modified: 2015-02-07 17:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gir-fix-dbus-glib-gir.patch (913 bytes, patch)
2009-07-31 12:01 UTC, Bastien Nocera
none Details | Review

Description Götz Waschk 2009-07-21 18:10:30 UTC
This is on Mandriva Cooker with gnome-bluetooth 2.27.8, gobject-introspection and gir-repository 0.6.3:
make[2]: Entering directory `/home/goetz/svn/gnome-bluetooth/BUILD/gnome-bluetooth-2.27.8/lib'
/usr/bin/g-ir-scanner -v --namespace GnomeBluetooth --nsversion=1.0 \
                --add-include-path=. --add-include-path=. \
                --include=GObject-2.0 \
                --include=Gtk-2.0 \
                --include=DBusGLib-1.0 \
                --include=GModule-2.0 \
                --libtool="/bin/sh ../libtool" \
                --library=gnome-bluetooth \
                --output GnomeBluetooth-1.0.gir \
                --pkg gobject-2.0 \
                --pkg gtk+-2.0 \
                --pkg dbus-glib-1 \
                --pkg gmodule-2.0 \
                -I. \
                -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   \
                bluetooth-client.h bluetooth-chooser.h bluetooth-chooser-button.h bluetooth-enums.h bluetooth-plugin.h
Traceback (most recent call last):
  • File "/usr/bin/g-ir-scanner", line 39 in <module>
    sys.exit(scanner_main(sys.argv))
  • File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 287 in scanner_main
    transformer.register_include(include_obj)
  • File "/usr/lib/gobject-introspection/giscanner/transformer.py", line 111 in register_include
    filename = self._find_include(include)
  • File "/usr/lib/gobject-introspection/giscanner/transformer.py", line 129 in _find_include
    % (girname, searchdirs))
ValueError: Couldn't find include 'DBusGLib-1.0.gir' (search path: ['.', '.', '/usr/share/gir-1.0', '/opt/kde3/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0'])


DBusGlib-1.0.gir is not installed by gir-repository, as missioncontrol is disabled.
Comment 1 Bastien Nocera 2009-07-21 18:27:38 UTC
There's no ways for us to detect whether or not DBusGlib-1.0.gir is present or not. So either you disable introspection in gnome-bluetooth, or you hack up your gir-repository install to actually install the file.
Comment 2 Götz Waschk 2009-07-31 11:55:38 UTC
Even after copying the file DBusGlib-1.0.gir from gir-repository to the directory lib, it still does not build:

/usr/bin/g-ir-scanner -v --namespace GnomeBluetooth --nsversion=1.0 \
                --add-include-path=. --add-include-path=. \
                --include=GObject-2.0 \
                --include=Gtk-2.0 \
                --include=DBusGLib-1.0 \
                --include=GModule-2.0 \
                --libtool="/bin/sh ../libtool" \
                --library=gnome-bluetooth \
                --output GnomeBluetooth-1.0.gir \
                --pkg gobject-2.0 \
                --pkg gtk+-2.0 \
                --pkg dbus-glib-1 \
                --pkg gmodule-2.0 \
                -I. \
                -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   \
                bluetooth-client.h bluetooth-chooser.h bluetooth-chooser-button.h bluetooth-enums.h bluetooth-plugin.h
Traceback (most recent call last):
  • File "/usr/bin/g-ir-scanner", line 39 in <module>
    sys.exit(scanner_main(sys.argv))
  • File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 287 in scanner_main
    transformer.register_include(include_obj)
  • File "/usr/lib/gobject-introspection/giscanner/transformer.py", line 112 in register_include
    self._parse_include(filename)
  • File "/usr/lib/gobject-introspection/giscanner/transformer.py", line 136 in _parse_include
    parser.parse(filename)
  • File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 60 in parse
    self.parse_tree(tree)
  • File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 67 in parse_tree
    self._parse_api(tree.getroot())
  • File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 98 in _parse_api
    self._parse_include(node)
  • File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 131 in _parse_include
    node.attrib['version'])
KeyError: 'version'
make[2]: *** [GnomeBluetooth-1.0.gir] Error 1
Comment 3 Bastien Nocera 2009-07-31 12:01:28 UTC
Created attachment 139623 [details] [review]
gir-fix-dbus-glib-gir.patch
Comment 4 Bastien Nocera 2009-07-31 12:04:49 UTC
Still not a gnome-bluetooth problem
Comment 5 Johan (not receiving bugmail) Dahlin 2010-09-06 04:25:26 UTC
DBusGLib shouldn't really be used, g-i based bindings should provide their own bindings of dbus. The only point of DBusGLib is to define structures & types which other apis uses.
Comment 6 André Klapper 2015-02-07 17:01:50 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]