<div dir="ltr"><div><div><div><div>Patrick,<br><br></div>sorry I didn&#39;t put you in cc.<br></div>My quick&amp;dirty workaround: <a href="http://patchwork.openembedded.org/patch/101169/">http://patchwork.openembedded.org/patch/101169/</a><br><br></div>Cheers<br><br></div>Andrea<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 25, 2015 at 3:26 PM, Mark Hatle <span dir="ltr">&lt;<a href="mailto:mark.hatle@windriver.com" target="_blank">mark.hatle@windriver.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="HOEnZb"><div class="h5">On 8/25/15 6:46 AM, Patrick Ohly wrote:<br>
&gt; On Fri, 2015-08-14 at 11:51 +0100, Burton, Ross wrote:<br>
&gt;&gt;<br>
&gt;&gt; On 12 August 2015 at 10:33, Patrick Ohly &lt;<a href="mailto:patrick.ohly@intel.com">patrick.ohly@intel.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;         &gt; There&#39;s a &quot;xattr&quot; DISTRO_FEATURE that should be respected<br>
&gt;&gt;         here for<br>
&gt;&gt;         &gt; target builds (and explicitly enabled for native I guess).<br>
&gt;&gt;<br>
&gt;&gt;         I can add that check, if you want.<br>
&gt;&gt;<br>
&gt;&gt;         &gt; Does enabling xattr mean adding build dependencies?<br>
&gt;&gt;<br>
&gt;&gt;         No, the conditional code uses lgetxattr and llistxattr, which<br>
&gt;&gt;         are in<br>
&gt;&gt;         glibc.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; From five seconds of google it looks like these are in musl and uclibc<br>
&gt;&gt; too, so I&#39;ve merged this  to MUT as-is.<br>
&gt;<br>
&gt; However, it turned out that the XATTR code also introduces a dependency<br>
&gt; on sys/acl.h:<br>
&gt;<br>
&gt; mkfs.jffs2.c:<br>
&gt;<br>
&gt; #ifndef WITHOUT_XATTR<br>
&gt; #include &lt;sys/xattr.h&gt;<br>
&gt; #include &lt;sys/acl.h&gt;<br>
&gt; #endif<br>
&gt;<br>
&gt; sys/acl.h gets provided by acl, so it may or may not work depending on<br>
&gt; build order and files on the host.<br>
&gt;<br>
&gt; I hadn&#39;t caught that because I had only looked at library dependencies,<br>
&gt; sorry for that.<br>
&gt;<br>
&gt; What&#39;s the right fix? Add the dependency on acl-native in the native<br>
&gt; case, disable XATTR support for target builds (same state as before) or<br>
&gt; make it somehow depend on both &quot;xattr&quot; and &quot;acl&quot; distro features?<br>
&gt;<br>
&gt; Or only check for &quot;xattr&quot;? I&#39;m uncertain how the two are related.<br>
&gt;<br>
<br>
</div></div>Use PACKAGECONFIG, add xattr as a configuration that in turn adds the &#39;acl&#39; as a<br>
dependency.  Then acl-native will automatically be converted from &#39;acl&#39; if the<br>
&#39;-native&#39; version is built.<br>
<br>
This is typically how I&#39;ve seen it implemented in other places.  (Not necessary<br>
xattr.. but with the push for more Linux Security Models coming from users and<br>
other layers, I think xattr is something we need to make sure really works<br>
properly.)<br>
<span class="HOEnZb"><font color="#888888"><br>
--Mark<br>
</font></span><div class="HOEnZb"><div class="h5">--<br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</div></div></blockquote></div><br></div>