From patchwork Mon Dec 16 15:59:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 181741 Delivered-To: patch@linaro.org Received: by 2002:ac9:44c4:0:0:0:0:0 with SMTP id t4csp4481149och; Mon, 16 Dec 2019 08:01:42 -0800 (PST) X-Google-Smtp-Source: APXvYqw96P1d4N2QB61GIcE5O52ch5ptjKqyfUfSIHJfMRFQcFb0cHAb5iBzpG7eDrMWHN0xwwM7 X-Received: by 2002:a63:5657:: with SMTP id g23mr18841466pgm.452.1576512102502; Mon, 16 Dec 2019 08:01:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576512102; cv=none; d=google.com; s=arc-20160816; b=uYk/Er9FKJ4PoClardfejLph2nLM60i5Kj3cx9Wgi0CG2P/VJk2r1fFjOLC18SGwik wCMjKikAlzzuykm1RetKcXK9N1esm5aMg8j7kg8JPfJNadlNZ+Gw1JyJ8ka2QA2onEc9 srzyaUeZxBQZZaqYtC9Wyucrgqy5t8aM/Wuz+QgpTZEwR32R9Dho4tM9PKW0SN/Edsi8 zZUnIKnf/G+cMUsI4BF0Wy+usG6A7RWvbT/d8ki38NDBrq41PfC2SWRIF5Zdf4AWSrJU Q8NIdC6voQcuuIFjAo8G6x/QEcGYvEtj53qAvDkwzzuFMnVMHgHTmF8YQwfairQGU/XN d7oQ== 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:message-id:date :to:from:dkim-signature:delivered-to; bh=+k3vK0/YpEiC5VrM+DT6D0LTL4SoyH6ksyG4X9LJPv4=; b=ihzE1XRfGatlI4fFyZoZtk+dNIdXO+k8gI3apXJWUioHQYinPxrS1BAIyiONejqaW/ 491/Zt/yD1bC/XeUPIV4bueyRv54JW6JUQpzSbGuUQf7gQN/xs7uK/bc3WKKHXovc2Dl hd7LQ8lm6E7vlvXzPkHJltOoBeLz3PXilRfoMiHi85jDU/JvJyWl+ercheDo9qpPrTul nA//jcgvrcIdNGjyFhwRKfDN70i/t+rPnKBXZ7TsDRYkb0TpYe+DJlY4GpOHut3u+moa FGoHQHs/JyPK68AmTc31rnADJOZ3R6uysDbU59DEcciWYTkeNBvo8IYiwmHdnzzzvcWy B7dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="KjvVH+/8"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id e3si1156631pge.556.2019.12.16.08.01.42; Mon, 16 Dec 2019 08:01:42 -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=@gmail.com header.s=20161025 header.b="KjvVH+/8"; 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=QUARANTINE dis=NONE) header.from=gmail.com 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 8FFE67FDFC; Mon, 16 Dec 2019 16:00:42 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by mail.openembedded.org (Postfix) with ESMTP id B5ADA7FDB1 for ; Mon, 16 Dec 2019 16:00:18 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id bd4so4646890plb.8 for ; Mon, 16 Dec 2019 08:00:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=pPY31qSR6r6PrioBX4Nlcy8j62eWZMbSoMjOCDh4wlA=; b=KjvVH+/8g5GbgiyekQ9veFK75y6nhqwfiI3xtk8yWqrCS+ssJeJ/oz0u8GOAYDwddZ 4Gek1qProC12O0SlbDGSYTA//X80ElaVdXIV5ibbpGWQ6Ro7qHxmkQnMjf6gUjXrFQnS e3PozakB3Hb/jy4iaH2E+l+LKScWK5y2SCzuvdtYh/sH8z4jneB9idQnn2kkKyUYfNVY liK9FdL+PznaPoblZS6Pf3usAz74hUkBeDM0sqFzJ/2yaXAYjoMlaenHkj1Nhpkmwman 0m/LD2J8WHw+IkHgQKoFWGYGVZn8Mc0RE0I4R6znGFAbZ0T8DQsoyftn9DffPrjJ66P6 LJ7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=pPY31qSR6r6PrioBX4Nlcy8j62eWZMbSoMjOCDh4wlA=; b=jBnjHkYnH4b5X5aQM6MB/T9LIHAB9IZ6Kv3yEov0Um/M0y4iqYuUuQiOyfH8ZEJrsM 5vSyY00eu7kJ2emkXa1X7PCk2s6OVtbHCFupkbYjYP8rekle6c9wiDprPmYjvFmvNVmI Aforx9z8UjN/3XBAXHw+BvjSKa+xRIbvFATYyWqOVspRRRgZbVui8lEt82SprirDUxrM edWF7IYFio0qsbH2nq7nXARjZCCaKvCA5VmVB6sO5jFElCEFXm1Pdkc6AQDuevkgmxNt qE2RmOLm9H2eUI8JUv6tfuQYvXfOLMjf3P1qpqiYCmx6qNMfirCflvIU6g20JLF5tTbu K32A== X-Gm-Message-State: APjAAAVI1oHt9QmK6aAoGGH5zVYYnUd5M3nmSRzHIdgKHsIPGUI8YT90 ra+Jge85EQouv13kWjAZpSC1brxP0kw= X-Received: by 2002:a17:902:9897:: with SMTP id s23mr16813280plp.193.1576512019520; Mon, 16 Dec 2019 08:00:19 -0800 (PST) Received: from akuster-ThinkPad-T460s.mvista.com ([2601:202:4180:a5c0:e5c5:31c9:a010:f145]) by smtp.gmail.com with ESMTPSA id g6sm19568697pjl.25.2019.12.16.08.00.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Dec 2019 08:00:19 -0800 (PST) From: Armin Kuster To: openembedded-core@lists.openembedded.org Date: Mon, 16 Dec 2019 07:59:58 -0800 Message-Id: <72f44bef3867295f73f8b91e17294b2876447c89.1576511913.git.akuster808@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [OE-core] [thud 08/18] 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 Signed-off-by: Armin Kuster --- meta/classes/cve-check.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 -- _______________________________________________ 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: