<div dir="ltr"><div dir="ltr">On Tue, 6 Aug 2019 at 16:30, Alexander Kanavin <<a href="mailto:alex.kanavin@gmail.com">alex.kanavin@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Tue, 6 Aug 2019 at 16:16, Richard Purdie <<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I partly agree with this. There is:<br>
<br>
insane.bbclass:do_package_qa[rdeptask] = "do_packagedata"<br>
<br>
which does help the situation by forcing package_qa after all the<br>
runtime dependencies.<br>
<br>
I suspect the real problem is that it can also see RDEPENDS for things<br>
it doesn't rdepend upon...<br>
<br>
You might want package_prepare_pkgdata() from package_pkgdata called<br>
for package_qa's context on a separate directory, then to use that as<br>
the pkgdata to resolve against?<br>
<br>
Note that package_prepare_pkgdata() called for do_package is different<br>
than package_prepare_pkgdata() called for do_package_qa as the tasks<br>
have different dependencies...<br></blockquote><div><br></div><div>I am actually inclined to remove the recursive resolver in insane.bbclass. It gives a QA pass to a situation when there is a bash script in A, and the bash runtime dependency is satisfied indirectly through a chain of arbitrary length: A -> bash-completion -> bash. It becomes hard to reason where the dependencies come from; I think any runtime dependencies should be explicitly listed. We may need to fix up a few recipes, but the outcome is a better definition of runtime dependencies.<br></div></div></div></blockquote><div> </div><div>I made a patch for this:</div><div><a href="http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=akanavin/package-version-updates&id=77bb080eb15de21901c15072898303f2b5275093">http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=akanavin/package-version-updates&id=77bb080eb15de21901c15072898303f2b5275093</a></div><div><br></div><div>Now building oe-core world, to see what kind of fallout it causes.</div><div><br></div><div>Alex<br></div></div></div>