bitbake-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* Kirkstone : vs _ bugs
@ 2023-04-06 15:27 Joakim Tjernlund
  2023-04-06 15:39 ` [bitbake-devel] " Martin Jansa
  0 siblings, 1 reply; 4+ messages in thread
From: Joakim Tjernlund @ 2023-04-06 15:27 UTC (permalink / raw)
  To: bitbake-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bitbake-devel] Kirkstone : vs _ bugs
  2023-04-06 15:27 Kirkstone : vs _ bugs Joakim Tjernlund
@ 2023-04-06 15:39 ` Martin Jansa
  2023-04-06 15:56   ` Joakim Tjernlund
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2023-04-06 15:39 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 1594 bytes --]

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.

See
https://git.openembedded.org/bitbake/commit/?h=1.46&id=a6d5fb7554e3cf071e453db56a1e7469ac44277c

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]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 2586 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bitbake-devel] Kirkstone : vs _ bugs
  2023-04-06 15:39 ` [bitbake-devel] " Martin Jansa
@ 2023-04-06 15:56   ` Joakim Tjernlund
  2023-04-06 16:26     ` Martin Jansa
  0 siblings, 1 reply; 4+ messages in thread
From: Joakim Tjernlund @ 2023-04-06 15:56 UTC (permalink / raw)
  To: martin.jansa; +Cc: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 1962 bytes --]

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.

See https://git.openembedded.org/bitbake/commit/?h=1.46&id=a6d5fb7554e3cf071e453db56a1e7469ac44277c

Regards,

On Thu, Apr 6, 2023 at 5:27 PM Joakim Tjernlund <Joakim.Tjernlund@infinera.com<mailto: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<mailto:bitbake-devel%2Bowner@lists.openembedded.org>
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [Martin.Jansa@gmail.com<mailto:Martin.Jansa@gmail.com>]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 4430 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bitbake-devel] Kirkstone : vs _ bugs
  2023-04-06 15:56   ` Joakim Tjernlund
@ 2023-04-06 16:26     ` Martin Jansa
  0 siblings, 0 replies; 4+ messages in thread
From: Martin Jansa @ 2023-04-06 16:26 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 2260 bytes --]

> 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.
>
> See
> https://git.openembedded.org/bitbake/commit/?h=1.46&id=a6d5fb7554e3cf071e453db56a1e7469ac44277c
>
> 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]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
>

[-- Attachment #2: Type: text/html, Size: 4022 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-04-06 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-06 15:27 Kirkstone : vs _ bugs Joakim Tjernlund
2023-04-06 15:39 ` [bitbake-devel] " Martin Jansa
2023-04-06 15:56   ` Joakim Tjernlund
2023-04-06 16:26     ` Martin Jansa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).