Skip to contentSkip to conversation

Question about multiple recipe versions for the same package

DISCUSSION Carlos Rafael Giani 2 participants 2 messages Apr 26, 2013

lore
Share & tools
lore
#0 lore raw

Hello,

if I have a package foo, I wrote a recipe for foo release 1.0 , and another for building directly from its git repository (in other terms, there are two .bb files, foo_1.0.bb and foo_git.bb ),
which one is preferred? I would like for the 1.0 one to be used by default.

And if 1.0 is preferred, how can I explicitely select the git version? Is adding this line to local.conf:
PREFERRED_VERSION_foo = "git"

correct? It would be nice if "git" were enough, instead of something like "1.0+gitr${SRCREV}" .

cheers

#1 lore raw

Put DEFAULT_PREFERENCE = "-1" in foo_git.bb to prefer foo_1.0 even when git recipe has higher PV.

Use PREFERRED_VERSION_foo = "1.0+git%" to select foo_git.bb.

On Fri, Apr 26, 2013 at 11:25 PM, Carlos Rafael Giani <[email protected]

Quoted 23 lines

wrote:

Hello,

if I have a package foo, I wrote a recipe for foo release 1.0 , and another for building directly from its git repository
(in other terms, there are two .bb files, foo_1.0.bb and foo_git.bb ), which one is preferred? I would like for the 1.0 one to be used by default.

And if 1.0 is preferred, how can I explicitely select the git version? Is adding this line to local.conf:
PREFERRED_VERSION_foo = "git"

correct? It would be nice if "git" were enough, instead of something like "1.0+gitr${SRCREV}" .

cheers

______________________________**_________________
Openembedded-devel mailing list Openembedded-devel@lists.**openembedded.org<[email protected]>
http://lists.linuxtogo.org/**cgi-bin/mailman/listinfo/**openembedded-devel<http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel>