On Mon, 2022-05-16 at 14:52 +0200, Jacob Kroon wrote:
> On 5/16/22 14:38, [email protected] wrote:
> > On Mon, 2022-05-16 at 13:43 +0200, Jacob Kroon wrote:
> > > Hi Richard,
> > > 
> > > On 5/16/22 13:28, Richard Purdie wrote:
> > > > Using += unintentionally removes all over entries from DISTRO_FEATURES 
> > > > and
> > > 
> > > "over", you mean "other" ? If so, how is that possible ?
> > 
> > I mean other, I'll fix the typo. It happens due to:
> > 
> > meta-poky/conf/distro/poky.conf:DISTRO_FEATURES ?= 
> > "${DISTRO_FEATURES_DEFAULT} ${POKY_DEFAULT_DISTRO_FEATURES}"
> > 
> > which interacts badly with "+=" :(
> > 
> > I'm not happy about the situation with variable interactions but still
> > not entirely sure the best way to proceed.
> > 
> 
> That is surprising to me. I tried this snippet in a Makefile:
> 
> foo ?= bar1  
> foo += bar2 
> 
> $(info $(foo))
> 
> which produces:
> 
> bar1 bar2
> 
> which is what I'd expect (maybe because I'm more used to make than bitbake).
> 
> Aligning bitbake's and make's handling of variables would make a lot of 
> sense to me...

The amount of silent breakage that would cause though... :(

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#165680): 
https://lists.openembedded.org/g/openembedded-core/message/165680
Mute This Topic: https://lists.openembedded.org/mt/91137386/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to