All of lore.kernel.org
 help / color / mirror / Atom feed
* Why does recrdeptask delete a task from the dependency graph?
@ 2020-01-08  4:26 Masahiro Yamada
  2020-01-08  8:48 ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Masahiro Yamada @ 2020-01-08  4:26 UTC (permalink / raw)
  To: bitbake-devel

Hi.

Forgive another of my recrdeptask questions.


I notice "recrdeptask" deletes a task in some cases.
I am not sure whether it is an intended behavior.


The test code is as follows:

-----------------(classes/base.bbclass  begin)----------
addtask do_build
do_build[nostamp] = "1"
do_build[deptask] = "do_build"
-----------------(classes/base.bbclass  end)------------

-----------------(recipes/foo.bb  begin)----------------
PN = 'foo'

python do_build() {
    bb.plain("foo.do_build");
}

DEPENDS = "bar"

do_build[recrdeptask] = "do_build"
-----------------(recipes/foo.bb  end)----------------


-----------------(recipes/bar.bb  begin)----------------
PN = 'bar'

python do_build() {
    bb.plain("bar.do_build")
}

DEPENDS = "baz"
-----------------(recipes/bar.bb  end)----------------


-----------------(recipes/baz.bb  begin)----------------
PN = 'baz'

python do_build() {
    bb.plain("baz.do_build")
}
-----------------(recipes/baz.bb  end)----------------




When I run "bitbake foo", I see
the expected result:

baz.do_build
bar.do_build
foo.do_build



If I add
  do_build[recrdeptask] = "do_build"
to recipes/bar.bb

"bitbake foo" shows

baz.do_build
foo.do_build


So, bar:do_build is dropped from the dependency.

What is the intent of this behavior?


--
Best Regards
Masahiro Yamada


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

* Re: Why does recrdeptask delete a task from the dependency graph?
  2020-01-08  4:26 Why does recrdeptask delete a task from the dependency graph? Masahiro Yamada
@ 2020-01-08  8:48 ` Richard Purdie
  2020-01-16  1:54   ` Masahiro Yamada
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2020-01-08  8:48 UTC (permalink / raw)
  To: Masahiro Yamada, bitbake-devel

On Wed, 2020-01-08 at 13:26 +0900, Masahiro Yamada wrote:
> If I add
>   do_build[recrdeptask] = "do_build"
> to recipes/bar.bb
> 
> "bitbake foo" shows
> 
> baz.do_build
> foo.do_build
> 
> 
> So, bar:do_build is dropped from the dependency.
> 
> What is the intent of this behavior?

Quickly looking at your testcase, I'm not sure it is the intended
behaviour so it could be a bug.

Cheers,

Richard



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

* Re: Why does recrdeptask delete a task from the dependency graph?
  2020-01-08  8:48 ` Richard Purdie
@ 2020-01-16  1:54   ` Masahiro Yamada
  0 siblings, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2020-01-16  1:54 UTC (permalink / raw)
  To: Richard Purdie; +Cc: bitbake-devel

Hi Richard,

On Wed, Jan 8, 2020 at 5:48 PM Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
>
> On Wed, 2020-01-08 at 13:26 +0900, Masahiro Yamada wrote:
> > If I add
> >   do_build[recrdeptask] = "do_build"
> > to recipes/bar.bb
> >
> > "bitbake foo" shows
> >
> > baz.do_build
> > foo.do_build
> >
> >
> > So, bar:do_build is dropped from the dependency.
> >
> > What is the intent of this behavior?
>
> Quickly looking at your testcase, I'm not sure it is the intended
> behaviour so it could be a bug.


OK, I do not care about this for now.



-- 
Best Regards
Masahiro Yamada


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

end of thread, other threads:[~2020-01-16  1:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-08  4:26 Why does recrdeptask delete a task from the dependency graph? Masahiro Yamada
2020-01-08  8:48 ` Richard Purdie
2020-01-16  1:54   ` Masahiro Yamada

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.