diff options
author | Ross Burton <ross.burton@intel.com> | 2015-09-09 00:15:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-12 22:48:34 +0100 |
commit | a2ec6d47207312b5a5750cd53f02c84cfa39045c (patch) | |
tree | 6bafbf487b1e7c8ac3cef5c12b9da39871d76142 | |
parent | e0543d1094b690d42d7a6ae8a55f554f630ca9b0 (diff) | |
download | poky-a2ec6d47207312b5a5750cd53f02c84cfa39045c.tar.gz |
ptest: fix file ownerships in ${PTEST_PATH}
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.
(From OE-Core rev: 552daf60c58784c8f1acc12c5a443a44a922f743)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/ptest.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index f30f26afab..66e364af53 100644 --- a/meta/classes/ptest.bbclass +++ b/meta/classes/ptest.bbclass | |||
@@ -43,6 +43,7 @@ fakeroot do_install_ptest_base() { | |||
43 | oe_runmake DESTDIR=${D}${PTEST_PATH} install-ptest | 43 | oe_runmake DESTDIR=${D}${PTEST_PATH} install-ptest |
44 | fi | 44 | fi |
45 | do_install_ptest | 45 | do_install_ptest |
46 | chown -R root:root ${D}${PTEST_PATH} | ||
46 | fi | 47 | fi |
47 | } | 48 | } |
48 | 49 | ||