OSSystems / meta-browser

OpenEmbedded/Yocto BSP layer for Web Browsers
MIT License
186 stars 195 forks source link

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

Open davidcodesido opened 6 months ago

davidcodesido commented 6 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 6 months ago

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

davidcodesido commented 6 months ago

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

davidcodesido commented 6 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 6 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 6 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 6 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 1 month ago

same problem here - any workaround?

Asadeds commented 3 weeks ago

same problem here - any update for this one ?

MaxIhlenfeldt commented 3 weeks ago

The moment I add the layer for meta-lts-mixins the builds of iotedge fail

What exactly is the error here?

Asadeds commented 3 weeks ago

Hi @MaxIhlenfeldt , thanks for your quick reply , Actually i am using the distro package of OpenSTlinux , and i used Kirkstone layers, i wanted to install chromium browser on my yocto, i tried to add the meta-browser layers with meta-chromium layers for wayland support, i successfully add and i added the dependencies like , meta-clang, and lts-rust also, but whenever i try to build it fails on chromum-ozone-wayland : i went through t this page but also failed. "https://github.com/OSSystems/meta-browser/issues/528 " what-ever you need to check i will give you the required logs.

ERROR at //build/config/linux/dri/BUILD.gn:11:20: Script returned non-zero exit code. dri_driver_dir = exec_script(pkg_config_script, ^---------- Current dir: /wrkdirs/usr/ports/www/chromium/work/chromium-125.0.6422.76/out/Release/ Command: python3 /wrkdirs/usr/ports/www/chromium/work/chromium-125.0.6422.76/build/config/linux/pkg-config.py --dridriverdir dri Returned 1 and printed out:

Error from pkg-config.

See //content/gpu/BUILD.gn:132:18: which caused the file to be included. configs += [ "//build/config/linux/dri" ]

MaxIhlenfeldt commented 3 weeks ago

Thanks for the info! That error is specific to #528, so let's keep the discussion there. Unfortunately I can't really help with that issue.

MaxIhlenfeldt commented 1 week ago

Note that as described in https://github.com/OSSystems/meta-browser/pull/852#issuecomment-2490746158 this will soon be an issue for Scarthgap as well.

It would still be useful if someone could paste the error message of the cross dependency with meta-rust and meta-lts-mixins.