On Thu, Oct 08, 2009 at 11:59:56AM +0200, Frederik Sdun wrote:
> * Martin Jansa <[email protected]> [08.10.2009 10:12]:
> > Also I have second problem with vala/fso stuff in OE :(.
> > Every package with some subdirectory like "tests" ie. misc-vapi, libgee,
> > fsobasics, calls valac from tests/Makefile.am with --basedir $(top_srcdir)
> > and $(top_srcdir) is expanded to work_dir/git instead of 
> > work_dir/git/tests, than
> > ie testarraylist.c is generated in that git directory instead of tests
> > and build fails with:

This patch works for building from git:

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 343859a..04d5c6b 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -49,7 +49,7 @@ tests_DEPENDENCIES = $(top_srcdir)/gee/gee-1.0.vapi

 tests_SOURCES = tests.vala.stamp $(tests_VALASOURCES:.vala=.c)
 tests.vala.stamp: $(tests_VALASOURCES)
-       $(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee
        --pkg gee-1.0 $^
+       $(VALAC) -C --vapidir $(top_srcdir)/gee --pkg gee-1.0 $^
        touch $@
 tests_LDADD = $(progs_ldadd)
 EXTRA_DIST += $(tests_VALASOURCES)

Setting --basedir to $(top_srcdir)/tests works too. Similar patch applies
to more packages I found the same problem in misc-vapi and fsobasics
sofar.

For released tarball ie
http://ftp.gnome.org/pub/GNOME/sources/libgee/0.5/libgee-0.5.0.tar.bz2
its not needed because .c files are already generated in tests
directory.


-- 
uin:136542059                jid:[email protected]
Jansa Martin                 sip:[email protected] 
JaMa                         
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to