Skip to content

emit inline checksum#73

Open
ensc wants to merge 4 commits into
meta-rust:masterfrom
ensc:master
Open

emit inline checksum#73
ensc wants to merge 4 commits into
meta-rust:masterfrom
ensc:master

Conversation

@ensc

@ensc ensc commented Jan 20, 2024

Copy link
Copy Markdown

recent OE requires valid checksums for crates://. Patch adds them as something like

    crate://crates.io/addr2line/0.21.0;sha256sum=8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb;addr2line-0.21.0.sha256sum=8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb \

Due to restrictions in bitbake, a simple sha256sum=... does not suffice but it must be expressed with the crate name (<name>-<version>.sha256sum). Simple argument is kept for completeness.

@Finomnis

Finomnis commented Mar 25, 2024

Copy link
Copy Markdown

@kraj Bump

@Finomnis

Finomnis commented Mar 26, 2024

Copy link
Copy Markdown

@kraj Is this crate still maintained? It does no longer produce compilable recipes for newer Yocto Versions. This PR fixes it.

@kraj

kraj commented Mar 26, 2024

Copy link
Copy Markdown
Contributor

Yes it is

@Finomnis

Copy link
Copy Markdown

Yes it is

In that case, I apologize for my rudeness.

Either way, I'd love to get this merged and released :)

@IniterWorker

Copy link
Copy Markdown

I've been following the work of @jaskij, @kkettinger and @ensc closely, and I'm inclined to suggest adopting an approach similar to what's available in this file.

@codyps and @ColinFinck, I'm willing to offer my assistance in maintaining this repository cargo-bitbake.

@jaskij

jaskij commented Apr 24, 2024

Copy link
Copy Markdown

@IniterWorker you credit me needlessly, I just incorporated this change into my version because I needed both.

@Finomnis

Finomnis commented Jul 17, 2024

Copy link
Copy Markdown

Any news here? This is becoming a problem due to its incompatibility with newer Yocto versions ...

Some further discussion about this was done in #75, but whatever way works is fine for me, I just need this for a Yocto project :/

@jaskij

jaskij commented Jul 17, 2024

Copy link
Copy Markdown

I have been meaning to do a ground-up rewrite of the project, since it has other issues and it shouldn't be hard, but I'm not currently working with anything Yocto, so it's been put on hold.

Is there something missing in #75 which means you can't just use that version? You can always use that version by running

cargo install --git https://github.com/jaskij/cargo-bitbake.git

@Finomnis

Copy link
Copy Markdown

Yah, that's what I've been doing, but it seems kinda hacky for production use

@Finomnis

Copy link
Copy Markdown

@jaskij If you do a ground-up rework, there's a couple of features that would be absolutely amazing and are making my life very difficult right now:

  • Proper integration of Rust's dependencies into Yocto SBOM
  • Proper entries of dependencies and dependency licenses in tmp/deploy/licenses
  • Proper license check through INCOMPATIBLE_LICENSE

Although I'm not sure how many of those can be accomplished with cargo-bitbake and which of those features must be integrated into the official yocto rust layer.

@jaskij

jaskij commented Jul 17, 2024

Copy link
Copy Markdown

Yah, that's what I've been doing, but it seems kinda hacky for production use

Those are still files where you manually run the generator and add the output to git, so it's not that bad IMO

@kraj kraj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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

Successfully merging this pull request may close these issues.

5 participants