GNOME Bugzilla – Bug 649790
Vala uses the wrong includes
Last modified: 2011-05-11 06:44:52 UTC
The vapi file for folks claims the include header is "folks.h", but its really "folks/folks.h", since the pc file doesn't include -I $include/folks. The fix is simple: diff --git a/folks/Makefile.am b/folks/Makefile.am index cc6db7b..17e1928 100644 --- a/folks/Makefile.am +++ b/folks/Makefile.am @@ -52,6 +52,7 @@ libfolks_la_VALAFLAGS = \ --pkg gio-2.0 \ --pkg gee-1.0 \ --pkg gconf-2.0 \ + --includedir folks \ --vapi folks.vapi \ -H folks.h \ $(NULL)
Looks good to me. Could you make corresponding changes in all the backends/*/lib directories, remove “-I${includedir}/folks” from their .pc files, add a note about the changes in NEWS and post an updated patch here please?
Created attachment 187568 [details] [review] Ensure includes are done with <folks/*.h> This changes all pc files to not include -I$incdir/folks and fixes the vapi files to add the folks/ part to the includes.
Review of attachment 187568 [details] [review]: Looks good. Please commit to master.
pushed