On Wed, 2023-09-06 at 18:56 +0200, Alexander Kanavin wrote:
> Target task is using executables populated by the native task
> and as they run in parallel, races can occur.
> 
> This was triggered by shadow recipe update which added depedendent libraries,
> and where half-populated native sysroot (dependent libraries missing)
> was triggering useradd failures.
> 
> Presence or absence of useradd itself is a soft failure, and so was 
> previously unnoticed.
> 
> Signed-off-by: Alexander Kanavin <[email protected]>
> ---
>  meta/recipes-core/meta/build-sysroots.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-core/meta/build-sysroots.bb 
> b/meta/recipes-core/meta/build-sysroots.bb
> index 1a3b692a1b1..ac74dda22c4 100644
> --- a/meta/recipes-core/meta/build-sysroots.bb
> +++ b/meta/recipes-core/meta/build-sysroots.bb
> @@ -42,6 +42,6 @@ python do_build_target_sysroot () {
>  }
>  do_build_target_sysroot[cleandirs] = "${STANDALONE_SYSROOT}"
>  do_build_target_sysroot[nostamp] = "1"
> -addtask do_build_target_sysroot before do_build
> +addtask do_build_target_sysroot before do_build after do_build_native_sysroot
>  
>  do_clean[cleandirs] += "${STANDALONE_SYSROOT} ${STANDALONE_SYSROOT_NATIVE}"

This doesn't just force ordering but means target will always now
trigger the native sysroot as a dependency. We don't want to do that...

Cheers,

Richard

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

Reply via email to