Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344227 - net-wireless/gnome-bluetooth-2.32.0 fails to build with USE="introspection" and >=dev-utils/gobject-introspection-0.9
Summary: net-wireless/gnome-bluetooth-2.32.0 fails to build with USE="introspection" a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks: gnome2.32
  Show dependency tree
 
Reported: 2010-11-05 01:44 UTC by Mike Auty (RETIRED)
Modified: 2010-12-19 11:51 UTC (History)
0 users

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


Attachments
gnome-bluetooth-2.32.0-introspection.patch (gnome-bluetooth-2.32.0-introspection.patch,7.04 KB, patch)
2010-11-05 22:52 UTC, Mike Auty (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Auty (RETIRED) gentoo-dev 2010-11-05 01:44:07 UTC
This is quite similar to bug 341549, except without the existing patches (to my knowledge).  Basically gobject-introspection got a bit more strict, and now detects when it's not handed any headers and throws an error.  This stops the emerge midway through.  It builds fine with USE="-introspection", but that doesn't feel like a real solution...


  CCLD   test-plugins
  CCLD   test-class
g-ir-scanner: compile: gcc -Wall -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -march=native -pipe -ggdb -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/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -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/freetype2 -I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/libpng14 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -c -o /var/tmp/portage/net-wireless/gnome-bluetooth-2.32.0/work/gnome-bluetooth-2.32.0/lib/tmp-introspectOuY4uq/GnomeBluetooth-1.0.o /var/tmp/portage/net-wireless/gnome-bluetooth-2.32.0/work/gnome-bluetooth-2.32.0/lib/tmp-introspectOuY4uq/GnomeBluetooth-1.0.c
g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC --silent gcc -o /var/tmp/portage/net-wireless/gnome-bluetooth-2.32.0/work/gnome-bluetooth-2.32.0/lib/tmp-introspectOuY4uq/GnomeBluetooth-1.0 -export-dynamic -O2 -march=native -pipe -ggdb -L. -lgnome-bluetooth -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 /var/tmp/portage/net-wireless/gnome-bluetooth-2.32.0/work/gnome-bluetooth-2.32.0/lib/tmp-introspectOuY4uq/GnomeBluetooth-1.0.o
Namespace is empty; likely causes are:
* Not including .h files to be scanned
* Broken --identifier-prefix

make[4]: *** [GnomeBluetooth-1.0.gir] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-wireless/gnome-bluetooth-2.32.0/work/gnome-bluetooth-2.32.0/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-wireless/gnome-bluetooth-2.32.0/work/gnome-bluetooth-2.32.0/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-wireless/gnome-bluetooth-2.32.0/work/gnome-bluetooth-2.32.0/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-wireless/gnome-bluetooth-2.32.0/work/gnome-bluetooth-2.32.0'
make: *** [all] Error 2
emake failed
Comment 1 Pacho Ramos gentoo-dev 2010-11-05 21:48:24 UTC
Maybe the following fixes from master could help:
http://git.gnome.org/browse/gnome-bluetooth/commit/?id=fd89195dc3173b37e35299b07e673b3ec0253647
http://git.gnome.org/browse/gnome-bluetooth/commit/?id=485f07a4a0679991351af948e29f88ae1709eb1d

But I am not sure... if it's still broken even with them, probably a bug should be opened to upstream for letting them know 2.32 branch is broken
Comment 2 Mike Auty (RETIRED) gentoo-dev 2010-11-05 22:52:14 UTC
Created attachment 253353 [details, diff]
gnome-bluetooth-2.32.0-introspection.patch

Thanks for finding those!

They didn't apply cleanly because gnome-bluetooth had already been bumped to build against gtk-3.  (The patches also bumped the minimum required gobject-introspection to 0.9.5), but I found another patch [1] just before the first one of those.  That also didn't apply due to gtk-3, but I massaged it a bit and it now seems to compile with the most recent gobject-introspection.  I don't have an older gobject-introspection to test if it still builds, so this will need a little more testing, if someone's got the time?

[1] http://git.gnome.org/browse/gnome-bluetooth/commit/?id=599ee16645203c90ce500b206f318e65fb711bc3
Comment 3 Mike Auty (RETIRED) gentoo-dev 2010-11-05 23:15:37 UTC
Hmmm, since my patch ended up being identical (save for where the add and remove lines occur) from the one in upstream gnome bug 630024, it's probably fine to go in the ebuild.

I've mentioned in the new upstream bug that it also needs applying to the 2.32 branch for 2.32.1...
Comment 4 Pacho Ramos gentoo-dev 2010-12-19 11:51:43 UTC
+  19 Dec 2010; Pacho Ramos <pacho@gentoo.org> gnome-bluetooth-2.32.0.ebuild,
+  +files/gnome-bluetooth-2.32.0-introspection-build.patch:
+  Fix build with gobject-introspection 0.9, bug #344227 by Mike Auty.
+