summaryrefslogtreecommitdiff
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorLei Liu <lei.liu2@windriver.com>2013-11-21 00:54:00 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-22 13:38:56 +0000
commit17a432dc059e24ba10d4baec988828c0025a5e46 (patch)
tree280cc6e20e7adaca08176d8b0c29f1c79af3844c /meta/classes/base.bbclass
parent5dd8653fdcda5e0e8b4f3c37a46f357bc97ec66c (diff)
downloadopenembedded-core-17a432dc059e24ba10d4baec988828c0025a5e46.tar.gz
openembedded-core-17a432dc059e24ba10d4baec988828c0025a5e46.tar.bz2
openembedded-core-17a432dc059e24ba10d4baec988828c0025a5e46.zip
base.bbclass: Fix incorrect setting of multilib PREFERRED_PROVIDER_virtual_pkg
PREFERRED_PROVIDER_virtual_pkg has been incorrectly set with more than one multilib prefixes. For example, if we have two alternative multilibs lib64 and lib32, PREFERRED_PROVIDER_virtual_pkg will be set to lib32-lib64-pkg or lib64-lib32-pkg, depending on which multilib shows up first in the list. Signed-off-by: Lei Liu <lei.liu2@windriver.com> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 93bc700a50..d0793b671e 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -210,7 +210,7 @@ def preferred_ml_updates(d):
virt = "virtual/"
for p in prefixes:
if pkg != "kernel":
- val = p + "-" + val
+ newval = p + "-" + val
# implement variable keys
localdata = bb.data.createCopy(d)
@@ -219,12 +219,12 @@ def preferred_ml_updates(d):
bb.data.update_data(localdata)
newname = localdata.expand(prov)
if newname != prov and not d.getVar(newname, False):
- d.setVar(newname, localdata.expand(val))
+ d.setVar(newname, localdata.expand(newval))
# implement alternative multilib name
newname = localdata.expand("PREFERRED_PROVIDER_" + virt + p + "-" + pkg)
if not d.getVar(newname, False):
- d.setVar(newname, val)
+ d.setVar(newname, newval)
# Avoid future variable key expansion
provexp = d.expand(prov)
if prov != provexp and d.getVar(prov, False):