[oe-commits] Ross Burton : ptest: fix file ownerships in ${PTEST_PATH}

git at git.openembedded.org git at git.openembedded.org
Fri Sep 11 22:42:07 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 5c47a2f1a7560faa89508b0fd97dc1b355fbef4c
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5c47a2f1a7560faa89508b0fd97dc1b355fbef4c

Author: Ross Burton <ross.burton at intel.com>
Date:   Wed Sep  9 00:15:32 2015 +0100

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 <ross.burton at 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 f30f26a..66e364a 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
 }
 



More information about the Openembedded-commits mailing list