OE, bitbake and dependencies

Alastair Johnson alastair at truebox.co.uk
Thu Oct 9 23:46:33 CEST 2008


Michael 'Mickey' Lauer wrote:
> Am Donnerstag, den 09.10.2008, 11:27 +0100 schrieb Alastair Johnson:
>> Sort of. According to example 4.7 in 
>> http://bitbake.berlios.de/manual/ch04s02.html this needs setting in a 
>> .conf file not in the .bb file. I've set it in local.conf and bitbake 
>> now builds the right version, though it looks like I've got some 
>> cleaning up to do as linphone still seems to try linking against the 
>> wrong version. This doesn't seem like the best place for dependency 
>> information though since it separates the dependency information from 
>> the package that has the dependency. Can I put this in the .bb file, or 
>> is there another config file I should be using?
> 
> PREFERRED_* is distro policy, hence should usually be in config or local
> files.
> 
> If you really need to state it in the recipe, try using
> DEPENDS = "foo-1.2.3"
> and
> RDEPENDS = "foo (>=1.2.3)"
> 
> Note that this is considered ugly.

Thanks, that's what I was looking for.

linphone-1.6.0 will not compile with libosip2 > 2.2.2. Am I right in 
thinking this is the sort of situation that should be handled in the 
recipe rather than as a distro policy?



More information about the devel mailing list