From patchwork Wed Nov 6 15:37:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikko Rapeli X-Patchwork-Id: 178738 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp872330ilf; Wed, 6 Nov 2019 08:53:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzGse2fn42BsZWgP83b5XgNBmZKdSVi8+jz2qwXYOZDuS8OvRYro1FRvq65rssLJAtX6V2a X-Received: by 2002:a62:1dc6:: with SMTP id d189mr4617637pfd.100.1573059209945; Wed, 06 Nov 2019 08:53:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573059209; cv=none; d=google.com; s=arc-20160816; b=iaIyNxnxiNrHmkwWwJnodJUSj9RkMwaoymry6hmM71MZkEwQwRieOCfsYxEwMzTTlO Ep53viwlCFGVsB0rPG0KWPNvKLjkEZE7JYq289DhOCTKgjUSj/P2mbVAqsUPxU4Gh/Mu PHx7rMVfnt2x76+TPGsFwVfEEneUn2NdzotYoDceiLaFDPnEVVrb3KNqTxP6NG2xtgP4 zo3AzY3XTl+SLbn/83k+Ph5zErHE7uHmbpBUdCQUaT013ZX09wjB2IH0MOTpEKzLqjKS 00SIKyzZijBPFs/URwAEc8pBewYcHUIAJEqoJEnKcBqeKFumdzgnvFM9GlO5V6dfEiqA Z63A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:references :in-reply-to:message-id:date:to:from:dkim-signature:delivered-to; bh=VW8Q7P+XH2AuNW1J2VDj1aLL+wHtwrdByKYs3gIXJKo=; b=Vz0uU6Y+ByipNRFiONktFXrwaSPLSKmPE0kIxUz+zkqN0cvaB+rJ9tu6vg0e7Ts9Oa L63MQ8LHaiSJL4x55EQ0TeT/QqNBExY3+jxVGnyumE2uenQmNO6pGdWzlB1UiDKvAKmd 8sle4ZHYQRNt/ZDSvo93qJ/JuNXVdmRB8qYquCZkHol+EdnQwdJIYgYv4GHh2xRLHJZX 9D2sXKFhCGTYRVal0BpDgAyT4pI3SkR/aoTpbWvknWXtSr7RO+H1mWUrgjORcO7Y9l5k eH71i+uqs3bZWfExo+CI0ADJZg3RD0EstycyBYU+ZIKB6ziE4rYpMSiEMyVQml6SEXNw qv7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kapsi.fi header.s=20161220 header.b=UMRGPJc8; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bmw.de Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id p5si1805120pgk.393.2019.11.06.08.53.29; Wed, 06 Nov 2019 08:53:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kapsi.fi header.s=20161220 header.b=UMRGPJc8; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bmw.de Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id AFC207F8BD; Wed, 6 Nov 2019 16:53:09 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail.kapsi.fi (mail.kapsi.fi [91.232.154.25]) by mail.openembedded.org (Postfix) with ESMTP id 903687F88F for ; Wed, 6 Nov 2019 15:38:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=IB0Se0/PPjv+a0I7BUhojFd/G01Ke9y481dOtXNbpYo=; b=UMRGPJc8gpRzCTwWy4KDrJZEWP LAMQVXb0RRPSQCHqH+9pdx9BOKT6JaWQhWcDIcNBzHCOAlVHXtziVIWteK0fC9ALypl1Pn01zm9oT PozSYTDxk+UsCT+4ebLi3/XJ4MwgyASksR9EO9yptsH1FrQ620rAJ8JyPraqJXmDO7zHKDaVzcOl1 XAntjdu5eD2lAPGYLnZ84qU8b+pUQzyr0I9jfEPmWfFF+YIzvWHwVrVd0PqCOsv+iJSkUbvqoFDtq 9VKNiBEFJyDYHLqOpvt2MEZfww9JPRw+kSckyK31l+ULU624Q8Vw0FWKMh/snhK0STrpwkzSCmxvF pmq5eEjQ==; Received: from kapsi.fi ([91.232.154.11] helo=lakka.kapsi.fi) by mail.kapsi.fi with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iSNOa-0000A7-1p; Wed, 06 Nov 2019 17:38:56 +0200 Received: from mcfrisk by lakka.kapsi.fi with local (Exim 4.84_2) (envelope-from ) id 1iSNO6-0007Xm-6Q; Wed, 06 Nov 2019 17:38:26 +0200 From: Mikko Rapeli To: openembedded-core@lists.openembedded.org Date: Wed, 6 Nov 2019 17:37:44 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: X-Rspam-Score: 6.0 (++++++) X-Rspam-Report: Action: add header Symbol: ARC_NA(0.00) Symbol: DMARC_POLICY_SOFTFAIL(0.10) Symbol: R_SPF_NEUTRAL(0.00) Symbol: FROM_HAS_DN(0.00) Symbol: TO_DN_SOME(0.00) Symbol: MULTIPLE_UNIQUE_HEADERS(4.89) Symbol: MIME_GOOD(-0.10) Symbol: TO_MATCH_ENVRCPT_ALL(0.00) Symbol: RCPT_COUNT_THREE(0.00) Symbol: RCVD_TLS_LAST(0.00) Symbol: MID_CONTAINS_FROM(1.00) Symbol: NEURAL_HAM(-0.00) Symbol: IP_SCORE(-0.15) Symbol: FORGED_SENDER(0.30) Symbol: R_DKIM_NA(0.00) Symbol: MIME_TRACE(0.00) Symbol: ASN(0.00) Symbol: FROM_NEQ_ENVFROM(0.00) Symbol: RCVD_COUNT_TWO(0.00) Message: (SPF): spf neutral Message-ID: b6af9b08acf718d80139a894479b688216f32012.1573047194.git.mikko.rapeli@bmw.de X-Rspam-Status: Yes X-Rspam-Bar: ++++++ X-SA-Exim-Connect-IP: 91.232.154.11 X-SA-Exim-Mail-From: mcfrisk@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Subject: [OE-core] [PATCH RFC CFH][sumo 29/47] cve-check: failure to parse versions should be more visible X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Ross Burton Signed-off-by: Richard Purdie --- meta/classes/cve-check.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index f87bcc9..1c8b222 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass @@ -222,7 +222,7 @@ def check_cves(d, patched_cves): to_append_start = (operator_start == '>=' and LooseVersion(pv) >= LooseVersion(version_start)) to_append_start |= (operator_start == '>' and LooseVersion(pv) > LooseVersion(version_start)) except: - bb.note("%s: Failed to compare %s %s %s for %s" % + bb.warn("%s: Failed to compare %s %s %s for %s" % (product, pv, operator_start, version_start, cve)) to_append_start = False else: @@ -233,7 +233,7 @@ def check_cves(d, patched_cves): to_append_end = (operator_end == '<=' and LooseVersion(pv) <= LooseVersion(version_end)) to_append_end |= (operator_end == '<' and LooseVersion(pv) < LooseVersion(version_end)) except: - bb.note("%s: Failed to compare %s %s %s for %s" % + bb.warn("%s: Failed to compare %s %s %s for %s" % (product, pv, operator_end, version_end, cve)) to_append_end = False else: