Thursday, 2024-09-26

*** leon-anavi <leon-anavi!~Leon@46.55.231.62> has joined #oe05:41
*** mckoan_ is now known as mckoan06:35
*** mckoan is now known as mckoan|away06:35
*** Kubu_work <Kubu_work!~kubu@lfbn-nan-1-335-137.w82-120.abo.wanadoo.fr> has joined #oe07:00
*** dv_ <dv_!~dv@80.123.121.62> has quit IRC (Quit: WeeChat 3.8)08:16
*** florian <florian!~florian@port-217-146-132-69.static.as20676.net> has joined #oe08:27
*** guest92 <guest92!~guest92@185.37.248.114> has joined #oe08:27
*** Saur_Home66 <Saur_Home66!~Saur_Home@94-137-113-31.customers.ownit.se> has joined #oe08:51
*** Saur_Home12 <Saur_Home12!~Saur_Home@94-137-113-31.customers.ownit.se> has quit IRC (Ping timeout: 256 seconds)08:54
*** florian_kc <florian_kc!~florian@port-217-146-132-69.static.as20676.net> has joined #oe11:35
*** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has joined #oe12:14
mortDoes anyone have any tips for making recipes for software which uses multiple languages?12:30
mortI have a recipe which until now has had to compile Rust and Go, cargo.bbclass and go.bbclis fight but I got it to work, but I need to compile C++ with meson for that recipe as well and getting meson.bbclass to work with the two others would just be more hacks12:32
*** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has quit IRC (Ping timeout: 265 seconds)12:57
*** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has joined #oe13:10
rburtonmort: how are you meant to build it outside of bitbake? presumably not go this and cargo that and meson the other?13:33
rburtonbut if the classes don't use EXPORT_FUNCTIONS then they should and they may well overlay nicely if you define your own do_compile() that sets up and calls eg meson_do_configure13:33
mortgo.bbclass puts everything into ${B}/src/${GO_IMPORT}, which meson.bbclass and cargo.bbclass don't really expect13:36
mortand compilation needs to happen in a particular order: Rust needs to be compiled into a .so file, that .so has to be moved to where a Go file's cgo ldflags expects it to be, then Go must be compiled13:37
mortand before Go can be compiled, cbindgen must be run on the Rust code to generate a header which Go includes13:37
*** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has quit IRC (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/)13:45
rburtonmort: oh dear god13:52
zeddiiwhere's the puke emoji14:00
rburton🤮14:01
zeddiiseriously though. rburton that's right up there with the worst case scenario we were talking about on IRC and vienna.14:01
mortI mean this isn't an uncommon scenario14:01
zeddiidoes it need clang as well ?14:01
zeddiithat doesn't make it not horrible.14:01
rburtonmort: rust *and* go in a single binary i'd argue isn't _uncommon_14:01
rburtonerm, isn't common14:02
mortbut two languages in one binary is common14:02
zeddiiyes, we are more commenting on that mix.14:02
zeddiiI've done several like this in meta-virt, I just end up creating extra tasks to move things around so they work, or do two passes, etc.14:02
mortit wouldn't be easier if it was a C++ project which linked against a .so built from rust14:03
mortanyway the Go and Rust parts are working well together, I'm trying to figure out how to get meson into the mix14:05
mortI might just grab the guts from meson.bbclass14:06
zeddiithat's what I did, since everything was non-standard for the class, I took some variables, and called the same things the class did, just in different locations, etc.14:07
KanjiMonsterI would probably try to use two .bb:s, one for the rust+cbindgen .so + header(s), and then one the go part with the lib as a dependency, and have common parts in a .inc (SRCURI etc)14:12
mortthat may be reasonable14:20
*** Xagen <Xagen!~Xagen@4.14.206.69> has joined #oe14:24
*** Xagen <Xagen!~Xagen@4.14.206.69> has quit IRC (Client Quit)14:29
*** Xagen <Xagen!~Xagen@4.14.206.69> has joined #oe14:32
*** Xagen <Xagen!~Xagen@4.14.206.69> has quit IRC (Client Quit)14:36
*** Xagen <Xagen!~Xagen@4.14.206.69> has joined #oe14:41
morthttps://git.yoctoproject.org/meta-lts-mixins/tree/classes/cargo.bbclass?h=kirkstone/rust there doesn't seem to be a way to add flags to cargo or toggle features on or off..14:54
mortis there a way to override/append to that CARGO_BUILD_FLAGS even though it's declared with "=" rather than "?=" or "??="?14:55
KanjiMonster:append (or _append if you want the old syntax) should always work; and I would think setting it after the include/require would also work15:22
KanjiMonsterinherit of course, no idea where my head went there15:22
KanjiMonstermort: ^15:23
mortI tried that first, it wasn't working ... but neither is replacing the whole do_compile with my own, so something weird is going on15:24
mortit's as if cargo is ignoring --no-default-features15:24
mortit's complaining that it can't find a certain crate, but it doesn't depend on that crate unless a particular feature is enabled15:26
*** leon-anavi <leon-anavi!~Leon@46.55.231.62> has quit IRC (Quit: Leaving)15:29
*** florian <florian!~florian@port-217-146-132-69.static.as20676.net> has quit IRC (Quit: Ex-Chat)15:48
*** florian_kc <florian_kc!~florian@port-217-146-132-69.static.as20676.net> has quit IRC (Ping timeout: 260 seconds)15:51
*** florian_kc <florian_kc!~florian@dynamic-002-243-101-009.2.243.pool.telefonica.de> has joined #oe16:57
*** florian_kc <florian_kc!~florian@dynamic-002-243-101-009.2.243.pool.telefonica.de> has quit IRC (Ping timeout: 245 seconds)17:05
*** guest92 <guest92!~guest92@185.37.248.114> has quit IRC (Ping timeout: 256 seconds)17:11
*** Xagen <Xagen!~Xagen@4.14.206.69> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)17:20
*** florian_kc <florian_kc!~florian@dynamic-002-243-101-009.2.243.pool.telefonica.de> has joined #oe17:49
*** tgamblin <tgamblin!~tgamblin@d24-150-219-207.home.cgocable.net> has quit IRC (Ping timeout: 252 seconds)17:59
*** tgamblin <tgamblin!~tgamblin@d24-150-219-207.home.cgocable.net> has joined #oe18:08
*** Xagen <Xagen!~Xagen@4.14.206.69> has joined #oe18:18
*** khem <khem!khem@2600:3c02::f03c:93ff:fe83:edf2> has quit IRC (Quit: WeeChat 4.4.2)18:23
*** MathieuDB <MathieuDB!~mathieu@user/MathieuDB> has quit IRC (*.net *.split)19:19
*** Emantor <Emantor!~Emantor@magratgarlick.emantor.de> has quit IRC (*.net *.split)19:19
*** KNERD <KNERD!~KNERD@user/knerd> has quit IRC (*.net *.split)19:19
*** moto-timo <moto-timo!sid495702@fedora/ttorling> has quit IRC (*.net *.split)19:19
*** flynn378 <flynn378!sid63564@2a03:5180:f:3::f84c> has quit IRC (*.net *.split)19:19
*** mario-goulart <mario-goulart!~user@chicken/developer/mario-goulart> has quit IRC (*.net *.split)19:19
*** MathieuDB <MathieuDB!~mathieu@user/MathieuDB> has joined #oe19:20
*** Emantor <Emantor!~Emantor@magratgarlick.emantor.de> has joined #oe19:20
*** KNERD <KNERD!~KNERD@user/knerd> has joined #oe19:20
*** moto-timo <moto-timo!sid495702@fedora/ttorling> has joined #oe19:20
*** flynn378 <flynn378!sid63564@2a03:5180:f:3::f84c> has joined #oe19:20
*** mario-goulart <mario-goulart!~user@chicken/developer/mario-goulart> has joined #oe19:20
*** khem <khem!khem@2600:3c02::f03c:93ff:fe83:edf2> has joined #oe19:26
*** Saur_Home4 <Saur_Home4!~Saur_Home@94-137-113-31.customers.ownit.se> has joined #oe20:16
*** Saur_Home66 <Saur_Home66!~Saur_Home@94-137-113-31.customers.ownit.se> has quit IRC (Ping timeout: 256 seconds)20:20
*** Kubu_work <Kubu_work!~kubu@lfbn-nan-1-335-137.w82-120.abo.wanadoo.fr> has quit IRC (Quit: Leaving.)21:23
*** Xagen <Xagen!~Xagen@4.14.206.69> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)21:32
*** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has joined #oe21:37
*** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has quit IRC (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/)21:48
*** Xagen <Xagen!~Xagen@99-135-179-142.lightspeed.austtx.sbcglobal.net> has joined #oe22:21
*** florian_kc <florian_kc!~florian@dynamic-002-243-101-009.2.243.pool.telefonica.de> has quit IRC (Ping timeout: 252 seconds)23:06
*** florian_kc <florian_kc!~florian@dynamic-002-243-101-009.2.243.pool.telefonica.de> has joined #oe23:52

Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!