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 <[email protected]>
---
meta/classes-recipe/cargo_c.bbclass | 1 +
1 file changed, 1 insertion(+)
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
}
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#240881):
https://lists.openembedded.org/g/openembedded-core/message/240881
Mute This Topic: https://lists.openembedded.org/mt/120264582/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-