<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 10, 2012 at 9:09 AM, Richard Purdie <span dir="ltr"><<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":224">After Enrico's reported problem, I've been poking around the<br>
EXPORT_FUNCTIONS code. Currently OE-Core metadata generates list A<br>
below. In particular, this leads to code like:<br>
<br>
do_configure calls gnomebase_do_configure<br>
gnomebase_do_configure calls autotools_do_configure<br>
<br>
which has a level of indirection. The gnomebase class never references<br>
do_configure. I can appreciate adding in a default mapping of:<br>
<br>
do_configure calls autotools_do_configure<br>
<br>
since it allows a user to call into autotools_do_configure from a custom<br>
do_configure but I can't see the value of the intermediary<br>
gnomebase_do_configure. Does anyone know of a use for it?<br>
<br>
I have a suspicion that if it ever did do anything useful, it stopped<br>
being useful long ago.<br>
<br>
I'm therefore strongly tempted to remove the intermediaries from the<br>
code. This would result in list B below which is a more direct set of<br>
mappings.<br>
<br>
Any thoughts/comments from anyone?</div></blockquote></div><br>In theory, I could see a situation where one class inherits another, rather than just individual components all inherited by the recipe.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">E.g. in class alpha:</div><div class="gmail_extra"><br></div><div class="gmail_extra">inherit beta</div><div class="gmail_extra"><br></div><div class="gmail_extra">alpha_do_stuff () {</div>
<div class="gmail_extra"> pre_stuff</div><div class="gmail_extra"> beta_do_stuff</div><div class="gmail_extra"> post_stuff</div><div class="gmail_extra">}<br clear="all"><div><br></div><div>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.</div>
-- <br>Christopher Larson<br>
</div>