All of lore.kernel.org
 help / color / mirror / Atom feed
* Multiple versions of libx11 are due to be built
@ 2015-05-17 20:23 Nithyakala Sainath
  2015-05-18 17:53 ` Randy Witt
  2015-05-19  7:29 ` Richard Purdie
  0 siblings, 2 replies; 5+ messages in thread
From: Nithyakala Sainath @ 2015-05-17 20:23 UTC (permalink / raw)
  To: poky

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

Hello,

I want to understand the process of choosing a recipe by bitbake

There is a libx11_1.3.2.bb in a layer called A with higher priority of 6.

There is another libx11_1.4.0.bb in a layer called B with priority of 5.

So bitbake sshould automatically pick up libx11  from A right ? Why is it
giving me error like:

" Multiple versions of libx11 are due to be built. Only one version of a
given PN should be built in any given build. You likely need to set
PREFERRED_VERSION_libx11 to select the correct version or don't depend on
multiple versions."

Why should i even prefer a version? This happens when I build an image. But
when I directly call

bitbake libx11

the one from layer A is getting picked up.

I am confused. Can you please tell me ?

Thanks,
Nithyakala.

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

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

* Re: Multiple versions of libx11 are due to be built
  2015-05-17 20:23 Multiple versions of libx11 are due to be built Nithyakala Sainath
@ 2015-05-18 17:53 ` Randy Witt
  2015-05-19  7:32   ` Richard Purdie
  2015-05-19  7:29 ` Richard Purdie
  1 sibling, 1 reply; 5+ messages in thread
From: Randy Witt @ 2015-05-18 17:53 UTC (permalink / raw)
  To: Nithyakala Sainath, poky

On 05/17/2015 01:23 PM, Nithyakala Sainath wrote:
> Hello,
>
> I want to understand the process of choosing a recipe by bitbake
>
> There is a libx11_1.3.2.bb in a layer called A with higher priority of 6.
>
> There is another libx11_1.4.0.bb in a layer called B with priority of 5.
>
> So bitbake sshould automatically pick up libx11  from A right ? Why is it
> giving me error like:

" The precedence established through this variable stands regardless of a 
recipe's version (PV variable). For example, a layer that has a recipe with a 
higher PV value but for which the BBFILE_PRIORITY is set to have a lower 
precedence still has a lower precedence."

The documentation definitely makes it sound like this is the case. However, it 
sounds like the layer priority is most likely only taking effect when the 
recipes are the same version.

Richard, does this sound like the documentation needs to be clarified or is this 
a bug?

> " Multiple versions of libx11 are due to be built. Only one version of a
> given PN should be built in any given build. You likely need to set
> PREFERRED_VERSION_libx11 to select the correct version or don't depend on
> multiple versions."
>
> Why should i even prefer a version? This happens when I build an image. But
> when I directly call
>
> bitbake libx11
>
> the one from layer A is getting picked up.
>
> I am confused. Can you please tell me ?
>
> Thanks,
> Nithyakala.
>
>
>



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

* Re: Multiple versions of libx11 are due to be built
  2015-05-17 20:23 Multiple versions of libx11 are due to be built Nithyakala Sainath
  2015-05-18 17:53 ` Randy Witt
@ 2015-05-19  7:29 ` Richard Purdie
  1 sibling, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2015-05-19  7:29 UTC (permalink / raw)
  To: Nithyakala Sainath; +Cc: poky

On Mon, 2015-05-18 at 01:53 +0530, Nithyakala Sainath wrote:
> I want to understand the process of choosing a recipe by bitbake
>
> There is a libx11_1.3.2.bb in a layer called A with higher priority of
> 6.
>
> There is another libx11_1.4.0.bb in a layer called B with priority of
> 5.
>
> So bitbake sshould automatically pick up libx11  from A right ? Why is
> it giving me error like:
>
> " Multiple versions of libx11 are due to be built. Only one version of
> a given PN should be built in any given build. You likely need to set
> PREFERRED_VERSION_libx11 to select the correct version or don't depend
> on multiple versions."

The two libx11 recipes are likely not identical. The things the recipe
provides, be it directly with PROVIDES or in the form of packages it
generates is likely not identical. Something in your build is depending
on this item which only one recipe provides, hence the message above.

> Why should i even prefer a version? This happens when I build an
> image. But when I directly call
>
> bitbake libx11
>
> the one from layer A is getting picked up.
>
> I am confused. Can you please tell me ?
> 
Something in the image depends on something only one of the recipe
provides. I would agree debugging this can be a pain and is something we
should improve...

Cheers,

Richard




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

* Re: Multiple versions of libx11 are due to be built
  2015-05-18 17:53 ` Randy Witt
