fix do_configure task hash issues with mesa
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
PATCH 1/1 mesa: fix configuration rewrite
to change just the PACKAGECONFIG[x11] setting (without expansion), instead of overwriting EXTRA_OECONF (with expansion).
Signed-off-by Matt Madison <[email protected]>
--- recipes-graphics/mesa/mesa_%.bbappend | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
recipes-graphics/mesa/mesa_%.bbappend +2 -3
@@ -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