All of lore.kernel.org
 help / color / mirror / Atom feed
* Convert vala to new world staging
@ 2010-03-05 15:14 Sebastian Spaeth
  2010-03-05 16:42 ` Koen Kooi
  2010-03-05 16:56 ` Dr. Michael Lauer
  0 siblings, 2 replies; 5+ messages in thread
From: Sebastian Spaeth @ 2010-03-05 15:14 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 340 bytes --]

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.


I am currently testing a few compiles and installs with this patch. But
I want to gather feedback and ACKs from Mickey (OE vala God) and others.

Does this make sense?
Sebastian

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Convert vala to new world staging --]
[-- Type: text/x-diff, Size: 1084 bytes --]

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
 }

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: Convert vala to new world staging
  2010-03-05 15:14 Convert vala to new world staging Sebastian Spaeth
@ 2010-03-05 16:42 ` Koen Kooi
  2010-03-05 16:56 ` Dr. Michael Lauer
  1 sibling, 0 replies; 5+ messages in thread
From: Koen Kooi @ 2010-03-05 16:42 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05-03-10 16:14, Sebastian Spaeth wrote:
> 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.

> I am currently testing a few compiles and installs with this patch. But
> I want to gather feedback and ACKs from Mickey (OE vala God) and others.
> 
> Does this make sense?

The patch looks good to me, but I'll leave Acks to people that use
vala.bbclass.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLkTSKMkyGM64RGpERAi3xAJ9sIYUlwuu74ffXfkAp4+RXV0ULXgCaA5jx
+CYiec5bpUQABptnube2nYE=
=IX6T
-----END PGP SIGNATURE-----




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Convert vala to new world staging
  2010-03-05 15:14 Convert vala to new world staging Sebastian Spaeth
  2010-03-05 16:42 ` Koen Kooi
@ 2010-03-05 16:56 ` Dr. Michael Lauer
  2010-03-06 14:58   ` Richard Purdie
  1 sibling, 1 reply; 5+ messages in thread
From: Dr. Michael Lauer @ 2010-03-05 16:56 UTC (permalink / raw)
  To: openembedded-devel

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:




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Convert vala to new world staging
  2010-03-05 16:56 ` Dr. Michael Lauer
@ 2010-03-06 14:58   ` Richard Purdie
  2010-03-06 16:25     ` Michael 'Mickey' Lauer
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2010-03-06 14:58 UTC (permalink / raw)
  To: openembedded-devel

On Fri, 2010-03-05 at 17:56 +0100, Dr. Michael Lauer wrote:
> > 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.

Something is very wrong with vala-native then :(

Target packages should not be installing things into the native sysroot.
The reason why is when we come to start using staging packages, these
staging packages are going to have a dependency on the specific build
system they were built on.

If these files are architecture independent I'd suggest putting them in
an architecture independent path (which native sysroot is not)

Cheers,

Richard




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Convert vala to new world staging
  2010-03-06 14:58   ` Richard Purdie
@ 2010-03-06 16:25     ` Michael 'Mickey' Lauer
  0 siblings, 0 replies; 5+ messages in thread
From: Michael 'Mickey' Lauer @ 2010-03-06 16:25 UTC (permalink / raw)
  To: openembedded-devel

Am Samstag, den 06.03.2010, 06:58 -0800 schrieb Richard Purdie:
> Target packages should not be installing things into the native sysroot.
> The reason why is when we come to start using staging packages, these
> staging packages are going to have a dependency on the specific build
> system they were built on.
> 
> If these files are architecture independent I'd suggest putting them in
> an architecture independent path (which native sysroot is not)

That would be possible, but Vala needs to be patched to look there then.

-- 
:M:




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-06 16:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-05 15:14 Convert vala to new world staging Sebastian Spaeth
2010-03-05 16:42 ` Koen Kooi
2010-03-05 16:56 ` Dr. Michael Lauer
2010-03-06 14:58   ` Richard Purdie
2010-03-06 16:25     ` Michael 'Mickey' Lauer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.