<div dir="ltr"><div><div>I came across these bugs in poky 1.6.3 (daisy) with multiple package providers. I fixed bug 6149 with just bitbake patch.<br><br>I came across another bug with this when I tried the bitbake fix on master. With the test case <br><br>IMAGE_INSTALL_append = &quot; sshd&quot;<br>PREFERRED_PROVIDER_sshd=&quot;dropbear&quot;<br><br></div>meta/lib/oe/package_manager.py reported a package not found in the base feeds. The file image.bbclass starts copies IMAGE_INSTALL to PACKAGE_INSTALL and performs fix ups for multilib, etc. I added another function (rootfs_process_preferred_providers) to replace sshd in PACKAGE_INSTALL with dropbear. This eliminated the error.<br><br></div><div>The mega-manual is vague when it describes what can be specified in PREFERRED_PROVIDER: an item. And the code partially supports run-time packages as a valid item on the left. My implementation assumes a package name on the right.<br><br>Yocto bug 5044 suggests traversing from the package name to the 
virtual/* provider, but I have not thought through how this might work.<br><br>IMAGE_INSTALL_append = &quot; libasound-module-bluez&quot;<br>PREFERRED_PROVIDER_libasound-module-bluez=&quot;bluez4&quot;<br><br></div><div>I got this working on poky 1.6.3, but some changes to the bluez recipes on master seemed to mitigate the original problem.<br><br><br></div><div>- Jate S.<br></div></div>