[OE-core] RPROVIDES not package specific with native and added package

Phil Blundell pb at pbcl.net
Mon Nov 18 18:28:04 UTC 2013


On Mon, 2013-11-18 at 13:28 +0000, Mats Kärrman wrote:
> On Monday, November 18, 2013 2:15 PM, Phil Blundell wrote:
> >> Subject: Re: [OE-core] RPROVIDES not package specific with native and added package
> >> 
> >> Oh, right, I see.  Does it help if you use "PACKAGES =+ .." rather than
> >> "PACKAGES_prepend = "?
> 
> Yes it does!!
> 
> Could you tell me why?
> Er... better could you tell me where's the best place to read so I don't have to make these mistakes again?

The code in insane.bbclass will give you a diagnostic if ${RPROVIDES} is
set and PACKAGES isn't blank.  (The actual check that it uses for
PACKAGES is slightly obscure and involves split(), but the net effect
seems to be that it's testing for the variable being set to something
other than "".)

native.bbclass sets PACKAGES="" and RPROVIDES="${PN}".  This violates
insane.bbclass's usual idea of what RPROVIDES should be, but since
PACKAGES is blank the check is inhibited and you don't get an error.

However, your recipe is defeating this by prepending to PACKAGES and
causing it to end up not blank.  This turns the insane.bbclass check
back on and the error reappears.

p.





More information about the Openembedded-core mailing list