@ 2015-05-19  7:32   ` Richard Purdie
  2015-05-19  8:09     ` Nithyakala Sainath
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2015-05-19  7:32 UTC (permalink / raw)
  To: Randy Witt, Scott Rifenbark; +Cc: poky, Nithyakala Sainath

On Mon, 2015-05-18 at 10:53 -0700, Randy Witt wrote:
> On 05/17/2015 01:23 PM, Nithyakala Sainath wrote:
> > Hello,
> >
> > I want to understand the process of choosing a recipe by bitbake
> >
> > There is a libx11_1.3.2.bb in a layer called A with higher priority of 6.
> >
> > There is another libx11_1.4.0.bb in a layer called B with priority of 5.
> >
> > So bitbake sshould automatically pick up libx11  from A right ? Why is it
> > giving me error like:
> 
> " The precedence established through this variable stands regardless of a 
> recipe's version (PV variable). For example, a layer that has a recipe with a 
> higher PV value but for which the BBFILE_PRIORITY is set to have a lower 
> precedence still has a lower precedence."
> 
> The documentation definitely makes it sound like this is the case. However, it 
> sounds like the layer priority is most likely only taking effect when the 
> recipes are the same version.
> 
> Richard, does this sound like the documentation needs to be clarified or is this 
> a bug?

The docs likely need to be clarified that this applies if the two
recipes provide identical things. If one provides something and the
other does not, the behaviour is very different. Here, that message
means they are providing different things.

Cc: Scott in case he wants to clarify this in the docs and/or add more
information about this error message (see my other reply to this
thread).

Cheers,

Richard







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

* Re: Multiple versions of libx11 are due to be built
  2015-05-19  7:32   ` Richard Purdie
@ 2015-05-19  8:09     ` Nithyakala Sainath
  0 siblings, 0 replies; 5+ messages in thread
From: Nithyakala Sainath @ 2015-05-19  8:09 UTC (permalink / raw)
  To: Richard Purdie; +Cc: poky

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

Thanks Richard and Randy. That clarifies.

Nithya.

On Tue, May 19, 2015 at 1:02 PM, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:

> On Mon, 2015-05-18 at 10:53 -0700, Randy Witt wrote:
> > On 05/17/2015 01:23 PM, Nithyakala Sainath wrote:
> > > Hello,
> > >
> > > I want to understand the process of choosing a recipe by bitbake
> > >
> > > There is a libx11_1.3.2.bb in a layer called A with higher priority
> of 6.
> > >
> > > There is another libx11_1.4.0.bb in a layer called B with priority of
> 5.
> > >
> > > So bitbake sshould automatically pick up libx11  from A right ? Why is
> it
> > > giving me error like:
> >
> > " The precedence established through this variable stands regardless of a
> > recipe's version (PV variable). For example, a layer that has a recipe
> with a
> > higher PV value but for which the BBFILE_PRIORITY is set to have a lower
> > precedence still has a lower precedence."
> >
> > The documentation definitely makes it sound like this is the case.
> However, it
> > sounds like the layer priority is most likely only taking effect when the
> > recipes are the same version.
> >
> > Richard, does this sound like the documentation needs to be clarified or
> is this
> > a bug?
>
> The docs likely need to be clarified that this applies if the two
> recipes provide identical things. If one provides something and the
> other does not, the behaviour is very different. Here, that message
> means they are providing different things.
>
> Cc: Scott in case he wants to clarify this in the docs and/or add more
> information about this error message (see my other reply to this
> thread).
>
> Cheers,
>
> Richard
>
>
>
>
>
>

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

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

end of thread, other threads:[~2015-05-19  8:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-17 20:23 Multiple versions of libx11 are due to be built Nithyakala Sainath
2015-05-18 17:53 ` Randy Witt
2015-05-19  7:32   ` Richard Purdie
2015-05-19  8:09     ` Nithyakala Sainath
2015-05-19  7:29 ` Richard Purdie

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.