From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 481F1773BA for ; Mon, 16 Nov 2015 05:18:12 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id tAG5I9Hv016137 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Sun, 15 Nov 2015 21:18:09 -0800 (PST) Received: from [128.224.162.138] (128.224.162.138) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.248.2; Sun, 15 Nov 2015 21:18:08 -0800 To: References: <1447409389-406-1-git-send-email-jian.liu@windriver.com> From: Jian Liu Message-ID: <564966FD.8020202@windriver.com> Date: Mon, 16 Nov 2015 13:17:49 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1447409389-406-1-git-send-email-jian.liu@windriver.com> Subject: Re: [PATCH] archiver.bbclass: fix an exception of the mode configured 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: , X-List-Received-Date: Mon, 16 Nov 2015 05:18:15 -0000 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit Hi all, Sorry for a mistake. Please ignore this patch Jian On 2015年11月13日 18:09, Jian Liu wrote: > gcc-source does not have the task do_configure, so if configured mode is set, > the task do_ar_configured depends on do_configure. > This will cause an error. > > Signed-off-by: Jian Liu > --- > archiver.bbclass | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > > diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass > index 41a552c..3d1952a 100644 > --- a/meta/classes/archiver.bbclass > +++ b/meta/classes/archiver.bbclass > @@ -73,8 +73,18 @@ python () { > # We can't use "addtask do_ar_configured after do_configure" since it > # will cause the deptask of do_populate_sysroot to run not matter what > # archives we need, so we add the depends here. > - d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_configure' % pn) > - d.appendVarFlag('do_deploy_archives', 'depends', ' %s:do_ar_configured' % pn) > + ## > + # For some specific packages like gcc-source, do_configure may be deleted. > + deltask = d.getVar('__BBDELTASKS', False) > + noexec = d.getVarFlag('do_configure', 'noexec') > + os.system("echo deltask=%s, noexec=%s, pn=%s >> /tmp/tasks.txt" %(deltask,noexec,pn)) > + #if 'do_configure' in (d.getVar('__BBDELTASKS', False) or []) or d.getVarFlag('do_configure', 'noexec') == '1': > + if d.getVarFlag('do_configure', 'noexec') == '1' or 'do_configure' not in d.getVar('__BBTASKS', False): > + pass > + else: > + bb.build.addtask('do_ar_configured', None, 'do_unpack_and_patch', d) > + d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_configure' % pn) > + d.appendVarFlag('do_deploy_archives', 'depends', ' %s:do_ar_configured' % pn) > elif ar_src: > bb.fatal("Invalid ARCHIVER_MODE[src]: %s" % ar_src) > > @@ -348,7 +358,6 @@ do_deploy_archives[sstate-outputdirs] = "${DEPLOY_DIR_SRC}" > > addtask do_ar_original after do_unpack > addtask do_ar_patched after do_unpack_and_patch > -addtask do_ar_configured after do_unpack_and_patch > addtask do_dumpdata > addtask do_ar_recipe > addtask do_deploy_archives before do_build