Bug#476229: [ephy-webkitgtk] BUG#476229: pygtk-2.0: pkgconfig path set wrong
Loïc Minier
lool at dooz.org
Thu Apr 17 14:50:10 UTC 2008
Thanks (please tell the bug); someone please try to find out why the
rtupdate script isn't called or doesn't work, I don't have the time
right now
On Thu, Apr 17, 2008, Sedat Dilek wrote:
> Hi,
>
> I saw that you are discussing the pygtk-2.0 problem on [1].
> The problem is more severe than the pkgconfig path settings.
>
> Today, I compiled webkit from Debian GIT repository "pkg-webkit/webkit.git".
>
> [CODE]
> git clone git://git.debian.org/git/pkg-webkit/webkit.git
> chmod +x debian/rules
> fakeroot debian/rules binary
> [/CODE]
>
> Trying to compile "epiphany-webkit" fails, I left over the gecko part (by
> commenting in debian/rules).
>
> [CODE]
> wget
> http://ftp.gnome.org/pub/gnome/sources/epiphany/2.22/epiphany-2.22.1.tar.bz2
> tar -xjvf epiphany-2.22.1.tar.bz2
> cd epiphany-2.22.1
> svn co svn://
> svn.debian.org/svn/pkg-gnome/desktop/experimental/epiphany-browser/debian
> chmod +x debian/rules
> fakeroot debian/rules binary
> [/CODE]
>
> NOTE:
> In "debian/rules" you have to _un_comment the webkit-stuff, e.g. "FLAVORS :=
> webkit #gecko" (instead of FLAVORS := gecko #webkit).
>
> $ ./configure --with-engine=webkit --enable-python
> [...]
> checking for WEBKIT... yes
> checking X11/XF86keysym.h usability... yes
> checking X11/XF86keysym.h presence... yes
> checking for X11/XF86keysym.h... yes
> checking whether Python support is requested... yes
> checking for a Python interpreter with version >= 2.3... python
> checking for python... /usr/bin/python
> checking for python version... 2.5
> checking for python platform... linux2
> checking for python script directory...
> ${prefix}/lib/python2.5/site-packages
> checking for python extension module directory...
> ${exec_prefix}/lib/python2.5/site-packages
> checking for headers required to compile python extensions... found
> checking whether we can build a shared library depending on libpython... yes
> checking for PYGTK... no
> configure: error: Python not found
>
> As you can see PYGTK is not found, I suppose the problem in python-gtk2-dev.
> The only advice is to uncomment the configure-flag "--enable-python" in
> debian/rules and to do without python-support.
> I can live with that because I do not use ephy-extensions.
>
> Greetz,
> Sedat
>
> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476229
>
>
> P.S.: SYSTEMS PYTHON SETTINGS:
>
> $ ls -l /usr/bin/python*
> lrwxrwxrwx 1 root root 9 2008-04-17 11:55 /usr/bin/python -> python2.5
> -rwxr-xr-x 1 root root 1173364 2008-03-09 05:42 /usr/bin/python2.5
> -rwxr-xr-x 1 root root 1419 2008-03-09 05:41 /usr/bin/python2.5-config
> lrwxrwxrwx 1 root root 16 2008-04-17 11:56 /usr/bin/python-config ->
> python2.5-config
>
> $ ls -l /usr/lib/pkgconfig/py*
> -rw-r--r-- 1 root root 567 2008-03-25 01:15
> /usr/lib/pkgconfig/pygobject-2.0.pc
> lrwxrwxrwx 1 root root 22 2008-04-17 11:57 /usr/lib/pkgconfig/pygtk-2.0.pc
> -> python2.5/pygtk-2.0.pc
>
> /usr/lib/pkgconfig/python2.4:
> total 4
> -rw-r--r-- 1 root root 648 2008-01-12 04:18 pygtk-2.0.pc
>
> /usr/lib/pkgconfig/python2.5:
> total 4
> -rw-r--r-- 1 root root 648 2008-01-12 04:18 pygtk-2.0.pc
>
> $ cat pygtk-2.0.pc
> prefix=/usr
> exec_prefix=${prefix}
> includedir=${prefix}/include
> datarootdir=${prefix}/share
> datadir=${datarootdir}
> pyexecdir=${exec_prefix}/lib/python2.5/site-packages
>
> # you can use the --variable=pygtkincludedir argument to
> # pkg-config to get this value. You might want to use this to
> # install additional headers.
> pygtkincludedir=${includedir}/pygtk-2.0
>
> # same here. Useful when calling the code generator in addon packages.
> defsdir=${datadir}/pygtk/2.0/defs
> codegendir=${datadir}/pygtk/2.0/codegen
>
> Name: PyGTK
> Description: Python bindings for GTK+ and related libraries
> Requires: pygobject-2.0
> Version: 2.12.1
> Cflags: -I${pygtkincludedir}
--
Loïc Minier
More information about the pkg-gnome-maintainers
mailing list