<div class="gmail_quote">On Thu, Jul 5, 2012 at 8:32 PM, Scott Garman <span dir="ltr"><<a href="mailto:scott.a.garman@intel.com" target="_blank">scott.a.garman@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 07/05/2012 03:14 AM, Robert P. J. Day wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, 4 Jul 2012, Khem Raj wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
On 7/4/2012 4:29 AM, Richard Purdie wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
AFAICT, you can't override an append. Both appends, the<br>
original and the bbappended, would get executed.<br>
</blockquote></blockquote>
<br>
ok, now i *definitely* want to know whether this would work or<br>
not since there are a few recipes that define both do_install()<br>
and do_install_append().<br>
</blockquote></blockquote>
Andreas is correct, you can't override a do_install_append (),<br>
both would just get appended.<br>
</blockquote>
<br>
yes thats true. I was thinking about having appends which are<br>
recipe-class specific but that case wont apply to a normal _append<br>
like above<br>
</blockquote>
<br>
so, in the end. there's really no compelling rationale for a recipe<br>
defining both a do_install() and do_install_append() back to back, is<br>
that correct? because there are a small number of OE recipes that do<br>
just that:<br>
<br>
$ grep -wl do_install $(grep -rlw do_install_append *)<br>
meta/recipes-support/libcap/<u></u>libcap.inc<br>
meta/recipes-devtools/<u></u>e2fsprogs/<a href="http://e2fsprogs_1.42.1.bb" target="_blank">e2fsprogs_1.42.1.bb</a><br>
meta/recipes-core/tinylogin/<a href="http://tinylogin_1.4.bb" target="_blank">ti<u></u>nylogin_1.4.bb</a><br>
meta/recipes-core/eglibc/<u></u>eglibc-package.inc<br>
meta/recipes-kernel/linux/<u></u>linux-yocto.inc<br>
meta/recipes-extended/lsb/<a href="http://lsb_1.4.bb" target="_blank">lsb_<u></u>1.4.bb</a><br>
meta/recipes-extended/man/<a href="http://man_1.6f.bb" target="_blank">man_<u></u>1.6f.bb</a><br>
meta/recipes-extended/<u></u>logrotate/<a href="http://logrotate_3.8.1.bb" target="_blank">logrotate_3.8.1.bb</a><br>
$<br>
<br>
obviously, it doesn't hurt, it just seems unnecessary.<br>
</blockquote>
<br>
I wrote the do_install_append() in e2fsprogs, and it was no doubt due to the fact that I was moving libraries around in a number of recipes, and wanted to logically separate this operation into the _append step in a consistent manner. It was just a mindset I was in, and as you point out, it wasn't necessary, nor did it do much harm.<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></blockquote><div><br></div><div>In my opinion this behavior makes sense for stuff that are just temporary pulled in / aka workarounds. </div><div><br></div><div>@g</div></div>