OSSystems / meta-browser

OpenEmbedded/Yocto BSP layer for Web Browsers
MIT License
184 stars 191 forks source link

[Kirkstone] cross dependency with meta-rust and meta-lts-mixins #805

Open davidcodesido opened 5 months ago

davidcodesido commented 5 months ago

I'm currently building a project that requires azure-iotedge which depends on meta-rust and chromium. The project is based on kirkstone thus it needs meta-lts-mixins to provide rust according to the documentation.

Is there any way I can combine both dependecies? I'm quite new to yocto/rust/cargo etc. Any help is welcome.

kraj commented 5 months ago

we only support master branch across releases so best option is to try master branch

davidcodesido commented 5 months ago

I tried master branch but it doesn't support kirkstone. Only scarthgap and nanbield

davidcodesido commented 5 months ago

I added kirkstone to the layer.conf file but the compilation of rust fails, my bet is that it can't build rust, only rust-native

diff --git a/meta-chromium/conf/layer.conf b/meta-chromium/conf/layer.conf
index ce6372d..98eaa66 100644
--- a/meta-chromium/conf/layer.conf
+++ b/meta-chromium/conf/layer.conf
@@ -9,6 +9,6 @@ BBFILE_PATTERN_chromium-browser-layer := "^${LAYERDIR}/"
 BBFILE_PRIORITY_chromium-browser-layer = "7"

 LAYERVERSION_chromium-browser-layer = "1"
-LAYERSERIES_COMPAT_chromium-browser-layer = "nanbield scarthgap"
+LAYERSERIES_COMPAT_chromium-browser-layer = "nanbield scarthgap kirkstone"

 LAYERDEPENDS_chromium-browser-layer = "clang-layer core openembedded-layer"
kraj commented 5 months ago

there is kirkstone branch now so you should try that first for meta-chromium, also go through README in meta-chromium for dependency needs.

davidcodesido commented 5 months ago

That's my point. I change to kirkstone branch in meta-chromium and it depends of lts-rust-mixins. This is what creates the conflict with meta-rust.

davidcodesido commented 5 months ago

I see you also maintain lts-rust-mixins @kraj Is there a way for this two projects meta-rust and meta-lts-mixins to coexist? The moment I add the layer for meta-lts-mixins the builds of iotedge fail and with meta-rust only the build for chromium fail. Any help will be welcome since I've spent already weeks trying to figure this one out.

petergerten commented 4 days ago

same problem here - any workaround?