| Message ID | 20260714105541.2812170-1-tarun@centricular.com |
|---|---|
| State | New |
| Headers | show |
| Series | [v5,1/2] cargo_c.bbclass: pass --libdir to cargo cinstall | expand |
diff --git a/meta/classes-recipe/cargo_c.bbclass b/meta/classes-recipe/cargo_c.bbclass index ef431634a2..e91ee1d9fc 100644 --- a/meta/classes-recipe/cargo_c.bbclass +++ b/meta/classes-recipe/cargo_c.bbclass @@ -35,6 +35,7 @@ cargo_c_do_install() { "${CARGO_C_INSTALL}" cinstall ${CARGO_BUILD_FLAGS} \ --destdir ${D} \ --prefix ${prefix} \ + --libdir ${libdir} \ --library-type cdylib }
cargo-cinstall defaults its libdir to <prefix>/lib since the class does not pass --libdir. On configurations where ${libdir} is not <prefix>/lib (e.g. multilib builds where baselib is lib64), the libraries and pkg-config files get installed into <prefix>/lib, causing do_package QA failures (installed-vs-shipped). Pass --libdir ${libdir} explicitly so cargo-cinstall installs the files into the correct directory. Signed-off-by: Taruntej Kanakamalla <tarun@centricular.com> --- meta/classes-recipe/cargo_c.bbclass | 1 + 1 file changed, 1 insertion(+)