From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Chris Larson <clarson@kergoth.com>
Cc: bitbake-devel <bitbake-devel@lists.openembedded.org>,
openembedded-core <openembedded-core@lists.openembedded.org>
Subject: Re: [bitbake-devel] EXPORT_FUNCTIONS - change in behaviour proposal
Date: Tue, 11 Dec 2012 00:12:10 +0000 [thread overview]
Message-ID: <1355184730.6771.6.camel@ted> (raw)
In-Reply-To: <CABcZANnVEBGUFLNKgD4RQFdUsfKXapT65+9L5crBJ4F9No1Spw@mail.gmail.com>
On Mon, 2012-12-10 at 12:41 -0700, Chris Larson wrote:
> On Mon, Dec 10, 2012 at 10:44 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > E.g. in class alpha:
> >
> > inherit beta
> >
> > alpha_do_stuff () {
> > pre_stuff
> > beta_do_stuff
> > post_stuff
> > }
> >
> > But this is a theoretical case, and often we hack around
> things via
> > _prepend/_append rather than doing things like this, so I
> doubt this
> > is actually done anywhere in practice.
>
>
> With an "EXPORT_FUNCTIONS = do_stuff" in alpha.bbclass,
> wouldn't that
> still work without the intermediaries though?
>
> Hmm, yes, good point. Perhaps it was to allow the user to override an
> intermediate function that might or might not exist?
>
> E.g. in the do_configure calls gnomebase_do_configure calls
> autotools_do_configure case, the user could override
> gnomebase_do_configure, without having to know whether or not
> gnomebase actually defines a configure function?
>
> I'm guessing here, but that *could* be why it was implemented this
> way. In practice, however, we have to know what our classes are doing
> anyway, most of the time, for a wide variety of reasons. E.g. uses of
> overrides have to be operated against carefully to avoid your changes
> being blown away.
Could well be this was the reason. I think the exact class the current
code will pick for any intermediary is determined by parse order and I
can't find any case we actually use this property. As you say, I can't
see it being that useful in practise.
I've proposed a bitbake patch which removes the intermediary and
simplifies things a bit.
Cheers,
Richard
prev parent reply other threads:[~2012-12-11 0:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-10 16:09 EXPORT_FUNCTIONS - change in behaviour proposal Richard Purdie
2012-12-10 17:29 ` [bitbake-devel] " Chris Larson
2012-12-10 17:44 ` Richard Purdie
2012-12-10 19:41 ` Chris Larson
2012-12-11 0:12 ` 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=1355184730.6771.6.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=bitbake-devel@lists.openembedded.org \
--cc=clarson@kergoth.com \
--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