> Problem is that it is not clear the the avage user when/where to use : vs _.

Examples of already migrated layers don't help?

> Why is PREFERRED_VERSION:xyz wrong ?

Because xyz is not an override.


On Thu, Apr 6, 2023 at 5:56 PM Joakim Tjernlund <Joakim.Tjernlund@infinera.com> wrote:
Problem is that it is not clear the the avage user when/where to use : vs _ and only some cases of wrong use makes bitbake throw an error.
It can take a long time to figure out where the error is.
Why is PREFERRED_VERSION:xyz wrong ?

 Jocke 
On Thu, 2023-04-06 at 17:39 +0200, Martin Jansa wrote:
See openembedded-core/scripts/contrib/convert-overrides.py script which does most of the heavy lifting and there is a plenty of examples how to update the layers.

> PREFERRED_VERSION:xyz = 1.2.3
> does not work in Kirkstone but works in Dunfell,

This is side effect of the bitbake change which replaces all ':' with "_" as a way to allow using new syntax with older bitbake, but unfortunately it replaces it everywhere (even where it shouldn't be used at all in first place), that's why it works in dunfell with older bitbake while kirkstone correctly refuses it.


Regards,

On Thu, Apr 6, 2023 at 5:27 PM Joakim Tjernlund <Joakim.Tjernlund@infinera.com> wrote:
Porting to Kirkstone I stumbled over this:
  PREFERRED_VERSION:xyz = 1.2.3
does not work in Kirkstone but works in Dunfell, need to replace : with _


FILES_${PN} is silently ignored in Kirkstone, replacing _ with : makes build happy again.

It is unclear to me when to use : vs. _ in Yocto for Kirkstone, is there a list?

 Jocke

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14678): https://lists.openembedded.org/g/bitbake-devel/message/14678
Mute This Topic: https://lists.openembedded.org/mt/98107247/3617156
Group Owner: bitbake-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [Martin.Jansa@gmail.com]
-=-=-=-=-=-=-=-=-=-=-=-