Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] ptest: fix file ownerships in ${PTEST_PATH}
@ 2015-09-09 12:09 Ross Burton
  2015-09-09 12:38 ` Mike Looijmans
  0 siblings, 1 reply; 3+ messages in thread
From: Ross Burton @ 2015-09-09 12:09 UTC (permalink / raw)
  To: openembedded-core

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
 }
 
-- 
2.3.2 (Apple Git-55)



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-09 15:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-09 12:09 [PATCH] ptest: fix file ownerships in ${PTEST_PATH} Ross Burton
2015-09-09 12:38 ` Mike Looijmans
2015-09-09 15:45   ` Christopher Larson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox