[Buildroot] [PATCH v5 02/36] package/libevas-generic-loaders: move to package directory

Yann E. MORIN yann.morin.1998 at free.fr
Sun Oct 25 21:50:17 UTC 2015


romain, All,

On 2015-10-25 22:41 +0100, Romain Naour spake thusly:
> Le 25/10/2015 22:04, Yann E. MORIN a écrit :
> > On 2015-10-25 20:21 +0100, Romain Naour spake thusly:
[--SNIP--]
> >> So, IIUC when a package A select a package B, we must propagate all reverse
> >> dependencies of the package B when the package A already depends on them
> >> implicitly (i.e when using a depends on BR2_PACKAGE_C).
> > 
> > I'm not sure I groked what you wrote, so here's a litle example. Say you
> > have a pacakge foo that needs bar and bar needs threads; here's how
> > you'd express it:
> > 
> >     config foo
> >         bool "foo"
> >         depends on threads # bar
> >         select bar
> > 
> >     config bar
> >         bool "bar"
> >         depends on threads
> 
> In my example based on libevas-generic-loaders, I had 3 packages:
> 
>      config foo
>          bool "foo"
>          depends on threads
> 
>      config bar
>          bool "bar"
>          depends on foo
>          [depends on threads # baz]
>          select baz
> 
>      config baz
>          bool "baz"
>          depends on threads
> 
> So foo and baz depends on threads, bar depends on foo.
> The question is do we need to add [depends on threads # baz] for bar in that case ?
> bar implicitly depends on threads thanks to foo dependency.
> 
> So, what I understand after your comment is that we must keep the reverse
> dependency on threads for the package bar because it select baz.

Yes, you need to keep it in that case, because, if foo looses its
dependency on threads, bar still needs it because it selects baz.

The other reason you would keep it is if bar itself would need threads.

> Ok, I'll look at it latter the week, I'll try to resend a new series before the
> next week-end.

Hehe! ;-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'


More information about the buildroot mailing list