All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-qt5][PATCH v2] qt5-ptest.inc: fix qtxmlpatterns:do_install_ptest out-of-order call
@ 2017-10-18 18:42 Denys Dmytriyenko
  2017-10-20 22:54 ` Martin Jansa
  0 siblings, 1 reply; 3+ messages in thread
From: Denys Dmytriyenko @ 2017-10-18 18:42 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Denys Dmytriyenko

From: Denys Dmytriyenko <denys@ti.com>

ptest.bbclass provides a set of standard do_*_ptest_base tasks. Each of
them calls a corresponding regular do_*_ptest task, that components are
supposed to override for own implementation. When PTEST_ENABLED is not
set, an anonymous python function removes all do_*_ptest_base tasks from
the queue. qt5-ptest.inc adds a special case for do_populate_sysroot and
re-arranges the order or ptest tasks due to that. But, unfortunately,
do_install_ptest was added directly, not do_install_ptest_base, hence when
"ptest" is disabled and all other do_*_ptest_base tasks are removed, this
one do_install_ptest task is left w/o dependencies and gets scheduled for
execution very early on, even before pseudo-native gets built and stages
"fakeroot" functionality. The fix is to add do_install_ptest_base task,
which calls do_install_ptest only when "ptest" is enabled.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
v2 - fix circular dependencies, delete default do_install_ptest_base

 recipes-qt/qt5/qt5-ptest.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/recipes-qt/qt5/qt5-ptest.inc b/recipes-qt/qt5/qt5-ptest.inc
index 4844878..97bce88 100644
--- a/recipes-qt/qt5/qt5-ptest.inc
+++ b/recipes-qt/qt5/qt5-ptest.inc
@@ -4,8 +4,9 @@ inherit ptest
 
 addtask do_populate_sysroot after do_install before do_compile_ptest_base
 deltask do_compile_ptest_base
-addtask do_compile_ptest_base after do_populate_sysroot before do_install_ptest
-addtask do_install_ptest after do_compile_ptest_base before do_package
+addtask do_compile_ptest_base after do_populate_sysroot before do_install_ptest_base
+deltask do_install_ptest_base
+addtask do_install_ptest_base after do_compile_ptest_base before do_package
 
 do_compile_ptest() {
     cd ${S}/tests
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [meta-qt5][PATCH v2] qt5-ptest.inc: fix qtxmlpatterns:do_install_ptest out-of-order call
  2017-10-18 18:42 [meta-qt5][PATCH v2] qt5-ptest.inc: fix qtxmlpatterns:do_install_ptest out-of-order call Denys Dmytriyenko
@ 2017-10-20 22:54 ` Martin Jansa
  2017-10-22  9:56   ` Denys Dmytriyenko
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Jansa @ 2017-10-20 22:54 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: openembedded-devel, Denys Dmytriyenko

Either this or the objcopy change seems to cause:
http://errors.yoctoproject.org/Errors/Details/157417/

On Wed, Oct 18, 2017 at 8:42 PM, Denys Dmytriyenko <denis@denix.org> wrote:

> From: Denys Dmytriyenko <denys@ti.com>
>
> ptest.bbclass provides a set of standard do_*_ptest_base tasks. Each of
> them calls a corresponding regular do_*_ptest task, that components are
> supposed to override for own implementation. When PTEST_ENABLED is not
> set, an anonymous python function removes all do_*_ptest_base tasks from
> the queue. qt5-ptest.inc adds a special case for do_populate_sysroot and
> re-arranges the order or ptest tasks due to that. But, unfortunately,
> do_install_ptest was added directly, not do_install_ptest_base, hence when
> "ptest" is disabled and all other do_*_ptest_base tasks are removed, this
> one do_install_ptest task is left w/o dependencies and gets scheduled for
> execution very early on, even before pseudo-native gets built and stages
> "fakeroot" functionality. The fix is to add do_install_ptest_base task,
> which calls do_install_ptest only when "ptest" is enabled.
>
> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> ---
> v2 - fix circular dependencies, delete default do_install_ptest_base
>
>  recipes-qt/qt5/qt5-ptest.inc | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-qt/qt5/qt5-ptest.inc b/recipes-qt/qt5/qt5-ptest.inc
> index 4844878..97bce88 100644
> --- a/recipes-qt/qt5/qt5-ptest.inc
> +++ b/recipes-qt/qt5/qt5-ptest.inc
> @@ -4,8 +4,9 @@ inherit ptest
>
>  addtask do_populate_sysroot after do_install before do_compile_ptest_base
>  deltask do_compile_ptest_base
> -addtask do_compile_ptest_base after do_populate_sysroot before
> do_install_ptest
> -addtask do_install_ptest after do_compile_ptest_base before do_package
> +addtask do_compile_ptest_base after do_populate_sysroot before
> do_install_ptest_base
> +deltask do_install_ptest_base
> +addtask do_install_ptest_base after do_compile_ptest_base before
> do_package
>
>  do_compile_ptest() {
>      cd ${S}/tests
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-qt5][PATCH v2] qt5-ptest.inc: fix qtxmlpatterns:do_install_ptest out-of-order call
  2017-10-20 22:54 ` Martin Jansa
