<div dir="ltr"><span style="font-size:12.8000001907349px">Good day Yocto Community,</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I would like to ask what's wrong with my implementation with update-alternatives:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">=================</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><b><a href="http://bar_git.bb/" target="_blank">bar_git.bb</a>:</b></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">PACKAGES =+ "<span style="font-size:13px">${PN}-</span>bar1 <span style="font-size:13px">${PN}-</span>bar2 <span style="font-size:13px">${PN}-</span>bar3"</div><div style="font-size:12.8000001907349px">RPROVIDES_${PN}-bar1 = "bar"</div><div style="font-size:12.8000001907349px">RPROVIDES_${PN}-bar2 = "bar"<br></div><div style="font-size:12.8000001907349px">RPROVIDES_${PN}-bar3 = "bar"<br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div style="font-size:13px">ALTERNATIVE_LINK_NAME[bar] = "${datadir}/foo/bar"<br><br></div><div style="font-size:13px">ALTERNATIVE_${PN}-bar1 = "bar"<br>ALTERNATIVE_TARGET_${PN}-bar1 = "${datadir}/foo/bar1"</div><div style="font-size:13px">ALTERNATIVE_PRIORITY_${PN}-bar1 = "99"</div><div style="font-size:13px"><br>ALTERNATIVE_${PN}-bar2 = "bar"</div><div style="font-size:13px"></div><div style="font-size:13px">ALTERNATIVE_TARGET_${PN}-bar2 = "${datadir}/foo/bar2"</div><div style="font-size:13px">ALTERNATIVE_PRIORITY_${PN}-bar2 = "98"</div></div><div style="font-size:13px"><br></div><div style="font-size:13px"><div>ALTERNATIVE_${PN}-bar3 = "bar"</div><div></div><div>ALTERNATIVE_TARGET_${PN}-bar3 = "${datadir}/foo/bar3"</div><div>ALTERNATIVE_PRIORITY_${PN}-bar3 = "97"</div><div><br></div><div>inherit update-alternatives</div><div><br></div><div><b><a href="http://packagegroup-foobar.bb/" target="_blank">packagegroup-foobar.bb</a>:</b></div><div><br></div><div>RDEPENDS_foobar = "bar"</div><div><br></div><div>=================</div><div><br></div><div>The end result is always bar3 is present and bar is pointing to bar3. I never get bar1 being present which is the result I want.</div><div><br></div><div>Please do recommend how will I properly use ALTERNATIVE_TARGET and ALTERNATIVE_PRIORITY.</div><div><br></div><div>Thanks,</div><div>Joseph</div></div></div>