<div dir="ltr">On 2 March 2018 at 04:44, Anuj Mittal <span dir="ltr">&lt;<a href="mailto:anuj.mittal@intel.com" target="_blank">anuj.mittal@intel.com</a>&gt;</span> wrote: <div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
 # gui support was added with kernel 3.6.35<br>
 # since 3.10 libnewt was replaced by slang<br>
 # to cover a wide range of kernel we add both dependencies<br>
@@ -22,6 +22,10 @@ PACKAGECONFIG[libnuma] = &quot;,NO_LIBNUMA=1&quot;<br>
 PACKAGECONFIG[systemtap] = &quot;,NO_SDT=1,systemtap&quot;<br>
 PACKAGECONFIG[jvmti] = &quot;,NO_JVMTI=1&quot;<br>
<br>
+# libaudit support needs python to be present<br>
+PACKAGECONFIG[audit] = &quot;,NO_LIBAUDIT=1,audit python&quot;<br></blockquote><div><br></div><div>All you need in this patch is:</div><div><br></div><div>+# audit needs scripting to be enabled.</div><div>+PACKAGECONFIG[audit] = &quot;,NO_LIBAUDIT=1,audit&quot;</div><div><br></div><div>The convoluted logic will only get more complicated over time, when a comment saying &quot;if you want audit to work, turn on scripting&quot; is sufficient.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
+PACKAGECONFIG_CONFARGS += &quot;${@bb.utils.contains_any(&#39;<wbr>PACKAGECONFIG&#39;, &#39;scripting audit&#39;, &#39;&#39;, &#39;NO_LIBPYTHON=1&#39;, d)}</blockquote><div><br></div><div>PACKAGECONFG_CONFAGS isn&#39;t for assigning in a recipe.</div><div><br></div><div>Ross</div></div></div></div>