]> code.ossystems Code Review - openembedded-core.git/commitdiff
archiver: Fix ASSUME_PROVIDED issues
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 9 Apr 2016 22:16:47 +0000 (23:16 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 9 Apr 2016 22:17:52 +0000 (23:17 +0100)
Currently the dependencies injected by this class for recipes in ASSUME_PROVIDED
e.g. tar-native or chrpath-native are ignored. We need to use their "replacement"
names, e.g. tar-replacement-native.

This avoids broken archives and sstate failures with these recipes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/archiver.bbclass

index 15d2d044e4baa13d0f7c5c65ff9708bf51a0acd3..89a24d97b46a0fc5dabf4173d3055fba1519e6ee 100644 (file)
@@ -53,6 +53,12 @@ do_deploy_all_archives[dirs] = "${WORKDIR}"
 
 python () {
     pn = d.getVar('PN', True)
+    assume_provided = (d.getVar("ASSUME_PROVIDED", True) or "").split()
+    if pn in assume_provided:
+        for p in d.getVar("PROVIDES", True).split():
+            if p != pn:
+                pn = p
+                break
 
     included, reason = copyleft_should_include(d)
     if not included: