Automake's support for Vala does not work with a separate build directory when using $(top_srcdir) in a _VALAFLAGS variable, like fsogsmd does. For some reason, Automake will change directory to $(srcdir) before running valac:
http://git.savannah.gnu.org/cgit/automake.git/tree/bin/automake.in#n5474 The $(top_srcdir) variable is relative to the build directory so the change of directory makes $(top_srcdir) point somewhere wrong. Automake includes generated C files in the distribution, allowing for compilation without valac and I suspect this is the root of the issue. There is an Automake bug, #13002, filed about this: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13002 To fix our build, we just prevent the use of a separate build directory by inheriting from autotools-brokensep. Signed-off-by: Bob Ham <bob....@collabora.com> --- meta-fso/recipes-freesmartphone/cornucopia/cornucopia-base.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta-fso/recipes-freesmartphone/cornucopia/cornucopia-base.inc b/meta-fso/recipes-freesmartphone/cornucopia/cornucopia-base.inc index 7684148..15995ba 100644 --- a/meta-fso/recipes-freesmartphone/cornucopia/cornucopia-base.inc +++ b/meta-fso/recipes-freesmartphone/cornucopia/cornucopia-base.inc @@ -26,7 +26,8 @@ SRC_URI = "http://downloads.freesmartphone.org/sources/cornucopia/${SHRT_VER}/${ S = "${WORKDIR}/${PN}-${SRC_VER}" -inherit autotools pkgconfig vala +# inherit from autotools-brokensep to work around Automake bug #13002 +inherit autotools pkgconfig vala autotools-brokensep FILES_${PN} += "\ ${sysconfdir} \ -- 2.1.4 _______________________________________________ Shr-devel mailing list Shr-devel@lists.shr-project.org http://lists.shr-project.org/mailman/listinfo/shr-devel