public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* Bitbake 2.0 migration story
@ 2023-02-09 17:19 Henning Schild
  2023-02-09 17:24 ` Henning Schild
  0 siblings, 1 reply; 2+ messages in thread
From: Henning Schild @ 2023-02-09 17:19 UTC (permalink / raw)
  To: isar-users

Migrating a rather weird layer and what can go wrong.

Some of this might be duplication of what can be found in other places.
I just want to share it for now, and maybe some points can be taken
into docs.

But hey the move is a one-time thing ... and we can forget about all
that hopefully soon.

- i first went to the repo of my layer and did
 /path/to/new/isar/scripts/contrib/convert-overrides.py

that found a lot and helped a lot, but also had some fun ideas ... like
replacing _ with : in LICENSE.md

You could run it only on some folders to avoid that, but note that it
also often does the right things on kas files, which is cool.

It was wrong on dpkg-prebuilt packages where it replaced _amd64 with
:amd64 in SRC_URIs ... so watch out if you have the name of a .deb
somewhere in your code!

Good tool, but make sure to review its changes well.

If you use your own OVERRIDES they will not be found. Make sure to
search your layer for "OVERRIDES" ... any append here will have to be
found and moved from _ to : manually.

The variable BB_HASHCONFIG_WHITELIST has been renamed to
BB_HASHCONFIG_IGNORE_VARS, but bitbake has a good warning on this.

Tasks using "sudo" need do_<task>[network] = "${TASK_USE_SUDO}"

Search your layer codebase for "sudo"

When cloning any git repo with lfs inside ... the unpack task will need
network ... which it does not have by default. Might be a bitbake
upstream bug.
put
  do_unpack[network] += "${TASK_USE_NETWORK}"
into that recipe

Hope that helps anyone to jump this hurdle.

Henning

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

* Re: Bitbake 2.0 migration story
  2023-02-09 17:19 Bitbake 2.0 migration story Henning Schild
@ 2023-02-09 17:24 ` Henning Schild
  0 siblings, 0 replies; 2+ messages in thread
From: Henning Schild @ 2023-02-09 17:24 UTC (permalink / raw)
  To: isar-users

Am Thu, 9 Feb 2023 18:19:33 +0100
schrieb Henning Schild <henning.schild@siemens.com>:

> Migrating a rather weird layer and what can go wrong.
> 
> Some of this might be duplication of what can be found in other
> places. I just want to share it for now, and maybe some points can be
> taken into docs.
> 
> But hey the move is a one-time thing ... and we can forget about all
> that hopefully soon.

And very first you remove all build artifacts and sstate caches on the
machine you do this on, and on the CI runners that will build.

In the process when in doubt ... keep cleaning.

Henning

> - i first went to the repo of my layer and did
>  /path/to/new/isar/scripts/contrib/convert-overrides.py
> 
> that found a lot and helped a lot, but also had some fun ideas ...
> like replacing _ with : in LICENSE.md
> 
> You could run it only on some folders to avoid that, but note that it
> also often does the right things on kas files, which is cool.
> 
> It was wrong on dpkg-prebuilt packages where it replaced _amd64 with
> :amd64 in SRC_URIs ... so watch out if you have the name of a .deb
> somewhere in your code!
> 
> Good tool, but make sure to review its changes well.
> 
> If you use your own OVERRIDES they will not be found. Make sure to
> search your layer for "OVERRIDES" ... any append here will have to be
> found and moved from _ to : manually.
> 
> The variable BB_HASHCONFIG_WHITELIST has been renamed to
> BB_HASHCONFIG_IGNORE_VARS, but bitbake has a good warning on this.
> 
> Tasks using "sudo" need do_<task>[network] = "${TASK_USE_SUDO}"
> 
> Search your layer codebase for "sudo"
> 
> When cloning any git repo with lfs inside ... the unpack task will
> need network ... which it does not have by default. Might be a bitbake
> upstream bug.
> put
>   do_unpack[network] += "${TASK_USE_NETWORK}"
> into that recipe
> 
> Hope that helps anyone to jump this hurdle.
> 
> Henning
> 


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

end of thread, other threads:[~2023-02-09 17:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 17:19 Bitbake 2.0 migration story Henning Schild
2023-02-09 17:24 ` Henning Schild

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox