From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: "Andreas Müller" <schnitzeltony@googlemail.com>,
"Max Krummenacher" <max.oss.09@gmail.com>
Cc: Max Krummenacher <max.krummenacher@toradex.com>,
OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [oe][Patch] package.bbclass: fix host contamination warnings for source files
Date: Mon, 04 Apr 2016 23:43:30 +0100 [thread overview]
Message-ID: <1459809810.7348.160.camel@linuxfoundation.org> (raw)
In-Reply-To: <CALbNGRTBWN37Y5vfhVxChSkUSU49oGQv1x9iug-zpZ2epn--4A@mail.gmail.com>
On Mon, 2016-04-04 at 23:12 +0200, Andreas Müller wrote:
> On Mon, Apr 4, 2016 at 10:46 AM, Andreas Müller
> <schnitzeltony@googlemail.com> wrote:
> > On Mon, Apr 4, 2016 at 10:00 AM, Max Krummenacher <
> > max.oss.09@gmail.com> wrote:
> > > Hi Andreas
> > >
> > > I guess Richard refers to this one:
> > > http://cgit.openembedded.org/openembedded-core/commit/meta/classe
> > > s/package.bbclass?h=master
> > > -next&id=ecb56a6ae0c870af680da03db9d39703b525fc98
> > > Max
> > >
> Hi Max,
>
> * your patch fixes my warnings
> * with Richard's comments I reduced your patch to
>
> diff --git a/meta/classes/package.bbclass
> b/meta/classes/package.bbclass
> index bdbe96d..64bbeb4 100644
> --- a/meta/classes/package.bbclass
> +++ b/meta/classes/package.bbclass
> @@ -410,6 +410,13 @@ def copydebugsources(debugsrcdir, d):
> if retval:
> bb.fatal("debugsrc symlink fixup failed with exit code
> %s
> (cmd was %s)" % (retval, cmd))
>
> + # cpio --no-preserve-owner does not create the destination
> files with
> + # owner root even when run under pseudo, chown them
> explicitely.
> + cmd = "find '%s%s' -not -uid 0 -exec chown 0:0 {} \;" %
> (dvar, debugsrcdir)
> + (retval, output) = oe.utils.getstatusoutput(cmd)
> + if retval:
> + bb.fatal("cpio --no-preserve-owner fixup failed with
> exit
> code %s (cmd was %s)" % (retval, cmd))
> +
> # The copy by cpio may have resulted in some empty
> directories! Remove these
> cmd = "find %s%s -empty -type d -delete" % (dvar,
> debugsrcdir)
> (retval, output) = oe.utils.getstatusoutput(cmd)
>
> and incremental build logs still look quiet (need a scratch build to
> be sure). Could you try if that one works for you?
>
> Somehow cpio turns suspicious: my fedora 23 ships 2.11 which is 6
> years old. Have checked cpio's (git) logs but did not find something
> (there was a matching bugfix 2.10 -> 2.11 - ....)
>
> So how about a survey:
>
> * Which version of cpio does your build host distribution ship
> * do you see floods of host contamination warnings for shipped source
> files?
You could install a copy of our buildtools tarball, see if the problem
goes away with that installed?
Cheers,
Richard
next prev parent reply other threads:[~2016-04-04 22:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-03 20:57 [oe][Patch] package.bbclass: fix host contamination warnings for source files Max Krummenacher
2016-04-03 21:37 ` Andreas Müller
2016-04-03 21:45 ` Richard Purdie
2016-04-03 21:53 ` Khem Raj
2016-04-03 22:54 ` Max Krummenacher
2016-04-03 22:51 ` Max Krummenacher
2016-04-03 23:00 ` Richard Purdie
2016-04-04 2:36 ` Khem Raj
2016-04-04 7:49 ` Max Krummenacher
2016-04-04 7:56 ` Andreas Müller
2016-04-04 8:00 ` Max Krummenacher
2016-04-04 8:46 ` Andreas Müller
2016-04-04 21:12 ` Andreas Müller
2016-04-04 22:43 ` Richard Purdie [this message]
2016-04-05 0:44 ` Khem Raj
2016-04-05 7:43 ` Max Krummenacher
2016-07-18 20:07 ` Max Krummenacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1459809810.7348.160.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=max.krummenacher@toradex.com \
--cc=max.oss.09@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=schnitzeltony@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox