How to avoid file conflicts between attempted installs during a BitBake build?
<p>I have two autotools-based BitBake recipes which both provide the same named file (and both install in usr/bin) which causes an error: </p>

<pre><code>error: file /usr/bin/example conflicts between attempted installs of recipe1-0.1-r0.x86 and recipe2-0.1-r0.x86
</code></pre>

<p>I found that I can fix this problem but this really seems like a hackaround with really bad style. If you put this in one of the recipes which provides the example file, it will avoid this specific error, but can cause other errors.</p>

<pre><code>do_install_append () {
    rm -f ${D}${bindir}/example
}
</code></pre>

<p>Is there a better way to avoid this conflict? I thought there might be some hope for <code>PREFERRED_PROVIDER</code> but haven't had any success.</p>