Bug 618944

Summary: pygtk-2.0.pc should contain Requires: gtk+-2.0
Product: [Fedora] Fedora Reporter: Mamoru TASAKA <mtasaka>
Component: pygtk2Assignee: Colin Walters <walters>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: a.badger, dmalcolm, rjones, sysoutfran, walters
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pygtk2-2.17.0-7.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-01 19:22:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 619913    

Description Mamoru TASAKA 2010-07-28 06:20:00 UTC
Description of problem:
As I said on:
http://lists.fedoraproject.org/pipermail/devel/2010-July/139667.html

Rebuild of python-sexy-0.1.9-11.fc14 failed:
http://koji.fedoraproject.org/koji/taskinfo?taskID=2345347

build.log says:
-------------------------------------------------------------------
  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.7 -pthread -I/usr/include/pygtk-2.0 -I/usr/lib64/libffi-3.0.9/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c sexy.c  -fPIC -DPIC -o .libs/sexy_la-sexy.o
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
-------------------------------------------------------------------

The cflags used here comes from "pkg-config --cflags pygtk-2.0 libsexy". 
The problem here is that (as seen in this build.log) pygtk2 header file
(/usr/include/pygtk-2.0/pygtk/pygtk.h)
tries to include header file in gtk2, however
- pygtk-2.0.pc says
-------------------------------------------------------------
Requires: pygobject-2.0
-------------------------------------------------------------
- pygobject-2.0.pc says
-------------------------------------------------------------
Requires: gobject-2.0
-------------------------------------------------------------
So needed gdk-pixbuf headers cannot be included.

I think pygtk-2.0.pc should have "Requires: pygobject-2.0 gtk-2.0".

Version-Release number of selected component (if applicable):
pygtk2-2.17.0-6.fc14

Additional info:
For now oget patched against python-sexy so python-sexy build succeeds,
however anyway I think pygtk2 should be fixed.

Comment 1 Mamoru TASAKA 2010-07-28 06:35:17 UTC
This also causes notify-python build failure:

http://koji.fedoraproject.org/koji/taskinfo?taskID=2344740

Comment 2 Toshio Ernie Kuratomi 2010-07-30 18:59:04 UTC
pygtk2 updated with a patch from Colin -- try again?

https://koji.fedoraproject.org/koji/buildinfo?buildID=187091

Comment 3 Fedora Update System 2010-07-30 21:17:09 UTC
pygtk2-2.17.0-7.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/pygtk2-2.17.0-7.fc14

Comment 4 Mamoru TASAKA 2010-07-31 03:03:46 UTC
Confirmed that python-sexy and notify-python builds with this.

Comment 5 Fedora Update System 2010-08-01 19:22:15 UTC
pygtk2-2.17.0-7.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Frank Murphy 2010-08-02 10:44:37 UTC
Still borked for me reference:
https://bugzilla.redhat.com/show_bug.cgi?id=532262