]> code.ossystems Code Review - openembedded-core.git/commitdiff
mulitlib.bbclass: Ensure correct value of ALL_MULTILIB_PACKAGE_ARCHS is preserved
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 Apr 2012 21:46:17 +0000 (22:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 Apr 2012 21:52:04 +0000 (22:52 +0100)
The value of ALL_MULTILIB_PACKAGE_ARCHS needs to be consistent both
in multilib extended recipes and in normal context. If this isn't the
case it can lead to inconsistent configuration files at a minimum.

This patch ensures the value is preserved during the class extension code
since computing it after that point is hard.

[YOCTO #2290]

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

index 61b77655f9e707c708b629360f78b11a8c25b17e..c2d2f85a121fbcd6e62f1c72cc399106815550c7 100644 (file)
@@ -20,6 +20,9 @@ python multilib_virtclass_handler () {
         val=e.data.getVar(name, True)
         if val:
             e.data.setVar(name + "_MULTILIB_ORIGINAL", val)
+
+    # Expand this since this won't work correctly once we set a multilib into place
+    e.data.setVar("ALL_MULTILIB_PACKAGE_ARCHS", e.data.getVar("ALL_MULTILIB_PACKAGE_ARCHS", True))
  
     override = ":virtclass-multilib-" + variant