Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
krishchanDr opened this issue Dec 20, 2021 · 3 comments
Open

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

krishchanDr opened this issue Dec 20, 2021 · 3 comments

Comments

@krishchanDr
Copy link

krishchanDr commented Dec 20, 2021

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

sfackler/rust-openssl@b4c735e
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
Copy link

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

@cardoe
Copy link
Collaborator

cardoe commented Dec 21, 2021

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants