* Question about multiple recipe versions for the same package
@ 2013-04-26 21:25 Carlos Rafael Giani
2013-04-26 21:28 ` Martin Jansa
0 siblings, 1 reply; 2+ messages in thread
From: Carlos Rafael Giani @ 2013-04-26 21:25 UTC (permalink / raw)
To: openembedded-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Question about multiple recipe versions for the same package
2013-04-26 21:25 Question about multiple recipe versions for the same package Carlos Rafael Giani
@ 2013-04-26 21:28 ` Martin Jansa
0 siblings, 0 replies; 2+ messages in thread
From: Martin Jansa @ 2013-04-26 21:28 UTC (permalink / raw)
To: openembedded-devel
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 <dv@pseudoterminal.org
> 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<Openembedded-devel@lists.openembedded.org>
> http://lists.linuxtogo.org/**cgi-bin/mailman/listinfo/**openembedded-devel<http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-26 21:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-26 21:25 Question about multiple recipe versions for the same package Carlos Rafael Giani
2013-04-26 21:28 ` Martin Jansa
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.