Skip to contentSkip to conversation

fix do_configure task hash issues with mesa

PATCH New Matt Madison 1 participant 2 messages May 16, 2017

lore
Share & tools
lore
#0 lore raw

cover fix do_configure task hash issues with mesa

In updating my distro to pyro, mesa is getting needlessly rebuilt for my i.mx6 targets because EXTRA_OECONF is getting expanded as part of the configuration replacement, causing build paths to be included in the value of that variable.

This could be happening with earlier versions, too, but is more noticeable now with recipe-specific sysroots.

Fixed this by doing the string replacement just on the relevant PACKAGECONFIG flag, and by not expanding the value in d.getVar().

Matt Madison (1):
mesa: fix configuration rewrite

 recipes-graphics/mesa/mesa_%.bbappend | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 mesa: fix configuration rewrite

to change just the PACKAGECONFIG[x11] setting (without expansion), instead of overwriting EXTRA_OECONF (with expansion).

---
 recipes-graphics/mesa/mesa_%.bbappend | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
recipes-graphics/mesa/mesa_%.bbappend +2 -3
index 7d9d345..eaa94ee 100644
@@ -9,9 +9,8 @@ python () {
     if "imxgpu2d" not in overrides:
         return
 
-    extra_oeconf = d.getVar("EXTRA_OECONF", True)
-    extra_oeconf = extra_oeconf.replace("--enable-glx-tls", "--enable-glx")
-    d.setVar("EXTRA_OECONF", extra_oeconf)
+    x11flag = d.getVarFlag("PACKAGECONFIG", "x11", False)
+    d.setVarFlag("PACKAGECONFIG", "x11", x11flag.replace("--enable-glx-tls", "--enable-glx"))
 }
 
 # Enable Etnaviv support
Signature · 1 line
2.7.4