| *** leon-anavi <leon-anavi!~Leon@46.55.231.62> has joined #oe | 05:41 | |
| *** mckoan_ is now known as mckoan | 06:35 | |
| *** mckoan is now known as mckoan|away | 06:35 | |
| *** Kubu_work <Kubu_work!~kubu@lfbn-nan-1-335-137.w82-120.abo.wanadoo.fr> has joined #oe | 07: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 #oe | 08:27 | |
| *** guest92 <guest92!~guest92@185.37.248.114> has joined #oe | 08:27 | |
| *** Saur_Home66 <Saur_Home66!~Saur_Home@94-137-113-31.customers.ownit.se> has joined #oe | 08: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 #oe | 11:35 | |
| *** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has joined #oe | 12:14 | |
| mort | Does anyone have any tips for making recipes for software which uses multiple languages? | 12:30 |
|---|---|---|
| mort | I 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 hacks | 12: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 #oe | 13:10 | |
| rburton | mort: how are you meant to build it outside of bitbake? presumably not go this and cargo that and meson the other? | 13:33 |
| rburton | but 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_configure | 13:33 |
| mort | go.bbclass puts everything into ${B}/src/${GO_IMPORT}, which meson.bbclass and cargo.bbclass don't really expect | 13:36 |
| mort | and 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 compiled | 13:37 |
| mort | and before Go can be compiled, cbindgen must be run on the Rust code to generate a header which Go includes | 13:37 |
| *** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has quit IRC (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/) | 13:45 | |
| rburton | mort: oh dear god | 13:52 |
| zeddii | where's the puke emoji | 14:00 |
| rburton | 🤮 | 14:01 |
| zeddii | seriously though. rburton that's right up there with the worst case scenario we were talking about on IRC and vienna. | 14:01 |
| mort | I mean this isn't an uncommon scenario | 14:01 |
| zeddii | does it need clang as well ? | 14:01 |
| zeddii | that doesn't make it not horrible. | 14:01 |
| rburton | mort: rust *and* go in a single binary i'd argue isn't _uncommon_ | 14:01 |
| rburton | erm, isn't common | 14:02 |
| mort | but two languages in one binary is common | 14:02 |
| zeddii | yes, we are more commenting on that mix. | 14:02 |
| zeddii | I'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 |
| mort | it wouldn't be easier if it was a C++ project which linked against a .so built from rust | 14:03 |
| mort | anyway the Go and Rust parts are working well together, I'm trying to figure out how to get meson into the mix | 14:05 |
| mort | I might just grab the guts from meson.bbclass | 14:06 |
| zeddii | that'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 |
| KanjiMonster | I 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 |
| mort | that may be reasonable | 14:20 |
| *** Xagen <Xagen!~Xagen@4.14.206.69> has joined #oe | 14:24 | |
| *** Xagen <Xagen!~Xagen@4.14.206.69> has quit IRC (Client Quit) | 14:29 | |
| *** Xagen <Xagen!~Xagen@4.14.206.69> has joined #oe | 14:32 | |
| *** Xagen <Xagen!~Xagen@4.14.206.69> has quit IRC (Client Quit) | 14:36 | |
| *** Xagen <Xagen!~Xagen@4.14.206.69> has joined #oe | 14:41 | |
| mort | https://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 |
| mort | is 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 work | 15:22 |
| KanjiMonster | inherit of course, no idea where my head went there | 15:22 |
| KanjiMonster | mort: ^ | 15:23 |
| mort | I tried that first, it wasn't working ... but neither is replacing the whole do_compile with my own, so something weird is going on | 15:24 |
| mort | it's as if cargo is ignoring --no-default-features | 15:24 |
| mort | it's complaining that it can't find a certain crate, but it doesn't depend on that crate unless a particular feature is enabled | 15: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 #oe | 16: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 #oe | 17: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 #oe | 18:08 | |
| *** Xagen <Xagen!~Xagen@4.14.206.69> has joined #oe | 18: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 #oe | 19:20 | |
| *** Emantor <Emantor!~Emantor@magratgarlick.emantor.de> has joined #oe | 19:20 | |
| *** KNERD <KNERD!~KNERD@user/knerd> has joined #oe | 19:20 | |
| *** moto-timo <moto-timo!sid495702@fedora/ttorling> has joined #oe | 19:20 | |
| *** flynn378 <flynn378!sid63564@2a03:5180:f:3::f84c> has joined #oe | 19:20 | |
| *** mario-goulart <mario-goulart!~user@chicken/developer/mario-goulart> has joined #oe | 19:20 | |
| *** khem <khem!khem@2600:3c02::f03c:93ff:fe83:edf2> has joined #oe | 19:26 | |
| *** Saur_Home4 <Saur_Home4!~Saur_Home@94-137-113-31.customers.ownit.se> has joined #oe | 20: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 #oe | 21: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 #oe | 22: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 #oe | 23:52 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!