Patchwork FW: [v2][PATCH 1/1] vala.bbclass: add dependency on vala

login
register
mail settings
Submitter Slater, Joseph
Date Oct. 24, 2013, 6:28 p.m.
Message ID <007BD92917A2324FA403BCF9A464CF8455BBBF3C@ALA-MBB.corp.ad.wrs.com>
Download mbox | patch
Permalink /patch/60479/
State New
Headers show

Comments

Slater, Joseph - Oct. 24, 2013, 6:28 p.m.
I sent the following a while ago and haven't seen any comments,
but I think it parallels the suggestions made about v1.

The patch has not been put into oe-core master.

Joe


-----Original Message-----
From: Joe Slater [mailto:jslater@windriver.com] 
Sent: Thursday, September 26, 2013 11:53 AM
To: openembedded-core@lists.openembedded.org
Cc: MacLeod, Randy; Slater, Joseph
Subject: [v2][PATCH 1/1] vala.bbclass: add dependency on vala

This class points the inheritor, if it is a target,
to directories in the target sysroot, so we want to
be sure the .vapi files are there.

Signed-off-by: Joe Slater <jslater@windriver.com>
---
 meta/classes/vala.bbclass |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

Patch

diff --git a/meta/classes/vala.bbclass b/meta/classes/vala.bbclass
index c7db08c..3b70a04 100644
--- a/meta/classes/vala.bbclass
+++ b/meta/classes/vala.bbclass
@@ -1,9 +1,11 @@ 
 # Vala has problems with multiple concurrent invocations
 PARALLEL_MAKE = ""
 
-# Vala needs vala-native
-DEPENDS += "vala-native"
-DEPENDS_virtclass-native += "vala-native"
+# Everyone needs vala-native and targets need vala, too,
+# because that is where target builds look for .vapi files.
+#
+VALADEPENDS_class-target = "vala"
+DEPENDS_append = " vala-native ${VALADEPENDS}"
 
 # Our patched version of Vala looks in STAGING_DATADIR for .vapi files
 export STAGING_DATADIR