[pkg-fso-maint] Anyone working on packaging libeflvala (EFL Vala Bindings)? Or should I attempt to do so?

Visti Andresen talpa at talpa.dk
Mon May 24 10:41:27 UTC 2010


On Sun, 23 May 2010 16:39:42 +0200
Visti Andresen <talpa at talpa.dk> wrote:

> 
> I will attempt to package the gory SVN HEAD as there seems to have been only
> minor changes within the last 6 weeks.
> 

I have done some experimenting trying to package efl-vala.

As my qemu arm image suffered a I/O error I have been experimenting 
using my freerunner. Real packages probably have to be build using
pbuilder or another form of clean environment.
(I do wonder how an emulated disk with an FS gets an I/O error..)

'./configure' went fine, no problems here.
'make' was more troublesome, as expected it did not do anything for the vapi
files.
However make attempts to compile some tests the first one failing at the 
linker stage caused by some symbols that ld can not find[1].

And indeed
'objdump -T /usr/lib/libeina.so |grep eina_module_init'
does not return anything.
According to 'dpkg -l "*eina*"':
ii  libeina-svn-05 0.9.9.063-3
eina-0.9.9.063.tar.gz is the latest snapshot from 2009-12-02 [2]
And even the SVN HEAD of eina documents eina_module_init as @internal[3]


If I manually invoke make inside 'eflvala/' which appears to be a helper
library I can successfully invoke make inside 'examples/'.
(both generate warnings but no errors)

I could package efl-vala 'manually' without using the top level make file.
I know that ignoring tests that fail is a very bad practice...
But at least it would allow the compilation of vala efl based applications
like iliwi[4] maybe others as well.

Comments are welcome.
I have added Michael 'Mickey' Lauer as CC as he is the primary author of
efl-vala, I hope that it is Ok with him.

=====
[1]
root at debian-gta02:~/projects/efl-vala-0.5.0~0+svn49161# make
make  all-recursive
make[1]: Entering directory `/root/projects/efl-vala-0.5.0~0+svn49161'
Making all in vapi
make[2]: Entering directory
`/root/projects/efl-vala-0.5.0~0+svn49161/vapi' make[2]: Nothing to be
done for `all'. make[2]: Leaving directory
`/root/projects/efl-vala-0.5.0~0+svn49161/vapi' Making all in tests
make[2]: Entering directory
`/root/projects/efl-vala-0.5.0~0+svn49161/tests' /usr/bin/valac -C
--basedir .. --vapidir ../vapi --pkg eina --pkg evas --pkg ecore --pkg
edje --pkg elm --pkg glib-2.0 testeina.vala
tests/testeina.vala:26.11-26.34: warning: local variable `res' declared
but never used int[] res = { 81, 9, 9, 7, 1 }; ^^^^^^^^^^^^^^^^^^^^^^^^
Compilation succeeded - 1 warning(s) touch testeina.c
  CC     testeina.o
  CCLD   testeina
testeina.o: In function `test_eina_benchmark':
/root/projects/efl-vala-0.5.0~0+svn49161/tests/testeina.c:227:
undefined reference to
`eina_module_init' /root/projects/efl-vala-0.5.0~0+svn49161/tests/testeina.c:228:
undefined reference to
`eina_list_init' /root/projects/efl-vala-0.5.0~0+svn49161/tests/testeina.c:229:
undefined reference to
`eina_array_init' /root/projects/efl-vala-0.5.0~0+svn49161/tests/testeina.c:230:
undefined reference to
`eina_benchmark_init' /root/projects/efl-vala-0.5.0~0+svn49161/tests/testeina.c:231:
undefined reference to
`eina_mempool_init' /root/projects/efl-vala-0.5.0~0+svn49161/tests/testeina.c:238:
undefined reference to
`eina_mempool_shutdown' /root/projects/efl-vala-0.5.0~0+svn49161/tests/testeina.c:239:
undefined reference to
`eina_benchmark_shutdown' /root/projects/efl-vala-0.5.0~0+svn49161/tests/testeina.c:240:
undefined reference to
`eina_array_shutdown' /root/projects/efl-vala-0.5.0~0+svn49161/tests/testeina.c:241:
undefined reference to
`eina_list_shutdown' /root/projects/efl-vala-0.5.0~0+svn49161/tests/testeina.c:242:
undefined reference to `eina_module_shutdown' collect2: ld returned 1
exit status make[2]: *** [testeina] Error 1 make[2]: Leaving directory
`/root/projects/efl-vala-0.5.0~0+svn49161/tests' make[1]: ***
[all-recursive] Error 1 make[1]: Leaving directory
`/root/projects/efl-vala-0.5.0~0+svn49161' make: *** [all] Error 2


[2] http://download.enlightenment.org/snapshots/LATEST/
[3] http://trac.enlightenment.org/e/browser/trunk/eina/src/lib/eina_module.c
    line 187
[4] Iliwi actually only require the raw unprocessed files from 'vapi/' to
    be installed in order to be compiled.
-- 
Visti Andresen



More information about the pkg-fso-maint mailing list