Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#16322 closed defect (fixed)

gimp2 lacks dependency to py-gtk2 (or py25-gtk lacks pygtk/pygtk.h)

Reported by: macports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: gimp, py25-gtk, py-gtk2 Cc: jmroot (Joshua Root)
Port: gimp2

Description

When trying to install gimp2 @2.4.5_1, I got this:

 /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/opt/local/include/pygtk-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DXTHREADS -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/pixman-1 -I/opt/local/include -DGIMP_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -fno-strict-aliasing -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -MT gimpuimodule.lo -MD -MP -MF .deps/gimpuimodule.Tpo -c gimpuimodule.c  -fno-common -DPIC -o .libs/gimpuimodule.o
gimpuimodule.c:28:25: error: pygtk/pygtk.h: No such file or directory
gimpuimodule.c: In function 'init_gimpui':
gimpuimodule.c:70: warning: implicit declaration of function 'init_pygtk'
make[4]: *** [gimpuimodule.lo] Error 1
make[3]: *** [all-recursive] Error 1

I already had py25-gtk installed, but that didn't help. Installing py-gtk2 solved it:

sudo port deactivate py25-gtk
sudo port install py-gtk2
sudo port -f activate py25-gtk
sudo port install gimp2

Change History (13)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Cc: jmr@… added

I can't reproduce this. I have py25-gtk installed, don't have py-gtk2, and gimp2 builds fine. I did use +without_gnome to save time on dependencies, and I'm using MacPorts trunk on Leopard.

comment:2 Changed 16 years ago by macports@…

The file plug-ins/pygimp/gimpuimodule.c in gimp-2.4.5.tar.bz2 contains a reference to pygtk/pygtk.h:

#include <pygtk/pygtk.h>

Somehow, py-gtk2 is the only package I have that provides this on my home computer:

home$ find /opt/local/include -name pygtk.h -print0 |xargs -0 port provides
 /opt/local/include/pygtk-2.0/pygtk/pygtk.h is provided by: py-gtk2
home$ port installed py25-gtk
 The following ports are currently installed:
  py25-gtk @2.12.1_0+darwin_9 (active)
home$ port installed py-gtk2
 The following ports are currently installed:
  py-gtk2 @2.12.1_0+darwin_9 (active)

.. while my work computer doesn't need py-gtk2 since py25-gtk provides pygtk.h there.

work$ find /opt/local/include -name pygtk.h -print0 |xargs -0 port provides
 /opt/local/include/pygtk-2.0/pygtk/pygtk.h is provided by: py25-gtk
work$ port installed py25-gtk
 The following ports are currently installed:
  py25-gtk @2.12.1_0+darwin_9 (active)
work$ port installed py-gtk2
 None of the specified ports are installed.

py25-gtk is the same version (and variant) on both machines, how are they able to provide a different file set? They do provide a different number of files: {{ home$ port contents py25-gtk |wc -l

609

work$ port contents py25-gtk |wc -l

648

}}

comment:3 Changed 16 years ago by blb@…

I can't reproduce this either, without any variants. My py25-gtk does provide the given file as well. There may be some conflict issues between having both py25-gtk and py-gtk2 installed; do you need py-gtk2 installed for anything? If not, try deactivating both then reactivating just py25-gtk.

comment:4 Changed 16 years ago by jmroot (Joshua Root)

If they both installed the file then the second one to be activated would fail. But maybe one of them builds differently when the other is installed?

comment:5 Changed 16 years ago by macports@…

Originally I only had py25-gtk installed on both. I discovered that gimp2 wouldn't install on one of them ("home"), and had to install py-gtk2 to make it work.

(jmr: yes, I had to force-activate py-gtk2 to make it install)

comment:6 Changed 16 years ago by macports@…

The extra files in py25-gtk for "work":

>   /opt/local/include/pygtk-2.0/pygtk/pygtk.h
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.pyc
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.pyo
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.la
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.so
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/_lazyutils.py
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/_lazyutils.pyc
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/_lazyutils.pyo
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/compat.py
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/compat.pyc
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/compat.pyo
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/deprecation.py
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/deprecation.pyc
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/deprecation.pyo
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/glade.la
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/glade.so
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/keysyms.py
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/keysyms.pyc
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/keysyms.pyo
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtkunixprint.la
>   /opt/local/lib/python2.5/site-packages/gtk-2.0/gtkunixprint.so
>   /opt/local/share/pygtk/2.0/defs/gdk-2.10.defs
>   /opt/local/share/pygtk/2.0/defs/gdk-2.12.defs
>   /opt/local/share/pygtk/2.0/defs/gdk-base-types.defs
>   /opt/local/share/pygtk/2.0/defs/gdk-base.defs
>   /opt/local/share/pygtk/2.0/defs/gdk-types.defs
>   /opt/local/share/pygtk/2.0/defs/gdk.defs
>   /opt/local/share/pygtk/2.0/defs/gtk-2.10-types.defs
>   /opt/local/share/pygtk/2.0/defs/gtk-2.10.defs
>   /opt/local/share/pygtk/2.0/defs/gtk-2.12-types.defs
>   /opt/local/share/pygtk/2.0/defs/gtk-2.12.defs
>   /opt/local/share/pygtk/2.0/defs/gtk-base-types.defs
>   /opt/local/share/pygtk/2.0/defs/gtk-base.defs
>   /opt/local/share/pygtk/2.0/defs/gtk-extrafuncs.defs
>   /opt/local/share/pygtk/2.0/defs/gtk-types.defs
>   /opt/local/share/pygtk/2.0/defs/gtk.defs
>   /opt/local/share/pygtk/2.0/defs/gtkunixprint.defs
>   /opt/local/share/pygtk/2.0/defs/libglade.defs

comment:7 in reply to:  5 Changed 16 years ago by blb@…

Replying to macports@henrik.synth.no:

Originally I only had py25-gtk installed on both. I discovered that gimp2 wouldn't install on one of them ("home"), and had to install py-gtk2 to make it work.

Did it fail for this same reason if you can remember?

comment:8 Changed 16 years ago by macports@…

blb: I'm not quite sure if I understand. I've only had one error, and that's the one with the missing pygtk.h on my "home" computer.

comment:9 Changed 16 years ago by blb@…

My guess is that the py25-gtk install has issues on your home machine. If you don't need py-gtk2 for anything else on that machine, uninstall it and py25-gtk, then try a new install of just py25-gtk and see if that make gimp2 happy.

comment:10 Changed 16 years ago by dbevans (David B. Evans)

Keywords: gimp2 removed
Port: gimp2 added

gimp2 has been upgraded to 2.6.1 and I have heard no more instances of this problem. Can this problem be demonstrated on 2.6.1 or is it resolved and the ticket can be closed?

comment:11 Changed 16 years ago by macports@…

Just close it.

comment:12 Changed 16 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

Done.

comment:13 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.