bitbake manual: emphasizing "PROVIDES =", not "PROVIDES +="
i believe we clarified recently that the use of "PROVIDES +=" was
superfluous, as ${PN} is already implicitly part of the PROVIDES content of a recipe, so "PROVIDES =" is sufficient to add *extra* entries.
Section 2.3 of the BB manual gives the distinct impression that one
should use "+=", so i can submit a patch to adjust that. there's quite a lot of "+=" usage in the oe-core layer -- is it worth cleaning that up? it does not, of course, hurt anything, but it potentially leads to confusion if one is RTFS.
rday
Quoted 4 lines · Robert P. J. Day
i believe we clarified recently that the use of "PROVIDES +=" was
superfluous, as ${PN} is already implicitly part of the PROVIDES content of a recipe, so "PROVIDES =" is sufficient to add *extra* entries.
You keep bringing this up and sorry but I don't agree with you. I've said this several times but you keep ignoring me as you don't like my perspective as it isn't neat or clear cut.
We hacked bitbake.conf so that it always worked even if people didn't use =+ in recipes. That doesn't mean that using = is correct or the right thing to do.
Conceptually, base.bbclass and bitbake.conf set up a nice set of defaults which the recipe them appends to. Recipes then to append to it. The fact we hack bitbake.conf to append to it is an implementation detail and safety net.
Quoted 7 lines
Section 2.3 of the BB manual gives the distinct impression that one
should use "+=", so i can submit a patch to adjust that. there's quite
a lot of "+=" usage in the oe-core layer -- is it worth cleaning that up? it does not, of course, hurt anything, but it potentially leads to
confusion if one is RTFS.
Since we're being pedantic, note this is the bitbake manual. bitbake.conf in the bitbake repo sets PROVIDES = "" so appending is perfectly correct there.
Cheers,
Richard
Quoted 9 lines · Richard Purdie
Quoted 4 lines · Robert P. J. Day
i believe we clarified recently that the use of "PROVIDES +=" was
superfluous, as ${PN} is already implicitly part of the PROVIDES content of a recipe, so "PROVIDES =" is sufficient to add *extra* entries.You keep bringing this up and sorry but I don't agree with you. I've said this several times but you keep ignoring me as you don't like my perspective as it isn't neat or clear cut.
point taken, i'll let this go.
rday