[oe] Convert vala to new world staging

Dr. Michael Lauer mickey at vanille-media.de
Fri Mar 5 16:56:43 UTC 2010


Hi Sebastian,

> All vala recipes currently complain about being lagacy stages. With a
> lot of help from my friends I came up with this patch for
> classes/vala.bbclass.
> 
> diff --git a/classes/vala.bbclass b/classes/vala.bbclass
> index 2633905..2c23efb 100644
> --- a/classes/vala.bbclass
> +++ b/classes/vala.bbclass
> @@ -9,8 +9,8 @@ VALA_DONT_STAGE_VAPIS ?= "\(/config.vapi$\)\|\(/config.deps$\)"
> 
> # .vapi and .deps files are arch independent and need to be present in the
> # staging datadir for the native vala compiler
> -do_stage_append() {
> -	install -d ${STAGING_DATADIR_NATIVE}/vala/vapi
> -	for VALAFILE in `find . -name "*.vapi" | grep -v "$VALA_DONT_STAGE_VAPIS"`; do install -m 0644 ${VALAFILE} ${STAGING_DATADIR_NATIVE}/vala/vapi/; done
> -	for VALAFILE in `find . -name "*.deps" | grep -v "$VALA_DONT_STAGE_VAPIS"`; do install -m 0644 ${VALAFILE} ${STAGING_DATADIR_NATIVE}/vala/vapi/; done
> +do_install_append() {
> +	install -d ${D}${datadir}/vala/vapi
> +	for VALAFILE in `find . -name "*.vapi" | grep -v "$VALA_DONT_STAGE_VAPIS"`; do install -m 0644 ${VALAFILE} ${D}${datadir}/vala/vapi/; done
> +	for VALAFILE in `find . -name "*.deps" | grep -v "$VALA_DONT_STAGE_VAPIS"`; do install -m 0644 ${VALAFILE} ${D}${datadir}/vala/vapi/; done
> }

This will only work for vala-native. All non-native packages inheriting vala will then fail to install their
.vapi files in STAGING_DATADIR_NATIVE, which is where vala-native expects them to be.

:M:





More information about the Openembedded-devel mailing list