Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238837 - dev-ruby/gtk+-0.16.0-r2 fails to build with gtk+-2.14.3
Summary: dev-ruby/gtk+-0.16.0-r2 fails to build with gtk+-2.14.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gtk2.14-compat
  Show dependency tree
 
Reported: 2008-09-27 06:47 UTC by Hans de Graaff
Modified: 2008-09-28 07:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed patch to fix this problem. (ruby-gtk2-0.16.0-gtk-file-system-error.patch,1.49 KB, patch)
2008-09-28 07:50 UTC, Hans de Graaff
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2008-09-27 06:47:49 UTC
See compilation error below. Note that the ruby-gnome2 bindings are already at 0.17 upstream and we intend to start working on that in the ruby overlay shortly. I'm not sure if it will be easy to fix compilation with this version of gtk+ given that a whole header file is gone (which most likely indicates a significant change in functionality).

gcc -I. -I/var/tmp/portage/dev-ruby/ruby-gtk2-0.16.0-r2/work/ruby-gnome2-all-0.16.0/pango/src -I/var/tmp/portage/dev-ruby/ruby-gtk2-0.16.0-r2/work/ruby-gnome2-all-0.16.0/glib/src -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DRUBY_GTK2_TARGET=\"x11\" -DHAVE_GTK_PLUG_GET_TYPE -DHAVE_GTK_SOCKET_GET_TYPE -DHAVE_PANGO_RENDER_PART_GET_TYPE -DHAVE_X11_XLIB_H -DHAVE_GTK_PRINT_UNIX_DIALOG_GET_TYPE -DHAVE_GTK_PRINT_JOB_GET_TYPE -DHAVE_GTK_PRINTER_GET_TYPE -DHAVE_RB_CAIRO_H -DRUBY_GTK2_COMPILATION   -I/usr/lib64/ruby/site_ruby/1.8/x86_64-linux  -fPIC -O2 -pipe -march=k8 -fno-strict-aliasing  -fPIC -Wall -pthread -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/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1   -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1   -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1    -c rbgtkfilechooser.c
rbgtkfilechooser.c:21:31: error: gtk/gtkfilesystem.h: No such file or directory
rbgtkfilechooser.c: In function ‘Init_gtk_file_chooser’:
rbgtkfilechooser.c:371: error: ‘GTK_FILE_SYSTEM_ERROR’ undeclared (first use in this function)
rbgtkfilechooser.c:371: error: (Each undeclared identifier is reported only once
rbgtkfilechooser.c:371: error: for each function it appears in.)
rbgtkfilechooser.c:372: error: ‘GTK_FILE_SYSTEM_ERROR_NONEXISTENT’ undeclared (first use in this function)
rbgtkfilechooser.c:373: error: ‘GTK_FILE_SYSTEM_ERROR_NOT_FOLDER’ undeclared (first use in this function)
rbgtkfilechooser.c:374: error: ‘GTK_FILE_SYSTEM_ERROR_INVALID_URI’ undeclared (first use in this function)
rbgtkfilechooser.c:375: error: ‘GTK_FILE_SYSTEM_ERROR_BAD_FILENAME’ undeclared (first use in this function)
rbgtkfilechooser.c:376: error: ‘GTK_FILE_SYSTEM_ERROR_FAILED’ undeclared (first use in this function)
rbgtkfilechooser.c:377: error: ‘GTK_FILE_SYSTEM_ERROR_ALREADY_EXISTS’ undeclared (first use in this function)
make[1]: *** [rbgtkfilechooser.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-ruby/ruby-gtk2-0.16.0-r2/work/ruby-gnome2-all-0.16.0/gtk/src'
make: *** [all] Error 2
Comment 1 Mart Raudsepp gentoo-dev 2008-09-28 07:23:18 UTC
GtkFileSystem was a semi-private construct that was possible to access before mostly only so that libgnomeui can provide gnome-vfs filesystems backend for remote filesystem access. gtk+-2.14 now uses GIO for it instead and doesn't expose any specific about it - remote filesystem access is provided by gnome-base/gvfs (and any possible later separate packages that might show up in the future that provide gio filesystem modules) in a cleaner way. User just installs gvfs with chosen vfs support (exposed via USE flags) and that remote vfs support gets added to the GIO built-in local filesystem support.

Basically, don't wrap GtkFilesystem at all, never should have.
Comment 2 Hans de Graaff gentoo-dev Security 2008-09-28 07:49:56 UTC
Removing the wrapping of GtkFileSystem seems to work well. It is not used anywhere else in the bindings. I guess this may break some apps using the bindings that rely on this, but based on the comments they should not have been using this in the first place.
Comment 3 Hans de Graaff gentoo-dev Security 2008-09-28 07:50:59 UTC
Created attachment 166656 [details, diff]
Proposed patch to fix this problem.
Comment 4 Mart Raudsepp gentoo-dev 2008-09-28 07:51:08 UTC
I highly doubt anyone has ever implemented VFS modules in ruby
Comment 5 Hans de Graaff gentoo-dev Security 2008-09-28 07:56:17 UTC
Fixed as ruby-gtk2-0.16.0-r4 in CVS.