<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 22, 2014 at 6:16 PM, Khem Raj <span dir="ltr">&lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Friday, December 06, 2013 05:42:26 PM Khem Raj wrote:<br>
&gt; ??= does not react at all with<br>
&gt; BOOST_LIBS += &quot;${@base_contains(&#39;PACKAGECONFIG&#39;, &#39;python&#39;, &#39;python&#39;, &#39;&#39;,<br>
&gt; d)}&quot;<br>
&gt;<br>
&gt; even though we have<br>
&gt;<br>
&gt; PACKAGECONFIG ??= &quot;&quot; it does not honor it and always add python to<br>
&gt; BOOST_LIBS but the dependency is not added so it fails to build<br>
&gt; complaining for missing python headers which is a understood outcome<br>
&gt;<br>
&gt; When converted to ?= it works as expected and only add --with-python<br>
&gt; in bjam when python is specified in PACKAGECONFIG otherwise not.<br>
&gt;<br>
&gt; Is it a bitbake bug ? in anycase ?= should be enough of loose rope<br>
&gt; to let user/distro configure the packageconfig policy<br>
&gt;<br>
<br>
</div>OK so the problem is that I have meta-ros in my layer-mix and in that layer<br>
it defines PACKAGECONFIG ?= &quot;python&quot; IMO it should have appended instead of<br>
redefining. Thats why I was seeing what I was seeing.</blockquote></div><br>It&#39;s worth noting that recipes, in general, should use ?= rather than ??=, but config files, in general, should use ??=. Otherwise it becomes impossible for the config metadata to define an overriding default -- the last ??= wins, after all, and that would always be the recipe. IMO default values in the recipe are there to give sane behavior when there&#39;s no configuration coming in from elsewhere, not to override configuration defaults.<br>

-- <br>Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics
</div></div>