All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rod Whitby <rod@whitby.id.au>
To: Using the OpenEmbedded metadata to build Distributions
	<openembedded-devel@lists.openembedded.org>
Subject: RFC: When PREFERRED_PROVIDER does not build, don't try other alternatives by default
Date: Sat, 30 Aug 2008 17:40:41 +0930	[thread overview]
Message-ID: <48B90081.30105@whitby.id.au> (raw)

Whenever I build virtual/kernel, and for some reason (perhaps a git
fetcher problem, or a patch doesn't apply cleanly) it doesn't build,
bitbake decides to then go and build every other kernel under the sun
trying to complete virtual/kernel.

This is undesirable to the extreme, but I realise that there might have
in the history of OE been a good reason for that behaviour.

My proposal is that bitbake is changed so that if PREFERRED_PROVIDER is
defined, then bitbake does *not* try other providers.  Only if
PREFERRED_PROVIDER is *not* defined should bitbake ever try more than
one package.

Objections?

Here is the IRC log of the discussion with RP about this issue:

<rwhitby> RP: a question for you
<rwhitby> when using virtual/kernel, and your PREFERRED kernel fails to
build, why does bitbake then go and build every other kernel under the sun?
<rwhitby> (and is there a way to stop that happening)
<RP> rwhitby: That is the traditional bitbake behaviour
<RP> rwhitby: I don't actually agree with it but changing it would
breakbacwards compatibilty
<RP> I guess it was once a feature but its turned out no to be so useful
<RP> We should make that behaviour configurable. It only happens with
the -k option anyway
<rwhitby> RP: what was the use case in which it was useful, when
PREFERRED_PROVIDER was defined?
<RP> rwhitby: The idea was it would allow builds to complete rather than
fail
<rwhitby> I can understand it if PREFERRED_PROVIDER is not defined, but
cannot think of a good reason why bitbake should go against explicit
directions for a PREFERRED_PROVIDER
<RP> rwhitby: It comes does to the variable name - "PREFERRED"
<RP> Would it be useful to change the design, I say yes
<RP> but there is history there and as the maintainer I need to be
careful with this
<rwhitby> understood
<rwhitby> can we make it configurable and configure to not do it by
default ?
<RP> We can make it configurable
<RP> I would want to see a discussion about defaults
<RP> Feel free to start that on the bitbake+OE list
<RP> I'm actually in favour of changing it
<RP> but it must be discussed
<rwhitby> nod

-- Rod



             reply	other threads:[~2008-08-30  8:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-30  8:10 Rod Whitby [this message]
2008-08-30  9:36 ` RFC: When PREFERRED_PROVIDER does not build, don't try other alternatives by default Phil Blundell
2008-08-30  9:54   ` Rod Whitby
2008-08-30 10:32     ` Phil Blundell
2008-08-30 15:52 ` K. Richard Pixley
2008-08-30 17:50 ` Koen Kooi

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=48B90081.30105@whitby.id.au \
    --to=rod@whitby.id.au \
    --cc=openembedded-devel@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 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.