From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailgw01.hp-net.de (mailgw01.hp-net.de [213.15.0.25]) by mail.openembedded.org (Postfix) with ESMTP id 99A15605BA for ; Thu, 21 Jul 2016 13:09:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailgw01.hp-net.de (Postfix) with ESMTP id 6E56F22910F for ; Thu, 21 Jul 2016 15:09:53 +0200 (CEST) X-Virus-Scanned: Virusscanner at mailgw01 Received: from mailgw01.hp-net.de ([127.0.0.1]) by localhost (mailgw01.hp-net.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8WjiD5ra0NDk for ; Thu, 21 Jul 2016 15:09:53 +0200 (CEST) Received: from jv-de-dc-fideas01.vaillant.vhgroup.lan (jv-de-dc-fideas01.vaillant.vhgroup.lan [10.107.7.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailgw01.hp-net.de (Postfix) with ESMTPS id 59C0B22910E for ; Thu, 21 Jul 2016 15:09:53 +0200 (CEST) Received: from vadeff07.vaillant.vhgroup.lan (unknown [10.107.77.149]) by jv-de-dc-fideas01.vaillant.vhgroup.lan (Postfix) with ESMTPS for ; Thu, 21 Jul 2016 15:09:53 +0200 (CEST) Received: from ubuntu.vaillant.vhgroup.lan (10.107.185.224) by vadeff07.vaillant.vhgroup.lan (10.107.77.149) with Microsoft SMTP Server id 14.3.301.0; Thu, 21 Jul 2016 15:09:52 +0200 From: Sven Ebenfeld To: Date: Thu, 21 Jul 2016 15:09:47 +0200 Message-ID: <1469106587-2338-1-git-send-email-sven.ebenfeld@vaillant-group.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-OLX-Disclaimer: Done Cc: Sven Ebenfeld Subject: [meta-java][PATCH v2] openjdk-8: ignore wrong GCCVERSION-flag X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2016 13:09:55 -0000 Content-Type: text/plain 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 --- 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 089f907..33b7909 100644 --- a/recipes-core/openjdk/openjdk-8-common.inc +++ b/recipes-core/openjdk/openjdk-8-common.inc @@ -271,10 +271,12 @@ 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) + if extraflags: + return ''.join(extraflags) + return '' CFLAGS_append = " ${@version_specific_cflags(d)}" CXXFLAGS_append = " ${@version_specific_cflags(d)}" -- 1.9.1