meta-rust / cargo-bitbake

cargo extension that can generate BitBake recipes utilizing the classes from meta-rust
Apache License 2.0
83 stars 57 forks source link

cargo-bitbake build failed on yocto due to openssl3 native!!! #43

Open krishchanDr opened 2 years ago

krishchanDr commented 2 years ago

Hi, We tried to build cargo-bitbake as part of yocto. Yocto is upgraded to openssl-3.0 so cargo-bitbake recipe fails while building openssl-sys v0.9.54 which is dependent for carg-bitbake.

Recipe(.bb) and build failure log is attached,

Below patch resolves the issue

https://github.com/sfackler/rust-openssl/pull/1264/commits/b4c735e8af546dee49b54679f63bcfec16c15a0f But the patch is not mainlined :(.

build_failure.txt

cargo-bitbake_0.3.16-alpha.0.bb.txt

Any plan on supporting openssl3 for cargo-bitbake?

rwmacleod commented 2 years ago

Can you just update this in the toml file to have a newer version of openssl-sys, say version openssl-sys-v0.9.72? Openssl-3.0 support was added initially by: https://github.com/sfackler/rust-openssl/commit/e5999ccf4a203fcbe41723923334ba18eaf1e159 and: $ git tag --contains e5999ccf4a203fcbe41723923334ba18eaf1e159 openssl-sys-v0.9.69 openssl-sys-v0.9.70 openssl-sys-v0.9.71 openssl-sys-v0.9.72 openssl-v0.10.38

cardoe commented 2 years ago

There’s nothing we can do here. This isn’t a dependency of this package. It’s not even a dependency of our depends. It’s a depend of cargo via git2 via libgit2 via libgit2-sys via libssh2-sys.

krishchanDr commented 2 years ago

There’s nothing we can do here. This isn’t a dependency of this package. It’s not even a dependency of our depends. It’s a depend of cargo via git2 via libgit2 via libgit2-sys via libssh2-sys. Thanks cardoe. We updated git2 and its dependencies to latest.

Can you just update this in the toml file to have a newer version of openssl-sys, say version openssl-sys-v0.9.72? Openssl-3.0 support was added initially by: sfackler/rust-openssl@e5999cc and: $ git tag --contains e5999ccf4a203fcbe41723923334ba18eaf1e159 openssl-sys-v0.9.69 openssl-sys-v0.9.70 openssl-sys-v0.9.71 openssl-sys-v0.9.72 openssl-v0.10.38

Thanks Randy. After updating git2 and its dependencies in Cargo.toml and recipe, cargo-bitbake builds without issue in yocto.

Regards Chandra