<p dir="ltr"><br>
On Apr 3, 2016 2:45 PM, &quot;Richard Purdie&quot; &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>&gt; wrote:<br>
&gt;<br>
&gt; On Sun, 2016-04-03 at 22:57 +0200, Max Krummenacher wrote:<br>
&gt; &gt; Addresses <a href="https://bugzilla.yoctoproject.org/show_bug.cgi?id=8939">https://bugzilla.yoctoproject.org/show_bug.cgi?id=8939</a><br>
&gt; &gt;<br>
&gt; &gt; Source files deployed with the *-dbg packages are owned by the user<br>
&gt; &gt; running bitbake leading to warnings as the one below.<br>
&gt; &gt;<br>
&gt; &gt; WARNING: glibc-2.23-r0 do_package_qa: QA Issue: glibc: /glibc<br>
&gt; &gt; -dbg/usr/src/debug/glibc/2.23-r0/git/include/resolv.h is owned by uid<br>
&gt; &gt; 1000, which is the same as the user running bitbake. This may be due<br>
&gt; &gt; to host contamination<br>
&gt; &gt; glibc: /glibc-dbg/usr/src/debug/glibc/2.23-r0/git/include/monetary.h<br>
&gt; &gt; is owned by uid 1000, which is the same as the user running bitbake.<br>
&gt; &gt; This may be due to host contamination<br>
&gt; &gt; glibc: /glibc-dbg/usr/src/debug/glibc/2.23-r0/git/include/locale.h is<br>
&gt; &gt; owned by uid 1000, which is the same as the user running bitbake.<br>
&gt; &gt; This may be due to host contamination<br>
&gt; &gt; ...<br>
&gt; &gt;<br>
&gt; &gt; The files are copied as part of the do_package task.<br>
&gt; &gt; The patch chowns all file in packages/usr/src after cpio copied them<br>
&gt; &gt; into the<br>
&gt; &gt; package directory.<br>
&gt; &gt;<br>
&gt; &gt; Signed-off-by: Max Krummenacher &lt;<a href="mailto:max.krummenacher@toradex.com">max.krummenacher@toradex.com</a>&gt;<br>
&gt; &gt; ---<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;  meta/classes/package.bbclass | 23 +++++++++++++++++++++++<br>
&gt; &gt;  1 file changed, 23 insertions(+)<br>
&gt; &gt;<br>
&gt; &gt; diff --git a/meta/classes/package.bbclass<br>
&gt; &gt; b/meta/classes/package.bbclass<br>
&gt; &gt; index bdbe96d..d9ef62c 100644<br>
&gt; &gt; --- a/meta/classes/package.bbclass<br>
&gt; &gt; +++ b/meta/classes/package.bbclass<br>
&gt; &gt; @@ -362,6 +362,7 @@ def copydebugsources(debugsrcdir, d):<br>
&gt; &gt;      # and copied to the destination here.<br>
&gt; &gt;<br>
&gt; &gt;      import stat<br>
&gt; &gt; +    import subprocess<br>
&gt; &gt;<br>
&gt; &gt;      sourcefile = d.expand(&quot;${WORKDIR}/debugsources.list&quot;)<br>
&gt; &gt;      if debugsrcdir and os.path.isfile(sourcefile):<br>
&gt; &gt; @@ -410,6 +411,28 @@ def copydebugsources(debugsrcdir, d):<br>
&gt; &gt;          if retval:<br>
&gt; &gt;              bb.fatal(&quot;debugsrc symlink fixup failed with exit code<br>
&gt; &gt; %s (cmd was %s)&quot; % (retval, cmd))<br>
&gt; &gt;<br>
&gt; &gt; +        # cpio --no-preserve-owner does not create the destination<br>
&gt; &gt; files with<br>
&gt; &gt; +        # owner root even when run under pseudo, chown them<br>
&gt; &gt; explicitely.<br>
&gt;<br>
&gt; How about passing --owner=0:0 to cpio?<br>
&gt;<br>
&gt; I&#39;m a little worried about why I don&#39;t see this failure on my own local<br>
&gt; builds.</p>
<p dir="ltr">Can you dump the dbg rpm from poky and see if the flagged file is there ?<br>
&gt;<br>
&gt; We have a few cases where things sometimes seem to work out and<br>
&gt; sometimes don&#39;t and I&#39;d love to get to the bottom of how to reproduce<br>
&gt; it and to understand why its different for different people.<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Richard<br>
&gt; --<br>
&gt; _______________________________________________<br>
&gt; Openembedded-core mailing list<br>
&gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</p>