<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 19 June 2016 at 10:52, Max Krummenacher <span dir="ltr">&lt;<a href="mailto:max.oss.09@gmail.com" target="_blank">max.oss.09@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":2zu" class="">    PACKAGECONFIG ?= &quot;gtk3&quot;<br>
    PACKAGECONFIG[gtk2] = &quot;,,gtk+&quot;<br>
    PACKAGECONFIG[gtk3] = &quot;--enable-gtk3,,gtk+3&quot;</div></blockquote></div><br>PACKAGECONFIGs are meant to be explicit so &quot;thing which is enabled when something else is disabled&quot; is obvious unless you write log comments explaining the options.</div><div class="gmail_extra"><br></div><div class="gmail_extra">For example, what if PACKAGECONFIG was set to &quot;&quot; but gtk+ was already in the sysroot.  By the logic you&#39;ve described that would result in your recipe being built with gtk+ despite being told not to, or maybe if gtk3 is autodetected first and that&#39;s also in the sysroot then gtk3 gets used instead.  You literally can&#39;t tell, and if bitbake can&#39;t tell then you&#39;ll have binary packages changing when they shouldn&#39;t be.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Idiomatically you&#39;d have - or expect - something like</div><div class="gmail_extra"><br></div>    PACKAGECONFIG ?= &quot;gtk3&quot;<br>    PACKAGECONFIG[gtk2] = &quot;--enable-gtk2,--disable-gtk2,gtk+&quot;<br>    PACKAGECONFIG[gtk3] = &quot;--enable-gtk3,--disable-gtk3,gtk+3&quot;<div><br></div><div>If the upstream doesn&#39;t support this then you&#39;re hoping that they don&#39;t change the default values, or the configure doesn&#39;t attempt to auto-detect, or various other ways that having options with no enable or disable values can break.  At that point I&#39;d actually fix upstream&#39;s configure and send a patch instead of attempting to work around it.</div><div><br></div><div>Ross</div></div>