*** AdrianVovk[m] <AdrianVovk[m]!adrianvovk@2001:470:1af1:104:0:0:0:2e2a> has joined #buildstream | 04:08 | |
AdrianVovk[m] | Hi! I've got a bit of a hiccup trying to deal with junctions and I'm not sure if it's a bug in bst-1 or I'm missing something obvious | 04:10 |
---|---|---|
AdrianVovk[m] | I have a bootstrap project & a main project. Both are using project.refs to store their refs. The main project junctions off the bootstrap (only used as a build-dep for a few elements, then it's discarded), and the bootstrap junctions off of the freedesktop-sdk (likewise) | 04:11 |
AdrianVovk[m] | Whenever I try to use the junction in the main project, I'll get error messages like this: `Subproject has no ref for junction: freedesktop-sdk.bst. Try tracking the junction element with \`bst track freedesktop-sdk.bst\`` | 04:13 |
AdrianVovk[m] | s/\`/'/, s/\``/'`/ | 04:13 |
AdrianVovk[m] | Note that `freedesktop-sdk` does *not* exist in the main project. Only in the bootstrap. If I just go into the bootstrap project locally, it all works. However, if I pull it through a junction, it seems that `junction.refs` is getting ignored | 04:14 |
AdrianVovk[m] | Now if I `bst track junctions/bootstrap.bst:freedesktop-sdk.bst` in the main project, which at the moment is yielding exactly the same ref as appears in the bootstrap's `junction.refs`, I get errors that every element in the bootstrap project is inconsistent (ex: `Source gnu source at junctions/bootstrap.bst:pkgs/gcc-cross.bst [line 4 column 2] is missing ref`) | 04:19 |
AdrianVovk[m] | Again, if I just go into the bootstrap project, all the elements have refs. But when pulled through the junction, it seems that `project.refs` is ignored also | 04:19 |
AdrianVovk[m] | Am I doing something wrong? Or is this a buildstream issue? I tried looking at buildstream's source to try and figure out what sequence of events causes the "subproject has no ref for junction" error to show up, but I'm not familiar enough with bst's internals | 04:21 |
AdrianVovk[m] | This is on bst 1.6.5, btw. Thanks! | 04:22 |
juergbi | AdrianVovk[m]: This does sound like a bug but I would have to take a closer look at this. bst 1.x has tests for nested junctions but not sure whether any of those use junction.refs | 07:57 |
juergbi | Does it work if you store the freedesktop-sdk ref directly in freedesktop-sdk.bst instead of a junction.refs in the bootstrap project? | 07:58 |
juergbi | A public test repo where this issue can be reproduced would be helpful to track this down. Ideally, we would also create a bst 2.x variant to check whether it affects both or only 1.x | 08:01 |
*** tristan94 <tristan94!tristan@78.40.148.178> has quit IRC | 22:00 | |
*** tristan94 <tristan94!tristan@78.40.148.178> has joined #buildstream | 22:01 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!