From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: Conflicting providers for ssh/sshd (dropbear and openssh)
Date: Wed, 29 Jun 2011 10:42:29 +0100 [thread overview]
Message-ID: <1309340549.20015.335.camel@rex> (raw)
In-Reply-To: <1309338485.15156.188.camel@phil-desktop>
On Wed, 2011-06-29 at 10:08 +0100, Phil Blundell wrote:
> On Wed, 2011-06-29 at 10:56 +0200, Koen Kooi wrote:
> > That's already the case now. The problem is the PROVIDES overlap since
> > the Poky people decided a distro could only have one true ssh
> > implementation instead of choosing it per image. So if your distro
> > doesn't set the PREFERRED_PROVIDER_sshd you get those nagging messages
> > during parsing that scare users and make consultants rich.
> >
> > OE .dev isn't a lot better with the misguided DISTRO_SSH_DAEMON, but
> > at least it doesn't show those nag messages.
>
> Fundamentally I think it is just a bug in bitbake that it makes such a
> fuss about overlapping PROVIDES. It's not unreasonable for both openssh
> and dropbear to be PROVIDEing something like virtual/ssh-daemon (and
> indeed RPROVIDEing an equivalent) but, as you say, any given distro is
> perfectly entitled to want to build both of them and ship them in
> different images and/or feeds.
>
> I guess what bitbake is really trying to warn about is recipes which
> will install conflicting files into the sysroot. Obviously in a future
> utopia of per-recipe sysroot construction this would be a non-issue, but
> even with today's level of technology I think it would be fairly easy
> for us to detect when a collision actually happens and issue a sensible
> diagnostic at that point. That would allow the offending ERROR to be
> removed without causing any real regression.
Speaking as the person who likely added this code in the first place,
its not quite this simple. There are two problem cases:
a) When we have several recipes like external-toolchain, glibc, eglibc
and uclibc all of which provide virtual/libc. If something else in the
build wants say eglibc-locale-foo but the preferred provider of
virtual/libc is uclibc then what bitbake is trying to warn about is that
it the user isn't going to get what they expect as both uclibc and
eglibc could end up being built.
We used to end up in a mess where bitbake could build the
external-toolchain recipe and some other libcs in parallel resulting an
a what could only be described as a mess. These days this doesn't happen
so much due to bitbake spitting out its dummy earlier on. It is actually
quite hard to detect this problem generically.
b) There is also the case where two recipes might generate the same
package. There is also some code in bitbake which at least tries to flag
problems like that from the point of view of multiple runtime providers.
So the code does actually stop some pretty nasty breakage from happening
but it isn't perfect and if we can find better ways, by all means...
Cheers,
Richard
next prev parent reply other threads:[~2011-06-29 9:46 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-28 22:41 Conflicting providers for ssh/sshd (dropbear and openssh) Khem Raj
2011-06-28 22:51 ` Scott Garman
2011-06-28 23:50 ` Khem Raj
2011-06-28 23:53 ` Graeme Gregory
2011-06-29 1:07 ` Khem Raj
2011-06-29 7:42 ` Anders Darander
2011-06-29 0:34 ` Scott Garman
2011-06-29 8:24 ` Koen Kooi
2011-06-29 8:50 ` Anders Darander
2011-06-29 8:56 ` Koen Kooi
2011-06-29 9:08 ` Phil Blundell
2011-06-29 9:42 ` Richard Purdie [this message]
2011-06-29 9:51 ` Phil Blundell
2011-06-29 10:23 ` Richard Purdie
2011-06-29 9:13 ` Anders Darander
2011-06-29 17:03 ` Scott Garman
2011-07-03 12:26 ` Philip Balister
2011-07-03 15:41 ` Graeme Gregory
2011-06-29 8:56 ` Graeme Gregory
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=1309340549.20015.335.camel@rex \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox