During my recipe parsing, GCCVERSION in the cross case seems to be 'l' this leads to a ValueError during recipe parsing. Therefore check type before trying to parse the version flag.
Signed-off-by: Sven Ebenfeld <[email protected]> --- recipes-core/openjdk/openjdk-8-common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc index 089f907..f83da69 100644 --- a/recipes-core/openjdk/openjdk-8-common.inc +++ b/recipes-core/openjdk/openjdk-8-common.inc @@ -271,7 +271,7 @@ def version_specific_cflags(d): # doesn't work anyway. version = d.getVar('GCCVERSION', expand=True)[0] - if int(version) >= 4: + if version.isdigit() and int(version) >= 4: extraflags = d.getVar('FLAGS_GCC%d' % int(version), True) return ''.join(extraflags) -- 1.9.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
