Openembedded Core Discussions
 help / color / mirror / Atom feed
* libpython2
@ 2012-04-10 13:41 Andreas Oberritter
  2012-04-10 13:56 ` libpython2 Chris Larson
  2012-04-11 11:43 ` libpython2 Richard Purdie
  0 siblings, 2 replies; 4+ messages in thread
From: Andreas Oberritter @ 2012-04-10 13:41 UTC (permalink / raw)
  To: openembedded-core

Hi,

bitbake complains:

"NOTE: multiple providers are available for runtime libpython2 (python,
python-nativesdk)
NOTE: consider defining a PREFERRED_PROVIDER entry to match libpython2"

That's because I'm building a recipe for a binary that RDEPENDS_${PN} on
libpython2. So I added PREFERRED_PROVIDER_libpython2 = "python" to my
disto.conf, but the warning cited above persists.

python_2.7.2.bb contains:

PACKAGES =+ "lib${BPN}2"
...
BBCLASSEXTEND = "nativesdk"

Shouldn't it rather create libpython2 and libpython2-nativesdk or
something similar?

What could be the reason for the warning to persist?

Regards,
Andreas




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

* Re: libpython2
  2012-04-10 13:41 libpython2 Andreas Oberritter
@ 2012-04-10 13:56 ` Chris Larson
  2012-04-11 11:45   ` libpython2 Richard Purdie
  2012-04-11 11:43 ` libpython2 Richard Purdie
  1 sibling, 1 reply; 4+ messages in thread
From: Chris Larson @ 2012-04-10 13:56 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Tue, Apr 10, 2012 at 6:41 AM, Andreas Oberritter
<obi@opendreambox.org> wrote:
> "NOTE: multiple providers are available for runtime libpython2 (python,
> python-nativesdk)
> NOTE: consider defining a PREFERRED_PROVIDER entry to match libpython2"
>
> That's because I'm building a recipe for a binary that RDEPENDS_${PN} on
> libpython2. So I added PREFERRED_PROVIDER_libpython2 = "python" to my
> disto.conf, but the warning cited above persists.
>
> python_2.7.2.bb contains:
>
> PACKAGES =+ "lib${BPN}2"
> ...
> BBCLASSEXTEND = "nativesdk"
>
> Shouldn't it rather create libpython2 and libpython2-nativesdk or
> something similar?
>
> What could be the reason for the warning to persist?

Because PREFERRED_PROVIDER_<some runtime provide> = "some recipe" is
invalid. PREFERRED_PROVIDER_ only ever operates against build time
dependencies. The runtime are worked out based on that. If you were to
set something like PREFERRED_PROVIDER_python = "python", it would
probably shut the warning up, as it would see that a preference exists
on a recipe that provides one of the runtime packages, and would
therefore know which to use. Having to rely on this sort of implicit
behavior rather than having a means of explicitly specifying runtime
preferences is a flaw in bitbake, in my opinion.
-- 
Christopher Larson



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

* Re: libpython2
  2012-04-10 13:41 libpython2 Andreas Oberritter
  2012-04-10 13:56 ` libpython2 Chris Larson
@ 2012-04-11 11:43 ` Richard Purdie
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2012-04-11 11:43 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Tue, 2012-04-10 at 15:41 +0200, Andreas Oberritter wrote:
> Hi,
> 
> bitbake complains:
> 
> "NOTE: multiple providers are available for runtime libpython2 (python,
> python-nativesdk)
> NOTE: consider defining a PREFERRED_PROVIDER entry to match libpython2"
> 
> That's because I'm building a recipe for a binary that RDEPENDS_${PN} on
> libpython2. So I added PREFERRED_PROVIDER_libpython2 = "python" to my
> disto.conf, but the warning cited above persists.
> 
> python_2.7.2.bb contains:
> 
> PACKAGES =+ "lib${BPN}2"
> ...
> BBCLASSEXTEND = "nativesdk"
> 
> Shouldn't it rather create libpython2 and libpython2-nativesdk or
> something similar?
> 
> What could be the reason for the warning to persist?

python-nativesdk should not be providing libpython2. There is a bug in
the packaging somewhere. This usually results in needing to add the
PKGSUFFIX mess. I want to get rid of that entirely and switch to the
multilib way of handling this with a prefix but it didn't happen in time
for 1.2 :(.

Cheers,

Richard




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

* Re: libpython2
  2012-04-10 13:56 ` libpython2 Chris Larson
@ 2012-04-11 11:45   ` Richard Purdie
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2012-04-11 11:45 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Tue, 2012-04-10 at 06:56 -0700, Chris Larson wrote:
> On Tue, Apr 10, 2012 at 6:41 AM, Andreas Oberritter
> <obi@opendreambox.org> wrote:
> > "NOTE: multiple providers are available for runtime libpython2 (python,
> > python-nativesdk)
> > NOTE: consider defining a PREFERRED_PROVIDER entry to match libpython2"
> >
> > That's because I'm building a recipe for a binary that RDEPENDS_${PN} on
> > libpython2. So I added PREFERRED_PROVIDER_libpython2 = "python" to my
> > disto.conf, but the warning cited above persists.
> >
> > python_2.7.2.bb contains:
> >
> > PACKAGES =+ "lib${BPN}2"
> > ...
> > BBCLASSEXTEND = "nativesdk"
> >
> > Shouldn't it rather create libpython2 and libpython2-nativesdk or
> > something similar?
> >
> > What could be the reason for the warning to persist?
> 
> Because PREFERRED_PROVIDER_<some runtime provide> = "some recipe" is
> invalid. PREFERRED_PROVIDER_ only ever operates against build time
> dependencies. The runtime are worked out based on that. If you were to
> set something like PREFERRED_PROVIDER_python = "python", it would
> probably shut the warning up, as it would see that a preference exists
> on a recipe that provides one of the runtime packages, and would
> therefore know which to use. Having to rely on this sort of implicit
> behavior rather than having a means of explicitly specifying runtime
> preferences is a flaw in bitbake, in my opinion.

python-nativesdk should simply not be providing libpython2...

Cheers,

Richard




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

end of thread, other threads:[~2012-04-11 11:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-10 13:41 libpython2 Andreas Oberritter
2012-04-10 13:56 ` libpython2 Chris Larson
2012-04-11 11:45   ` libpython2 Richard Purdie
2012-04-11 11:43 ` libpython2 Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox