<div dir="ltr"><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-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><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"><span><br>
&gt;&gt;&gt; WARNING: Could not copy license file<br>
&gt;&gt;&gt; /data/poky-master/tmp/work/corei7-64-poky-linux/gmp/6.0.0-r0/gmp-6.0.0/COPYING.LESSERv3<br>
&gt;&gt;&gt; to<br>
&gt;&gt;&gt; /data/poky-master/tmp/work/corei7-64-poky-linux/gmp/6.0.0-r0/license-destdir/gmp/COPYING.LESSERv3:<br>
&gt;&gt;&gt; [Errno 1] Operation not permitted:<br>
&gt;&gt;&gt; &#39;/data/poky-master/tmp/work/corei7-64-poky-linux/gmp/6.0.0-r0/license-destdir/gmp/COPYING.LESSERv3&#39;<br>
&gt;<br>
&gt; The above warning comes up during do_populate_lic task, and this task<br>
&gt; is not being executed in pseudo environment. So changing ownership of<br>
&gt; license files to root user (explicitly via &quot;0&quot;) fails, as normal user<br>
&gt; doesn&#39;t have permissions to do so.<br>
&gt;<br>
&gt; In this case, use of os.getuid() and os.getgid() behaves correctly, by<br>
&gt; giving normal user id and solving this warning. So this is one<br>
&gt; advantage of using os.getuid() and os.getgid() over explicit &quot;0&quot;.<br>
<br>
</span>The real fix would be put this to run under pseudo, it seems.<br>
<span><font color="#888888"><br></font></span></blockquote><div><br></div></span><div>Running populate_lic under pseudo will solve this warning. I will send v3, if other members are fine with this solution.</div><div><br></div></div></div></div></blockquote><div>Update:</div><div><br></div><div>Running do_populate_lic task under pseudo is going solve &quot;[Errno 1] Operation not permitted:&quot; warnings for target packages, but native packages are going to have this warnings, as native packages </div><div>tasks are not executed under pseudo.</div><div><br></div><div>Example:</div><div>-- snip --</div><div>WARNING: Could not copy license file /opt/work_jagadeesh/poky-jethro-14.0.0/build/tmp/work/x86_64-linux/zlib-native/1.2.8-r0/zlib-1.2.8/zlib.h to /opt/work_jagadeesh/poky-jethro-14.0.0/build/tmp/work/x86_64-linux/zlib-native/1.2.8-r0/license-destdir/zlib-native/zlib.h: [Errno 1] Operation not permitted: &#39;/opt/work_jagadeesh/poky-jethro-14.0.0/build/tmp/work/x86_64-linux/zlib-native/1.2.8-r0/license-destdir/zlib-native/zlib.h&#39;</div><div>WARNING: Could not copy license file /opt/work_jagadeesh/poky-jethro-14.0.0/meta/files/common-licenses/Zlib to /opt/work_jagadeesh/poky-jethro-14.0.0/build/tmp/work/x86_64-linux/zlib-native/1.2.8-r0/license-destdir/zlib-native/generic_Zlib: [Errno 1] Operation not permitted: &#39;/opt/work_jagadeesh/poky-jethro-14.0.0/build/tmp/work/x86_64-linux/zlib-native/1.2.8-r0/license-destdir/zlib-native/generic_Zlib&#39;</div><div>-- CUT --</div><div><br></div><div>Regards,</div><div>Jagadeesh</div><div><br></div><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 dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><span class=""><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"><span><font color="#888888"><br>
Otavio Salvador                             O.S. Systems<br>
<a href="http://www.ossystems.com.br" rel="noreferrer" target="_blank">http://www.ossystems.com.br</a>        <a href="http://code.ossystems.com.br" rel="noreferrer" target="_blank">http://code.ossystems.com.br</a><br>
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750<br>
</font></span></blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>