GNOME Bugzilla – Bug 156786
GTK installs platform-specific data in $PREFIX/etc
Last modified: 2004-12-22 21:47:04 UTC
I installed gtk+-2.4.9 on both Solaris and Linux, with --prefix=/software/gtk+-2.4.9 --prefix=/software/gtk+-2.4.9/{SunOS-5.8,SuSE-9.0} respectively. Both separate builds installed platform-specific plugin-paths in /software/gtk+-2.4.9/etc AFAICS; since the Solaris "make install" happened after the Linux one, I could not run gtk-demo under Linux anymore, because it tried to load plugins from /software/gtk+-2.4.9/SunOS-5.8 and complained about wrong ELF formats. I solved the problem by giving --sysconfdir=$EXEC_PREFIX/etc to configure, which seems to me to be a valid fix. (Another possibility would be to separate plugin-specific information from sysconfdir-data and install it under $lib_dir/plugins or sth. like that.) BTW: I filed a very similar bugreport for pango; it became bug #156785 (Here in GTK+, sysconfdir is used in $(top_srcdir)/gdk-pixbuf and $(top_srcdir)/modules/input.)
*** This bug has been marked as a duplicate of 129540 ***