From patchwork Fri Sep 28 13:45:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 147789 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp785984lji; Fri, 28 Sep 2018 06:45:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV63YJ8Fiv7GHRKajKuBxKxfpH8aybpz3bVFGWSeP+P4udyXnH25PzA5eUrmI6ScG11/hekyr X-Received: by 2002:a63:2f81:: with SMTP id v123-v6mr6751072pgv.223.1538142352804; Fri, 28 Sep 2018 06:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538142352; cv=none; d=google.com; s=arc-20160816; b=eF0TZPrjUJdLKweCTYhykShkmtF+6wT5T8iuSdrNM9hWRP4KP8Q7qM5OLufrrvC+u8 wYpPm7sqGUjryyR0raIAf3Svn0bDXrhmq6uCGCqsUXb3AUD7s3vzWq0w/7+rKa33J0rO Mzi7GlXYVbWJ4RaBexqnUg11zFRbAMMZJaQX3qSRZgsiueDcYyX9fMIHMxnWZxxN+yUP LJr5shik+aDfPBnhFFYkGpG7cRE7jVtipdwFi86cpDDHQcrZSWsX/jCM8aMWhT7UC1no hv1H8tWNmUzU3UOGFVs1hnhJw/c5zI3XW29BreADjzi7qBGbd7+ZQ4i7XeVRDbtdTHUr +Xbg== 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:message-id:date:to:from:dkim-signature :delivered-to; bh=Ik2HLE8T94pu5wBPTwo8NC7xYKFRxluVXMQmxfnRapo=; b=XrL/pOweQ9wcpqYxc5Vf0k5LqU22WOAa6YO6qKAwOZEG7lF7Vx8gWwr+i2Mj4r5aN1 G7oAltqhxeBi53MzGKWrjg/t5rTTJo3OzT7UBz6a6zTAIl5QhMDUHMnGZxESD+Q5Wqkx eCVe7qNNj2cjPRIodRVEHnlXd/BPlW00vBYXZMLmA5kfvKJu10b7zQeRXoahNVXfFRoX dcg9BGq1N3SxRXDx4G1SfHV0jpH/ejyOwEImLCkl/pp2pMOekJ9VwSOkFMSpM+Z3qrWC 0IxfRMKMCM40J0UVIFk3ueQskVMHXKwY317xjcduS5KsfPP5oAS9hwsye6uHL8QnLomS PxIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="dX/AJKPy"; 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=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id h69-v6si4622298pge.13.2018.09.28.06.45.52; Fri, 28 Sep 2018 06:45:52 -0700 (PDT) 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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="dX/AJKPy"; 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=intel.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 66489799C6; Fri, 28 Sep 2018 13:45:47 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by mail.openembedded.org (Postfix) with ESMTP id 31D3874C97 for ; Fri, 28 Sep 2018 13:45:44 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id y8-v6so6469922wrh.7 for ; Fri, 28 Sep 2018 06:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=7B1/eHnybHgJUVsD0T1KQ4MUE1SbFJIJY1mkv6Tqo7Q=; b=dX/AJKPyAyfTsGw1cSxRWOwWPUOcZTKGnjEgD28aaJgjcTPjWl+au7xe+icjE6DrcQ PTLsNCOGdIGCxw/gsAQxr4FzWgYDjx5nHL9vMDYlErGqfqx2s/Fc79Y9sjUWWVNKgifL 8Yqlpia/7BNFScsLPq+lGYCJJUgxZaAPlj3pfM3eZPK/zDcpGP7on1T7Gf7qFfGyKqUL iw4LenFl0D9KcFwJfQWaQ1ykCU/6+b/XSYKl/LukhNugF2RApoH7ipLmPMB/f1leBB1P iYLhklo9Er3q33UH4aHKkjk+y3c1MuL3fpTySMX0pgwb6z0SBeNbCW00j3RXgzu/8zXr RWSQ== 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; bh=7B1/eHnybHgJUVsD0T1KQ4MUE1SbFJIJY1mkv6Tqo7Q=; b=QdBE2v0erA1QD/KtTbbfrzq0vfk/15SRxah07svLUIiPRa2mAmbmRX2b28a2xMYIwt lauuKLVbYcUZ6dPbupXtyvG4K3s3xIxqeRT8b0RoCGaHKsBy2KLfl4U2CYJ+CdifwrN0 rXLfIPUEr8FwhWOpHeEotoqftxHcaqORfsj6ozJERfIvHuKpLLadYJUqELGpcOJQR8Ap fbJfRFEd1NUcsLcDAmOLD0QAUKpXwuNMQT2D+/0Pt6cDgljzaBoBWehIiTfspWn/Bbw1 JgVOyPUHreR/j8UyC4oXMLnXAm4q8KG271M1Ni2V59w1sV7qZzKYmR/mvAxI/qOi8lSV okEw== X-Gm-Message-State: ABuFfoikumIRcDg1+JY3JkyJFWJWmUgfeyJnR/16Ttaoi4lccWWGGU+I Rx/cr7jTl2SwvtK0d/MTWPlw+pdN304= X-Received: by 2002:adf:a708:: with SMTP id c8-v6mr12972964wrd.56.1538142345085; Fri, 28 Sep 2018 06:45:45 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id b138-v6sm2016405wmb.1.2018.09.28.06.45.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Sep 2018 06:45:43 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Fri, 28 Sep 2018 14:45:40 +0100 Message-Id: <20180928134541.1370-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH 1/2] archiver: check tasks exist before adding dependencies 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 Some recipes don't have do_configure, or have them but are marked as noexec. Check for their existance before hooking up dependencies. [ YOCTO #12868 ] Signed-off-by: Ross Burton --- meta/classes/archiver.bbclass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 31c9b7eb4b6..7c3e701e704 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass @@ -98,9 +98,12 @@ python () { # There is a corner case with "gcc-source-${PV}" recipes, they don't have # the "do_configure" task, so we need to use "do_preconfigure" - if pn.startswith("gcc-source-"): + def hasTask(task): + return bool(d.getVarFlag(task, "task", False)) and not bool(d.getVarFlag(task, "noexec", False)) + + if hasTask("do_preconfigure"): d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_preconfigure' % pn) - else: + elif hasTask("do_configure"): d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_configure' % pn) d.appendVarFlag('do_deploy_archives', 'depends', ' %s:do_ar_configured' % pn)