GNOME Bugzilla – Bug 646594
gnome-panel not following gobject introspection best practice
Last modified: 2015-03-24 15:00:38 UTC
Created attachment 185015 [details] [review] the patch that should be applied immediately without looking the code has this: girdir = $(INTROSPECTION_GIRDIR) gir_DATA = $(INTROSPECTION_GIRS) typelibdir = $(INTROSPECTION_TYPELIBDIR) typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) but the wiki page for autotool integration says you should do it like this: girdir = $(datadir)/gir-1.0 gir_DATA = $(INTROSPECTION_GIRS) typelibdir = $(libdir)/girepository-1.0 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) The reason for that is because the existing Makefile breaks on "make install" if you try to install gnome-panel into a prefix with system gobject introspection (because it results in trying to install files to /usr).
Patch seems to be still valid - ping: vuntz?
I guess I don't see the point of $(INTROSPECTION_GIRDIR) and $(INTROSPECTION_TYPELIBDIR), then. Isn't it better to fix those variables to point to something useful? It sounds wrong to me to put gir-1.0 in all Makefile.am and suffer when we'll bump the gir version...