rosendo100 / pywebkitgtk

Automatically exported from code.google.com/p/pywebkitgtk
Other
0 stars 0 forks source link

pygtk-codegen-2.0 is deprecated, use pygobject-codegen-2.0 instead #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Running './autogen.sh && make' from svn r76 gives the following output
(full output attached):

note: pygtk-codegen-2.0 is deprecated, use pygobject-codegen-2.0 instead

This causes the build to fail.

I have attached pygobject-codegen.patch that replaces "pygtk-codegen-2.0"
with "pygobject-codegen-2.0".  I have also edited webkit.defs to use "enum"
instead of "define-enum" as in
http://svn.gnome.org/viewvc/pygobject/trunk/codegen/README.defs?view=markup
.  I can build pywebkitgtk successfully after applying this patch.

Distro: Ubuntu Intrepid
pywebkitgtk:  svn HEAD (revision 76)

Original issue reported on code.google.com by jason.ri...@gmail.com on 17 Oct 2008 at 9:36

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Jason

What version of python-gtk2 do you have and what OS are you using? pygtk-codegen
still works for me in Debian unstable and Lenny so I'm assuming you're not 
using Debian.

As for your patch, probably would be better if we check for pygobject-codegen 
first
then if that fails, check for pygtk-codegen so we don't break oldish pygtk 
installations.

Original comment by jmalo...@gmail.com on 18 Oct 2008 at 1:48

GoogleCodeExporter commented 8 years ago
Hey Jan,

I'm using Ubuntu Intrepid.  python-gtk2 package is version 2.13.0-0ubuntu8

I agree with your suggestion about checking for a pygtk installation.  I'll 
look into
that.

Original comment by jason.ri...@gmail.com on 18 Oct 2008 at 2:51

GoogleCodeExporter commented 8 years ago
Here's the version of python-gobject I am using as well:

python-gobject-dev: 2.15.3-0ubuntu5
python-gtk2-dev: 2.13.0-0ubuntu8

Original comment by jason.ri...@gmail.com on 18 Oct 2008 at 12:29

GoogleCodeExporter commented 8 years ago
I've attached a patch that will use pygtk-codegen-2.0 if pygobject-codegen-2.0 
is not
found.  I've called the variable PYGOBJECT_CODEGEN, but PYGNOME_CODEGEN should 
be
considered.

Here is some info I found about how python-gnome handled this issue:
http://bugzilla.gnome.org/show_bug.cgi?id=548535
http://svn.gnome.org/viewvc/gnome-python/trunk/configure.ac?revision=636&view=ma
rkup

I don't know much about autotools, but using AC_PATH_PROGS seems to be the right
thing to do after reading the autoconf manual.  python-gnome does not use it 
though.
 My patch uses AC_PATH_PROGS.

After applying this patch, r78 builds fine for me on both Ubuntu Intrepid and 
Debian
Lenny.

Original comment by jason.ri...@gmail.com on 19 Oct 2008 at 1:50

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks Jason. Patch landed in r79

Cheers

Original comment by jmalo...@gmail.com on 19 Oct 2008 at 4:23