GNOME Bugzilla – Bug 589280
GnomeBluetooth-1.0.gir does not build
Last modified: 2015-02-07 17:01:50 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):
+ Trace 216562
sys.exit(scanner_main(sys.argv))
transformer.register_include(include_obj)
filename = self._find_include(include)
% (girname, searchdirs))
DBusGlib-1.0.gir is not installed by gir-repository, as missioncontrol is disabled.
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.
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):
+ Trace 216727
self._parse_include(filename)
parser.parse(filename)
self.parse_tree(tree)
self._parse_api(tree.getroot())
self._parse_include(node)
node.attrib['version'])
make[2]: *** [GnomeBluetooth-1.0.gir] Error 1
Created attachment 139623 [details] [review] gir-fix-dbus-glib-gir.patch
Still not a gnome-bluetooth problem
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.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]