Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: "Slater, Joseph" <joe.slater@windriver.com>
Cc: "openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] vala.bbclass: add dependency on vala
Date: Tue, 24 Sep 2013 09:24:09 +0100	[thread overview]
Message-ID: <1380011049.18603.269.camel@ted> (raw)
In-Reply-To: <007BD92917A2324FA403BCF9A464CF843C51988E@ALA-MBB.corp.ad.wrs.com>

On Mon, 2013-09-23 at 21:42 +0000, Slater, Joseph wrote:
> From: Joe Slater [mailto:jslater@windriver.com] 
> Sent: Monday, September 23, 2013 1:53 PM
> To: MacLeod, Randy; Polk, Jeffrey
> Cc: lpd-eng-rr
> Subject: [PATCH 1/1] vala.bbclass: add dependency on vala
> 
> This class points the inheritor to directories in
> the target sysroot, so we want to be sure things
> like .vapi files are there.
> 
> Signed-off-by: Joe Slater <jslater@windriver.com>
> ---
>  meta/classes/vala.bbclass |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/meta/classes/vala.bbclass b/meta/classes/vala.bbclass
> index c7db08c..0a98dab 100644
> --- a/meta/classes/vala.bbclass
> +++ b/meta/classes/vala.bbclass
> @@ -1,9 +1,9 @@
>  # Vala has problems with multiple concurrent invocations
>  PARALLEL_MAKE = ""
>  
> -# Vala needs vala-native
> -DEPENDS += "vala-native"
> -DEPENDS_virtclass-native += "vala-native"
> +# Vala needs vala-native (and we need vala)
> +DEPENDS += "vala-native vala"
> +DEPENDS_class-native += "vala-native"

In class code this is a really bad idea. Why? Imagine a recipe which
does:

DEPENDS =+ "x"
DEPENDS_class-native = "y"

The += on the class-native above will not do what you think.

I'd recommend something like:

VALADEPENDS = "vala vala-native"
VALADEPENDS_class-native = "vala-native"
DEPENDS += "${VALADEPENDS}"

Most other classes actually use _append on DEPENDS to ensure consistent
behaviour.

Cheers,

Richard




      reply	other threads:[~2013-09-24  8:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-23 21:42 [PATCH 1/1] vala.bbclass: add dependency on vala Slater, Joseph
2013-09-24  8:24 ` Richard Purdie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1380011049.18603.269.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=joe.slater@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox