[yocto] ALTERNATIVE_* problem

Joseph Andrew de la Peña jdelapena at lexmark.com
Sun Jan 25 17:59:17 PST 2015


Good day Ross, Paul,

Maybe you have an idea how to implement better my recipe with
ALTERNATIVES_*?

Looking forward to your response.

Thanks,
Joseph

On Fri, Jan 23, 2015 at 7:04 PM, Joseph Andrew de la Peña <
jdelapena at lexmark.com> wrote:

> Good day Yocto Community,
>
> I would like to ask what's wrong with my implementation with ALTERNATIVE_*:
>
> =================
>
> *bar_git.bb <http://bar_git.bb>:*
>
> PACKAGES =+ "${PN}-bar1 ${PN}-bar2 ${PN}-bar3"
> RPROVIDES_${PN}-bar1 = "bar"
> RPROVIDES_${PN}-bar2 = "bar"
> RPROVIDES_${PN}-bar3 = "bar"
>
> ALTERNATIVE_LINK_NAME[bar] = "${datadir}/foo/bar"
>
> ALTERNATIVE_${PN}-bar1 = "bar"
> ALTERNATIVE_TARGET_${PN}-bar1 = "${datadir}/foo/bar1"
> ALTERNATIVE_PRIORITY_${PN}-bar1 = "99"
>
> ALTERNATIVE_${PN}-bar2 = "bar"
> ALTERNATIVE_TARGET_${PN}-bar2 = "${datadir}/foo/bar2"
> ALTERNATIVE_PRIORITY_${PN}-bar2 = "98"
>
> ALTERNATIVE_${PN}-bar3 = "bar"
> ALTERNATIVE_TARGET_${PN}-bar3 = "${datadir}/foo/bar3"
> ALTERNATIVE_PRIORITY_${PN}-bar3 = "97"
>
> *packagegroup-foobar.bb <http://packagegroup-foobar.bb>:*
>
> RDEPENDS_foobar = "bar"
>
> =================
>
> The end result is always bar3 is present and bar is pointing to bar3. I
> never get bar1 being present.
> Please do recommend how will I properly use ALTERNATIVE.
>
> Thanks,
> Joseph
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150126/7e5fafd4/attachment.html>


More information about the yocto mailing list