From: Mike Looijmans <mike.looijmans@topic.nl>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] ptest: fix file ownerships in ${PTEST_PATH}
Date: Wed, 9 Sep 2015 14:38:25 +0200 [thread overview]
Message-ID: <55F02841.6000209@topic.nl> (raw)
In-Reply-To: <1441800588-25217-1-git-send-email-ross.burton@intel.com>
Just posting a related idea here:
There are quite a few recipes that just contain a bunch of (data) files, and
use a simple "cp -r" in the install phase. Instead of peppering these with
"chown" calls, it might be better to create a small utility that basically
runs the "install" command recursively, and replace the "cp -r" with
"install_recursive".
On 09-09-15 14:09, Ross Burton wrote:
> As most upstreams don't have installable test suites it's fairly common to copy
> files directly out of a source tree for ptests, but this results in files in the
> recipe being owned by the user running bitbake:
>
> WARNING: QA Issue: .../sed/4.2.2-r0/packages-split/sed-ptest/usr/lib64/
> sed/ptest/testsuite/bug-regex21 is owned by uid 1000, which is the same
> as the user running bitbake. This may be due to host contamination
> [host-user-contaminated]
>
> Instead of needing to fix this in every recipe that has this problem simply
> chown the files to root:root in do_install_ptest_base.
>
> Signed-off-by: Ross Burton <ross.burton@intel.com>
> ---
> meta/classes/ptest.bbclass | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
> index 2ac9143..b5f470f 100644
> --- a/meta/classes/ptest.bbclass
> +++ b/meta/classes/ptest.bbclass
> @@ -43,6 +43,7 @@ do_install_ptest_base() {
> oe_runmake DESTDIR=${D}${PTEST_PATH} install-ptest
> fi
> do_install_ptest
> + chown -R root:root ${D}${PTEST_PATH}
> fi
> }
>
>
Kind regards,
Mike Looijmans
System Expert
TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com
Please consider the environment before printing this e-mail
next prev parent reply other threads:[~2015-09-09 12:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-09 12:09 [PATCH] ptest: fix file ownerships in ${PTEST_PATH} Ross Burton
2015-09-09 12:38 ` Mike Looijmans [this message]
2015-09-09 15:45 ` Christopher Larson
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=55F02841.6000209@topic.nl \
--to=mike.looijmans@topic.nl \
--cc=openembedded-core@lists.openembedded.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.