diff mbox series

[V2,2/4] nativesdk.bbclass: handle PACKAGE_WRITE_DEPS

Message ID 20250410134021.1299595-2-Qi.Chen@windriver.com
State New
Headers show
Series [V2,1/4] classes/recipes: remove unnecessary qemu inherit and use qemuwrapper-cross | expand

Commit Message

Chen, Qi April 10, 2025, 1:40 p.m. UTC
From: Chen Qi <Qi.Chen@windriver.com>

We want nativesdk packages to depend on correct recipes introduced
by PACKAGE_WRITE_DEPS, so do the same mapping just as we do for DEPENDS.

Before this change:
  nativesdk-glib-2.0 -> qemuwrapper-cross

After this change:
  nativesdk-glib-2.0 -> nativesdk-qemuwrapper-cross

This can fix do_populate_sdk failure complaining missing of
nativesdk-qemuwrapper. Error message is like below:

  NOTE: > Executing update_gio_module_cache-nativesdk intercept ...
  NOTE: Exit code 127. Output:
  /xxx/lib32-core-image-sato/1.0/intercept_scripts-xxxx/
  update_gio_module_cache-nativesdk: 13: nativesdk-qemuwrapper: not found

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/classes-recipe/nativesdk.bbclass | 1 +
 1 file changed, 1 insertion(+)

Comments

Mathieu Dubois-Briand April 11, 2025, 7:36 a.m. UTC | #1
On Thu Apr 10, 2025 at 3:40 PM CEST, Chen Qi via lists.openembedded.org wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
>
> We want nativesdk packages to depend on correct recipes introduced
> by PACKAGE_WRITE_DEPS, so do the same mapping just as we do for DEPENDS.
>
> Before this change:
>   nativesdk-glib-2.0 -> qemuwrapper-cross
>
> After this change:
>   nativesdk-glib-2.0 -> nativesdk-qemuwrapper-cross
>
> This can fix do_populate_sdk failure complaining missing of
> nativesdk-qemuwrapper. Error message is like below:
>
>   NOTE: > Executing update_gio_module_cache-nativesdk intercept ...
>   NOTE: Exit code 127. Output:
>   /xxx/lib32-core-image-sato/1.0/intercept_scripts-xxxx/
>   update_gio_module_cache-nativesdk: 13: nativesdk-qemuwrapper: not found
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---

Hi,

Thanks for your patch.

It looks like this is causing some issues on the autobuilder:

NOTE: The "universe" target is only intended for testing and may produce errors.
NOTE: Resolving any missing task queue dependencies
WARNING: Nothing PROVIDES 'nativesdk-ptest-runner'. Close matches:
  nativesdk-libtest-warnings-perl
  nativesdk-serf
  nativesdk-xtst

I was able to easily reproduce this locally, just with "bitbake universe -c fetch".

Can you have a look at this, please?
diff mbox series

Patch

diff --git a/meta/classes-recipe/nativesdk.bbclass b/meta/classes-recipe/nativesdk.bbclass
index 4e57349aa0..7ecb4c12c1 100644
--- a/meta/classes-recipe/nativesdk.bbclass
+++ b/meta/classes-recipe/nativesdk.bbclass
@@ -104,6 +104,7 @@  python () {
     clsextend.rename_package_variables((d.getVar("PACKAGEVARS") or "").split())
 
     clsextend.map_depends_variable("DEPENDS")
+    clsextend.map_depends_variable("PACKAGE_WRITE_DEPS")
     clsextend.map_packagevars()
     clsextend.map_variable("PROVIDES")
     clsextend.map_regexp_variable("PACKAGES_DYNAMIC")