[oe] [meta-java][PATCH v3] openjdk-8: ignore wrong GCCVERSION-flag

Ebenfeld, Sven sven.ebenfeld at vaillant-group.com
Mon Aug 1 06:19:05 UTC 2016


What is about this patch?
I see it's archived but not merged. My builds of the fido branch are failing
without this patch.

Best Regards,

Sven Ebenfeld
IRE-S CoC Connectivity & Controls - Technology Advisor Network Technologies
& Security
Vaillant


-----Original Message-----
From: Sven Ebenfeld [mailto:sven.ebenfeld at vaillant-group.com] 
Sent: Monday, July 25, 2016 8:17 AM
To: openembedded-devel at lists.openembedded.org
Cc: Ebenfeld, Sven <sven.ebenfeld at vaillant-group.com>
Subject: [meta-java][PATCH v3] openjdk-8: ignore wrong GCCVERSION-flag

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 <sven.ebenfeld at vaillant-group.com>
---
 recipes-core/openjdk/openjdk-8-common.inc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/recipes-core/openjdk/openjdk-8-common.inc
b/recipes-core/openjdk/openjdk-8-common.inc
index 7ad802a..c2f9eb4 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -271,8 +271,10 @@ def version_specific_cflags(d):
         # doesn't work anyway.
         version = d.getVar('GCCVERSION', expand=True)[0]
 
-    extraflags = d.getVar('FLAGS_GCC%d' % int(version), True) or ''
-    return extraflags
+    if version.isdigit():
+        extraflags = d.getVar('FLAGS_GCC%d' % int(version), True) or ''
+        return extraflags
+    return ''
 
 CFLAGS_append = " ${@version_specific_cflags(d)}"
 CXXFLAGS_append = " ${@version_specific_cflags(d)}"
--
1.9.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5473 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20160801/e6d00aca/attachment-0002.p7s>


More information about the Openembedded-devel mailing list