* [PATCH 0/1] Add do_configure as dependency only when it exists @ 2015-11-16 1:44 kai.kang 2015-11-16 1:44 ` [PATCH 1/1] archiver.bbclass: fix an exception of the mode configured kai.kang 2015-11-16 5:57 ` [PATCH 0/1] Add do_configure as dependency only when it exists Kang Kai 0 siblings, 2 replies; 3+ messages in thread From: kai.kang @ 2015-11-16 1:44 UTC (permalink / raw) To: openembedded-core From: Kai Kang <kai.kang@windriver.com> The following changes since commit fc45deac89ef63ca1c44e763c38ced7dfd72cbe1: build-appliance-image: Update to jethro head revision (2015-11-03 14:03:03 +0000) are available in the git repository at: git://git.yoctoproject.org/poky-contrib kangkai/archiver http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=kangkai/archiver Kai Kang (1): archiver.bbclass: fix an exception of the mode configured meta/classes/archiver.bbclass | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) -- 2.6.1 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] archiver.bbclass: fix an exception of the mode configured 2015-11-16 1:44 [PATCH 0/1] Add do_configure as dependency only when it exists kai.kang @ 2015-11-16 1:44 ` kai.kang 2015-11-16 5:57 ` [PATCH 0/1] Add do_configure as dependency only when it exists Kang Kai 1 sibling, 0 replies; 3+ messages in thread From: kai.kang @ 2015-11-16 1:44 UTC (permalink / raw) To: openembedded-core From: Kai Kang <kai.kang@windriver.com> If ARCHIVER_MODE[src] is set with 'configured', the task do_ar_configured depends on do_configure. Package gcc-source has deleted task do_configure, then causes error: | ERROR: Task do_ar_configured in .../meta/recipes-devtools/gcc/gcc-source_5.2.bb | depends upon non-existent task do_configure in .../meta/recipes-devtools/gcc/gcc-source_5.2.bb Only add the dependency when the task exits. Signed-off-by: Kai Kang <kai.kang@windriver.com> --- meta/classes/archiver.bbclass | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 41a552c..0874553 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass @@ -73,8 +73,13 @@ 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. + if 'do_configure' not in (d.getVar('__BBTASKS', False) or []): + pass + else: + 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) -- 2.6.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 0/1] Add do_configure as dependency only when it exists 2015-11-16 1:44 [PATCH 0/1] Add do_configure as dependency only when it exists kai.kang 2015-11-16 1:44 ` [PATCH 1/1] archiver.bbclass: fix an exception of the mode configured kai.kang @ 2015-11-16 5:57 ` Kang Kai 1 sibling, 0 replies; 3+ messages in thread From: Kang Kai @ 2015-11-16 5:57 UTC (permalink / raw) To: openembedded-core [-- Attachment #1: Type: text/plain, Size: 800 bytes --] On 2015年11月16日 09:44, kai.kang@windriver.com wrote: > From: Kai Kang <kai.kang@windriver.com> > > The following changes since commit fc45deac89ef63ca1c44e763c38ced7dfd72cbe1: > > build-appliance-image: Update to jethro head revision (2015-11-03 14:03:03 +0000) > > are available in the git repository at: > > git://git.yoctoproject.org/poky-contrib kangkai/archiver > http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=kangkai/archiver > > Kai Kang (1): > archiver.bbclass: fix an exception of the mode configured > > meta/classes/archiver.bbclass | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > This patch is originally from Jian. I saw he sent the patch just now, so please ignore this one. -- Regards, Neil | Kai Kang [-- Attachment #2: Type: text/html, Size: 1506 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-16 5:57 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-11-16 1:44 [PATCH 0/1] Add do_configure as dependency only when it exists kai.kang 2015-11-16 1:44 ` [PATCH 1/1] archiver.bbclass: fix an exception of the mode configured kai.kang 2015-11-16 5:57 ` [PATCH 0/1] Add do_configure as dependency only when it exists Kang Kai
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox