meta-rust / cargo-bitbake

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

gst-plugins-rs: Cannot parse Cargo.toml #74

Open fabioestevam opened 6 months ago

fabioestevam commented 6 months ago

Hi,

I am trying to use "cargo bitbake" to generate a recipe for the gst-plugins-rs 0.12.4 version:

https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/tree/0.12?ref_type=heads

but I am getting the following error:

$ cargo bitbake
error: failed to load manifest for workspace member `/home/fabio/gst-plugins-rs/tutorial`

Caused by:
  failed to parse manifest at `/home/fabio/gst-plugins-rs/tutorial/Cargo.toml`

Caused by:
  invalid type: map, expected SemVer version for key `package.version`

The Cargo.toml that fails to parse is this one:

https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/blob/0.12/tutorial/Cargo.toml?ref_type=heads

Any ideas, please?

fabioestevam commented 6 months ago

Adding @brgl who worked on creating a recipe for gst-plugins-rs 0.8.4: https://patchwork.yoctoproject.org/project/oe-core/patch/20220606132653.60232-5-brgl@bgdev.pl/

krucod3 commented 3 months ago

We are having similar issues for a recipe for Eclipse Ankaios. It seems like cargo bitbake cannot cope with workspace inherited attributes.

@fabioestevam, a workaround would be to specify the version in every package in the workspace.

The last work on this repo was done some time ago and it looks like the maintainer is searching for a successor, see #77.

poett1 commented 2 months ago

@fabioestevam have you been able to find a solution to build the recipe? I am currently trying to do the same and any advice you could give me would be greatly appreciated.

fabioestevam commented 2 months ago

Hi @poett1

I haven't made progress on this and moved to other projects. Are you trying to write am OpenEmbedded recipe for gst-plugins-rs?

Maybe it is worth posting to the OpenEmbedded mailing list.