From: Ross Burton Date: Tue, 8 Sep 2015 23:15:32 +0000 (+0100) Subject: ptest: fix file ownerships in ${PTEST_PATH} X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~28978 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=552daf60c58784c8f1acc12c5a443a44a922f743;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Ross Burton --- diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index f30f26afabb..66e364af531 100644 --- a/meta/classes/ptest.bbclass +++ b/meta/classes/ptest.bbclass @@ -43,6 +43,7 @@ fakeroot do_install_ptest_base() { oe_runmake DESTDIR=${D}${PTEST_PATH} install-ptest fi do_install_ptest + chown -R root:root ${D}${PTEST_PATH} fi }