All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Nithyakala Sainath <nithisai@gmail.com>
Cc: poky@yoctoproject.org
Subject: Re: Multiple versions of libx11 are due to be built
Date: Tue, 19 May 2015 08:29:58 +0100	[thread overview]
Message-ID: <1432020598.11357.109.camel@linuxfoundation.org> (raw)
In-Reply-To: <CACj2azs1yrQ0fVuJhrgkDTj_kk5G=z4pqmNLjiLeNZFpQv-Lxg@mail.gmail.com>

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




      parent reply	other threads:[~2015-05-19  7:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1432020598.11357.109.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=nithisai@gmail.com \
    --cc=poky@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.