GNOME Bugzilla – Bug 580320
Migrate deprecated gnome-vfs to gio/gvfs
Last modified: 2009-07-11 16:06:36 UTC
According to http://www.gnome.org/~fpeters/299.html libgsf 1.14.11 still uses gnome-vfs. $:andre\> grep -r libgnomevfs . ./gsf-gnome/gsf-input-gnomevfs.h:#include <libgnomevfs/gnome-vfs.h> ./gsf-gnome/gsf-input-gnomevfs.c:#include <libgnomevfs/gnome-vfs-method.h> ./gsf-gnome/gsf-output-gnomevfs.h:#include <libgnomevfs/gnome-vfs.h> gnome-vfs usage has been completely removed from GNOME for 2.27, but this is the very last module pulling it in as libgsf is a blessed dependency.
According to me, libgsf does not use gnome-vfs. At least not unless you insist on compiling it in. The three #include statements above are conditional. If you have gio, the gsf/gnomevfs api will be emulated.
It might be a good idea to configure --without-bonobo if you really want a legacy-free libgsf. Otherwise, it'll use it if available.
Thanks for clarifying (I can't check every single line for #ifdef's, sorry) and also covering bonobo. I really appreciate it. Going to whitelist libgsf for http://www.gnome.org/~fpeters/299.html now.
git trunk still has gsf-gnome/gsf-{in,out}put-gnomevfs.h: >#ifndef LIBGSF_GNOMEVFS_VIA_GIO >/* > * The installed version will always do this. For our emulation layer, we > * want to avoid it. > */ >#include <libgnomevfs/gnome-vfs.h> Even if gnome-vfs isn't compiled-in and libgsf-gnome doesn't use gnome-vfs, when another package tries to use libgsf-gnome, doesn't that drag in gnome-vfs headers (by design, per the comment)?
Certainly. But to do that, the calling application is already using gnome-vfs, so we are not adding any dependency there.