multilib: Set PN correctly on cross-canadian extension cases

Submitted by Richard Purdie on May 30, 2014, 12:31 p.m. | Patch ID: 72997


Message ID 1401453081.31309.26.camel@ted
State New
Headers show

Commit Message

Richard Purdie May 30, 2014, 12:31 p.m.
When we extended cross-canadian recipes with multilib, we were seeing failures
since PN was unchanged.

ERROR: Multiple versions of gcc-cross-canadian-i586 are due to be built
Only one version of a given PN should be built in any given build.
You likely need to set PREFERRED_VERSION_gcc-cross-canadian-i586 to
select the correct version or don't depend on multiple versions.

This change avoids that error.

Signed-off-by: Richard Purdie <>

Patch hide | download patch | download mbox

diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass
index 9a1cb1d..abefc79 100644
--- a/meta/classes/multilib.bbclass
+++ b/meta/classes/multilib.bbclass
@@ -26,6 +26,7 @@  python multilib_virtclass_handler () {
     if'cross-canadian',"MLPREFIX", variant + "-")
         override = ":virtclass-multilib-" + variant
+"PN", variant + "-" +"PN", False))"OVERRIDES","OVERRIDES", False) + override)