All of lore.kernel.org
 help / color / mirror / Atom feed
* ALTERNATIVE_TARGET, ALTERNATIVE_PRIORITY problem
@ 2015-01-27 15:37 Joseph Andrew de la Peña
  2015-01-27 16:53 ` Mark Hatle
  0 siblings, 1 reply; 4+ messages in thread
From: Joseph Andrew de la Peña @ 2015-01-27 15:37 UTC (permalink / raw)
  To: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 1138 bytes --]

Good day Yocto Community,

I would like to ask what's wrong with my implementation with
update-alternatives:

=================

*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"

inherit update-alternatives

*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 which is the result I want.

Please do recommend how will I properly use ALTERNATIVE_TARGET and
ALTERNATIVE_PRIORITY.

Thanks,
Joseph

[-- Attachment #2: Type: text/html, Size: 2679 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-04  1:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-27 15:37 ALTERNATIVE_TARGET, ALTERNATIVE_PRIORITY problem Joseph Andrew de la Peña
2015-01-27 16:53 ` Mark Hatle
2015-01-28 11:12   ` Joseph Andrew de la Peña
2015-02-04  1:26     ` Mark Hatle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.