From patchwork Mon Dec 16 15:59:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 181742 Delivered-To: patch@linaro.org Received: by 2002:ac9:44c4:0:0:0:0:0 with SMTP id t4csp4481396och; Mon, 16 Dec 2019 08:01:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxpDlr3tFRXT2Es/4Hc1Ojycdc3BXaVq1nlertIH+8DPTC5kIfUkaNt6LauPN/I+cEOlMT+ X-Received: by 2002:a17:90a:26e1:: with SMTP id m88mr18737028pje.101.1576512111983; Mon, 16 Dec 2019 08:01:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576512111; cv=none; d=google.com; s=arc-20160816; b=KtdZZvE+ZLDhLqYzguKjTR1adib5HW1kVJMIYpddWp8SOg+QwUgP/YAfD6P8/QZpj6 BWVbFH6VmscXy5lBJMgkHlRnmhxLhYnUKLwXYOSrXQ0meLEdx0Vn1NHCjT8jTV8HZ5ei 9ZAgfuw0XmYNo5LcM1I5zZxXLH0K7830QBJoRmqxw2rC9x6NcTb3yHxOZv5y2wrG8KcX UkUMmlIycWTIKTF3Qmta3wwiYNhkE1u/5FWwLSJRIa6rh6KeVdsMcGJDk6SH9WivaYxb IpEowVyQ1mZ41+B7zG9qPIqDI26b3kST7ylkLEUL+aTCSxn6sbtns/5XjPP9Mn9mI0qL HoQg== 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=qgzTs53dpxeh0JcPmlCNLvC92jdJZJjPYxztCoNerj4=; b=PWAQwUDjtd3zNK173lXfworG592uy+5tlSAjpZYjamrmjzPAuXx9Oad/IM/CjmA5bW nGuPUqbja1+YF20EJZBjcJfBKA2zy5ff54EmThYPUqihz1j2ZiscONdKgTMMUbcJJoo9 UMJsPEq2r7dPpd4XGCFQER7UKMkQM123h/kic964X8P9iitlREgAocCxCGwOl62n2HMY dIL2oenw5ydVMP7hRxClIVDoF5ZnbGus2ivdT13aGY+NhrPYcEY0+zhTPCDaljcrvdVP V9OdaRrenFw3rB9v6WpNTrhe3DPYN/4zFGBREjgKauKo3Hw120TqotoUthUkJ2YFkA80 6Fgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=R658k+aB; 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 o4si16562611plk.52.2019.12.16.08.01.51; Mon, 16 Dec 2019 08:01:51 -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=R658k+aB; 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 C8A317FE01; Mon, 16 Dec 2019 16:00:43 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mail.openembedded.org (Postfix) with ESMTP id 7F88C7FDC3 for ; Mon, 16 Dec 2019 16:00:19 +0000 (UTC) Received: by mail-pl1-f175.google.com with SMTP id az3so4638631plb.11 for ; Mon, 16 Dec 2019 08:00:21 -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=LuP2wiFsof9rpbca9j7vIN1wkcfCRmcayt1itdNjwW4=; b=R658k+aBQaJWNRgjiKw+LcqVvVMNIdxlyrNXeVPRlUU0RIv8/bPit9v0p37+26vY2n c2MsMY50ZHtdBguLshP+hWPm5zCX94WzoX9EIMje5Qo/mcuquPYqKFN0egNUIBtce/IM tjmgJLdxhKNDRqjf9R3GGp05zStbksM94HXTNJ5yhrVLgOe/dLB8lvk7bYp2idWHDrQf EwJNovO5Dmb0hkkV6ivAs/KTvA5CUDZG2RB7PkinjWhZeQsFNpWWnkuaUmmT5064WTvz F0u15CY8BsbNCP5eJbi22AXyCaEIU3bnqeoyYu1kFJkcVvZeE2uakYH73KGtcTau6Zpi MSTA== 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=LuP2wiFsof9rpbca9j7vIN1wkcfCRmcayt1itdNjwW4=; b=N/4SYm8FhMO8xIKAd9ZaC0vPegF64SK1e467ZUYFVD+XAPL1o5uUoYoVidsuYIX6YT illxMGKZUfheUQquvI2My5ThFNfWdQMR2y9xQUUn1PmtQL787rGJgNJs7C6HuSYGJ08m lVcSmMnTHl2xaH+90mBKDSgC6eQ4I9YsWgXGOetPjabH7rhk4kxlktQ0UynIkypPWynd k1l7GpqN76Ga7cKgqDz6BMzf3ou4YKsYji1swJiR3A3SYcn4WvoV0PQDy1k2A35Neg95 2vneiQGkYX7DeNrm0ise3d8ntXTSWaQ/O5QnxEcqU7kSHIKRMjHUQ4TPb91UwfvfTfGj kJBA== X-Gm-Message-State: APjAAAUbPMq/6+6A8vbmQdsArWJCk9cMfeVyDnRNek0DP7rs//pLUG3+ a+IpZ9BR1nNzHkIDJFsii+cR9rkkksI= X-Received: by 2002:a17:902:8649:: with SMTP id y9mr16854539plt.67.1576512020546; Mon, 16 Dec 2019 08:00:20 -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.19 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:59 -0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [OE-core] [thud 09/18] cve-check: we don't actually need to unpack to check 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 The patch scanner works with patch files in the layer, not in the workdir, so it doesn't need to unpack. (From OE-Core rev: 2cba6ada970deb5156e1ba0182f4f372851e3c17) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster --- meta/classes/cve-check.bbclass | 3 +-- 1 file changed, 1 insertion(+), 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 1c8b222..3326944 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass @@ -62,7 +62,7 @@ python do_cve_check () { } -addtask cve_check after do_unpack before do_build +addtask cve_check before do_build do_cve_check[depends] = "cve-update-db-native:do_populate_cve_db" do_cve_check[nostamp] = "1" @@ -70,7 +70,6 @@ python cve_check_cleanup () { """ Delete the file used to gather all the CVE information. """ - bb.utils.remove(e.data.getVar("CVE_CHECK_TMP_FILE")) }