GNOME Bugzilla – Bug 381389
pygimp complains in codegen.py in cvs gimp
Last modified: 2008-07-16 10:12:57 UTC
Not sure whats going on here, but current cvs gimp as of 12/1/2006 seems to fail to compile on fc6.i386 make[4]: Entering directory `/usr/src/gimp-smudge/plug-ins/pygimp' (cd . \ && /usr/bin/pygtk-codegen-2.0 \ --override gimpui.override \ --register /usr/share/pygtk/2.0/defs/gdk-types.defs \ --register /usr/share/pygtk/2.0/defs/gtk-types.defs \ --register ./gimpcolor-types.defs \ --register ./gimpenums-types.defs \ --prefix gimpui gimpui.defs) > gen-gimpui.c \ && cp gen-gimpui.c gimpui.c \ && rm -f gen-gimpui.c Warning: generating old-style constructor for:gimp_color_display_new Could not write method GimpColorDisplay.load_state: No ArgType for GimpParasite* Could not write method GimpColorDisplay.save_state: No ArgType for GimpParasite* Warning: generating old-style constructor for:gimp_color_selector_new Warning: generating old-style constructor for:gimp_frame_new Could not write method GimpIntComboBox.prepend: varargs functions not supported Could not write method GimpIntComboBox.append: varargs functions not supported Could not write method GimpIntComboBox.connect: No ArgType for GCallback Could not write method GimpIntComboBox.set_sensitivity: No ArgType for GimpIntSensitivityFunc Warning: generating old-style constructor for:gimp_enum_combo_box_new Warning: generating old-style constructor for:gimp_enum_store_new Warning: generating old-style constructor for:gimp_memsize_entry_new Warning: generating old-style constructor for:gimp_offset_area_new Could not write method GimpPageSelector.get_selected_pages: No ArgType for gint* Warning: generating old-style constructor for:gimp_path_editor_new Could not write method GimpPreview.get_position: No ArgType for gint* Could not write method GimpPreview.get_size: No ArgType for gint* Could not write method GimpPreviewArea.draw: No ArgType for GimpImageType Could not write method GimpPreviewArea.blend: No ArgType for GimpImageType Could not write method GimpPreviewArea.mask: No ArgType for GimpImageType Could not write method GimpDrawablePreview.get_drawable: No ArgType for GimpDrawable* Could not write method GimpDrawablePreview.draw_region: No ArgType for const-GimpPixelRgn* Warning: generating old-style constructor for:gimp_size_entry_new Could not write constructor for GimpSizeEntry: No ArgType for GimpUnit Could not write method GimpSizeEntry.get_unit: No ArgType for GimpUnit Could not write method GimpSizeEntry.set_unit: No ArgType for GimpUnit Warning: generating old-style constructor for:gimp_unit_menu_new Could not write constructor for GimpUnitMenu: No ArgType for GimpUnit Could not write method GimpUnitMenu.set_unit: No ArgType for GimpUnit Could not write method GimpUnitMenu.get_unit: No ArgType for GimpUnit Could not write method GimpZoomModel.get_fraction: No ArgType for gint* Could not write method GimpZoomPreview.get_source: No ArgType for gint* Could not write method GimpZoomPreview.get_drawable: No ArgType for GimpDrawable* Traceback (most recent call last):
+ Trace 90908
sys.exit(main(sys.argv))
sw.write()
self.write_classes()
instance.write_class()
substdict['tp_methods'] = self.write_methods()
methods.append(self.methdef_tmpl %
make[4]: *** [gimpui.c] Error 1 make[4]: Leaving directory `/usr/src/gimp-smudge/plug-ins/pygimp' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/src/gimp-smudge/plug-ins/pygimp' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/gimp-smudge/plug-ins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/gimp-smudge' make: *** [all] Error 2
Looks like pygtk's codegen has a bug. Reassigning (though I'll take a look at fixing it myself)
I have the same problem building pygimp. I have pygtk2-2.10.3-2.fc6.
Created attachment 77525 [details] [review] Patch to fix the issue This should fix the error in codegen. However, since there's no way to specify a docstring for a defined method, perhaps the override syntax should be extended?
2006-12-02 Manish Singh <yosh@gimp.org> * codegen/codegen.py: fix code for generating defines in override files, by using variables that actually exist in the context. Fixes bug #381389.
*** Bug 387409 has been marked as a duplicate of this bug. ***
*** Bug 396432 has been marked as a duplicate of this bug. ***