[oe] dependencies between packages

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Mon Jan 11 20:35:21 UTC 2010


2010/1/11 Michael 'Mickey' Lauer <mickey at vanille-media.de>:
> Am Montag, den 11.01.2010, 09:59 -0800 schrieb C Michael Sundius:
>> Some of our developers have been running into this problem and I'm wondering
>> how others deal with it.
>>
>> It seems if we have a recipe, (A) that depends upon header files staged by
>> another recipe (B) then:
>>
>> 1) if the source for recipe (B) is modified and recompiled with:
>>
>>     bitbake -f -c compile B
>>     bitbake B,
>>
>> I would expect that when recipe A is run:
>>
>>    bitbake A
>>
>> It too would be recompiled, however that does not seem to be the case. In
>> fact even if recipe B is cleaned up:
>>
>>     bitbake -c clean B
>>
>> and then we run recipe A
>>
>>     bitbake A
>>
>> only recipe B is run and recipe A is NOT rerun! the dependency is satisfied
>> by rerunning recipe B and then bitbake stops..
>>
>> is this expected behaviour? Is there away to force rerunning of recipes that
>> would be "out of date" due to one of its dependent recipes being return and
>> re-staging (potentially) new headers and libraries?
>
> It is indeed expected behaviour, since there is no code in Bitbake that
> would add any dependending packages and add them to your build.
>
> Frans' suggestion is a workaround, however that only works with targets
> that already include all the depending packages, usually a 'task',
> 'feed', or 'image' target.
>
> I would welcome such a mode that automatically rebuilds all depending
> packages, however as this could dramatically increase build time it
> would need to be optional. BitBake hackers, what do you think?
>

Let's first start with a mechanism that lists the users of a package.

Frans




More information about the Openembedded-devel mailing list