After upgrading to python 2.7.1, I got a build failure with sexy-python: In file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:28:0, from /usr/include/gtk-2.0/gdk/gdk.h:33, from /usr/include/gtk-2.0/gtk/gtk.h:32, from /usr/include/pygtk-2.0/pygtk/pygtk.h:8, from sexy.override:8: /usr/include/gtk-2.0/gdk/gdkpixbuf.h:37:35: fatal error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory compilation terminated. After some googling, I found that this is a bug in pygtk: http://www.spinics.net/lists/fedora-devel/msg139596.html It's missing gtk+ from it's pkg-config (.pc) file. This has been fixed long ago upstream, but our pygtk-package is about a year old (2.17.0). Please bump pygtk to 2.22.0.
I can confirm this bug and that the fix up upgrading pygtk to 2.22.0 works.
I can't reproduce any build failure with Python 2.7 and dev-python/pygtk-2.17.0. Please attach full build log.
Created attachment 256419 [details] dev-python:sexy-python-0.1.9-r1:20101205-190035.log
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h belongs to x11-libs/gtk+. Which version of x11-libs/gtk+ do you use?
(In reply to comment #4) > /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h belongs to x11-libs/gtk+. Which > version of x11-libs/gtk+ do you use? I am getting this error, and I have gtk+-2.22.1
Does this problem occur with x11-libs/gtk+-2.20* and dev-python/pygtk-2.17.0*?
Just checked, it only happens with the combination pygtk-2.17.0, gtk+-2.22.1 and python 2.7. It does not happen with pygtk-2.17.0, gtk+-2.20.1-r1 and python 2.7. So yes, it seems it's only a problem of the masked gtk+ version, though for the upcoming gnome-2.32 unmask we should have pygtk updated in the tree.
Maybe dev-python/pygtk-2.17* should depend on <x11-libs/gtk+-2.22.
Trying to bump pygtk to 2.22 I got its tests failing with the following: $ make check Making check in . make[1]: Entering directory `/home/pacho/pygtk-2.22.0' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/home/pacho/pygtk-2.22.0' Making check in gtk make[1]: Entering directory `/home/pacho/pygtk-2.22.0/gtk' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/home/pacho/pygtk-2.22.0/gtk' Making check in examples make[1]: Entering directory `/home/pacho/pygtk-2.22.0/examples' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/home/pacho/pygtk-2.22.0/examples' Making check in tests make[1]: Entering directory `/home/pacho/pygtk-2.22.0/tests' make check-local make[2]: Entering directory `/home/pacho/pygtk-2.22.0/tests' Gtk-Message: Failed to load module "gnomebreakpad": libgnomebreakpad.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio Traceback (most recent call last): File "./runtests.py", line 41, in <module> suite.addTest(loader.loadTestsFromName(name)) File "/usr/lib64/python2.6/unittest.py", line 576, in loadTestsFromName module = __import__('.'.join(parts_copy)) File "/home/pacho/pygtk-2.22.0/tests/test_enum.py", line 9, in <module> class PObject(gobject.GObject): File "/home/pacho/pygtk-2.22.0/tests/test_enum.py", line 10, in PObject enum = gobject.property(type=gtk.WindowType, default=gtk.WINDOW_TOPLEVEL) File "/usr/lib64/python2.6/site-packages/gtk-2.0/gobject/propertyhelper.py", line 112, in __init__ self.type = self._type_from_python(type) File "/usr/lib64/python2.6/site-packages/gtk-2.0/gobject/propertyhelper.py", line 202, in _type_from_python raise TypeError("Unsupported type: %r" % (type,)) TypeError: Unsupported type: <class 'gtk._gtk.WindowType'> make[2]: *** [check-local] Error 1 make[2]: Leaving directory `/home/pacho/pygtk-2.22.0/tests' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/home/pacho/pygtk-2.22.0/tests' make: *** [check-recursive] Error 1
temporary workaround is ln -s /usr/include/gdk-pixbuf-1.0/gdk-pixbuf /usr/include/gdk-pixbuf
(In reply to comment #10) > temporary workaround is ln -s /usr/include/gdk-pixbuf-1.0/gdk-pixbuf > /usr/include/gdk-pixbuf > ups, old paste :) right is ln -s /usr/include/gdk-pixbuf-2.0/gdk-pixbuf /usr/include/gdk-pixbuf
*** Bug 348352 has been marked as a duplicate of this bug. ***
(In reply to comment #11) > (In reply to comment #10) > > temporary workaround is ln -s /usr/include/gdk-pixbuf-1.0/gdk-pixbuf > > /usr/include/gdk-pixbuf > > > > ups, old paste :) right is ln -s /usr/include/gdk-pixbuf-2.0/gdk-pixbuf > /usr/include/gdk-pixbuf > Is it possible to update the x11-libs/gdk-pixbuf ebuild in portage so that it makes that symbolic link?
please note that pygtk bump is delayed to problems found via its testsuite.
*** Bug 349853 has been marked as a duplicate of this bug. ***
Created attachment 260066 [details, diff] pygtk-2.22.0.ebuild.diff I vote for simply restricting tests since pygtk based apps look to still work ok for me and a lot of distributions are shipping this for months (also upstream is quite unresponsive, maybe they are too loaded :-/)
Created attachment 260113 [details, diff] pygtk-2.22.0.ebuild.diff I have tried to simply skip failing test but, later, tests aborts due permission problems that I have been unable to fix setting some variables :-@ * Testing of dev-python/pygtk-2.22.0 with CPython 2.6... make -j2 check-local ................................................................................ Gtk-WARNING **: Attempting to store changes into `/root/.recently-used.xbel', but failed: Falló al crear el archivo «/root/.recently-used.xbel.IZXQPV»: Permiso denegado aborting...
But it's not a regression http://bugs.gentoo.org/show_bug.cgi?id=245103 Not sure what to do :-|
+*pygtk-2.22.0 (19 Jan 2011) + + 19 Jan 2011; Pacho Ramos <pacho@gentoo.org> -pygtk-2.16.0-r1.ebuild, + -files/pygtk-2.16.0-gdkcolor-fix.patch, +pygtk-2.22.0.ebuild: + Version bump with lots of bugfixes and gtk+-2.22 compatible, skip broken test + (upstream bug #636589) and test wanting to write outside sandbox (bug + #245103). Remove old.