@ 2017-10-22  9:56   ` Denys Dmytriyenko
  0 siblings, 0 replies; 3+ messages in thread
From: Denys Dmytriyenko @ 2017-10-22  9:56 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-devel, Denys Dmytriyenko

I've seen some breakage, not exactly this one, when trying to build with this 
change - had to clean sstate for some reason, then it worked...


On Sat, Oct 21, 2017 at 12:54:41AM +0200, Martin Jansa wrote:
> Either this or the objcopy change seems to cause:
> http://errors.yoctoproject.org/Errors/Details/157417/
> 
> On Wed, Oct 18, 2017 at 8:42 PM, Denys Dmytriyenko <denis@denix.org> wrote:
> 
> > From: Denys Dmytriyenko <denys@ti.com>
> >
> > ptest.bbclass provides a set of standard do_*_ptest_base tasks. Each of
> > them calls a corresponding regular do_*_ptest task, that components are
> > supposed to override for own implementation. When PTEST_ENABLED is not
> > set, an anonymous python function removes all do_*_ptest_base tasks from
> > the queue. qt5-ptest.inc adds a special case for do_populate_sysroot and
> > re-arranges the order or ptest tasks due to that. But, unfortunately,
> > do_install_ptest was added directly, not do_install_ptest_base, hence when
> > "ptest" is disabled and all other do_*_ptest_base tasks are removed, this
> > one do_install_ptest task is left w/o dependencies and gets scheduled for
> > execution very early on, even before pseudo-native gets built and stages
> > "fakeroot" functionality. The fix is to add do_install_ptest_base task,
> > which calls do_install_ptest only when "ptest" is enabled.
> >
> > Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> > ---
> > v2 - fix circular dependencies, delete default do_install_ptest_base
> >
> >  recipes-qt/qt5/qt5-ptest.inc | 5 +++--
> >  1 file changed, 3 insertions(+), 2 deletions(-)
> >
> > diff --git a/recipes-qt/qt5/qt5-ptest.inc b/recipes-qt/qt5/qt5-ptest.inc
> > index 4844878..97bce88 100644
> > --- a/recipes-qt/qt5/qt5-ptest.inc
> > +++ b/recipes-qt/qt5/qt5-ptest.inc
> > @@ -4,8 +4,9 @@ inherit ptest
> >
> >  addtask do_populate_sysroot after do_install before do_compile_ptest_base
> >  deltask do_compile_ptest_base
> > -addtask do_compile_ptest_base after do_populate_sysroot before
> > do_install_ptest
> > -addtask do_install_ptest after do_compile_ptest_base before do_package
> > +addtask do_compile_ptest_base after do_populate_sysroot before
> > do_install_ptest_base
> > +deltask do_install_ptest_base
> > +addtask do_install_ptest_base after do_compile_ptest_base before
> > do_package
> >
> >  do_compile_ptest() {
> >      cd ${S}/tests
> > --
> > 2.7.4
> >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-22  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-18 18:42 [meta-qt5][PATCH v2] qt5-ptest.inc: fix qtxmlpatterns:do_install_ptest out-of-order call Denys Dmytriyenko
2017-10-20 22:54 ` Martin Jansa
2017-10-22  9:56   ` Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.