devtool simply isn't meant for recipes which pull multiple sources in SRC_URI. Also, we do not have a devtool maintainer :-/
You can poke around its code to see if it can be addressed (easily-ish), but I suspect you have to write a different recipe for the 'myrepo' item which can then be 'devtool'-ed, and stage the output into sysroot, e.g. classical oe-core 'build dependecy' flow. Alex On Wed, 15 Mar 2023 at 16:53, Frederic Martinsons <[email protected]> wrote: > > Hello again list, > > I continue my investigation on developing a rust project within > openembedded environment. After discussion with some of you, I have a > project (binary) which will use some custom library crates (and so > these rely on other git repositories). > > In order to simply build the project I need to add this patch > https://patchwork.yoctoproject.org/project/oe-core/patch/[email protected]/ > (with little modification to support uri like > "git://git@my_repo:7999/myproject.git") > > After that ports, the project was built successfully. Now I want to > develop in it ;) and so I use devtool (like I do for python or C > project) and I have another set issue. > I get back to having cargo trying to clone these git repos during the > build (which is forbidden since no network access is allowed except > during the fetch). > > I search a little and it seems it is the externalsrc.bbclass which > remove the git url in this line: > https://github.com/openembedded/openembedded-core/blob/master/meta/classes/externalsrc.bbclass#L76 > > I confirm that by issuing bitbake -e on my recipe and looking for > SRC_URI modifications. > > In my recipe I have something like: > > | SRC_URI += " \ > | crate://crates.io/aho-corasick/0.7.20 \ > | crate://crates.io/async-broadcast/0.5.1 \ > | > git://git@myserver:7999/myrepo.git;protocol=ssh;nobranch=1;name=my-crate;destsuffix=my-crate > | " > | SRCREV_FORMAT .= "_my-crate" > | SRCREV_my-crate = "main" > > And after a "devtool modify" , the git dependency disappears ... > looking at the externalsrc class, it seems pretty straightforward to > know why the url_data.type with "git" doesn't end in local_srcuri. > > I would like to have advice on this if possible, if someone has > already encountered this use case in the past ? > > To my opinion, devtool should treat these SRC_URI alike but how can it > make the difference with the primary git repository (the one which > contains the top project) and the other git repositories ? > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#178647): https://lists.openembedded.org/g/openembedded-core/message/178647 Mute This Topic: https://lists.openembedded.org/mt/97630658/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
