[oe-commits] Richard Purdie : nativesdk.bbclass: Fix various DEPENDS handling bugs and add to OVERRIDES (from poky)

git version control git at git.openembedded.org
Thu Feb 25 20:27:22 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 6338989af8aed24ab9228c78e2f68a4e8290075c
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=6338989af8aed24ab9228c78e2f68a4e8290075c

Author: Richard Purdie <rpurdie at linux.intel.com>
Date:   Thu Feb 25 20:27:09 2010 +0000

nativesdk.bbclass: Fix various DEPENDS handling bugs and add to OVERRIDES (from poky)

Signed-off-by: Richard Purdie <rpurdie at linux.intel.com>

---

 classes/nativesdk.bbclass |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/classes/nativesdk.bbclass b/classes/nativesdk.bbclass
index 080adc5..75f5790 100644
--- a/classes/nativesdk.bbclass
+++ b/classes/nativesdk.bbclass
@@ -51,9 +51,12 @@ FILES_${PN}-dbg += "${prefix}/.debug \
 export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig"
 export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
 
+ORIG_DEPENDS := "${DEPENDS}"
+DEPENDS_virtclass-nativesdk ?= "${ORIG_DEPENDS}"
+
 python __anonymous () {
     pn = bb.data.getVar("PN", d, True)
-    depends = bb.data.getVar("DEPENDS", d, True)
+    depends = bb.data.getVar("DEPENDS_virtclass-nativesdk", d, True)
     deps = bb.utils.explode_deps(depends)
     newdeps = []
     for dep in deps:
@@ -65,7 +68,7 @@ python __anonymous () {
             newdeps.append(dep + "-nativesdk")
         else:
             newdeps.append(dep)
-    bb.data.setVar("DEPENDS", " ".join(newdeps), d)
+    bb.data.setVar("DEPENDS_virtclass-nativesdk", " ".join(newdeps), d)
     provides = bb.data.getVar("PROVIDES", d, True)
     for prov in provides.split():
         if prov.find(pn) != -1:
@@ -73,6 +76,7 @@ python __anonymous () {
         if not prov.endswith("-nativesdk"):
             provides = provides.replace(prov, prov + "-nativesdk")
     bb.data.setVar("PROVIDES", provides, d)
+    bb.data.setVar("OVERRIDES", bb.data.getVar("OVERRIDES", d, False) + ":virtclass-nativesdk", d)
 }
 
 





More information about the Openembedded-commits mailing list