GNOME Bugzilla – Bug 653031
Unbreak introspection generation
Last modified: 2011-07-13 19:42:34 UTC
g-ir-scanner has the --pkg option exactly for the purpose of yanking flags out of pkg-config. In addition to using those flags, there is an explicit callout: pkg-config --libs libxml-2.0 gtk+-3.0 in src/Makefile.am. This breaks on systems where ther happens to be .pc file with a Libs line that has the -R directive. Like pangox.pc on OpenBSD: Libs: -L${libdir} -lpangox-1.0 -L/usr/X11R6/lib -R/usr/X11R6/lib -lX11 g-ir-scanner would error out saying that '-R' is out a valig option. The attached diff removes the superfluous call to pkg-config. Would this be allright to commit?
Created attachment 190302 [details] [review] Using --pkg is enough.
Anyone?
Would be nice to have someone look at this patch. It looks fine to me and actually fixes a real issue we are seeing.
Review of attachment 190302 [details] [review]: Looks right to me, though note that the Gtk-3.0.gir only got the <pkg/> link in the last year is my guess. But this patch should be fine for epiphany git master.
Great, thanks!