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